2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="ldmain.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB LIBOBJS LTLIBOBJS'
313 ac_subst_files='TDIRS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking Speeds up one-time builds
854 --enable-dependency-tracking Do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=yes
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-targets alternative target configurations
860 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
861 --enable-build-warnings enable build-time compiler warnings if gcc is used
862 --disable-nls do not use Native Language Support
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
869 --with-gnu-ld assume the C compiler uses GNU ld default=no
870 --with-pic try to use only PIC/non-PIC objects default=use both
871 --with-lib-path=dir1:dir2... set default LIB_PATH
872 --with-sysroot=DIR Search for usr/lib et al within DIR.
873 --with-included-gettext use the GNU gettext library included here
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
884 Use these variables to override the choices made by `configure' or to help
885 it to find libraries and programs with nonstandard names/locations.
890 if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
897 if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902 ac_dir_suffix= ac_top_builddir=
906 .) # No --srcdir option. We are building in place.
908 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 # Do not use `cd foo && pwd` to compute absolute paths, because
922 # the directories may not exist.
924 .) ac_abs_builddir="$ac_dir";;
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 case $ac_abs_builddir in
933 .) ac_abs_top_builddir=${ac_top_builddir}.;;
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 case $ac_abs_builddir in
942 .) ac_abs_srcdir=$ac_srcdir;;
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 case $ac_abs_builddir in
951 .) ac_abs_top_srcdir=$ac_top_srcdir;;
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
983 Copyright (C) 2003 Free Software Foundation, Inc.
984 This configure script is free software; the Free Software Foundation
985 gives unlimited permission to copy, distribute and modify it.
991 This file contains any messages produced by compilers while
992 running configure, to aid debugging if configure makes a mistake.
994 It was created by $as_me, which was
995 generated by GNU Autoconf 2.59. Invocation command line was
1006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1016 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1019 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1020 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1021 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1045 # Keep a trace of the command line.
1046 # Strip out --no-create and --no-recursion so they do not pile up.
1047 # Strip out --silent because we don't want to record it for future runs.
1048 # Also quote any args containing shell meta-characters.
1049 # Make two passes to allow for proper duplicate-argument suppression.
1054 ac_must_keep_next=false
1060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1064 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071 if test $ac_must_keep_next = true; then
1072 ac_must_keep_next=false # Got value, back to normal.
1075 *=* | --config-cache | -C | -disable-* | --disable-* \
1076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078 | -with-* | --with-* | -without-* | --without-* | --x)
1079 case "$ac_configure_args0 " in
1080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 -* ) ac_must_keep_next=true ;;
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1093 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096 # When interrupted or exit'd, cleanup temporary files, and complete
1097 # config.log. We remove comments because anyway the quotes in there
1098 # would cause problems or look ugly.
1099 # WARNING: Be sure not to use single quotes in there, as some shells,
1100 # such as our DU 5.0 friend, will then `close' the trap.
1101 trap 'exit_status=$?
1102 # Save into config.log some information that might help in debugging.
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1112 # The following way of writing the cache mishandles newlines in values,
1115 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1135 for ac_var in $ac_subst_vars
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1142 if test -n "$ac_subst_files"; then
1149 for ac_var in $ac_subst_files
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1157 if test -s confdefs.h; then
1164 sed "/^$/d" confdefs.h | sort
1167 test "$ac_signal" != 0 &&
1168 echo "$as_me: caught signal $ac_signal"
1169 echo "$as_me: exit $exit_status"
1171 rm -f core *.core &&
1172 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175 for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1181 rm -rf conftest* confdefs.h
1182 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 # Predefined preprocessor variables.
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1212 # Let the site file select an alternate cache file if it wants to.
1213 # Prefer explicitly selected file to automatically selected ones.
1214 if test -z "$CONFIG_SITE"; then
1215 if test "x$prefix" != xNONE; then
1216 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 for ac_site_file in $CONFIG_SITE; do
1222 if test -r "$ac_site_file"; then
1223 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224 echo "$as_me: loading site script $ac_site_file" >&6;}
1225 sed 's/^/| /' "$ac_site_file" >&5
1230 if test -r "$cache_file"; then
1231 # Some versions of bash will fail to source /dev/null (special
1232 # files actually), so we avoid doing that.
1233 if test -f "$cache_file"; then
1234 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235 echo "$as_me: loading cache $cache_file" >&6;}
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1247 # Check that the precious variables saved in the cache have kept the same
1249 ac_cache_corrupted=false
1250 for ac_var in `(set) 2>&1 |
1251 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253 eval ac_new_set=\$ac_env_${ac_var}_set
1254 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255 eval ac_new_val="\$ac_env_${ac_var}_value"
1256 case $ac_old_set,$ac_new_set in
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1267 if test "x$ac_old_val" != "x$ac_new_val"; then
1268 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1269 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1271 echo "$as_me: former value: $ac_old_val" >&2;}
1272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1273 echo "$as_me: current value: $ac_new_val" >&2;}
1274 ac_cache_corrupted=:
1277 # Pass precious variables to config.status.
1278 if test "$ac_new_set" = set; then
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 *) ac_arg=$ac_var=$ac_new_val ;;
1284 case " $ac_configure_args " in
1285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1286 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1290 if $ac_cache_corrupted; then
1291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1294 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1299 ac_cpp='$CPP $CPPFLAGS'
1300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1324 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1325 if test -f $ac_dir/install-sh; then
1327 ac_install_sh="$ac_aux_dir/install-sh -c"
1329 elif test -f $ac_dir/install.sh; then
1331 ac_install_sh="$ac_aux_dir/install.sh -c"
1333 elif test -f $ac_dir/shtool; then
1335 ac_install_sh="$ac_aux_dir/shtool install -c"
1339 if test -z "$ac_aux_dir"; then
1340 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1341 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1342 { (exit 1); exit 1; }; }
1344 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1345 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1346 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1348 # Make sure we can run config.sub.
1349 $ac_config_sub sun4 >/dev/null 2>&1 ||
1350 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1351 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1352 { (exit 1); exit 1; }; }
1354 echo "$as_me:$LINENO: checking build system type" >&5
1355 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1356 if test "${ac_cv_build+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1359 ac_cv_build_alias=$build_alias
1360 test -z "$ac_cv_build_alias" &&
1361 ac_cv_build_alias=`$ac_config_guess`
1362 test -z "$ac_cv_build_alias" &&
1363 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1364 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1365 { (exit 1); exit 1; }; }
1366 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1367 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1368 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1369 { (exit 1); exit 1; }; }
1372 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1373 echo "${ECHO_T}$ac_cv_build" >&6
1375 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1376 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1377 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1380 echo "$as_me:$LINENO: checking host system type" >&5
1381 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1382 if test "${ac_cv_host+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1385 ac_cv_host_alias=$host_alias
1386 test -z "$ac_cv_host_alias" &&
1387 ac_cv_host_alias=$ac_cv_build_alias
1388 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1389 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1390 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1391 { (exit 1); exit 1; }; }
1394 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1395 echo "${ECHO_T}$ac_cv_host" >&6
1397 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1398 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1399 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1402 echo "$as_me:$LINENO: checking target system type" >&5
1403 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1404 if test "${ac_cv_target+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1407 ac_cv_target_alias=$target_alias
1408 test "x$ac_cv_target_alias" = "x" &&
1409 ac_cv_target_alias=$ac_cv_host_alias
1410 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1411 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1412 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1413 { (exit 1); exit 1; }; }
1416 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1417 echo "${ECHO_T}$ac_cv_target" >&6
1418 target=$ac_cv_target
1419 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1420 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1421 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424 # The aliases save the names the user supplied, while $host etc.
1425 # will get canonicalized.
1426 test -n "$target_alias" &&
1427 test "$program_prefix$program_suffix$program_transform_name" = \
1429 program_prefix=${target_alias}-
1431 ac_cpp='$CPP $CPPFLAGS'
1432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1435 if test -n "$ac_tool_prefix"; then
1436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1443 if test -n "$CC"; then
1444 ac_cv_prog_CC="$CC" # Let the user override the test.
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1463 if test -n "$CC"; then
1464 echo "$as_me:$LINENO: result: $CC" >&5
1465 echo "${ECHO_T}$CC" >&6
1467 echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1472 if test -z "$ac_cv_prog_CC"; then
1474 # Extract the first word of "gcc", so it can be a program name with args.
1475 set dummy gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 if test -n "$ac_ct_CC"; then
1482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 ac_cv_prog_ac_ct_CC="gcc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1501 if test -n "$ac_ct_CC"; then
1502 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1503 echo "${ECHO_T}$ac_ct_CC" >&6
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1514 if test -z "$CC"; then
1515 if test -n "$ac_tool_prefix"; then
1516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1517 set dummy ${ac_tool_prefix}cc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 if test -n "$CC"; then
1524 ac_cv_prog_CC="$CC" # Let the user override the test.
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_CC="${ac_tool_prefix}cc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1543 if test -n "$CC"; then
1544 echo "$as_me:$LINENO: result: $CC" >&5
1545 echo "${ECHO_T}$CC" >&6
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1552 if test -z "$ac_cv_prog_CC"; then
1554 # Extract the first word of "cc", so it can be a program name with args.
1555 set dummy cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1561 if test -n "$ac_ct_CC"; then
1562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_ac_ct_CC="cc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581 if test -n "$ac_ct_CC"; then
1582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583 echo "${ECHO_T}$ac_ct_CC" >&6
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1595 if test -z "$CC"; then
1596 # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1615 ac_prog_rejected=yes
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 if test $ac_prog_rejected = yes; then
1626 # We found a bogon in the path, so make sure we never use it.
1627 set dummy $ac_cv_prog_CC
1629 if test $# != 0; then
1630 # We chose a different compiler from the bogus one.
1631 # However, it has the same basename, so the bogon will be chosen
1632 # first if we set CC to just the basename; use the full file name.
1634 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1640 if test -n "$CC"; then
1641 echo "$as_me:$LINENO: result: $CC" >&5
1642 echo "${ECHO_T}$CC" >&6
1644 echo "$as_me:$LINENO: result: no" >&5
1645 echo "${ECHO_T}no" >&6
1649 if test -z "$CC"; then
1650 if test -n "$ac_tool_prefix"; then
1653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1660 if test -n "$CC"; then
1661 ac_cv_prog_CC="$CC" # Let the user override the test.
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680 if test -n "$CC"; then
1681 echo "$as_me:$LINENO: result: $CC" >&5
1682 echo "${ECHO_T}$CC" >&6
1684 echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1688 test -n "$CC" && break
1691 if test -z "$CC"; then
1695 # Extract the first word of "$ac_prog", so it can be a program name with args.
1696 set dummy $ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 if test -n "$ac_ct_CC"; then
1703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_ac_ct_CC="$ac_prog"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1722 if test -n "$ac_ct_CC"; then
1723 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1724 echo "${ECHO_T}$ac_ct_CC" >&6
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1730 test -n "$ac_ct_CC" && break
1739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1740 See \`config.log' for more details." >&5
1741 echo "$as_me: error: no acceptable C compiler found in \$PATH
1742 See \`config.log' for more details." >&2;}
1743 { (exit 1); exit 1; }; }
1745 # Provide some information about the compiler.
1746 echo "$as_me:$LINENO:" \
1747 "checking for C compiler version" >&5
1748 ac_compiler=`set X $ac_compile; echo $2`
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1750 (eval $ac_compiler --version </dev/null >&5) 2>&5
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1755 (eval $ac_compiler -v </dev/null >&5) 2>&5
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1760 (eval $ac_compiler -V </dev/null >&5) 2>&5
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }
1765 cat >conftest.$ac_ext <<_ACEOF
1768 cat confdefs.h >>conftest.$ac_ext
1769 cat >>conftest.$ac_ext <<_ACEOF
1770 /* end confdefs.h. */
1780 ac_clean_files_save=$ac_clean_files
1781 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1782 # Try to create an executable without -o first, disregard a.out.
1783 # It will help us diagnose broken compilers, and finding out an intuition
1785 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1786 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1787 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1788 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1789 (eval $ac_link_default) 2>&5
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; then
1793 # Find the output, starting from the most likely. This scheme is
1794 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1797 # Be careful to initialize this variable, since it used to be cached.
1798 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1800 # b.out is created by i960 compilers.
1801 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1803 test -f "$ac_file" || continue
1805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1808 # This is the source file.
1811 # We found the default executable, but exeext='' is most
1815 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1816 # FIXME: I believe we export ac_cv_exeext for Libtool,
1817 # but it would be cool to find out if it's true. Does anybody
1818 # maintain Libtool? --akim.
1826 echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1829 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: C compiler cannot create executables
1832 See \`config.log' for more details." >&2;}
1833 { (exit 77); exit 77; }; }
1836 ac_exeext=$ac_cv_exeext
1837 echo "$as_me:$LINENO: result: $ac_file" >&5
1838 echo "${ECHO_T}$ac_file" >&6
1840 # Check the compiler produces executables we can run. If not, either
1841 # the compiler is broken, or we cross compile.
1842 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1843 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1844 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1845 # If not cross compiling, check that we can run a simple program.
1846 if test "$cross_compiling" != yes; then
1847 if { ac_try='./$ac_file'
1848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }; }; then
1855 if test "$cross_compiling" = maybe; then
1858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1859 If you meant to cross compile, use \`--host'.
1860 See \`config.log' for more details." >&5
1861 echo "$as_me: error: cannot run C compiled programs.
1862 If you meant to cross compile, use \`--host'.
1863 See \`config.log' for more details." >&2;}
1864 { (exit 1); exit 1; }; }
1868 echo "$as_me:$LINENO: result: yes" >&5
1869 echo "${ECHO_T}yes" >&6
1871 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1872 ac_clean_files=$ac_clean_files_save
1873 # Check the compiler produces executables we can run. If not, either
1874 # the compiler is broken, or we cross compile.
1875 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1876 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1877 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1878 echo "${ECHO_T}$cross_compiling" >&6
1880 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1881 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1883 (eval $ac_link) 2>&5
1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886 (exit $ac_status); }; then
1887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1888 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1889 # work properly (i.e., refer to `conftest.exe'), while it won't with
1891 for ac_file in conftest.exe conftest conftest.*; do
1892 test -f "$ac_file" || continue
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1905 See \`config.log' for more details." >&2;}
1906 { (exit 1); exit 1; }; }
1909 rm -f conftest$ac_cv_exeext
1910 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1911 echo "${ECHO_T}$ac_cv_exeext" >&6
1913 rm -f conftest.$ac_ext
1914 EXEEXT=$ac_cv_exeext
1916 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1917 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1918 if test "${ac_cv_objext+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 cat >conftest.$ac_ext <<_ACEOF
1924 cat confdefs.h >>conftest.$ac_ext
1925 cat >>conftest.$ac_ext <<_ACEOF
1926 /* end confdefs.h. */
1936 rm -f conftest.o conftest.obj
1937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1938 (eval $ac_compile) 2>&5
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; then
1942 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1945 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1950 echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1953 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1954 See \`config.log' for more details." >&5
1955 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1956 See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1960 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1962 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1963 echo "${ECHO_T}$ac_cv_objext" >&6
1964 OBJEXT=$ac_cv_objext
1966 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1967 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1968 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 cat >conftest.$ac_ext <<_ACEOF
1974 cat confdefs.h >>conftest.$ac_ext
1975 cat >>conftest.$ac_ext <<_ACEOF
1976 /* end confdefs.h. */
1989 rm -f conftest.$ac_objext
1990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991 (eval $ac_compile) 2>conftest.er1
1993 grep -v '^ *+' conftest.er1 >conftest.err
1995 cat conftest.err >&5
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); } &&
1998 { ac_try='test -z "$ac_c_werror_flag"
1999 || test ! -s conftest.err'
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; } &&
2005 { ac_try='test -s conftest.$ac_objext'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
2013 echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2019 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2022 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2023 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2024 GCC=`test $ac_compiler_gnu = yes && echo yes`
2025 ac_test_CFLAGS=${CFLAGS+set}
2026 ac_save_CFLAGS=$CFLAGS
2028 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2029 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2030 if test "${ac_cv_prog_cc_g+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 cat >conftest.$ac_ext <<_ACEOF
2036 cat confdefs.h >>conftest.$ac_ext
2037 cat >>conftest.$ac_ext <<_ACEOF
2038 /* end confdefs.h. */
2048 rm -f conftest.$ac_objext
2049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>conftest.er1
2052 grep -v '^ *+' conftest.er1 >conftest.err
2054 cat conftest.err >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
2057 { ac_try='test -z "$ac_c_werror_flag"
2058 || test ! -s conftest.err'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; } &&
2064 { ac_try='test -s conftest.$ac_objext'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; }; then
2072 echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2079 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2080 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2081 if test "$ac_test_CFLAGS" = set; then
2082 CFLAGS=$ac_save_CFLAGS
2083 elif test $ac_cv_prog_cc_g = yes; then
2084 if test "$GCC" = yes; then
2090 if test "$GCC" = yes; then
2096 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2097 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2098 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 ac_cv_prog_cc_stdc=no
2103 cat >conftest.$ac_ext <<_ACEOF
2106 cat confdefs.h >>conftest.$ac_ext
2107 cat >>conftest.$ac_ext <<_ACEOF
2108 /* end confdefs.h. */
2111 #include <sys/types.h>
2112 #include <sys/stat.h>
2113 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2114 struct buf { int x; };
2115 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2116 static char *e (p, i)
2122 static char *f (char * (*g) (char **, int), char **p, ...)
2127 s = g (p, va_arg (v,int));
2132 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2133 function prototypes and stuff, but not '\xHH' hex character constants.
2134 These don't provoke an error unfortunately, instead are silently treated
2135 as 'x'. The following induces an error, until -std1 is added to get
2136 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2137 array size at least. It's necessary to write '\x00'==0 to get something
2138 that's true only with -std1. */
2139 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2141 int test (int i, double x);
2142 struct s1 {int (*f) (int a);};
2143 struct s2 {int (*f) (double a);};
2144 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2150 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2155 # Don't try gcc -ansi; that turns off useful extensions and
2156 # breaks some systems' header files.
2157 # AIX -qlanglvl=ansi
2158 # Ultrix and OSF/1 -std1
2159 # HP-UX 10.20 and later -Ae
2160 # HP-UX older versions -Aa -D_HPUX_SOURCE
2161 # SVR4 -Xc -D__EXTENSIONS__
2162 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2164 CC="$ac_save_CC $ac_arg"
2165 rm -f conftest.$ac_objext
2166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2167 (eval $ac_compile) 2>conftest.er1
2169 grep -v '^ *+' conftest.er1 >conftest.err
2171 cat conftest.err >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); } &&
2174 { ac_try='test -z "$ac_c_werror_flag"
2175 || test ! -s conftest.err'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; } &&
2181 { ac_try='test -s conftest.$ac_objext'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2187 ac_cv_prog_cc_stdc=$ac_arg
2190 echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2194 rm -f conftest.err conftest.$ac_objext
2196 rm -f conftest.$ac_ext conftest.$ac_objext
2201 case "x$ac_cv_prog_cc_stdc" in
2203 echo "$as_me:$LINENO: result: none needed" >&5
2204 echo "${ECHO_T}none needed" >&6 ;;
2206 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2207 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2208 CC="$CC $ac_cv_prog_cc_stdc" ;;
2211 # Some people use a C++ compiler to compile C. Since we use `exit',
2212 # in C++ we need to declare it. In case someone uses the same compiler
2213 # for both compiling C and C++ we need to have the C++ compiler decide
2214 # the declaration of exit, since it's the most demanding environment.
2215 cat >conftest.$ac_ext <<_ACEOF
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2224 grep -v '^ *+' conftest.er1 >conftest.err
2226 cat conftest.err >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -z "$ac_c_werror_flag"
2230 || test ! -s conftest.err'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 for ac_declaration in \
2244 'extern "C" void std::exit (int) throw (); using std::exit;' \
2245 'extern "C" void std::exit (int); using std::exit;' \
2246 'extern "C" void exit (int) throw ();' \
2247 'extern "C" void exit (int);' \
2250 cat >conftest.$ac_ext <<_ACEOF
2253 cat confdefs.h >>conftest.$ac_ext
2254 cat >>conftest.$ac_ext <<_ACEOF
2255 /* end confdefs.h. */
2266 rm -f conftest.$ac_objext
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>conftest.er1
2270 grep -v '^ *+' conftest.er1 >conftest.err
2272 cat conftest.err >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } &&
2275 { ac_try='test -z "$ac_c_werror_flag"
2276 || test ! -s conftest.err'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; } &&
2282 { ac_try='test -s conftest.$ac_objext'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; }; then
2290 echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2296 cat >conftest.$ac_ext <<_ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2315 grep -v '^ *+' conftest.er1 >conftest.err
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -z "$ac_c_werror_flag"
2321 || test ! -s conftest.err'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2335 echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2342 if test -n "$ac_declaration"; then
2343 echo '#ifdef __cplusplus' >>confdefs.h
2344 echo $ac_declaration >>confdefs.h
2345 echo '#endif' >>confdefs.h
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2362 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2363 if test "${ac_cv_search_strerror+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 ac_func_search_save_LIBS=$LIBS
2367 ac_cv_search_strerror=no
2368 cat >conftest.$ac_ext <<_ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2375 /* Override any gcc2 internal prototype to avoid an error. */
2379 /* We use char because int might match the return type of a gcc2
2380 builtin and then its argument prototype would still apply. */
2390 rm -f conftest.$ac_objext conftest$ac_exeext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2392 (eval $ac_link) 2>conftest.er1
2394 grep -v '^ *+' conftest.er1 >conftest.err
2396 cat conftest.err >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 { ac_try='test -z "$ac_c_werror_flag"
2400 || test ! -s conftest.err'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest$ac_exeext'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2412 ac_cv_search_strerror="none required"
2414 echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2418 rm -f conftest.err conftest.$ac_objext \
2419 conftest$ac_exeext conftest.$ac_ext
2420 if test "$ac_cv_search_strerror" = no; then
2421 for ac_lib in cposix; do
2422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2423 cat >conftest.$ac_ext <<_ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2430 /* Override any gcc2 internal prototype to avoid an error. */
2434 /* We use char because int might match the return type of a gcc2
2435 builtin and then its argument prototype would still apply. */
2445 rm -f conftest.$ac_objext conftest$ac_exeext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2447 (eval $ac_link) 2>conftest.er1
2449 grep -v '^ *+' conftest.er1 >conftest.err
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest$ac_exeext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 ac_cv_search_strerror="-l$ac_lib"
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2474 rm -f conftest.err conftest.$ac_objext \
2475 conftest$ac_exeext conftest.$ac_ext
2478 LIBS=$ac_func_search_save_LIBS
2480 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2481 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2482 if test "$ac_cv_search_strerror" != no; then
2483 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2488 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2489 am__api_version="1.7"
2490 # Find a good install program. We prefer a C program (faster),
2491 # so one script is as good as another. But avoid the broken or
2492 # incompatible versions:
2493 # SysV /etc/install, /usr/sbin/install
2494 # SunOS /usr/etc/install
2495 # IRIX /sbin/install
2497 # AmigaOS /C/install, which installs bootblocks on floppy discs
2498 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2499 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2500 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2501 # OS/2's system install, which has a completely different semantic
2502 # ./install, which can be erroneously created by make from ./install.sh.
2503 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2504 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2505 if test -z "$INSTALL"; then
2506 if test "${ac_cv_path_install+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 test -z "$as_dir" && as_dir=.
2514 # Account for people who put trailing slashes in PATH elements.
2516 ./ | .// | /cC/* | \
2517 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2518 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2521 # OSF1 and SCO ODT 3.0 have their own names for install.
2522 # Don't use installbsd from OSF since it installs stuff as root
2524 for ac_prog in ginstall scoinst install; do
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2527 if test $ac_prog = install &&
2528 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529 # AIX install. It has an incompatible calling convention.
2531 elif test $ac_prog = install &&
2532 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533 # program-specific install script used by HP pwplus--don't use.
2536 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2548 if test "${ac_cv_path_install+set}" = set; then
2549 INSTALL=$ac_cv_path_install
2551 # As a last resort, use the slow shell script. We don't cache a
2552 # path for INSTALL within a source directory, because that will
2553 # break other packages using the cache if that directory is
2554 # removed, or if the path is relative.
2555 INSTALL=$ac_install_sh
2558 echo "$as_me:$LINENO: result: $INSTALL" >&5
2559 echo "${ECHO_T}$INSTALL" >&6
2561 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2562 # It thinks the first close brace ends the variable substitution.
2563 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2565 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2567 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2569 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2570 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2573 echo timestamp > conftest.file
2574 # Do `set' in a subshell so we don't clobber the current shell's
2575 # arguments. Must try -L first in case configure is actually a
2576 # symlink; some systems play weird games with the mod time of symlinks
2577 # (eg FreeBSD returns the mod time of the symlink's containing
2580 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2581 if test "$*" = "X"; then
2583 set X `ls -t $srcdir/configure conftest.file`
2586 if test "$*" != "X $srcdir/configure conftest.file" \
2587 && test "$*" != "X conftest.file $srcdir/configure"; then
2589 # If neither matched, then we have a broken ls. This can happen
2590 # if, for instance, CONFIG_SHELL is bash and it inherits a
2591 # broken ls alias from the environment. This has actually
2592 # happened. Such a system could not be considered "sane".
2593 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2594 alias in your environment" >&5
2595 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2596 alias in your environment" >&2;}
2597 { (exit 1); exit 1; }; }
2600 test "$2" = conftest.file
2606 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2607 Check your system clock" >&5
2608 echo "$as_me: error: newly created file is older than distributed files!
2609 Check your system clock" >&2;}
2610 { (exit 1); exit 1; }; }
2612 echo "$as_me:$LINENO: result: yes" >&5
2613 echo "${ECHO_T}yes" >&6
2614 test "$program_prefix" != NONE &&
2615 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2616 # Use a double $ so make ignores it.
2617 test "$program_suffix" != NONE &&
2618 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2619 # Double any \ or $. echo might interpret backslashes.
2620 # By default was `s,x,x', remove it if useless.
2621 cat <<\_ACEOF >conftest.sed
2622 s/[\\$]/&&/g;s/;s,x,x,$//
2624 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2628 # expand $ac_aux_dir to an absolute path
2629 am_aux_dir=`cd $ac_aux_dir && pwd`
2631 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2632 # Use eval to expand $SHELL
2633 if eval "$MISSING --run true"; then
2634 am_missing_run="$MISSING --run "
2637 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2638 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2641 for ac_prog in gawk mawk nawk awk
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2647 if test "${ac_cv_prog_AWK+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 if test -n "$AWK"; then
2651 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660 ac_cv_prog_AWK="$ac_prog"
2661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 if test -n "$AWK"; then
2671 echo "$as_me:$LINENO: result: $AWK" >&5
2672 echo "${ECHO_T}$AWK" >&6
2674 echo "$as_me:$LINENO: result: no" >&5
2675 echo "${ECHO_T}no" >&6
2678 test -n "$AWK" && break
2681 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2682 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2683 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2684 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 cat >conftest.make <<\_ACEOF
2689 @echo 'ac_maketemp="$(MAKE)"'
2691 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2692 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2693 if test -n "$ac_maketemp"; then
2694 eval ac_cv_prog_make_${ac_make}_set=yes
2696 eval ac_cv_prog_make_${ac_make}_set=no
2700 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2701 echo "$as_me:$LINENO: result: yes" >&5
2702 echo "${ECHO_T}yes" >&6
2705 echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6
2707 SET_MAKE="MAKE=${MAKE-make}"
2710 rm -rf .tst 2>/dev/null
2711 mkdir .tst 2>/dev/null
2712 if test -d .tst; then
2717 rmdir .tst 2>/dev/null
2719 DEPDIR="${am__leading_dot}deps"
2721 ac_config_commands="$ac_config_commands depfiles"
2724 am_make=${MAKE-make}
2725 cat > confinc << 'END'
2730 # If we don't find an include directive, just comment out the code.
2731 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2732 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2736 # First try GNU make style include.
2737 echo "include confinc" > confmf
2738 # We grep out `Entering directory' and `Leaving directory'
2739 # messages which can occur if `w' ends up in MAKEFLAGS.
2740 # In particular we don't look at `^make:' because GNU make might
2741 # be invoked under some other name (usually "gmake"), in which
2742 # case it prints its new name instead of `make'.
2743 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2748 # Now try BSD make style include.
2749 if test "$am__include" = "#"; then
2750 echo '.include "confinc"' > confmf
2751 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2752 am__include=.include
2759 echo "$as_me:$LINENO: result: $_am_result" >&5
2760 echo "${ECHO_T}$_am_result" >&6
2761 rm -f confinc confmf
2763 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2764 if test "${enable_dependency_tracking+set}" = set; then
2765 enableval="$enable_dependency_tracking"
2768 if test "x$enable_dependency_tracking" != xno; then
2769 am_depcomp="$ac_aux_dir/depcomp"
2774 if test "x$enable_dependency_tracking" != xno; then
2784 # test to see if srcdir already configured
2785 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2786 test -f $srcdir/config.status; then
2787 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2788 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2789 { (exit 1); exit 1; }; }
2792 # test whether we have cygpath
2793 if test -z "$CYGPATH_W"; then
2794 if (cygpath --version) >/dev/null 2>/dev/null; then
2795 CYGPATH_W='cygpath -w'
2802 # Define the identity of the package.
2804 VERSION=${BFD_VERSION}
2807 cat >>confdefs.h <<_ACEOF
2808 #define PACKAGE "$PACKAGE"
2812 cat >>confdefs.h <<_ACEOF
2813 #define VERSION "$VERSION"
2816 # Some tools Automake needs.
2818 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2821 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2824 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2827 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2830 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2833 AMTAR=${AMTAR-"${am_missing_run}tar"}
2835 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2837 # Installed binaries are usually stripped using `strip' when the user
2838 # run `make install-strip'. However `strip' might not be the right
2839 # tool to use in cross-compilation environments, therefore Automake
2840 # will honor the `STRIP' environment variable to overrule this program.
2841 if test "$cross_compiling" != no; then
2842 if test -n "$ac_tool_prefix"; then
2843 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2844 set dummy ${ac_tool_prefix}strip; ac_word=$2
2845 echo "$as_me:$LINENO: checking for $ac_word" >&5
2846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2847 if test "${ac_cv_prog_STRIP+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 if test -n "$STRIP"; then
2851 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 STRIP=$ac_cv_prog_STRIP
2870 if test -n "$STRIP"; then
2871 echo "$as_me:$LINENO: result: $STRIP" >&5
2872 echo "${ECHO_T}$STRIP" >&6
2874 echo "$as_me:$LINENO: result: no" >&5
2875 echo "${ECHO_T}no" >&6
2879 if test -z "$ac_cv_prog_STRIP"; then
2881 # Extract the first word of "strip", so it can be a program name with args.
2882 set dummy strip; ac_word=$2
2883 echo "$as_me:$LINENO: checking for $ac_word" >&5
2884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2885 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 if test -n "$ac_ct_STRIP"; then
2889 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898 ac_cv_prog_ac_ct_STRIP="strip"
2899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2908 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2909 if test -n "$ac_ct_STRIP"; then
2910 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2911 echo "${ECHO_T}$ac_ct_STRIP" >&6
2913 echo "$as_me:$LINENO: result: no" >&5
2914 echo "${ECHO_T}no" >&6
2919 STRIP="$ac_cv_prog_STRIP"
2923 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2925 # We need awk for the "check" target. The system "awk" is bad on
2929 depcc="$CC" am_compiler_list=
2931 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2932 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2933 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2936 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2937 # We make a subdir and do the tests there. Otherwise we can end up
2938 # making bogus files that we don't know about and never remove. For
2939 # instance it was reported that on HP-UX the gcc test will end up
2940 # making a dummy file named `D' -- because `-MD' means `put the output
2943 # Copy depcomp to subdir because otherwise we won't find it if we're
2944 # using a relative directory.
2945 cp "$am_depcomp" conftest.dir
2947 # We will build objects and dependencies in a subdirectory because
2948 # it helps to detect inapplicable dependency modes. For instance
2949 # both Tru64's cc and ICC support -MD to output dependencies as a
2950 # side effect of compilation, but ICC will put the dependencies in
2951 # the current directory while Tru64 will put them in the object
2955 am_cv_CC_dependencies_compiler_type=none
2956 if test "$am_compiler_list" = ""; then
2957 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2959 for depmode in $am_compiler_list; do
2960 # Setup a source with many dependencies, because some compilers
2961 # like to wrap large dependency lists on column 80 (with \), and
2962 # we should not choose a depcomp mode which is confused by this.
2964 # We need to recreate these files for each test, as the compiler may
2965 # overwrite some of them when testing with obscure command lines.
2966 # This happens at least with the AIX C compiler.
2968 for i in 1 2 3 4 5 6; do
2969 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2972 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2976 # after this tag, mechanisms are not by side-effect, so they'll
2977 # only be used when explicitly requested
2978 if test "x$enable_dependency_tracking" = xyes; then
2986 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2987 # mode. It turns out that the SunPro C++ compiler does not properly
2988 # handle `-M -o', and we need to detect this.
2989 if depmode=$depmode \
2990 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2991 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2992 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2993 >/dev/null 2>conftest.err &&
2994 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2995 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2996 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2997 # icc doesn't choke on unknown options, it will just issue warnings
2998 # (even with -Werror). So we grep stderr for any message
2999 # that says an option was ignored.
3000 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3001 am_cv_CC_dependencies_compiler_type=$depmode
3010 am_cv_CC_dependencies_compiler_type=none
3014 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3015 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3016 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3021 test "x$enable_dependency_tracking" != xno \
3022 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3024 am__fastdepCC_FALSE='#'
3026 am__fastdepCC_TRUE='#'
3027 am__fastdepCC_FALSE=
3033 # Check whether --enable-shared or --disable-shared was given.
3034 if test "${enable_shared+set}" = set; then
3035 enableval="$enable_shared"
3036 p=${PACKAGE-default}
3038 yes) enable_shared=yes ;;
3039 no) enable_shared=no ;;
3042 # Look at the argument we got. We use all the common list separators.
3043 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3044 for pkg in $enableval; do
3045 if test "X$pkg" = "X$p"; then
3055 # Check whether --enable-static or --disable-static was given.
3056 if test "${enable_static+set}" = set; then
3057 enableval="$enable_static"
3058 p=${PACKAGE-default}
3060 yes) enable_static=yes ;;
3061 no) enable_static=no ;;
3064 # Look at the argument we got. We use all the common list separators.
3065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3066 for pkg in $enableval; do
3067 if test "X$pkg" = "X$p"; then
3077 # Check whether --enable-fast-install or --disable-fast-install was given.
3078 if test "${enable_fast_install+set}" = set; then
3079 enableval="$enable_fast_install"
3080 p=${PACKAGE-default}
3082 yes) enable_fast_install=yes ;;
3083 no) enable_fast_install=no ;;
3085 enable_fast_install=no
3086 # Look at the argument we got. We use all the common list separators.
3087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3088 for pkg in $enableval; do
3089 if test "X$pkg" = "X$p"; then
3090 enable_fast_install=yes
3097 enable_fast_install=yes
3100 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3101 if test "${with_gnu_ld+set}" = set; then
3102 withval="$with_gnu_ld"
3103 test "$withval" = no || with_gnu_ld=yes
3108 if test "$GCC" = yes; then
3109 # Check if gcc -print-prog-name=ld gives a path.
3110 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3111 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3114 # gcc leaves a trailing carriage return which upsets mingw
3115 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3117 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3120 # Accept absolute paths.
3121 [\\/]* | [A-Za-z]:[\\/]*)
3122 re_direlt='/[^/][^/]*/\.\./'
3123 # Canonicalize the path of ld
3124 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3125 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3126 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3128 test -z "$LD" && LD="$ac_prog"
3131 # If it fails, then pretend we aren't using GCC.
3135 # If it is relative, then search for the first ld in PATH.
3139 elif test "$with_gnu_ld" = yes; then
3140 echo "$as_me:$LINENO: checking for GNU ld" >&5
3141 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3143 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3144 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3146 if test "${lt_cv_path_LD+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 if test -z "$LD"; then
3150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3151 for ac_dir in $PATH; do
3152 test -z "$ac_dir" && ac_dir=.
3153 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3154 lt_cv_path_LD="$ac_dir/$ac_prog"
3155 # Check to see if the program is GNU ld. I'd rather use --version,
3156 # but apparently some GNU ld's only accept -v.
3157 # Break only if it was the GNU/non-GNU ld that we prefer.
3158 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3159 test "$with_gnu_ld" != no && break
3161 test "$with_gnu_ld" != yes && break
3167 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3172 if test -n "$LD"; then
3173 echo "$as_me:$LINENO: result: $LD" >&5
3174 echo "${ECHO_T}$LD" >&6
3176 echo "$as_me:$LINENO: result: no" >&5
3177 echo "${ECHO_T}no" >&6
3179 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3180 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3181 { (exit 1); exit 1; }; }
3182 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3183 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3184 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3188 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3189 lt_cv_prog_gnu_ld=yes
3191 lt_cv_prog_gnu_ld=no
3194 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3195 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3196 with_gnu_ld=$lt_cv_prog_gnu_ld
3199 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3200 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3201 if test "${lt_cv_ld_reload_flag+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 lt_cv_ld_reload_flag='-r'
3206 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3207 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3208 reload_flag=$lt_cv_ld_reload_flag
3209 test -n "$reload_flag" && reload_flag=" $reload_flag"
3211 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3212 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3213 if test "${lt_cv_path_NM+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 if test -n "$NM"; then
3217 # Let the user override the test.
3220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3221 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3222 test -z "$ac_dir" && ac_dir=.
3223 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3224 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3225 # Check to see if the nm accepts a BSD-compat flag.
3226 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3227 # nm: unknown option "B" ignored
3228 # Tru64's nm complains that /dev/null is an invalid object file
3229 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3230 lt_cv_path_NM="$tmp_nm -B"
3232 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3233 lt_cv_path_NM="$tmp_nm -p"
3236 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3237 continue # so that we can try to find one that supports BSD flags
3242 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3247 echo "$as_me:$LINENO: result: $NM" >&5
3248 echo "${ECHO_T}$NM" >&6
3250 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3251 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3253 if test "$LN_S" = "ln -s"; then
3254 echo "$as_me:$LINENO: result: yes" >&5
3255 echo "${ECHO_T}yes" >&6
3257 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3258 echo "${ECHO_T}no, using $LN_S" >&6
3261 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3262 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3263 if test "${lt_cv_deplibs_check_method+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 lt_cv_file_magic_cmd='$MAGIC_CMD'
3267 lt_cv_file_magic_test_file=
3268 lt_cv_deplibs_check_method='unknown'
3269 # Need to set the preceding variable on all platforms that support
3270 # interlibrary dependencies.
3271 # 'none' -- dependencies not supported.
3272 # `unknown' -- same as none, but documents that we really don't know.
3273 # 'pass_all' -- all dependencies passed with no checks.
3274 # 'test_compile' -- check by making test program.
3275 # 'file_magic [regex]' -- check by looking for files in library path
3276 # which responds to the $file_magic_cmd with a given egrep regex.
3277 # If you have `file' or equivalent on your system and you're not sure
3278 # whether `pass_all' will *always* work, you probably want this one.
3282 lt_cv_deplibs_check_method=pass_all
3286 lt_cv_deplibs_check_method=pass_all
3290 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3291 lt_cv_file_magic_cmd='/usr/bin/file -L'
3292 lt_cv_file_magic_test_file=/shlib/libc.so
3295 cygwin* | mingw* |pw32*)
3296 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3297 lt_cv_file_magic_cmd='$OBJDUMP -f'
3300 darwin* | rhapsody*)
3301 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3302 lt_cv_file_magic_cmd='/usr/bin/file -L'
3304 rhapsody* | darwin1.012)
3305 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3308 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3313 freebsd* | kfreebsd*-gnu)
3314 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3317 # Not sure whether the presence of OpenBSD here was a mistake.
3318 # Let's accept both of them until this is cleared up.
3319 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3320 lt_cv_file_magic_cmd=/usr/bin/file
3321 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3325 lt_cv_deplibs_check_method=pass_all
3330 lt_cv_deplibs_check_method=pass_all
3336 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3337 lt_cv_file_magic_cmd=/usr/bin/file
3338 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3341 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3342 lt_cv_file_magic_cmd=/usr/bin/file
3343 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3351 # this will be overridden with pass_all, but let us keep it just in case
3352 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3356 *-32|*"-32 ") libmagic=32-bit;;
3357 *-n32|*"-n32 ") libmagic=N32;;
3358 *-64|*"-64 ") libmagic=64-bit;;
3359 *) libmagic=never-match;;
3361 # this will be overridden with pass_all, but let us keep it just in case
3362 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3365 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3366 lt_cv_deplibs_check_method=pass_all
3369 # This must be Linux ELF.
3372 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3373 lt_cv_deplibs_check_method=pass_all ;;
3375 # glibc up to 2.1.1 does not perform some relocations on ARM
3376 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3378 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3381 netbsd* | knetbsd*-gnu)
3382 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3383 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3385 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3390 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3391 lt_cv_file_magic_cmd=/usr/bin/file
3392 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3395 osf3* | osf4* | osf5*)
3396 # this will be overridden with pass_all, but let us keep it just in case
3397 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3398 lt_cv_file_magic_test_file=/shlib/libc.so
3399 lt_cv_deplibs_check_method=pass_all
3403 lt_cv_deplibs_check_method=pass_all
3407 lt_cv_deplibs_check_method=pass_all
3408 lt_cv_file_magic_test_file=/lib/libc.so
3411 sysv5uw[78]* | sysv4*uw2*)
3412 lt_cv_deplibs_check_method=pass_all
3415 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3416 case $host_vendor in
3418 lt_cv_deplibs_check_method=pass_all
3421 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3422 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3429 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3430 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3431 file_magic_cmd=$lt_cv_file_magic_cmd
3432 deplibs_check_method=$lt_cv_deplibs_check_method
3437 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3439 # Only perform the check for file, if the check method requires it
3440 case $deplibs_check_method in
3442 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3443 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3444 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3445 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3453 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3456 ac_save_MAGIC_CMD="$MAGIC_CMD"
3457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3458 ac_dummy="/usr/bin:$PATH"
3459 for ac_dir in $ac_dummy; do
3460 test -z "$ac_dir" && ac_dir=.
3461 if test -f $ac_dir/${ac_tool_prefix}file; then
3462 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3463 if test -n "$file_magic_test_file"; then
3464 case $deplibs_check_method in
3466 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3467 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3468 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3469 egrep "$file_magic_regex" > /dev/null; then
3474 *** Warning: the command libtool uses to detect shared libraries,
3475 *** $file_magic_cmd, produces output that libtool cannot recognize.
3476 *** The result is that libtool may fail to recognize shared libraries
3477 *** as such. This will affect the creation of libtool libraries that
3478 *** depend on shared libraries, but programs linked with such libtool
3479 *** libraries will work regardless of this problem. Nevertheless, you
3480 *** may want to report the problem to your system manager and/or to
3481 *** bug-libtool@gnu.org
3491 MAGIC_CMD="$ac_save_MAGIC_CMD"
3496 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3497 if test -n "$MAGIC_CMD"; then
3498 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3499 echo "${ECHO_T}$MAGIC_CMD" >&6
3501 echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6
3505 if test -z "$lt_cv_path_MAGIC_CMD"; then
3506 if test -n "$ac_tool_prefix"; then
3507 echo "$as_me:$LINENO: checking for file" >&5
3508 echo $ECHO_N "checking for file... $ECHO_C" >&6
3509 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3517 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3520 ac_save_MAGIC_CMD="$MAGIC_CMD"
3521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3522 ac_dummy="/usr/bin:$PATH"
3523 for ac_dir in $ac_dummy; do
3524 test -z "$ac_dir" && ac_dir=.
3525 if test -f $ac_dir/file; then
3526 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3527 if test -n "$file_magic_test_file"; then
3528 case $deplibs_check_method in
3530 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3531 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3532 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3533 egrep "$file_magic_regex" > /dev/null; then
3538 *** Warning: the command libtool uses to detect shared libraries,
3539 *** $file_magic_cmd, produces output that libtool cannot recognize.
3540 *** The result is that libtool may fail to recognize shared libraries
3541 *** as such. This will affect the creation of libtool libraries that
3542 *** depend on shared libraries, but programs linked with such libtool
3543 *** libraries will work regardless of this problem. Nevertheless, you
3544 *** may want to report the problem to your system manager and/or to
3545 *** bug-libtool@gnu.org
3555 MAGIC_CMD="$ac_save_MAGIC_CMD"
3560 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3561 if test -n "$MAGIC_CMD"; then
3562 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3563 echo "${ECHO_T}$MAGIC_CMD" >&6
3565 echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6
3578 if test -n "$ac_tool_prefix"; then
3579 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3580 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3581 echo "$as_me:$LINENO: checking for $ac_word" >&5
3582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3583 if test "${ac_cv_prog_RANLIB+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3586 if test -n "$RANLIB"; then
3587 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3596 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 RANLIB=$ac_cv_prog_RANLIB
3606 if test -n "$RANLIB"; then
3607 echo "$as_me:$LINENO: result: $RANLIB" >&5
3608 echo "${ECHO_T}$RANLIB" >&6
3610 echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3615 if test -z "$ac_cv_prog_RANLIB"; then
3616 ac_ct_RANLIB=$RANLIB
3617 # Extract the first word of "ranlib", so it can be a program name with args.
3618 set dummy ranlib; ac_word=$2
3619 echo "$as_me:$LINENO: checking for $ac_word" >&5
3620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3621 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 if test -n "$ac_ct_RANLIB"; then
3625 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634 ac_cv_prog_ac_ct_RANLIB="ranlib"
3635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3644 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3645 if test -n "$ac_ct_RANLIB"; then
3646 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3647 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3649 echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6
3653 RANLIB=$ac_ct_RANLIB
3655 RANLIB="$ac_cv_prog_RANLIB"
3658 if test -n "$ac_tool_prefix"; then
3659 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3660 set dummy ${ac_tool_prefix}strip; ac_word=$2
3661 echo "$as_me:$LINENO: checking for $ac_word" >&5
3662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3663 if test "${ac_cv_prog_STRIP+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 if test -n "$STRIP"; then
3667 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 test -z "$as_dir" && as_dir=.
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3676 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 STRIP=$ac_cv_prog_STRIP
3686 if test -n "$STRIP"; then
3687 echo "$as_me:$LINENO: result: $STRIP" >&5
3688 echo "${ECHO_T}$STRIP" >&6
3690 echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6
3695 if test -z "$ac_cv_prog_STRIP"; then
3697 # Extract the first word of "strip", so it can be a program name with args.
3698 set dummy strip; ac_word=$2
3699 echo "$as_me:$LINENO: checking for $ac_word" >&5
3700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3701 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 if test -n "$ac_ct_STRIP"; then
3705 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3714 ac_cv_prog_ac_ct_STRIP="strip"
3715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3724 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3725 if test -n "$ac_ct_STRIP"; then
3726 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3727 echo "${ECHO_T}$ac_ct_STRIP" >&6
3729 echo "$as_me:$LINENO: result: no" >&5
3730 echo "${ECHO_T}no" >&6
3735 STRIP="$ac_cv_prog_STRIP"
3739 # Check for any special flags to pass to ltconfig.
3740 libtool_flags="--cache-file=$cache_file"
3741 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3742 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3743 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3744 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3745 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3748 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3749 if test "${enable_libtool_lock+set}" = set; then
3750 enableval="$enable_libtool_lock"
3753 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3754 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3757 # Check whether --with-pic or --without-pic was given.
3758 if test "${with_pic+set}" = set; then
3764 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3765 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3767 # Some flags need to be propagated to the compiler or linker for good
3771 # Find out which ABI we are using.
3772 echo '#line 3772 "configure"' > conftest.$ac_ext
3773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3774 (eval $ac_compile) 2>&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; then
3778 if test "$lt_cv_prog_gnu_ld" = yes; then
3779 case `/usr/bin/file conftest.$ac_objext` in
3781 LD="${LD-ld} -melf32bsmip"
3784 LD="${LD-ld} -melf32bmipn32"
3787 LD="${LD-ld} -melf64bmip"
3791 case `/usr/bin/file conftest.$ac_objext` in
3808 # Find out which ABI we are using.
3809 echo 'int i;' > conftest.$ac_ext
3810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3811 (eval $ac_compile) 2>&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; then
3815 case "`/usr/bin/file conftest.o`" in
3828 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3829 SAVE_CFLAGS="$CFLAGS"
3830 CFLAGS="$CFLAGS -belf"
3831 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3832 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3833 if test "${lt_cv_cc_needs_belf+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3844 cat >conftest.$ac_ext <<_ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3859 rm -f conftest.$ac_objext conftest$ac_exeext
3860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3861 (eval $ac_link) 2>conftest.er1
3863 grep -v '^ *+' conftest.er1 >conftest.err
3865 cat conftest.err >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } &&
3868 { ac_try='test -z "$ac_c_werror_flag"
3869 || test ! -s conftest.err'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; } &&
3875 { ac_try='test -s conftest$ac_exeext'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 lt_cv_cc_needs_belf=yes
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3886 lt_cv_cc_needs_belf=no
3888 rm -f conftest.err conftest.$ac_objext \
3889 conftest$ac_exeext conftest.$ac_ext
3891 ac_cpp='$CPP $CPPFLAGS'
3892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3898 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3899 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3900 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3901 CFLAGS="$SAVE_CFLAGS"
3909 # Save cache, so that ltconfig can load it
3910 cat >confcache <<\_ACEOF
3911 # This file is a shell script that caches the results of configure
3912 # tests run on this system so they can be shared between configure
3913 # scripts and configure runs, see configure's option --config-cache.
3914 # It is not useful on other systems. If it contains results you don't
3915 # want to keep, you may remove or edit it.
3917 # config.status only pays attention to the cache file if you give it
3918 # the --recheck option to rerun configure.
3920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3926 # The following way of writing the cache mishandles newlines in values,
3927 # but we know of no workaround that is simple, portable, and efficient.
3928 # So, don't put newlines in cache variables' values.
3929 # Ultrix sh set writes to stderr and can't be redirected directly,
3930 # and sets the high bit in the cache file unless we assign to the vars.
3933 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3935 # `set' does not quote correctly, so add quotes (double-quote
3936 # substitution turns \\\\ into \\, and sed turns \\ into \).
3939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3942 # `set' quotes correctly as required by POSIX, so do not add quotes.
3944 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3951 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3953 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3955 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3956 if test -w $cache_file; then
3957 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3958 cat confcache >$cache_file
3960 echo "not updating unwritable cache $cache_file"
3965 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3966 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3967 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3968 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3969 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3970 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3971 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3972 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3973 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
3974 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3975 echo "$as_me: error: libtool configure failed" >&2;}
3976 { (exit 1); exit 1; }; }
3978 # Reload cache, that may have been modified by ltconfig
3979 if test -r "$cache_file"; then
3980 # Some versions of bash will fail to source /dev/null (special
3981 # files actually), so we avoid doing that.
3982 if test -f "$cache_file"; then
3983 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3984 echo "$as_me: loading cache $cache_file" >&6;}
3986 [\\/]* | ?:[\\/]* ) . $cache_file;;
3987 *) . ./$cache_file;;
3991 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3992 echo "$as_me: creating cache $cache_file" >&6;}
3997 # This can be used to rebuild libtool when needed
3998 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4000 # Always use our own libtool.
4001 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4003 # Redirect the config.log output again, so that the ltconfig log is not
4004 # clobbered by the next message.
4005 exec 5>>./config.log
4014 # Check whether --with-lib-path or --without-lib-path was given.
4015 if test "${with_lib_path+set}" = set; then
4016 withval="$with_lib_path"
4019 # Check whether --enable-targets or --disable-targets was given.
4020 if test "${enable_targets+set}" = set; then
4021 enableval="$enable_targets"
4022 case "${enableval}" in
4023 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4024 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4025 { (exit 1); exit 1; }; }
4027 no) enable_targets= ;;
4028 *) enable_targets=$enableval ;;
4030 fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4031 if test "${enable_64_bit_bfd+set}" = set; then
4032 enableval="$enable_64_bit_bfd"
4033 case "${enableval}" in
4036 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4037 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4038 { (exit 1); exit 1; }; } ;;
4044 # Check whether --with-sysroot or --without-sysroot was given.
4045 if test "${with_sysroot+set}" = set; then
4046 withval="$with_sysroot"
4048 case ${with_sysroot} in
4049 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4050 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4053 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4056 if test "x$exec_prefix" = xNONE; then
4057 if test "x$prefix" = xNONE; then
4058 test_prefix=/usr/local
4063 test_prefix=$exec_prefix
4065 case ${TARGET_SYSTEM_ROOT} in
4066 "${test_prefix}"|"${test_prefix}/"*|\
4067 '${exec_prefix}'|'${exec_prefix}/'*)
4068 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4069 TARGET_SYSTEM_ROOT_DEFINE="$t"
4077 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
4084 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4085 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4086 if test "${enable_build_warnings+set}" = set; then
4087 enableval="$enable_build_warnings"
4088 case "${enableval}" in
4090 no) build_warnings="-w";;
4091 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4092 build_warnings="${build_warnings} ${t}";;
4093 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4094 build_warnings="${t} ${build_warnings}";;
4095 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4097 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4098 echo "Setting warning flags = $build_warnings" 6>&1
4101 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
4102 WARN_CFLAGS="${build_warnings}"
4106 ac_config_headers="$ac_config_headers config.h:config.in"
4109 if test -z "$target" ; then
4110 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4111 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4112 { (exit 1); exit 1; }; }
4114 if test -z "$host" ; then
4115 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4116 echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4117 { (exit 1); exit 1; }; }
4120 # host-specific stuff:
4123 ac_cpp='$CPP $CPPFLAGS'
4124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127 if test -n "$ac_tool_prefix"; then
4128 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4129 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4130 echo "$as_me:$LINENO: checking for $ac_word" >&5
4131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4132 if test "${ac_cv_prog_CC+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 if test -n "$CC"; then
4136 ac_cv_prog_CC="$CC" # Let the user override the test.
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 if test -n "$CC"; then
4156 echo "$as_me:$LINENO: result: $CC" >&5
4157 echo "${ECHO_T}$CC" >&6
4159 echo "$as_me:$LINENO: result: no" >&5
4160 echo "${ECHO_T}no" >&6
4164 if test -z "$ac_cv_prog_CC"; then
4166 # Extract the first word of "gcc", so it can be a program name with args.
4167 set dummy gcc; ac_word=$2
4168 echo "$as_me:$LINENO: checking for $ac_word" >&5
4169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4170 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 if test -n "$ac_ct_CC"; then
4174 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4183 ac_cv_prog_ac_ct_CC="gcc"
4184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4192 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4193 if test -n "$ac_ct_CC"; then
4194 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4195 echo "${ECHO_T}$ac_ct_CC" >&6
4197 echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6
4206 if test -z "$CC"; then
4207 if test -n "$ac_tool_prefix"; then
4208 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4209 set dummy ${ac_tool_prefix}cc; ac_word=$2
4210 echo "$as_me:$LINENO: checking for $ac_word" >&5
4211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4212 if test "${ac_cv_prog_CC+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 if test -n "$CC"; then
4216 ac_cv_prog_CC="$CC" # Let the user override the test.
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4225 ac_cv_prog_CC="${ac_tool_prefix}cc"
4226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4235 if test -n "$CC"; then
4236 echo "$as_me:$LINENO: result: $CC" >&5
4237 echo "${ECHO_T}$CC" >&6
4239 echo "$as_me:$LINENO: result: no" >&5
4240 echo "${ECHO_T}no" >&6
4244 if test -z "$ac_cv_prog_CC"; then
4246 # Extract the first word of "cc", so it can be a program name with args.
4247 set dummy cc; ac_word=$2
4248 echo "$as_me:$LINENO: checking for $ac_word" >&5
4249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4250 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 if test -n "$ac_ct_CC"; then
4254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 test -z "$as_dir" && as_dir=.
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4263 ac_cv_prog_ac_ct_CC="cc"
4264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4273 if test -n "$ac_ct_CC"; then
4274 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4275 echo "${ECHO_T}$ac_ct_CC" >&6
4277 echo "$as_me:$LINENO: result: no" >&5
4278 echo "${ECHO_T}no" >&6
4287 if test -z "$CC"; then
4288 # Extract the first word of "cc", so it can be a program name with args.
4289 set dummy cc; ac_word=$2
4290 echo "$as_me:$LINENO: checking for $ac_word" >&5
4291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4292 if test "${ac_cv_prog_CC+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 if test -n "$CC"; then
4296 ac_cv_prog_CC="$CC" # Let the user override the test.
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 test -z "$as_dir" && as_dir=.
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4306 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4307 ac_prog_rejected=yes
4311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4317 if test $ac_prog_rejected = yes; then
4318 # We found a bogon in the path, so make sure we never use it.
4319 set dummy $ac_cv_prog_CC
4321 if test $# != 0; then
4322 # We chose a different compiler from the bogus one.
4323 # However, it has the same basename, so the bogon will be chosen
4324 # first if we set CC to just the basename; use the full file name.
4326 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4332 if test -n "$CC"; then
4333 echo "$as_me:$LINENO: result: $CC" >&5
4334 echo "${ECHO_T}$CC" >&6
4336 echo "$as_me:$LINENO: result: no" >&5
4337 echo "${ECHO_T}no" >&6
4341 if test -z "$CC"; then
4342 if test -n "$ac_tool_prefix"; then
4345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4347 echo "$as_me:$LINENO: checking for $ac_word" >&5
4348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4349 if test "${ac_cv_prog_CC+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 if test -n "$CC"; then
4353 ac_cv_prog_CC="$CC" # Let the user override the test.
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4362 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 if test -n "$CC"; then
4373 echo "$as_me:$LINENO: result: $CC" >&5
4374 echo "${ECHO_T}$CC" >&6
4376 echo "$as_me:$LINENO: result: no" >&5
4377 echo "${ECHO_T}no" >&6
4380 test -n "$CC" && break
4383 if test -z "$CC"; then
4387 # Extract the first word of "$ac_prog", so it can be a program name with args.
4388 set dummy $ac_prog; ac_word=$2
4389 echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4391 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 if test -n "$ac_ct_CC"; then
4395 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4404 ac_cv_prog_ac_ct_CC="$ac_prog"
4405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4414 if test -n "$ac_ct_CC"; then
4415 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4416 echo "${ECHO_T}$ac_ct_CC" >&6
4418 echo "$as_me:$LINENO: result: no" >&5
4419 echo "${ECHO_T}no" >&6
4422 test -n "$ac_ct_CC" && break
4431 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4432 See \`config.log' for more details." >&5
4433 echo "$as_me: error: no acceptable C compiler found in \$PATH
4434 See \`config.log' for more details." >&2;}
4435 { (exit 1); exit 1; }; }
4437 # Provide some information about the compiler.
4438 echo "$as_me:$LINENO:" \
4439 "checking for C compiler version" >&5
4440 ac_compiler=`set X $ac_compile; echo $2`
4441 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4442 (eval $ac_compiler --version </dev/null >&5) 2>&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }
4446 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4447 (eval $ac_compiler -v </dev/null >&5) 2>&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }
4451 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4452 (eval $ac_compiler -V </dev/null >&5) 2>&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }
4457 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4458 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4459 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 cat >conftest.$ac_ext <<_ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4480 rm -f conftest.$ac_objext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4482 (eval $ac_compile) 2>conftest.er1
4484 grep -v '^ *+' conftest.er1 >conftest.err
4486 cat conftest.err >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } &&
4489 { ac_try='test -z "$ac_c_werror_flag"
4490 || test ! -s conftest.err'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; } &&
4496 { ac_try='test -s conftest.$ac_objext'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4510 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4513 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4514 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4515 GCC=`test $ac_compiler_gnu = yes && echo yes`
4516 ac_test_CFLAGS=${CFLAGS+set}
4517 ac_save_CFLAGS=$CFLAGS
4519 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4520 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4521 if test "${ac_cv_prog_cc_g+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 cat >conftest.$ac_ext <<_ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4539 rm -f conftest.$ac_objext
4540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4541 (eval $ac_compile) 2>conftest.er1
4543 grep -v '^ *+' conftest.er1 >conftest.err
4545 cat conftest.err >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } &&
4548 { ac_try='test -z "$ac_c_werror_flag"
4549 || test ! -s conftest.err'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; } &&
4555 { ac_try='test -s conftest.$ac_objext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4563 echo "$as_me: failed program was:" >&5
4564 sed 's/^/| /' conftest.$ac_ext >&5
4568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4570 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4571 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4572 if test "$ac_test_CFLAGS" = set; then
4573 CFLAGS=$ac_save_CFLAGS
4574 elif test $ac_cv_prog_cc_g = yes; then
4575 if test "$GCC" = yes; then
4581 if test "$GCC" = yes; then
4587 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4588 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4589 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 ac_cv_prog_cc_stdc=no
4594 cat >conftest.$ac_ext <<_ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4602 #include <sys/types.h>
4603 #include <sys/stat.h>
4604 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4605 struct buf { int x; };
4606 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4607 static char *e (p, i)
4613 static char *f (char * (*g) (char **, int), char **p, ...)
4618 s = g (p, va_arg (v,int));
4623 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4624 function prototypes and stuff, but not '\xHH' hex character constants.
4625 These don't provoke an error unfortunately, instead are silently treated
4626 as 'x'. The following induces an error, until -std1 is added to get
4627 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4628 array size at least. It's necessary to write '\x00'==0 to get something
4629 that's true only with -std1. */
4630 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4632 int test (int i, double x);
4633 struct s1 {int (*f) (int a);};
4634 struct s2 {int (*f) (double a);};
4635 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4641 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4646 # Don't try gcc -ansi; that turns off useful extensions and
4647 # breaks some systems' header files.
4648 # AIX -qlanglvl=ansi
4649 # Ultrix and OSF/1 -std1
4650 # HP-UX 10.20 and later -Ae
4651 # HP-UX older versions -Aa -D_HPUX_SOURCE
4652 # SVR4 -Xc -D__EXTENSIONS__
4653 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4655 CC="$ac_save_CC $ac_arg"
4656 rm -f conftest.$ac_objext
4657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4658 (eval $ac_compile) 2>conftest.er1
4660 grep -v '^ *+' conftest.er1 >conftest.err
4662 cat conftest.err >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } &&
4665 { ac_try='test -z "$ac_c_werror_flag"
4666 || test ! -s conftest.err'
4667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; } &&
4672 { ac_try='test -s conftest.$ac_objext'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; }; then
4678 ac_cv_prog_cc_stdc=$ac_arg
4681 echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4685 rm -f conftest.err conftest.$ac_objext
4687 rm -f conftest.$ac_ext conftest.$ac_objext
4692 case "x$ac_cv_prog_cc_stdc" in
4694 echo "$as_me:$LINENO: result: none needed" >&5
4695 echo "${ECHO_T}none needed" >&6 ;;
4697 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4698 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4699 CC="$CC $ac_cv_prog_cc_stdc" ;;
4702 # Some people use a C++ compiler to compile C. Since we use `exit',
4703 # in C++ we need to declare it. In case someone uses the same compiler
4704 # for both compiling C and C++ we need to have the C++ compiler decide
4705 # the declaration of exit, since it's the most demanding environment.
4706 cat >conftest.$ac_ext <<_ACEOF
4711 rm -f conftest.$ac_objext
4712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4713 (eval $ac_compile) 2>conftest.er1
4715 grep -v '^ *+' conftest.er1 >conftest.err
4717 cat conftest.err >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } &&
4720 { ac_try='test -z "$ac_c_werror_flag"
4721 || test ! -s conftest.err'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; } &&
4727 { ac_try='test -s conftest.$ac_objext'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; }; then
4733 for ac_declaration in \
4735 'extern "C" void std::exit (int) throw (); using std::exit;' \
4736 'extern "C" void std::exit (int); using std::exit;' \
4737 'extern "C" void exit (int) throw ();' \
4738 'extern "C" void exit (int);' \
4741 cat >conftest.$ac_ext <<_ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4757 rm -f conftest.$ac_objext
4758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4759 (eval $ac_compile) 2>conftest.er1
4761 grep -v '^ *+' conftest.er1 >conftest.err
4763 cat conftest.err >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } &&
4766 { ac_try='test -z "$ac_c_werror_flag"
4767 || test ! -s conftest.err'
4768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; } &&
4773 { ac_try='test -s conftest.$ac_objext'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4787 cat >conftest.$ac_ext <<_ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4802 rm -f conftest.$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>conftest.er1
4806 grep -v '^ *+' conftest.er1 >conftest.err
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try='test -z "$ac_c_werror_flag"
4812 || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4833 if test -n "$ac_declaration"; then
4834 echo '#ifdef __cplusplus' >>confdefs.h
4835 echo $ac_declaration >>confdefs.h
4836 echo '#endif' >>confdefs.h
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4846 ac_cpp='$CPP $CPPFLAGS'
4847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4851 # Find a good install program. We prefer a C program (faster),
4852 # so one script is as good as another. But avoid the broken or
4853 # incompatible versions:
4854 # SysV /etc/install, /usr/sbin/install
4855 # SunOS /usr/etc/install
4856 # IRIX /sbin/install
4858 # AmigaOS /C/install, which installs bootblocks on floppy discs
4859 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4860 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4861 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4862 # OS/2's system install, which has a completely different semantic
4863 # ./install, which can be erroneously created by make from ./install.sh.
4864 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4865 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4866 if test -z "$INSTALL"; then
4867 if test "${ac_cv_path_install+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 test -z "$as_dir" && as_dir=.
4875 # Account for people who put trailing slashes in PATH elements.
4877 ./ | .// | /cC/* | \
4878 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4879 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4882 # OSF1 and SCO ODT 3.0 have their own names for install.
4883 # Don't use installbsd from OSF since it installs stuff as root
4885 for ac_prog in ginstall scoinst install; do
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4888 if test $ac_prog = install &&
4889 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4890 # AIX install. It has an incompatible calling convention.
4892 elif test $ac_prog = install &&
4893 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4894 # program-specific install script used by HP pwplus--don't use.
4897 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4909 if test "${ac_cv_path_install+set}" = set; then
4910 INSTALL=$ac_cv_path_install
4912 # As a last resort, use the slow shell script. We don't cache a
4913 # path for INSTALL within a source directory, because that will
4914 # break other packages using the cache if that directory is
4915 # removed, or if the path is relative.
4916 INSTALL=$ac_install_sh
4919 echo "$as_me:$LINENO: result: $INSTALL" >&5
4920 echo "${ECHO_T}$INSTALL" >&6
4922 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4923 # It thinks the first close brace ends the variable substitution.
4924 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4926 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4928 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4931 ALL_LINGUAS="fr sv tr es da"
4932 if test -n "$ac_tool_prefix"; then
4933 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4934 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4935 echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4937 if test "${ac_cv_prog_RANLIB+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 if test -n "$RANLIB"; then
4941 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 RANLIB=$ac_cv_prog_RANLIB
4960 if test -n "$RANLIB"; then
4961 echo "$as_me:$LINENO: result: $RANLIB" >&5
4962 echo "${ECHO_T}$RANLIB" >&6
4964 echo "$as_me:$LINENO: result: no" >&5
4965 echo "${ECHO_T}no" >&6
4969 if test -z "$ac_cv_prog_RANLIB"; then
4970 ac_ct_RANLIB=$RANLIB
4971 # Extract the first word of "ranlib", so it can be a program name with args.
4972 set dummy ranlib; ac_word=$2
4973 echo "$as_me:$LINENO: checking for $ac_word" >&5
4974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4975 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 if test -n "$ac_ct_RANLIB"; then
4979 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4988 ac_cv_prog_ac_ct_RANLIB="ranlib"
4989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4998 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4999 if test -n "$ac_ct_RANLIB"; then
5000 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5001 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5003 echo "$as_me:$LINENO: result: no" >&5
5004 echo "${ECHO_T}no" >&6
5007 RANLIB=$ac_ct_RANLIB
5009 RANLIB="$ac_cv_prog_RANLIB"
5013 ac_cpp='$CPP $CPPFLAGS'
5014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5017 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5018 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5019 # On Suns, sometimes $CPP names a directory.
5020 if test -n "$CPP" && test -d "$CPP"; then
5023 if test -z "$CPP"; then
5024 if test "${ac_cv_prog_CPP+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 # Double quotes because CPP needs to be expanded
5028 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5031 for ac_c_preproc_warn_flag in '' yes
5033 # Use a header file that comes with gcc, so configuring glibc
5034 # with a fresh cross-compiler works.
5035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5036 # <limits.h> exists even on freestanding compilers.
5037 # On the NeXT, cc -E runs the code through the compiler's parser,
5038 # not just through cpp. "Syntax error" is here to catch this case.
5039 cat >conftest.$ac_ext <<_ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h. */
5046 # include <limits.h>
5048 # include <assert.h>
5052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5055 grep -v '^ *+' conftest.er1 >conftest.err
5057 cat conftest.err >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } >/dev/null; then
5060 if test -s conftest.err; then
5061 ac_cpp_err=$ac_c_preproc_warn_flag
5062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5069 if test -z "$ac_cpp_err"; then
5072 echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5075 # Broken: fails on valid input.
5078 rm -f conftest.err conftest.$ac_ext
5080 # OK, works on sane cases. Now check whether non-existent headers
5081 # can be detected and how.
5082 cat >conftest.$ac_ext <<_ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5088 #include <ac_nonexistent.h>
5090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5093 grep -v '^ *+' conftest.er1 >conftest.err
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } >/dev/null; then
5098 if test -s conftest.err; then
5099 ac_cpp_err=$ac_c_preproc_warn_flag
5100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5107 if test -z "$ac_cpp_err"; then
5108 # Broken: success on invalid input.
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5114 # Passes both tests.
5118 rm -f conftest.err conftest.$ac_ext
5121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5122 rm -f conftest.err conftest.$ac_ext
5123 if $ac_preproc_ok; then
5135 echo "$as_me:$LINENO: result: $CPP" >&5
5136 echo "${ECHO_T}$CPP" >&6
5138 for ac_c_preproc_warn_flag in '' yes
5140 # Use a header file that comes with gcc, so configuring glibc
5141 # with a fresh cross-compiler works.
5142 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5143 # <limits.h> exists even on freestanding compilers.
5144 # On the NeXT, cc -E runs the code through the compiler's parser,
5145 # not just through cpp. "Syntax error" is here to catch this case.
5146 cat >conftest.$ac_ext <<_ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h. */
5153 # include <limits.h>
5155 # include <assert.h>
5159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5162 grep -v '^ *+' conftest.er1 >conftest.err
5164 cat conftest.err >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } >/dev/null; then
5167 if test -s conftest.err; then
5168 ac_cpp_err=$ac_c_preproc_warn_flag
5169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5176 if test -z "$ac_cpp_err"; then
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5182 # Broken: fails on valid input.
5185 rm -f conftest.err conftest.$ac_ext
5187 # OK, works on sane cases. Now check whether non-existent headers
5188 # can be detected and how.
5189 cat >conftest.$ac_ext <<_ACEOF
5192 cat confdefs.h >>conftest.$ac_ext
5193 cat >>conftest.$ac_ext <<_ACEOF
5194 /* end confdefs.h. */
5195 #include <ac_nonexistent.h>
5197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5200 grep -v '^ *+' conftest.er1 >conftest.err
5202 cat conftest.err >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } >/dev/null; then
5205 if test -s conftest.err; then
5206 ac_cpp_err=$ac_c_preproc_warn_flag
5207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5214 if test -z "$ac_cpp_err"; then
5215 # Broken: success on invalid input.
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5221 # Passes both tests.
5225 rm -f conftest.err conftest.$ac_ext
5228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5229 rm -f conftest.err conftest.$ac_ext
5230 if $ac_preproc_ok; then
5233 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5234 See \`config.log' for more details." >&5
5235 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5236 See \`config.log' for more details." >&2;}
5237 { (exit 1); exit 1; }; }
5241 ac_cpp='$CPP $CPPFLAGS'
5242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5247 echo "$as_me:$LINENO: checking for egrep" >&5
5248 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5249 if test "${ac_cv_prog_egrep+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5253 then ac_cv_prog_egrep='grep -E'
5254 else ac_cv_prog_egrep='egrep'
5257 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5258 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5259 EGREP=$ac_cv_prog_egrep
5262 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5263 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5264 if test "${ac_cv_header_stdc+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 cat >conftest.$ac_ext <<_ACEOF
5270 cat confdefs.h >>conftest.$ac_ext
5271 cat >>conftest.$ac_ext <<_ACEOF
5272 /* end confdefs.h. */
5286 rm -f conftest.$ac_objext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5288 (eval $ac_compile) 2>conftest.er1
5290 grep -v '^ *+' conftest.er1 >conftest.err
5292 cat conftest.err >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } &&
5295 { ac_try='test -z "$ac_c_werror_flag"
5296 || test ! -s conftest.err'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; } &&
5302 { ac_try='test -s conftest.$ac_objext'
5303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; }; then
5308 ac_cv_header_stdc=yes
5310 echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5313 ac_cv_header_stdc=no
5315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5317 if test $ac_cv_header_stdc = yes; then
5318 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5319 cat >conftest.$ac_ext <<_ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5329 $EGREP "memchr" >/dev/null 2>&1; then
5332 ac_cv_header_stdc=no
5338 if test $ac_cv_header_stdc = yes; then
5339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5340 cat >conftest.$ac_ext <<_ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5350 $EGREP "free" >/dev/null 2>&1; then
5353 ac_cv_header_stdc=no
5359 if test $ac_cv_header_stdc = yes; then
5360 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5361 if test "$cross_compiling" = yes; then
5364 cat >conftest.$ac_ext <<_ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5371 #if ((' ' & 0x0FF) == 0x020)
5372 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5373 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5375 # define ISLOWER(c) \
5376 (('a' <= (c) && (c) <= 'i') \
5377 || ('j' <= (c) && (c) <= 'r') \
5378 || ('s' <= (c) && (c) <= 'z'))
5379 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5382 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5387 for (i = 0; i < 256; i++)
5388 if (XOR (islower (i), ISLOWER (i))
5389 || toupper (i) != TOUPPER (i))
5394 rm -f conftest$ac_exeext
5395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5396 (eval $ac_link) 2>&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; }; then
5407 echo "$as_me: program exited with status $ac_status" >&5
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5412 ac_cv_header_stdc=no
5414 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5418 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5419 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5420 if test $ac_cv_header_stdc = yes; then
5422 cat >>confdefs.h <<\_ACEOF
5423 #define STDC_HEADERS 1
5428 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5429 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5430 if test "${ac_cv_c_const+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5433 cat >conftest.$ac_ext <<_ACEOF
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h. */
5443 /* FIXME: Include the comments suggested by Paul. */
5445 /* Ultrix mips cc rejects this. */
5446 typedef int charset[2];
5448 /* SunOS 4.1.1 cc rejects this. */
5449 char const *const *ccp;
5451 /* NEC SVR4.0.2 mips cc rejects this. */
5452 struct point {int x, y;};
5453 static struct point const zero = {0,0};
5454 /* AIX XL C 1.02.0.0 rejects this.
5455 It does not let you subtract one const X* pointer from another in
5456 an arm of an if-expression whose if-part is not a constant
5458 const char *g = "string";
5459 ccp = &g + (g ? g-g : 0);
5460 /* HPUX 7.0 cc rejects these. */
5463 ccp = (char const *const *) p;
5464 { /* SCO 3.2v4 cc rejects this. */
5466 char const *s = 0 ? (char *) 0 : (char const *) 0;
5470 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5472 const int *foo = &x[0];
5475 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5476 typedef const int *iptr;
5480 { /* AIX XL C 1.02.0.0 rejects this saying
5481 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5482 struct s { int j; const int *ap[3]; };
5483 struct s *b; b->j = 5;
5485 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5494 rm -f conftest.$ac_objext
5495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5496 (eval $ac_compile) 2>conftest.er1
5498 grep -v '^ *+' conftest.er1 >conftest.err
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } &&
5503 { ac_try='test -z "$ac_c_werror_flag"
5504 || test ! -s conftest.err'
5505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; } &&
5510 { ac_try='test -s conftest.$ac_objext'
5511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; }; then
5518 echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5525 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5526 echo "${ECHO_T}$ac_cv_c_const" >&6
5527 if test $ac_cv_c_const = no; then
5529 cat >>confdefs.h <<\_ACEOF
5535 echo "$as_me:$LINENO: checking for inline" >&5
5536 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5537 if test "${ac_cv_c_inline+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 for ac_kw in inline __inline__ __inline; do
5542 cat >conftest.$ac_ext <<_ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5550 static $ac_kw foo_t static_foo () {return 0; }
5551 $ac_kw foo_t foo () {return 0; }
5555 rm -f conftest.$ac_objext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5557 (eval $ac_compile) 2>conftest.er1
5559 grep -v '^ *+' conftest.er1 >conftest.err
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } &&
5564 { ac_try='test -z "$ac_c_werror_flag"
5565 || test ! -s conftest.err'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; } &&
5571 { ac_try='test -s conftest.$ac_objext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 ac_cv_c_inline=$ac_kw; break
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5587 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5588 echo "${ECHO_T}$ac_cv_c_inline" >&6
5591 case $ac_cv_c_inline in
5594 case $ac_cv_c_inline in
5596 *) ac_val=$ac_cv_c_inline;;
5598 cat >>confdefs.h <<_ACEOF
5600 #define inline $ac_val
5606 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5616 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5617 inttypes.h stdint.h unistd.h
5619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5620 echo "$as_me:$LINENO: checking for $ac_header" >&5
5621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5625 cat >conftest.$ac_ext <<_ACEOF
5628 cat confdefs.h >>conftest.$ac_ext
5629 cat >>conftest.$ac_ext <<_ACEOF
5630 /* end confdefs.h. */
5631 $ac_includes_default
5633 #include <$ac_header>
5635 rm -f conftest.$ac_objext
5636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5637 (eval $ac_compile) 2>conftest.er1
5639 grep -v '^ *+' conftest.er1 >conftest.err
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } &&
5644 { ac_try='test -z "$ac_c_werror_flag"
5645 || test ! -s conftest.err'
5646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; } &&
5651 { ac_try='test -s conftest.$ac_objext'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; }; then
5657 eval "$as_ac_Header=yes"
5659 echo "$as_me: failed program was:" >&5
5660 sed 's/^/| /' conftest.$ac_ext >&5
5662 eval "$as_ac_Header=no"
5664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5669 cat >>confdefs.h <<_ACEOF
5670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5678 echo "$as_me:$LINENO: checking for off_t" >&5
5679 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5680 if test "${ac_cv_type_off_t+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 cat >conftest.$ac_ext <<_ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5689 $ac_includes_default
5701 rm -f conftest.$ac_objext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>conftest.er1
5705 grep -v '^ *+' conftest.er1 >conftest.err
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -z "$ac_c_werror_flag"
5711 || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_cv_type_off_t=yes
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5732 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5733 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5734 if test $ac_cv_type_off_t = yes; then
5738 cat >>confdefs.h <<_ACEOF
5744 echo "$as_me:$LINENO: checking for size_t" >&5
5745 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5746 if test "${ac_cv_type_size_t+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 cat >conftest.$ac_ext <<_ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h. */
5755 $ac_includes_default
5761 if (sizeof (size_t))
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>conftest.er1
5771 grep -v '^ *+' conftest.er1 >conftest.err
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try='test -z "$ac_c_werror_flag"
5777 || test ! -s conftest.err'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; } &&
5783 { ac_try='test -s conftest.$ac_objext'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5789 ac_cv_type_size_t=yes
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5794 ac_cv_type_size_t=no
5796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5798 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5799 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5800 if test $ac_cv_type_size_t = yes; then
5804 cat >>confdefs.h <<_ACEOF
5805 #define size_t unsigned
5810 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5811 # for constant arguments. Useless!
5812 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5813 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5814 if test "${ac_cv_working_alloca_h+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 cat >conftest.$ac_ext <<_ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h. */
5827 char *p = (char *) alloca (2 * sizeof (int));
5832 rm -f conftest.$ac_objext conftest$ac_exeext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5834 (eval $ac_link) 2>conftest.er1
5836 grep -v '^ *+' conftest.er1 >conftest.err
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try='test -z "$ac_c_werror_flag"
5842 || test ! -s conftest.err'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; } &&
5848 { ac_try='test -s conftest$ac_exeext'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; }; then
5854 ac_cv_working_alloca_h=yes
5856 echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5859 ac_cv_working_alloca_h=no
5861 rm -f conftest.err conftest.$ac_objext \
5862 conftest$ac_exeext conftest.$ac_ext
5864 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5865 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5866 if test $ac_cv_working_alloca_h = yes; then
5868 cat >>confdefs.h <<\_ACEOF
5869 #define HAVE_ALLOCA_H 1
5874 echo "$as_me:$LINENO: checking for alloca" >&5
5875 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5876 if test "${ac_cv_func_alloca_works+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 cat >conftest.$ac_ext <<_ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5886 # define alloca __builtin_alloca
5889 # include <malloc.h>
5890 # define alloca _alloca
5893 # include <alloca.h>
5898 # ifndef alloca /* predefined by HP cc +Olibcalls */
5909 char *p = (char *) alloca (1);
5914 rm -f conftest.$ac_objext conftest$ac_exeext
5915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5916 (eval $ac_link) 2>conftest.er1
5918 grep -v '^ *+' conftest.er1 >conftest.err
5920 cat conftest.err >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } &&
5923 { ac_try='test -z "$ac_c_werror_flag"
5924 || test ! -s conftest.err'
5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; } &&
5930 { ac_try='test -s conftest$ac_exeext'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; }; then
5936 ac_cv_func_alloca_works=yes
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5941 ac_cv_func_alloca_works=no
5943 rm -f conftest.err conftest.$ac_objext \
5944 conftest$ac_exeext conftest.$ac_ext
5946 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5947 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5949 if test $ac_cv_func_alloca_works = yes; then
5951 cat >>confdefs.h <<\_ACEOF
5952 #define HAVE_ALLOCA 1
5956 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5957 # that cause trouble. Some versions do not even contain alloca or
5958 # contain a buggy version. If you still want to use their alloca,
5959 # use ar to extract alloca.o from them instead of compiling alloca.c.
5961 ALLOCA=alloca.$ac_objext
5963 cat >>confdefs.h <<\_ACEOF
5968 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5969 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5970 if test "${ac_cv_os_cray+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 cat >conftest.$ac_ext <<_ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5979 #if defined(CRAY) && ! defined(CRAY2)
5986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5987 $EGREP "webecray" >/dev/null 2>&1; then
5995 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5996 echo "${ECHO_T}$ac_cv_os_cray" >&6
5997 if test $ac_cv_os_cray = yes; then
5998 for ac_func in _getb67 GETB67 getb67; do
5999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6000 echo "$as_me:$LINENO: checking for $ac_func" >&5
6001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6002 if eval "test \"\${$as_ac_var+set}\" = set"; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 cat >conftest.$ac_ext <<_ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h. */
6011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6013 #define $ac_func innocuous_$ac_func
6015 /* System header to define __stub macros and hopefully few prototypes,
6016 which can conflict with char $ac_func (); below.
6017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6018 <limits.h> exists even on freestanding compilers. */
6021 # include <limits.h>
6023 # include <assert.h>
6028 /* Override any gcc2 internal prototype to avoid an error. */
6033 /* We use char because int might match the return type of a gcc2
6034 builtin and then its argument prototype would still apply. */
6036 /* The GNU C library defines this for functions which it implements
6037 to always fail with ENOSYS. Some functions are actually named
6038 something starting with __ and the normal name is an alias. */
6039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6042 char (*f) () = $ac_func;
6051 return f != $ac_func;
6056 rm -f conftest.$ac_objext conftest$ac_exeext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6058 (eval $ac_link) 2>conftest.er1
6060 grep -v '^ *+' conftest.er1 >conftest.err
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try='test -z "$ac_c_werror_flag"
6066 || test ! -s conftest.err'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; } &&
6072 { ac_try='test -s conftest$ac_exeext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 eval "$as_ac_var=yes"
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6083 eval "$as_ac_var=no"
6085 rm -f conftest.err conftest.$ac_objext \
6086 conftest$ac_exeext conftest.$ac_ext
6088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6090 if test `eval echo '${'$as_ac_var'}'` = yes; then
6092 cat >>confdefs.h <<_ACEOF
6093 #define CRAY_STACKSEG_END $ac_func
6102 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6103 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6104 if test "${ac_cv_c_stack_direction+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 if test "$cross_compiling" = yes; then
6108 ac_cv_c_stack_direction=0
6110 cat >conftest.$ac_ext <<_ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6117 find_stack_direction ()
6119 static char *addr = 0;
6124 return find_stack_direction ();
6127 return (&dummy > addr) ? 1 : -1;
6133 exit (find_stack_direction () < 0);
6136 rm -f conftest$ac_exeext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6138 (eval $ac_link) 2>&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
6147 ac_cv_c_stack_direction=1
6149 echo "$as_me: program exited with status $ac_status" >&5
6150 echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6154 ac_cv_c_stack_direction=-1
6156 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6159 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6160 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6162 cat >>confdefs.h <<_ACEOF
6163 #define STACK_DIRECTION $ac_cv_c_stack_direction
6171 for ac_header in stdlib.h unistd.h
6173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6175 echo "$as_me:$LINENO: checking for $ac_header" >&5
6176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6183 # Is the header compilable?
6184 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6186 cat >conftest.$ac_ext <<_ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 $ac_includes_default
6193 #include <$ac_header>
6195 rm -f conftest.$ac_objext
6196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6197 (eval $ac_compile) 2>conftest.er1
6199 grep -v '^ *+' conftest.er1 >conftest.err
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } &&
6204 { ac_try='test -z "$ac_c_werror_flag"
6205 || test ! -s conftest.err'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; } &&
6211 { ac_try='test -s conftest.$ac_objext'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
6217 ac_header_compiler=yes
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6222 ac_header_compiler=no
6224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6225 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6226 echo "${ECHO_T}$ac_header_compiler" >&6
6228 # Is the header present?
6229 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6231 cat >conftest.$ac_ext <<_ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237 #include <$ac_header>
6239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6242 grep -v '^ *+' conftest.er1 >conftest.err
6244 cat conftest.err >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } >/dev/null; then
6247 if test -s conftest.err; then
6248 ac_cpp_err=$ac_c_preproc_warn_flag
6249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6256 if test -z "$ac_cpp_err"; then
6257 ac_header_preproc=yes
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6262 ac_header_preproc=no
6264 rm -f conftest.err conftest.$ac_ext
6265 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6266 echo "${ECHO_T}$ac_header_preproc" >&6
6268 # So? What about this header?
6269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6275 ac_header_preproc=yes
6278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6292 ## ------------------------------------------ ##
6293 ## Report this to the AC_PACKAGE_NAME lists. ##
6294 ## ------------------------------------------ ##
6297 sed "s/^/$as_me: WARNING: /" >&2
6300 echo "$as_me:$LINENO: checking for $ac_header" >&5
6301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 eval "$as_ac_Header=\$ac_header_preproc"
6307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6312 cat >>confdefs.h <<_ACEOF
6313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6321 for ac_func in getpagesize
6323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6324 echo "$as_me:$LINENO: checking for $ac_func" >&5
6325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6326 if eval "test \"\${$as_ac_var+set}\" = set"; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 cat >conftest.$ac_ext <<_ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6337 #define $ac_func innocuous_$ac_func
6339 /* System header to define __stub macros and hopefully few prototypes,
6340 which can conflict with char $ac_func (); below.
6341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6342 <limits.h> exists even on freestanding compilers. */
6345 # include <limits.h>
6347 # include <assert.h>
6352 /* Override any gcc2 internal prototype to avoid an error. */
6357 /* We use char because int might match the return type of a gcc2
6358 builtin and then its argument prototype would still apply. */
6360 /* The GNU C library defines this for functions which it implements
6361 to always fail with ENOSYS. Some functions are actually named
6362 something starting with __ and the normal name is an alias. */
6363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6366 char (*f) () = $ac_func;
6375 return f != $ac_func;
6380 rm -f conftest.$ac_objext conftest$ac_exeext
6381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6382 (eval $ac_link) 2>conftest.er1
6384 grep -v '^ *+' conftest.er1 >conftest.err
6386 cat conftest.err >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); } &&
6389 { ac_try='test -z "$ac_c_werror_flag"
6390 || test ! -s conftest.err'
6391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; } &&
6396 { ac_try='test -s conftest$ac_exeext'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; }; then
6402 eval "$as_ac_var=yes"
6404 echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.$ac_ext >&5
6407 eval "$as_ac_var=no"
6409 rm -f conftest.err conftest.$ac_objext \
6410 conftest$ac_exeext conftest.$ac_ext
6412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6414 if test `eval echo '${'$as_ac_var'}'` = yes; then
6415 cat >>confdefs.h <<_ACEOF
6416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6422 echo "$as_me:$LINENO: checking for working mmap" >&5
6423 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6424 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 if test "$cross_compiling" = yes; then
6428 ac_cv_func_mmap_fixed_mapped=no
6430 cat >conftest.$ac_ext <<_ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 $ac_includes_default
6437 /* malloc might have been renamed as rpl_malloc. */
6440 /* Thanks to Mike Haertel and Jim Avera for this test.
6441 Here is a matrix of mmap possibilities:
6442 mmap private not fixed
6443 mmap private fixed at somewhere currently unmapped
6444 mmap private fixed at somewhere already mapped
6445 mmap shared not fixed
6446 mmap shared fixed at somewhere currently unmapped
6447 mmap shared fixed at somewhere already mapped
6448 For private mappings, we should verify that changes cannot be read()
6449 back from the file, nor mmap's back from the file at a different
6450 address. (There have been systems where private was not correctly
6451 implemented like the infamous i386 svr4.0, and systems where the
6452 VM page cache was not coherent with the file system buffer cache
6453 like early versions of FreeBSD and possibly contemporary NetBSD.)
6454 For shared mappings, we should conversely verify that changes get
6455 propagated back to all the places they're supposed to be.
6457 Grep wants private fixed already mapped.
6458 The main things grep needs to know about mmap are:
6459 * does it exist and is it safe to write into the mmap'd area
6460 * how to use it (BSD variants) */
6463 #include <sys/mman.h>
6465 #if !STDC_HEADERS && !HAVE_STDLIB_H
6469 /* This mess was copied from the GNU getpagesize.h. */
6470 #if !HAVE_GETPAGESIZE
6471 /* Assume that all systems that can run configure have sys/param.h. */
6472 # if !HAVE_SYS_PARAM_H
6473 # define HAVE_SYS_PARAM_H 1
6476 # ifdef _SC_PAGESIZE
6477 # define getpagesize() sysconf(_SC_PAGESIZE)
6478 # else /* no _SC_PAGESIZE */
6479 # if HAVE_SYS_PARAM_H
6480 # include <sys/param.h>
6481 # ifdef EXEC_PAGESIZE
6482 # define getpagesize() EXEC_PAGESIZE
6483 # else /* no EXEC_PAGESIZE */
6485 # define getpagesize() NBPG * CLSIZE
6488 # endif /* no CLSIZE */
6489 # else /* no NBPG */
6491 # define getpagesize() NBPC
6492 # else /* no NBPC */
6494 # define getpagesize() PAGESIZE
6495 # endif /* PAGESIZE */
6496 # endif /* no NBPC */
6497 # endif /* no NBPG */
6498 # endif /* no EXEC_PAGESIZE */
6499 # else /* no HAVE_SYS_PARAM_H */
6500 # define getpagesize() 8192 /* punt totally */
6501 # endif /* no HAVE_SYS_PARAM_H */
6502 # endif /* no _SC_PAGESIZE */
6504 #endif /* no HAVE_GETPAGESIZE */
6509 char *data, *data2, *data3;
6513 pagesize = getpagesize ();
6515 /* First, make a file with some known garbage in it. */
6516 data = (char *) malloc (pagesize);
6519 for (i = 0; i < pagesize; ++i)
6520 *(data + i) = rand ();
6522 fd = creat ("conftest.mmap", 0600);
6525 if (write (fd, data, pagesize) != pagesize)
6529 /* Next, try to mmap the file at a fixed address which already has
6530 something else allocated at it. If we can, also make sure that
6531 we see the same garbage. */
6532 fd = open ("conftest.mmap", O_RDWR);
6535 data2 = (char *) malloc (2 * pagesize);
6538 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6539 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6540 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6542 for (i = 0; i < pagesize; ++i)
6543 if (*(data + i) != *(data2 + i))
6546 /* Finally, make sure that changes to the mapped area do not
6547 percolate back to the file as seen by read(). (This is a bug on
6548 some variants of i386 svr4.0.) */
6549 for (i = 0; i < pagesize; ++i)
6550 *(data2 + i) = *(data2 + i) + 1;
6551 data3 = (char *) malloc (pagesize);
6554 if (read (fd, data3, pagesize) != pagesize)
6556 for (i = 0; i < pagesize; ++i)
6557 if (*(data + i) != *(data3 + i))
6563 rm -f conftest$ac_exeext
6564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6565 (eval $ac_link) 2>&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; }; then
6574 ac_cv_func_mmap_fixed_mapped=yes
6576 echo "$as_me: program exited with status $ac_status" >&5
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6581 ac_cv_func_mmap_fixed_mapped=no
6583 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6586 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6587 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6588 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6590 cat >>confdefs.h <<\_ACEOF
6607 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6608 unistd.h values.h sys/param.h
6610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6612 echo "$as_me:$LINENO: checking for $ac_header" >&5
6613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6620 # Is the header compilable?
6621 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6623 cat >conftest.$ac_ext <<_ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h. */
6629 $ac_includes_default
6630 #include <$ac_header>
6632 rm -f conftest.$ac_objext
6633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6634 (eval $ac_compile) 2>conftest.er1
6636 grep -v '^ *+' conftest.er1 >conftest.err
6638 cat conftest.err >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } &&
6641 { ac_try='test -z "$ac_c_werror_flag"
6642 || test ! -s conftest.err'
6643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; } &&
6648 { ac_try='test -s conftest.$ac_objext'
6649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; }; then
6654 ac_header_compiler=yes
6656 echo "$as_me: failed program was:" >&5
6657 sed 's/^/| /' conftest.$ac_ext >&5
6659 ac_header_compiler=no
6661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6662 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6663 echo "${ECHO_T}$ac_header_compiler" >&6
6665 # Is the header present?
6666 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6668 cat >conftest.$ac_ext <<_ACEOF
6671 cat confdefs.h >>conftest.$ac_ext
6672 cat >>conftest.$ac_ext <<_ACEOF
6673 /* end confdefs.h. */
6674 #include <$ac_header>
6676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6679 grep -v '^ *+' conftest.er1 >conftest.err
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } >/dev/null; then
6684 if test -s conftest.err; then
6685 ac_cpp_err=$ac_c_preproc_warn_flag
6686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6693 if test -z "$ac_cpp_err"; then
6694 ac_header_preproc=yes
6696 echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6699 ac_header_preproc=no
6701 rm -f conftest.err conftest.$ac_ext
6702 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6703 echo "${ECHO_T}$ac_header_preproc" >&6
6705 # So? What about this header?
6706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6712 ac_header_preproc=yes
6715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6729 ## ------------------------------------------ ##
6730 ## Report this to the AC_PACKAGE_NAME lists. ##
6731 ## ------------------------------------------ ##
6734 sed "s/^/$as_me: WARNING: /" >&2
6737 echo "$as_me:$LINENO: checking for $ac_header" >&5
6738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 eval "$as_ac_Header=\$ac_header_preproc"
6744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6749 cat >>confdefs.h <<_ACEOF
6750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6767 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6768 __argz_count __argz_stringify __argz_next
6770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6771 echo "$as_me:$LINENO: checking for $ac_func" >&5
6772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6773 if eval "test \"\${$as_ac_var+set}\" = set"; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 cat >conftest.$ac_ext <<_ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6784 #define $ac_func innocuous_$ac_func
6786 /* System header to define __stub macros and hopefully few prototypes,
6787 which can conflict with char $ac_func (); below.
6788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6789 <limits.h> exists even on freestanding compilers. */
6792 # include <limits.h>
6794 # include <assert.h>
6799 /* Override any gcc2 internal prototype to avoid an error. */
6804 /* We use char because int might match the return type of a gcc2
6805 builtin and then its argument prototype would still apply. */
6807 /* The GNU C library defines this for functions which it implements
6808 to always fail with ENOSYS. Some functions are actually named
6809 something starting with __ and the normal name is an alias. */
6810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6813 char (*f) () = $ac_func;
6822 return f != $ac_func;
6827 rm -f conftest.$ac_objext conftest$ac_exeext
6828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6829 (eval $ac_link) 2>conftest.er1
6831 grep -v '^ *+' conftest.er1 >conftest.err
6833 cat conftest.err >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } &&
6836 { ac_try='test -z "$ac_c_werror_flag"
6837 || test ! -s conftest.err'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; } &&
6843 { ac_try='test -s conftest$ac_exeext'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; }; then
6849 eval "$as_ac_var=yes"
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6854 eval "$as_ac_var=no"
6856 rm -f conftest.err conftest.$ac_objext \
6857 conftest$ac_exeext conftest.$ac_ext
6859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6861 if test `eval echo '${'$as_ac_var'}'` = yes; then
6862 cat >>confdefs.h <<_ACEOF
6863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6870 if test "${ac_cv_func_stpcpy+set}" != "set"; then
6872 for ac_func in stpcpy
6874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6875 echo "$as_me:$LINENO: checking for $ac_func" >&5
6876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6877 if eval "test \"\${$as_ac_var+set}\" = set"; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 cat >conftest.$ac_ext <<_ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6888 #define $ac_func innocuous_$ac_func
6890 /* System header to define __stub macros and hopefully few prototypes,
6891 which can conflict with char $ac_func (); below.
6892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6893 <limits.h> exists even on freestanding compilers. */
6896 # include <limits.h>
6898 # include <assert.h>
6903 /* Override any gcc2 internal prototype to avoid an error. */
6908 /* We use char because int might match the return type of a gcc2
6909 builtin and then its argument prototype would still apply. */
6911 /* The GNU C library defines this for functions which it implements
6912 to always fail with ENOSYS. Some functions are actually named
6913 something starting with __ and the normal name is an alias. */
6914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6917 char (*f) () = $ac_func;
6926 return f != $ac_func;
6931 rm -f conftest.$ac_objext conftest$ac_exeext
6932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6933 (eval $ac_link) 2>conftest.er1
6935 grep -v '^ *+' conftest.er1 >conftest.err
6937 cat conftest.err >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } &&
6940 { ac_try='test -z "$ac_c_werror_flag"
6941 || test ! -s conftest.err'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; } &&
6947 { ac_try='test -s conftest$ac_exeext'
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; }; then
6953 eval "$as_ac_var=yes"
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6958 eval "$as_ac_var=no"
6960 rm -f conftest.err conftest.$ac_objext \
6961 conftest$ac_exeext conftest.$ac_ext
6963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6965 if test `eval echo '${'$as_ac_var'}'` = yes; then
6966 cat >>confdefs.h <<_ACEOF
6967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6974 if test "${ac_cv_func_stpcpy}" = "yes"; then
6976 cat >>confdefs.h <<\_ACEOF
6977 #define HAVE_STPCPY 1
6982 if test $ac_cv_header_locale_h = yes; then
6983 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6984 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6985 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 cat >conftest.$ac_ext <<_ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7005 (eval $ac_link) 2>conftest.er1
7007 grep -v '^ *+' conftest.er1 >conftest.err
7009 cat conftest.err >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } &&
7012 { ac_try='test -z "$ac_c_werror_flag"
7013 || test ! -s conftest.err'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; } &&
7019 { ac_try='test -s conftest$ac_exeext'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; }; then
7025 am_cv_val_LC_MESSAGES=yes
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7030 am_cv_val_LC_MESSAGES=no
7032 rm -f conftest.err conftest.$ac_objext \
7033 conftest$ac_exeext conftest.$ac_ext
7035 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7036 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7037 if test $am_cv_val_LC_MESSAGES = yes; then
7039 cat >>confdefs.h <<\_ACEOF
7040 #define HAVE_LC_MESSAGES 1
7045 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7046 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7047 # Check whether --enable-nls or --disable-nls was given.
7048 if test "${enable_nls+set}" = set; then
7049 enableval="$enable_nls"
7054 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7055 echo "${ECHO_T}$USE_NLS" >&6
7058 USE_INCLUDED_LIBINTL=no
7060 if test "$USE_NLS" = "yes"; then
7062 cat >>confdefs.h <<\_ACEOF
7063 #define ENABLE_NLS 1
7066 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7067 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7069 # Check whether --with-included-gettext or --without-included-gettext was given.
7070 if test "${with_included_gettext+set}" = set; then
7071 withval="$with_included_gettext"
7072 nls_cv_force_use_gnu_gettext=$withval
7074 nls_cv_force_use_gnu_gettext=no
7076 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7077 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7079 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7080 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7082 nls_cv_header_libgt=
7085 if test "${ac_cv_header_libintl_h+set}" = set; then
7086 echo "$as_me:$LINENO: checking for libintl.h" >&5
7087 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7088 if test "${ac_cv_header_libintl_h+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7092 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7094 # Is the header compilable?
7095 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7096 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7097 cat >conftest.$ac_ext <<_ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h. */
7103 $ac_includes_default
7104 #include <libintl.h>
7106 rm -f conftest.$ac_objext
7107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7108 (eval $ac_compile) 2>conftest.er1
7110 grep -v '^ *+' conftest.er1 >conftest.err
7112 cat conftest.err >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } &&
7115 { ac_try='test -z "$ac_c_werror_flag"
7116 || test ! -s conftest.err'
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); }; } &&
7122 { ac_try='test -s conftest.$ac_objext'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; }; then
7128 ac_header_compiler=yes
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7133 ac_header_compiler=no
7135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7137 echo "${ECHO_T}$ac_header_compiler" >&6
7139 # Is the header present?
7140 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7141 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7142 cat >conftest.$ac_ext <<_ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h. */
7148 #include <libintl.h>
7150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7153 grep -v '^ *+' conftest.er1 >conftest.err
7155 cat conftest.err >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } >/dev/null; then
7158 if test -s conftest.err; then
7159 ac_cpp_err=$ac_c_preproc_warn_flag
7160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7167 if test -z "$ac_cpp_err"; then
7168 ac_header_preproc=yes
7170 echo "$as_me: failed program was:" >&5
7171 sed 's/^/| /' conftest.$ac_ext >&5
7173 ac_header_preproc=no
7175 rm -f conftest.err conftest.$ac_ext
7176 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7177 echo "${ECHO_T}$ac_header_preproc" >&6
7179 # So? What about this header?
7180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7182 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7183 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7184 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7185 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7186 ac_header_preproc=yes
7189 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7190 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7191 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7192 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7193 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7194 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7195 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7196 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7197 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7198 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7199 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7200 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7203 ## ------------------------------------------ ##
7204 ## Report this to the AC_PACKAGE_NAME lists. ##
7205 ## ------------------------------------------ ##
7208 sed "s/^/$as_me: WARNING: /" >&2
7211 echo "$as_me:$LINENO: checking for libintl.h" >&5
7212 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7213 if test "${ac_cv_header_libintl_h+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 ac_cv_header_libintl_h=$ac_header_preproc
7218 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7219 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7222 if test $ac_cv_header_libintl_h = yes; then
7223 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7224 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7225 if test "${gt_cv_func_gettext_libc+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 cat >conftest.$ac_ext <<_ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7234 #include <libintl.h>
7238 return (int) gettext ("")
7243 rm -f conftest.$ac_objext conftest$ac_exeext
7244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7245 (eval $ac_link) 2>conftest.er1
7247 grep -v '^ *+' conftest.er1 >conftest.err
7249 cat conftest.err >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); } &&
7252 { ac_try='test -z "$ac_c_werror_flag"
7253 || test ! -s conftest.err'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; } &&
7259 { ac_try='test -s conftest$ac_exeext'
7260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); }; }; then
7265 gt_cv_func_gettext_libc=yes
7267 echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7270 gt_cv_func_gettext_libc=no
7272 rm -f conftest.err conftest.$ac_objext \
7273 conftest$ac_exeext conftest.$ac_ext
7275 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7276 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7278 if test "$gt_cv_func_gettext_libc" != "yes"; then
7279 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7280 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7281 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7284 ac_check_lib_save_LIBS=$LIBS
7286 cat >conftest.$ac_ext <<_ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h. */
7293 /* Override any gcc2 internal prototype to avoid an error. */
7297 /* We use char because int might match the return type of a gcc2
7298 builtin and then its argument prototype would still apply. */
7299 char bindtextdomain ();
7308 rm -f conftest.$ac_objext conftest$ac_exeext
7309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7310 (eval $ac_link) 2>conftest.er1
7312 grep -v '^ *+' conftest.er1 >conftest.err
7314 cat conftest.err >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } &&
7317 { ac_try='test -z "$ac_c_werror_flag"
7318 || test ! -s conftest.err'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; } &&
7324 { ac_try='test -s conftest$ac_exeext'
7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); }; }; then
7330 ac_cv_lib_intl_bindtextdomain=yes
7332 echo "$as_me: failed program was:" >&5
7333 sed 's/^/| /' conftest.$ac_ext >&5
7335 ac_cv_lib_intl_bindtextdomain=no
7337 rm -f conftest.err conftest.$ac_objext \
7338 conftest$ac_exeext conftest.$ac_ext
7339 LIBS=$ac_check_lib_save_LIBS
7341 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7342 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7343 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7344 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7345 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7346 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 cat >conftest.$ac_ext <<_ACEOF
7352 cat confdefs.h >>conftest.$ac_ext
7353 cat >>conftest.$ac_ext <<_ACEOF
7354 /* end confdefs.h. */
7359 return (int) gettext ("")
7364 rm -f conftest.$ac_objext conftest$ac_exeext
7365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7366 (eval $ac_link) 2>conftest.er1
7368 grep -v '^ *+' conftest.er1 >conftest.err
7370 cat conftest.err >&5
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); } &&
7373 { ac_try='test -z "$ac_c_werror_flag"
7374 || test ! -s conftest.err'
7375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); }; } &&
7380 { ac_try='test -s conftest$ac_exeext'
7381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }; }; then
7386 gt_cv_func_gettext_libintl=yes
7388 echo "$as_me: failed program was:" >&5
7389 sed 's/^/| /' conftest.$ac_ext >&5
7391 gt_cv_func_gettext_libintl=no
7393 rm -f conftest.err conftest.$ac_objext \
7394 conftest$ac_exeext conftest.$ac_ext
7396 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7397 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7402 if test "$gt_cv_func_gettext_libc" = "yes" \
7403 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7405 cat >>confdefs.h <<\_ACEOF
7406 #define HAVE_GETTEXT 1
7409 # Extract the first word of "msgfmt", so it can be a program name with args.
7410 set dummy msgfmt; ac_word=$2
7411 echo "$as_me:$LINENO: checking for $ac_word" >&5
7412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7413 if test "${ac_cv_path_MSGFMT+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7421 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7422 for ac_dir in $PATH; do
7423 test -z "$ac_dir" && ac_dir=.
7424 if test -f $ac_dir/$ac_word; then
7425 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7426 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7432 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7436 MSGFMT="$ac_cv_path_MSGFMT"
7437 if test -n "$MSGFMT"; then
7438 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7439 echo "${ECHO_T}$MSGFMT" >&6
7441 echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6
7444 if test "$MSGFMT" != "no"; then
7446 for ac_func in dcgettext
7448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7449 echo "$as_me:$LINENO: checking for $ac_func" >&5
7450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7451 if eval "test \"\${$as_ac_var+set}\" = set"; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 cat >conftest.$ac_ext <<_ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7462 #define $ac_func innocuous_$ac_func
7464 /* System header to define __stub macros and hopefully few prototypes,
7465 which can conflict with char $ac_func (); below.
7466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7467 <limits.h> exists even on freestanding compilers. */
7470 # include <limits.h>
7472 # include <assert.h>
7477 /* Override any gcc2 internal prototype to avoid an error. */
7482 /* We use char because int might match the return type of a gcc2
7483 builtin and then its argument prototype would still apply. */
7485 /* The GNU C library defines this for functions which it implements
7486 to always fail with ENOSYS. Some functions are actually named
7487 something starting with __ and the normal name is an alias. */
7488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7491 char (*f) () = $ac_func;
7500 return f != $ac_func;
7505 rm -f conftest.$ac_objext conftest$ac_exeext
7506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7507 (eval $ac_link) 2>conftest.er1
7509 grep -v '^ *+' conftest.er1 >conftest.err
7511 cat conftest.err >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } &&
7514 { ac_try='test -z "$ac_c_werror_flag"
7515 || test ! -s conftest.err'
7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; } &&
7521 { ac_try='test -s conftest$ac_exeext'
7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; }; then
7527 eval "$as_ac_var=yes"
7529 echo "$as_me: failed program was:" >&5
7530 sed 's/^/| /' conftest.$ac_ext >&5
7532 eval "$as_ac_var=no"
7534 rm -f conftest.err conftest.$ac_objext \
7535 conftest$ac_exeext conftest.$ac_ext
7537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7539 if test `eval echo '${'$as_ac_var'}'` = yes; then
7540 cat >>confdefs.h <<_ACEOF
7541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7547 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7548 set dummy gmsgfmt; ac_word=$2
7549 echo "$as_me:$LINENO: checking for $ac_word" >&5
7550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7551 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7566 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7577 GMSGFMT=$ac_cv_path_GMSGFMT
7579 if test -n "$GMSGFMT"; then
7580 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7581 echo "${ECHO_T}$GMSGFMT" >&6
7583 echo "$as_me:$LINENO: result: no" >&5
7584 echo "${ECHO_T}no" >&6
7587 # Extract the first word of "xgettext", so it can be a program name with args.
7588 set dummy xgettext; ac_word=$2
7589 echo "$as_me:$LINENO: checking for $ac_word" >&5
7590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7591 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7596 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7600 for ac_dir in $PATH; do
7601 test -z "$ac_dir" && ac_dir=.
7602 if test -f $ac_dir/$ac_word; then
7603 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7604 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7610 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7614 XGETTEXT="$ac_cv_path_XGETTEXT"
7615 if test -n "$XGETTEXT"; then
7616 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7617 echo "${ECHO_T}$XGETTEXT" >&6
7619 echo "$as_me:$LINENO: result: no" >&5
7620 echo "${ECHO_T}no" >&6
7623 cat >conftest.$ac_ext <<_ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7633 extern int _nl_msg_cat_cntr;
7634 return _nl_msg_cat_cntr
7639 rm -f conftest.$ac_objext conftest$ac_exeext
7640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7641 (eval $ac_link) 2>conftest.er1
7643 grep -v '^ *+' conftest.er1 >conftest.err
7645 cat conftest.err >&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); } &&
7648 { ac_try='test -z "$ac_c_werror_flag"
7649 || test ! -s conftest.err'
7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; } &&
7655 { ac_try='test -s conftest$ac_exeext'
7656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); }; }; then
7664 echo "$as_me: failed program was:" >&5
7665 sed 's/^/| /' conftest.$ac_ext >&5
7670 rm -f conftest.err conftest.$ac_objext \
7671 conftest$ac_exeext conftest.$ac_ext
7681 if test "$CATOBJEXT" = "NONE"; then
7682 nls_cv_use_gnu_gettext=yes
7686 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7687 INTLOBJS="\$(GETTOBJS)"
7688 # Extract the first word of "msgfmt", so it can be a program name with args.
7689 set dummy msgfmt; ac_word=$2
7690 echo "$as_me:$LINENO: checking for $ac_word" >&5
7691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7692 if test "${ac_cv_path_MSGFMT+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7697 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7701 for ac_dir in $PATH; do
7702 test -z "$ac_dir" && ac_dir=.
7703 if test -f $ac_dir/$ac_word; then
7704 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7705 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7711 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7715 MSGFMT="$ac_cv_path_MSGFMT"
7716 if test -n "$MSGFMT"; then
7717 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7718 echo "${ECHO_T}$MSGFMT" >&6
7720 echo "$as_me:$LINENO: result: no" >&5
7721 echo "${ECHO_T}no" >&6
7724 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7725 set dummy gmsgfmt; ac_word=$2
7726 echo "$as_me:$LINENO: checking for $ac_word" >&5
7727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7728 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7733 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7750 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7754 GMSGFMT=$ac_cv_path_GMSGFMT
7756 if test -n "$GMSGFMT"; then
7757 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7758 echo "${ECHO_T}$GMSGFMT" >&6
7760 echo "$as_me:$LINENO: result: no" >&5
7761 echo "${ECHO_T}no" >&6
7764 # Extract the first word of "xgettext", so it can be a program name with args.
7765 set dummy xgettext; ac_word=$2
7766 echo "$as_me:$LINENO: checking for $ac_word" >&5
7767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7768 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7777 for ac_dir in $PATH; do
7778 test -z "$ac_dir" && ac_dir=.
7779 if test -f $ac_dir/$ac_word; then
7780 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7781 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7787 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7791 XGETTEXT="$ac_cv_path_XGETTEXT"
7792 if test -n "$XGETTEXT"; then
7793 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7794 echo "${ECHO_T}$XGETTEXT" >&6
7796 echo "$as_me:$LINENO: result: no" >&5
7797 echo "${ECHO_T}no" >&6
7801 USE_INCLUDED_LIBINTL=yes
7805 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7807 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7808 nls_cv_header_intl=libintl.h
7809 nls_cv_header_libgt=libgettext.h
7812 if test "$XGETTEXT" != ":"; then
7813 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7816 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7817 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
7822 # We need to process the po/ directory.
7826 nls_cv_header_intl=libintl.h
7827 nls_cv_header_libgt=libgettext.h
7830 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7831 # because some of the sources are only built for this goal.
7832 if test "$PACKAGE" = gettext; then
7834 USE_INCLUDED_LIBINTL=yes
7837 for lang in $ALL_LINGUAS; do
7838 GMOFILES="$GMOFILES $lang.gmo"
7839 POFILES="$POFILES $lang.po"
7855 if test "x$CATOBJEXT" != "x"; then
7856 if test "x$ALL_LINGUAS" = "x"; then
7859 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7860 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7862 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7863 case "$ALL_LINGUAS" in
7864 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7867 LINGUAS=$NEW_LINGUAS
7868 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7869 echo "${ECHO_T}$LINGUAS" >&6
7872 if test -n "$LINGUAS"; then
7873 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7877 if test $ac_cv_header_locale_h = yes; then
7878 INCLUDE_LOCALE_H="#include <locale.h>"
7881 /* The system does not provide the header <locale.h>. Take care yourself. */"
7885 if test -f $srcdir/po2tbl.sed.in; then
7886 if test "$CATOBJEXT" = ".cat"; then
7887 if test "${ac_cv_header_linux_version_h+set}" = set; then
7888 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7889 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7890 if test "${ac_cv_header_linux_version_h+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7894 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7896 # Is the header compilable?
7897 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7898 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7899 cat >conftest.$ac_ext <<_ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7905 $ac_includes_default
7906 #include <linux/version.h>
7908 rm -f conftest.$ac_objext
7909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7910 (eval $ac_compile) 2>conftest.er1
7912 grep -v '^ *+' conftest.er1 >conftest.err
7914 cat conftest.err >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } &&
7917 { ac_try='test -z "$ac_c_werror_flag"
7918 || test ! -s conftest.err'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; } &&
7924 { ac_try='test -s conftest.$ac_objext'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; }; then
7930 ac_header_compiler=yes
7932 echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7935 ac_header_compiler=no
7937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7939 echo "${ECHO_T}$ac_header_compiler" >&6
7941 # Is the header present?
7942 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
7943 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
7944 cat >conftest.$ac_ext <<_ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h. */
7950 #include <linux/version.h>
7952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7955 grep -v '^ *+' conftest.er1 >conftest.err
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } >/dev/null; then
7960 if test -s conftest.err; then
7961 ac_cpp_err=$ac_c_preproc_warn_flag
7962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7969 if test -z "$ac_cpp_err"; then
7970 ac_header_preproc=yes
7972 echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7975 ac_header_preproc=no
7977 rm -f conftest.err conftest.$ac_ext
7978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7979 echo "${ECHO_T}$ac_header_preproc" >&6
7981 # So? What about this header?
7982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7984 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
7985 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7986 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
7987 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
7988 ac_header_preproc=yes
7991 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
7992 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
7993 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
7994 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
7995 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
7996 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
7997 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
7998 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
7999 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8000 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8001 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8002 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8005 ## ------------------------------------------ ##
8006 ## Report this to the AC_PACKAGE_NAME lists. ##
8007 ## ------------------------------------------ ##
8010 sed "s/^/$as_me: WARNING: /" >&2
8013 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8014 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8015 if test "${ac_cv_header_linux_version_h+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 ac_cv_header_linux_version_h=$ac_header_preproc
8020 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8021 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8024 if test $ac_cv_header_linux_version_h = yes; then
8032 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8034 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8035 $srcdir/po2tbl.sed.in > po2tbl.sed
8038 if test "$PACKAGE" = "gettext"; then
8048 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8054 if test -f $srcdir/po/POTFILES.in; then
8055 test -d po || mkdir po
8056 if test "x$srcdir" != "x."; then
8057 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8058 posrcprefix="$srcdir/"
8060 posrcprefix="../$srcdir/"
8066 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8067 < $srcdir/po/POTFILES.in > po/POTFILES
8073 for ac_prog in 'bison -y' byacc
8075 # Extract the first word of "$ac_prog", so it can be a program name with args.
8076 set dummy $ac_prog; ac_word=$2
8077 echo "$as_me:$LINENO: checking for $ac_word" >&5
8078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8079 if test "${ac_cv_prog_YACC+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 if test -n "$YACC"; then
8083 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
8091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8092 ac_cv_prog_YACC="$ac_prog"
8093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8101 YACC=$ac_cv_prog_YACC
8102 if test -n "$YACC"; then
8103 echo "$as_me:$LINENO: result: $YACC" >&5
8104 echo "${ECHO_T}$YACC" >&6
8106 echo "$as_me:$LINENO: result: no" >&5
8107 echo "${ECHO_T}no" >&6
8110 test -n "$YACC" && break
8112 test -n "$YACC" || YACC="yacc"
8114 for ac_prog in flex lex
8116 # Extract the first word of "$ac_prog", so it can be a program name with args.
8117 set dummy $ac_prog; ac_word=$2
8118 echo "$as_me:$LINENO: checking for $ac_word" >&5
8119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8120 if test "${ac_cv_prog_LEX+set}" = set; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 if test -n "$LEX"; then
8124 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130 test -z "$as_dir" && as_dir=.
8131 for ac_exec_ext in '' $ac_executable_extensions; do
8132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8133 ac_cv_prog_LEX="$ac_prog"
8134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8143 if test -n "$LEX"; then
8144 echo "$as_me:$LINENO: result: $LEX" >&5
8145 echo "${ECHO_T}$LEX" >&6
8147 echo "$as_me:$LINENO: result: no" >&5
8148 echo "${ECHO_T}no" >&6
8151 test -n "$LEX" && break
8153 test -n "$LEX" || LEX=":"
8155 if test -z "$LEXLIB"
8157 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
8158 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
8159 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8162 ac_check_lib_save_LIBS=$LIBS
8164 cat >conftest.$ac_ext <<_ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8171 /* Override any gcc2 internal prototype to avoid an error. */
8175 /* We use char because int might match the return type of a gcc2
8176 builtin and then its argument prototype would still apply. */
8186 rm -f conftest.$ac_objext conftest$ac_exeext
8187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8188 (eval $ac_link) 2>conftest.er1
8190 grep -v '^ *+' conftest.er1 >conftest.err
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } &&
8195 { ac_try='test -z "$ac_c_werror_flag"
8196 || test ! -s conftest.err'
8197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }; } &&
8202 { ac_try='test -s conftest$ac_exeext'
8203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; }; then
8208 ac_cv_lib_fl_yywrap=yes
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8213 ac_cv_lib_fl_yywrap=no
8215 rm -f conftest.err conftest.$ac_objext \
8216 conftest$ac_exeext conftest.$ac_ext
8217 LIBS=$ac_check_lib_save_LIBS
8219 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
8220 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
8221 if test $ac_cv_lib_fl_yywrap = yes; then
8224 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
8225 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
8226 if test "${ac_cv_lib_l_yywrap+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 ac_check_lib_save_LIBS=$LIBS
8231 cat >conftest.$ac_ext <<_ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8238 /* Override any gcc2 internal prototype to avoid an error. */
8242 /* We use char because int might match the return type of a gcc2
8243 builtin and then its argument prototype would still apply. */
8253 rm -f conftest.$ac_objext conftest$ac_exeext
8254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8255 (eval $ac_link) 2>conftest.er1
8257 grep -v '^ *+' conftest.er1 >conftest.err
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } &&
8262 { ac_try='test -z "$ac_c_werror_flag"
8263 || test ! -s conftest.err'
8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; } &&
8269 { ac_try='test -s conftest$ac_exeext'
8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; }; then
8275 ac_cv_lib_l_yywrap=yes
8277 echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8280 ac_cv_lib_l_yywrap=no
8282 rm -f conftest.err conftest.$ac_objext \
8283 conftest$ac_exeext conftest.$ac_ext
8284 LIBS=$ac_check_lib_save_LIBS
8286 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
8287 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
8288 if test $ac_cv_lib_l_yywrap = yes; then
8296 if test "x$LEX" != "x:"; then
8297 echo "$as_me:$LINENO: checking lex output file root" >&5
8298 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
8299 if test "${ac_cv_prog_lex_root+set}" = set; then
8300 echo $ECHO_N "(cached) $ECHO_C" >&6
8302 # The minimal lex program is just a single line: %%. But some broken lexes
8303 # (Solaris, I think it was) want two %% lines, so accommodate them.
8304 cat >conftest.l <<_ACEOF
8308 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
8309 (eval $LEX conftest.l) 2>&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }
8313 if test -f lex.yy.c; then
8314 ac_cv_prog_lex_root=lex.yy
8315 elif test -f lexyy.c; then
8316 ac_cv_prog_lex_root=lexyy
8318 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
8319 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
8320 { (exit 1); exit 1; }; }
8323 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
8324 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
8326 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8328 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
8329 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
8330 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8333 # POSIX says lex can declare yytext either as a pointer or an array; the
8334 # default is implementation-dependent. Figure out which it is, since
8335 # not all implementations provide the %pointer and %array declarations.
8336 ac_cv_prog_lex_yytext_pointer=no
8337 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
8339 LIBS="$LIBS $LEXLIB"
8340 cat >conftest.$ac_ext <<_ACEOF
8341 `cat $LEX_OUTPUT_ROOT.c`
8343 rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8345 (eval $ac_link) 2>conftest.er1
8347 grep -v '^ *+' conftest.er1 >conftest.err
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -z "$ac_c_werror_flag"
8353 || test ! -s conftest.err'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; } &&
8359 { ac_try='test -s conftest$ac_exeext'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; }; then
8365 ac_cv_prog_lex_yytext_pointer=yes
8367 echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8371 rm -f conftest.err conftest.$ac_objext \
8372 conftest$ac_exeext conftest.$ac_ext
8374 rm -f "${LEX_OUTPUT_ROOT}.c"
8377 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
8378 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
8379 if test $ac_cv_prog_lex_yytext_pointer = yes; then
8381 cat >>confdefs.h <<\_ACEOF
8382 #define YYTEXT_POINTER 1
8388 if test "$LEX" = :; then
8389 LEX=${am_missing_run}flex
8392 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8393 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
8394 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8395 if test "${enable_maintainer_mode+set}" = set; then
8396 enableval="$enable_maintainer_mode"
8397 USE_MAINTAINER_MODE=$enableval
8399 USE_MAINTAINER_MODE=no
8401 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8402 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8405 if test $USE_MAINTAINER_MODE = yes; then
8406 MAINTAINER_MODE_TRUE=
8407 MAINTAINER_MODE_FALSE='#'
8409 MAINTAINER_MODE_TRUE='#'
8410 MAINTAINER_MODE_FALSE=
8413 MAINT=$MAINTAINER_MODE_TRUE
8417 . ${srcdir}/configure.host
8428 for ac_header in string.h strings.h stdlib.h unistd.h
8430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8432 echo "$as_me:$LINENO: checking for $ac_header" >&5
8433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8440 # Is the header compilable?
8441 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8443 cat >conftest.$ac_ext <<_ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 $ac_includes_default
8450 #include <$ac_header>
8452 rm -f conftest.$ac_objext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8454 (eval $ac_compile) 2>conftest.er1
8456 grep -v '^ *+' conftest.er1 >conftest.err
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -z "$ac_c_werror_flag"
8462 || test ! -s conftest.err'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; } &&
8468 { ac_try='test -s conftest.$ac_objext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 ac_header_compiler=yes
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8479 ac_header_compiler=no
8481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8482 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8483 echo "${ECHO_T}$ac_header_compiler" >&6
8485 # Is the header present?
8486 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8488 cat >conftest.$ac_ext <<_ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8494 #include <$ac_header>
8496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8499 grep -v '^ *+' conftest.er1 >conftest.err
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } >/dev/null; then
8504 if test -s conftest.err; then
8505 ac_cpp_err=$ac_c_preproc_warn_flag
8506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8513 if test -z "$ac_cpp_err"; then
8514 ac_header_preproc=yes
8516 echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8519 ac_header_preproc=no
8521 rm -f conftest.err conftest.$ac_ext
8522 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8523 echo "${ECHO_T}$ac_header_preproc" >&6
8525 # So? What about this header?
8526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8531 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8532 ac_header_preproc=yes
8535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8539 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8540 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8541 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8542 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8545 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8546 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8549 ## ------------------------------------------ ##
8550 ## Report this to the AC_PACKAGE_NAME lists. ##
8551 ## ------------------------------------------ ##
8554 sed "s/^/$as_me: WARNING: /" >&2
8557 echo "$as_me:$LINENO: checking for $ac_header" >&5
8558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 eval "$as_ac_Header=\$ac_header_preproc"
8564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8569 cat >>confdefs.h <<_ACEOF
8570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8579 for ac_func in sbrk realpath
8581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8582 echo "$as_me:$LINENO: checking for $ac_func" >&5
8583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8584 if eval "test \"\${$as_ac_var+set}\" = set"; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8587 cat >conftest.$ac_ext <<_ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8595 #define $ac_func innocuous_$ac_func
8597 /* System header to define __stub macros and hopefully few prototypes,
8598 which can conflict with char $ac_func (); below.
8599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8600 <limits.h> exists even on freestanding compilers. */
8603 # include <limits.h>
8605 # include <assert.h>
8610 /* Override any gcc2 internal prototype to avoid an error. */
8615 /* We use char because int might match the return type of a gcc2
8616 builtin and then its argument prototype would still apply. */
8618 /* The GNU C library defines this for functions which it implements
8619 to always fail with ENOSYS. Some functions are actually named
8620 something starting with __ and the normal name is an alias. */
8621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8624 char (*f) () = $ac_func;
8633 return f != $ac_func;
8638 rm -f conftest.$ac_objext conftest$ac_exeext
8639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8640 (eval $ac_link) 2>conftest.er1
8642 grep -v '^ *+' conftest.er1 >conftest.err
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } &&
8647 { ac_try='test -z "$ac_c_werror_flag"
8648 || test ! -s conftest.err'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; } &&
8654 { ac_try='test -s conftest$ac_exeext'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; }; then
8660 eval "$as_ac_var=yes"
8662 echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8665 eval "$as_ac_var=no"
8667 rm -f conftest.err conftest.$ac_objext \
8668 conftest$ac_exeext conftest.$ac_ext
8670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8672 if test `eval echo '${'$as_ac_var'}'` = yes; then
8673 cat >>confdefs.h <<_ACEOF
8674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8686 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8687 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8688 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8689 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8691 echo $ECHO_N "(cached) $ECHO_C" >&6
8693 cat >conftest.$ac_ext <<_ACEOF
8696 cat confdefs.h >>conftest.$ac_ext
8697 cat >>conftest.$ac_ext <<_ACEOF
8698 /* end confdefs.h. */
8699 #include <sys/types.h>
8711 rm -f conftest.$ac_objext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8713 (eval $ac_compile) 2>conftest.er1
8715 grep -v '^ *+' conftest.er1 >conftest.err
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } &&
8720 { ac_try='test -z "$ac_c_werror_flag"
8721 || test ! -s conftest.err'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try='test -s conftest.$ac_objext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 eval "$as_ac_Header=yes"
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8738 eval "$as_ac_Header=no"
8740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8745 cat >>confdefs.h <<_ACEOF
8746 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8749 ac_header_dirent=$ac_hdr; break
8753 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8754 if test $ac_header_dirent = dirent.h; then
8755 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8756 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8757 if test "${ac_cv_search_opendir+set}" = set; then
8758 echo $ECHO_N "(cached) $ECHO_C" >&6
8760 ac_func_search_save_LIBS=$LIBS
8761 ac_cv_search_opendir=no
8762 cat >conftest.$ac_ext <<_ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h. */
8769 /* Override any gcc2 internal prototype to avoid an error. */
8773 /* We use char because int might match the return type of a gcc2
8774 builtin and then its argument prototype would still apply. */
8784 rm -f conftest.$ac_objext conftest$ac_exeext
8785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8786 (eval $ac_link) 2>conftest.er1
8788 grep -v '^ *+' conftest.er1 >conftest.err
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } &&
8793 { ac_try='test -z "$ac_c_werror_flag"
8794 || test ! -s conftest.err'
8795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); }; } &&
8800 { ac_try='test -s conftest$ac_exeext'
8801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); }; }; then
8806 ac_cv_search_opendir="none required"
8808 echo "$as_me: failed program was:" >&5
8809 sed 's/^/| /' conftest.$ac_ext >&5
8812 rm -f conftest.err conftest.$ac_objext \
8813 conftest$ac_exeext conftest.$ac_ext
8814 if test "$ac_cv_search_opendir" = no; then
8815 for ac_lib in dir; do
8816 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8817 cat >conftest.$ac_ext <<_ACEOF
8820 cat confdefs.h >>conftest.$ac_ext
8821 cat >>conftest.$ac_ext <<_ACEOF
8822 /* end confdefs.h. */
8824 /* Override any gcc2 internal prototype to avoid an error. */
8828 /* We use char because int might match the return type of a gcc2
8829 builtin and then its argument prototype would still apply. */
8839 rm -f conftest.$ac_objext conftest$ac_exeext
8840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8841 (eval $ac_link) 2>conftest.er1
8843 grep -v '^ *+' conftest.er1 >conftest.err
8845 cat conftest.err >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } &&
8848 { ac_try='test -z "$ac_c_werror_flag"
8849 || test ! -s conftest.err'
8850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; } &&
8855 { ac_try='test -s conftest$ac_exeext'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; }; then
8861 ac_cv_search_opendir="-l$ac_lib"
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8868 rm -f conftest.err conftest.$ac_objext \
8869 conftest$ac_exeext conftest.$ac_ext
8872 LIBS=$ac_func_search_save_LIBS
8874 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8875 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8876 if test "$ac_cv_search_opendir" != no; then
8877 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8882 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8883 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8884 if test "${ac_cv_search_opendir+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 ac_func_search_save_LIBS=$LIBS
8888 ac_cv_search_opendir=no
8889 cat >conftest.$ac_ext <<_ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8896 /* Override any gcc2 internal prototype to avoid an error. */
8900 /* We use char because int might match the return type of a gcc2
8901 builtin and then its argument prototype would still apply. */
8911 rm -f conftest.$ac_objext conftest$ac_exeext
8912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8913 (eval $ac_link) 2>conftest.er1
8915 grep -v '^ *+' conftest.er1 >conftest.err
8917 cat conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } &&
8920 { ac_try='test -z "$ac_c_werror_flag"
8921 || test ! -s conftest.err'
8922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); }; } &&
8927 { ac_try='test -s conftest$ac_exeext'
8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }; }; then
8933 ac_cv_search_opendir="none required"
8935 echo "$as_me: failed program was:" >&5
8936 sed 's/^/| /' conftest.$ac_ext >&5
8939 rm -f conftest.err conftest.$ac_objext \
8940 conftest$ac_exeext conftest.$ac_ext
8941 if test "$ac_cv_search_opendir" = no; then
8943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8944 cat >conftest.$ac_ext <<_ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h. */
8951 /* Override any gcc2 internal prototype to avoid an error. */
8955 /* We use char because int might match the return type of a gcc2
8956 builtin and then its argument prototype would still apply. */
8966 rm -f conftest.$ac_objext conftest$ac_exeext
8967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8968 (eval $ac_link) 2>conftest.er1
8970 grep -v '^ *+' conftest.er1 >conftest.err
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } &&
8975 { ac_try='test -z "$ac_c_werror_flag"
8976 || test ! -s conftest.err'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; } &&
8982 { ac_try='test -s conftest$ac_exeext'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; }; then
8988 ac_cv_search_opendir="-l$ac_lib"
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8995 rm -f conftest.err conftest.$ac_objext \
8996 conftest$ac_exeext conftest.$ac_ext
8999 LIBS=$ac_func_search_save_LIBS
9001 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9002 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9003 if test "$ac_cv_search_opendir" != no; then
9004 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9013 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
9015 cat >>confdefs.h <<\_ACEOF
9016 #define USE_BINARY_FOPEN 1
9021 echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
9022 echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
9023 if test "${bfd_cv_decl_needed_strstr+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 cat >conftest.$ac_ext <<_ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9034 #ifdef HAVE_STRING_H
9037 #ifdef HAVE_STRINGS_H
9038 #include <strings.h>
9041 #ifdef HAVE_STDLIB_H
9044 #ifdef HAVE_UNISTD_H
9050 char *(*pfn) = (char *(*)) strstr
9055 rm -f conftest.$ac_objext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9057 (eval $ac_compile) 2>conftest.er1
9059 grep -v '^ *+' conftest.er1 >conftest.err
9061 cat conftest.err >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } &&
9064 { ac_try='test -z "$ac_c_werror_flag"
9065 || test ! -s conftest.err'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; } &&
9071 { ac_try='test -s conftest.$ac_objext'
9072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; }; then
9077 bfd_cv_decl_needed_strstr=no
9079 echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9082 bfd_cv_decl_needed_strstr=yes
9084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9087 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
9088 echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
9089 if test $bfd_cv_decl_needed_strstr = yes; then
9091 cat >>confdefs.h <<\_ACEOF
9092 #define NEED_DECLARATION_STRSTR 1
9097 echo "$as_me:$LINENO: checking whether free must be declared" >&5
9098 echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
9099 if test "${bfd_cv_decl_needed_free+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 cat >conftest.$ac_ext <<_ACEOF
9105 cat confdefs.h >>conftest.$ac_ext
9106 cat >>conftest.$ac_ext <<_ACEOF
9107 /* end confdefs.h. */
9110 #ifdef HAVE_STRING_H
9113 #ifdef HAVE_STRINGS_H
9114 #include <strings.h>
9117 #ifdef HAVE_STDLIB_H
9120 #ifdef HAVE_UNISTD_H
9126 char *(*pfn) = (char *(*)) free
9131 rm -f conftest.$ac_objext
9132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9133 (eval $ac_compile) 2>conftest.er1
9135 grep -v '^ *+' conftest.er1 >conftest.err
9137 cat conftest.err >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } &&
9140 { ac_try='test -z "$ac_c_werror_flag"
9141 || test ! -s conftest.err'
9142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }; } &&
9147 { ac_try='test -s conftest.$ac_objext'
9148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; }; then
9153 bfd_cv_decl_needed_free=no
9155 echo "$as_me: failed program was:" >&5
9156 sed 's/^/| /' conftest.$ac_ext >&5
9158 bfd_cv_decl_needed_free=yes
9160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9163 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5
9164 echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
9165 if test $bfd_cv_decl_needed_free = yes; then
9167 cat >>confdefs.h <<\_ACEOF
9168 #define NEED_DECLARATION_FREE 1
9173 echo "$as_me:$LINENO: checking whether sbrk must be declared" >&5
9174 echo $ECHO_N "checking whether sbrk must be declared... $ECHO_C" >&6
9175 if test "${bfd_cv_decl_needed_sbrk+set}" = set; then
9176 echo $ECHO_N "(cached) $ECHO_C" >&6
9178 cat >conftest.$ac_ext <<_ACEOF
9181 cat confdefs.h >>conftest.$ac_ext
9182 cat >>conftest.$ac_ext <<_ACEOF
9183 /* end confdefs.h. */
9186 #ifdef HAVE_STRING_H
9189 #ifdef HAVE_STRINGS_H
9190 #include <strings.h>
9193 #ifdef HAVE_STDLIB_H
9196 #ifdef HAVE_UNISTD_H
9202 char *(*pfn) = (char *(*)) sbrk
9207 rm -f conftest.$ac_objext
9208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9209 (eval $ac_compile) 2>conftest.er1
9211 grep -v '^ *+' conftest.er1 >conftest.err
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } &&
9216 { ac_try='test -z "$ac_c_werror_flag"
9217 || test ! -s conftest.err'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; } &&
9223 { ac_try='test -s conftest.$ac_objext'
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
9229 bfd_cv_decl_needed_sbrk=no
9231 echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9234 bfd_cv_decl_needed_sbrk=yes
9236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9239 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_sbrk" >&5
9240 echo "${ECHO_T}$bfd_cv_decl_needed_sbrk" >&6
9241 if test $bfd_cv_decl_needed_sbrk = yes; then
9243 cat >>confdefs.h <<\_ACEOF
9244 #define NEED_DECLARATION_SBRK 1
9249 echo "$as_me:$LINENO: checking whether getenv must be declared" >&5
9250 echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6
9251 if test "${bfd_cv_decl_needed_getenv+set}" = set; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
9254 cat >conftest.$ac_ext <<_ACEOF
9257 cat confdefs.h >>conftest.$ac_ext
9258 cat >>conftest.$ac_ext <<_ACEOF
9259 /* end confdefs.h. */
9262 #ifdef HAVE_STRING_H
9265 #ifdef HAVE_STRINGS_H
9266 #include <strings.h>
9269 #ifdef HAVE_STDLIB_H
9272 #ifdef HAVE_UNISTD_H
9278 char *(*pfn) = (char *(*)) getenv
9283 rm -f conftest.$ac_objext
9284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9285 (eval $ac_compile) 2>conftest.er1
9287 grep -v '^ *+' conftest.er1 >conftest.err
9289 cat conftest.err >&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } &&
9292 { ac_try='test -z "$ac_c_werror_flag"
9293 || test ! -s conftest.err'
9294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); }; } &&
9299 { ac_try='test -s conftest.$ac_objext'
9300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); }; }; then
9305 bfd_cv_decl_needed_getenv=no
9307 echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9310 bfd_cv_decl_needed_getenv=yes
9312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9315 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_getenv" >&5
9316 echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6
9317 if test $bfd_cv_decl_needed_getenv = yes; then
9319 cat >>confdefs.h <<\_ACEOF
9320 #define NEED_DECLARATION_GETENV 1
9325 echo "$as_me:$LINENO: checking whether environ must be declared" >&5
9326 echo $ECHO_N "checking whether environ must be declared... $ECHO_C" >&6
9327 if test "${bfd_cv_decl_needed_environ+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9330 cat >conftest.$ac_ext <<_ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9338 #ifdef HAVE_STRING_H
9341 #ifdef HAVE_STRINGS_H
9342 #include <strings.h>
9345 #ifdef HAVE_STDLIB_H
9348 #ifdef HAVE_UNISTD_H
9354 char *(*pfn) = (char *(*)) environ
9359 rm -f conftest.$ac_objext
9360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9361 (eval $ac_compile) 2>conftest.er1
9363 grep -v '^ *+' conftest.er1 >conftest.err
9365 cat conftest.err >&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } &&
9368 { ac_try='test -z "$ac_c_werror_flag"
9369 || test ! -s conftest.err'
9370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; } &&
9375 { ac_try='test -s conftest.$ac_objext'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; }; then
9381 bfd_cv_decl_needed_environ=no
9383 echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.$ac_ext >&5
9386 bfd_cv_decl_needed_environ=yes
9388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9391 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_environ" >&5
9392 echo "${ECHO_T}$bfd_cv_decl_needed_environ" >&6
9393 if test $bfd_cv_decl_needed_environ = yes; then
9395 cat >>confdefs.h <<\_ACEOF
9396 #define NEED_DECLARATION_ENVIRON 1
9402 # When converting linker scripts into strings for use in emulation
9403 # files, use astring.sed if the compiler supports ANSI string
9404 # concatenation, or ostring.sed otherwise. This is to support the
9405 # broken Microsoft MSVC compiler, which limits the length of string
9406 # constants, while still supporting pre-ANSI compilers which do not
9407 # support string concatenation.
9408 echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
9409 echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
9410 if test "${ld_cv_string_concatenation+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 cat >conftest.$ac_ext <<_ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h. */
9428 rm -f conftest.$ac_objext
9429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9430 (eval $ac_compile) 2>conftest.er1
9432 grep -v '^ *+' conftest.er1 >conftest.err
9434 cat conftest.err >&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } &&
9437 { ac_try='test -z "$ac_c_werror_flag"
9438 || test ! -s conftest.err'
9439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; } &&
9444 { ac_try='test -s conftest.$ac_objext'
9445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; }; then
9450 ld_cv_string_concatenation=yes
9452 echo "$as_me: failed program was:" >&5
9453 sed 's/^/| /' conftest.$ac_ext >&5
9455 ld_cv_string_concatenation=no
9457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9460 echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
9461 echo "${ECHO_T}$ld_cv_string_concatenation" >&6
9462 if test "$ld_cv_string_concatenation" = "yes"; then
9463 STRINGIFY=astring.sed
9465 STRINGIFY=ostring.sed
9469 # target-specific stuff:
9479 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
9481 if test "$targ_alias" = "all"; then
9484 # Canonicalize the secondary target names.
9485 result=`$ac_config_sub $targ_alias 2>/dev/null`
9486 if test -n "$result"; then
9492 . ${srcdir}/configure.tgt
9494 if test "$targ" = "$target"; then
9498 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
9499 case " $all_emuls " in
9502 all_emuls="$all_emuls e${i}.o"
9503 eval result=\$tdir_$i
9504 test -z "$result" && result=$targ_alias
9505 echo tdir_$i=$result >> tdirs
9510 for i in $targ_emul $targ_extra_libpath; do
9511 case " $all_libpath " in
9514 if test -z "$all_libpath"; then
9517 all_libpath="$all_libpath ${i}"
9523 for i in $targ_extra_ofiles; do
9524 case " $all_emul_extras " in
9527 all_emul_extras="$all_emul_extras ${i}"
9539 if test x${all_targets} = xtrue; then
9540 if test x${want64} = xtrue; then
9541 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9543 EMULATION_OFILES='$(ALL_EMULATIONS)'
9545 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
9547 EMULATION_OFILES=$all_emuls
9548 EMUL_EXTRA_OFILES=$all_emul_extras
9554 EMULATION_LIBPATH=$all_libpath
9557 if test x${enable_static} = xno; then
9558 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
9560 TESTBFDLIB="../bfd/.libs/libbfd.a"
9564 target_vendor=${target_vendor=$host_vendor}
9565 case "$target_vendor" in
9566 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
9567 *) EXTRA_SHLIB_EXTENSION= ;;
9570 case "$target_os" in
9571 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
9574 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
9576 cat >>confdefs.h <<_ACEOF
9577 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
9582 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
9583 ac_config_commands="$ac_config_commands default"
9584 cat >confcache <<\_ACEOF
9585 # This file is a shell script that caches the results of configure
9586 # tests run on this system so they can be shared between configure
9587 # scripts and configure runs, see configure's option --config-cache.
9588 # It is not useful on other systems. If it contains results you don't
9589 # want to keep, you may remove or edit it.
9591 # config.status only pays attention to the cache file if you give it
9592 # the --recheck option to rerun configure.
9594 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9595 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9600 # The following way of writing the cache mishandles newlines in values,
9601 # but we know of no workaround that is simple, portable, and efficient.
9602 # So, don't put newlines in cache variables' values.
9603 # Ultrix sh set writes to stderr and can't be redirected directly,
9604 # and sets the high bit in the cache file unless we assign to the vars.
9607 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9609 # `set' does not quote correctly, so add quotes (double-quote
9610 # substitution turns \\\\ into \\, and sed turns \\ into \).
9613 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9616 # `set' quotes correctly as required by POSIX, so do not add quotes.
9618 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9625 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9627 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9629 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9630 if test -w $cache_file; then
9631 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9632 cat confcache >$cache_file
9634 echo "not updating unwritable cache $cache_file"
9639 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9640 # Let make expand exec_prefix.
9641 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9643 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9644 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9645 # trailing colons and then remove the whole line if VPATH becomes empty
9646 # (actually we leave an empty line to preserve line numbers).
9647 if test "x$srcdir" = x.; then
9648 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9649 s/:*\$(srcdir):*/:/;
9650 s/:*\${srcdir}:*/:/;
9652 s/^\([^=]*=[ ]*\):*/\1/;
9658 DEFS=-DHAVE_CONFIG_H
9662 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9663 # 1. Remove the extension, and $U if already installed.
9664 ac_i=`echo "$ac_i" |
9665 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9667 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9668 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9672 LTLIBOBJS=$ac_ltlibobjs
9675 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9676 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9677 Usually this means the macro was only invoked conditionally." >&5
9678 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9679 Usually this means the macro was only invoked conditionally." >&2;}
9680 { (exit 1); exit 1; }; }
9682 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9683 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9684 Usually this means the macro was only invoked conditionally." >&5
9685 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9686 Usually this means the macro was only invoked conditionally." >&2;}
9687 { (exit 1); exit 1; }; }
9689 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9690 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
9691 Usually this means the macro was only invoked conditionally." >&5
9692 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
9693 Usually this means the macro was only invoked conditionally." >&2;}
9694 { (exit 1); exit 1; }; }
9697 : ${CONFIG_STATUS=./config.status}
9698 ac_clean_files_save=$ac_clean_files
9699 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9700 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9701 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9702 cat >$CONFIG_STATUS <<_ACEOF
9704 # Generated by $as_me.
9705 # Run this file to recreate the current configuration.
9706 # Compiler output produced by configure, useful for debugging
9707 # configure, is in config.log if it exists.
9712 SHELL=\${CONFIG_SHELL-$SHELL}
9715 cat >>$CONFIG_STATUS <<\_ACEOF
9716 ## --------------------- ##
9717 ## M4sh Initialization. ##
9718 ## --------------------- ##
9720 # Be Bourne compatible
9721 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9724 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9725 # is contrary to our usage. Disable this feature.
9726 alias -g '${1+"$@"}'='"$@"'
9727 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9730 DUALCASE=1; export DUALCASE # for MKS sh
9732 # Support unset when possible.
9733 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9740 # Work around bugs in pre-3.0 UWIN ksh.
9741 $as_unset ENV MAIL MAILPATH
9748 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9749 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9750 LC_TELEPHONE LC_TIME
9752 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9753 eval $as_var=C; export $as_var
9759 # Required to use basename.
9760 if expr a : '\(a\)' >/dev/null 2>&1; then
9766 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9767 as_basename=basename
9773 # Name of the executable.
9774 as_me=`$as_basename "$0" ||
9775 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9776 X"$0" : 'X\(//\)$' \| \
9777 X"$0" : 'X\(/\)$' \| \
9778 . : '\(.\)' 2>/dev/null ||
9780 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9781 /^X\/\(\/\/\)$/{ s//\1/; q; }
9782 /^X\/\(\/\).*/{ s//\1/; q; }
9786 # PATH needs CR, and LINENO needs CR and PATH.
9787 # Avoid depending upon Character Ranges.
9788 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9789 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9790 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9791 as_cr_digits='0123456789'
9792 as_cr_alnum=$as_cr_Letters$as_cr_digits
9794 # The user is always right.
9795 if test "${PATH_SEPARATOR+set}" != set; then
9796 echo "#! /bin/sh" >conf$$.sh
9797 echo "exit 0" >>conf$$.sh
9799 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9810 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9811 test "x$as_lineno_1" != "x$as_lineno_2" &&
9812 test "x$as_lineno_3" = "x$as_lineno_2" || {
9813 # Find who we are. Look in the path if we contain no path at all
9816 *[\\/]* ) as_myself=$0 ;;
9817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821 test -z "$as_dir" && as_dir=.
9822 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9827 # We did not find ourselves, most probably we were run as `sh COMMAND'
9828 # in which case we are not to be found in the path.
9829 if test "x$as_myself" = x; then
9832 if test ! -f "$as_myself"; then
9833 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9834 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9835 { (exit 1); exit 1; }; }
9837 case $CONFIG_SHELL in
9839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9840 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9843 test -z "$as_dir" && as_dir=.
9844 for as_base in sh bash ksh sh5; do
9847 if ("$as_dir/$as_base" -c '
9850 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9851 test "x$as_lineno_1" != "x$as_lineno_2" &&
9852 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9853 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9854 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9855 CONFIG_SHELL=$as_dir/$as_base
9857 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9865 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9866 # uniformly replaced by the line number. The first 'sed' inserts a
9867 # line-number line before each line; the second 'sed' does the real
9868 # work. The second script uses 'N' to pair each line-number line
9869 # with the numbered line, and appends trailing '-' during
9870 # substitution so that $LINENO is not a special case at line end.
9871 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9872 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9873 sed '=' <$as_myself |
9878 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9881 s,^['$as_cr_digits']*\n,,
9883 chmod +x $as_me.lineno ||
9884 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9885 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9886 { (exit 1); exit 1; }; }
9888 # Don't try to exec as it changes $[0], causing all sort of problems
9889 # (the dirname of $[0] is not the place where we might find the
9890 # original and so on. Autoconf is especially sensible to this).
9892 # Exit status is that of the last command.
9897 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9898 *c*,-n*) ECHO_N= ECHO_C='
9900 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9901 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9904 if expr a : '\(a\)' >/dev/null 2>&1; then
9910 rm -f conf$$ conf$$.exe conf$$.file
9912 if ln -s conf$$.file conf$$ 2>/dev/null; then
9913 # We could just check for DJGPP; but this test a) works b) is more generic
9914 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9915 if test -f conf$$.exe; then
9916 # Don't use ln at all; we don't have any links
9921 elif ln conf$$.file conf$$ 2>/dev/null; then
9926 rm -f conf$$ conf$$.exe conf$$.file
9928 if mkdir -p . 2>/dev/null; then
9931 test -d ./-p && rmdir ./-p
9935 as_executable_p="test -f"
9937 # Sed expression to map a string onto a valid CPP name.
9938 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9940 # Sed expression to map a string onto a valid variable name.
9941 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9945 # We need space, tab and new line, in precisely that order.
9955 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9956 # report actual input values of CONFIG_FILES etc. instead of their
9957 # values after options handling. Logging --version etc. is OK.
9961 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9962 ## Running $as_me. ##
9967 This file was extended by $as_me, which was
9968 generated by GNU Autoconf 2.59. Invocation command line was
9970 CONFIG_FILES = $CONFIG_FILES
9971 CONFIG_HEADERS = $CONFIG_HEADERS
9972 CONFIG_LINKS = $CONFIG_LINKS
9973 CONFIG_COMMANDS = $CONFIG_COMMANDS
9977 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9981 # Files that config.status was made for.
9982 if test -n "$ac_config_files"; then
9983 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9986 if test -n "$ac_config_headers"; then
9987 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9990 if test -n "$ac_config_links"; then
9991 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9994 if test -n "$ac_config_commands"; then
9995 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9998 cat >>$CONFIG_STATUS <<\_ACEOF
10001 \`$as_me' instantiates files from templates according to the
10002 current configuration.
10004 Usage: $0 [OPTIONS] [FILE]...
10006 -h, --help print this help, then exit
10007 -V, --version print version number, then exit
10008 -q, --quiet do not print progress messages
10009 -d, --debug don't remove temporary files
10010 --recheck update $as_me by reconfiguring in the same conditions
10011 --file=FILE[:TEMPLATE]
10012 instantiate the configuration file FILE
10013 --header=FILE[:TEMPLATE]
10014 instantiate the configuration header FILE
10016 Configuration files:
10019 Configuration headers:
10022 Configuration commands:
10025 Report bugs to <bug-autoconf@gnu.org>."
10028 cat >>$CONFIG_STATUS <<_ACEOF
10031 configured by $0, generated by GNU Autoconf 2.59,
10032 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10034 Copyright (C) 2003 Free Software Foundation, Inc.
10035 This config.status script is free software; the Free Software Foundation
10036 gives unlimited permission to copy, distribute and modify it."
10041 cat >>$CONFIG_STATUS <<\_ACEOF
10042 # If no file are specified by the user, then we need to provide default
10043 # value. By we need to know if files were specified by the user.
10049 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10050 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10058 *) # This is not an option, so the user has probably given explicit
10061 ac_need_defaults=false;;
10065 # Handling of the options.
10067 cat >>$CONFIG_STATUS <<\_ACEOF
10068 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10070 --version | --vers* | -V )
10071 echo "$ac_cs_version"; exit 0 ;;
10073 # Conflict between --help and --header
10074 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10075 Try \`$0 --help' for more information." >&5
10076 echo "$as_me: error: ambiguous option: $1
10077 Try \`$0 --help' for more information." >&2;}
10078 { (exit 1); exit 1; }; };;
10079 --help | --hel | -h )
10080 echo "$ac_cs_usage"; exit 0 ;;
10081 --debug | --d* | -d )
10083 --file | --fil | --fi | --f )
10085 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10086 ac_need_defaults=false;;
10087 --header | --heade | --head | --hea )
10089 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10090 ac_need_defaults=false;;
10091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10092 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10095 # This is an error.
10096 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10097 Try \`$0 --help' for more information." >&5
10098 echo "$as_me: error: unrecognized option: $1
10099 Try \`$0 --help' for more information." >&2;}
10100 { (exit 1); exit 1; }; } ;;
10102 *) ac_config_targets="$ac_config_targets $1" ;;
10108 ac_configure_extra_args=
10110 if $ac_cs_silent; then
10112 ac_configure_extra_args="$ac_configure_extra_args --silent"
10116 cat >>$CONFIG_STATUS <<_ACEOF
10117 if \$ac_cs_recheck; then
10118 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10119 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10124 cat >>$CONFIG_STATUS <<_ACEOF
10126 # INIT-COMMANDS section.
10129 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10135 cat >>$CONFIG_STATUS <<\_ACEOF
10136 for ac_config_target in $ac_config_targets
10138 case "$ac_config_target" in
10139 # Handling of arguments.
10140 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10141 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
10142 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10143 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10144 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
10145 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10146 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10147 { (exit 1); exit 1; }; };;
10151 # If the user did not use the arguments to specify the items to instantiate,
10152 # then the envvar interface is used. Set only those that are not.
10153 # We use the long form for the default assignment because of an extremely
10154 # bizarre bug on SunOS 4.1.3.
10155 if $ac_need_defaults; then
10156 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10157 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10158 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10161 # Have a temporary directory for convenience. Make it in the build tree
10162 # simply because there is no reason to put it here, and in addition,
10163 # creating and moving files from /tmp can sometimes cause problems.
10164 # Create a temporary directory, and hook for its removal unless debugging.
10167 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10168 trap '{ (exit 1); exit 1; }' 1 2 13 15
10171 # Create a (secure) tmp directory for tmp files.
10174 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10175 test -n "$tmp" && test -d "$tmp"
10178 tmp=./confstat$$-$RANDOM
10179 (umask 077 && mkdir $tmp)
10182 echo "$me: cannot create a temporary directory in ." >&2
10183 { (exit 1); exit 1; }
10188 cat >>$CONFIG_STATUS <<_ACEOF
10191 # CONFIG_FILES section.
10194 # No need to generate the scripts if there are no CONFIG_FILES.
10195 # This happens for instance when ./config.status config.h
10196 if test -n "\$CONFIG_FILES"; then
10197 # Protect against being on the right side of a sed subst in config.status.
10198 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10199 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10200 s,@SHELL@,$SHELL,;t t
10201 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10202 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10203 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10204 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10205 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10206 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10207 s,@exec_prefix@,$exec_prefix,;t t
10208 s,@prefix@,$prefix,;t t
10209 s,@program_transform_name@,$program_transform_name,;t t
10210 s,@bindir@,$bindir,;t t
10211 s,@sbindir@,$sbindir,;t t
10212 s,@libexecdir@,$libexecdir,;t t
10213 s,@datadir@,$datadir,;t t
10214 s,@sysconfdir@,$sysconfdir,;t t
10215 s,@sharedstatedir@,$sharedstatedir,;t t
10216 s,@localstatedir@,$localstatedir,;t t
10217 s,@libdir@,$libdir,;t t
10218 s,@includedir@,$includedir,;t t
10219 s,@oldincludedir@,$oldincludedir,;t t
10220 s,@infodir@,$infodir,;t t
10221 s,@mandir@,$mandir,;t t
10222 s,@build_alias@,$build_alias,;t t
10223 s,@host_alias@,$host_alias,;t t
10224 s,@target_alias@,$target_alias,;t t
10225 s,@DEFS@,$DEFS,;t t
10226 s,@ECHO_C@,$ECHO_C,;t t
10227 s,@ECHO_N@,$ECHO_N,;t t
10228 s,@ECHO_T@,$ECHO_T,;t t
10229 s,@LIBS@,$LIBS,;t t
10230 s,@build@,$build,;t t
10231 s,@build_cpu@,$build_cpu,;t t
10232 s,@build_vendor@,$build_vendor,;t t
10233 s,@build_os@,$build_os,;t t
10234 s,@host@,$host,;t t
10235 s,@host_cpu@,$host_cpu,;t t
10236 s,@host_vendor@,$host_vendor,;t t
10237 s,@host_os@,$host_os,;t t
10238 s,@target@,$target,;t t
10239 s,@target_cpu@,$target_cpu,;t t
10240 s,@target_vendor@,$target_vendor,;t t
10241 s,@target_os@,$target_os,;t t
10243 s,@CFLAGS@,$CFLAGS,;t t
10244 s,@LDFLAGS@,$LDFLAGS,;t t
10245 s,@CPPFLAGS@,$CPPFLAGS,;t t
10246 s,@ac_ct_CC@,$ac_ct_CC,;t t
10247 s,@EXEEXT@,$EXEEXT,;t t
10248 s,@OBJEXT@,$OBJEXT,;t t
10249 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10250 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10251 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10252 s,@CYGPATH_W@,$CYGPATH_W,;t t
10253 s,@PACKAGE@,$PACKAGE,;t t
10254 s,@VERSION@,$VERSION,;t t
10255 s,@ACLOCAL@,$ACLOCAL,;t t
10256 s,@AUTOCONF@,$AUTOCONF,;t t
10257 s,@AUTOMAKE@,$AUTOMAKE,;t t
10258 s,@AUTOHEADER@,$AUTOHEADER,;t t
10259 s,@MAKEINFO@,$MAKEINFO,;t t
10260 s,@AMTAR@,$AMTAR,;t t
10261 s,@install_sh@,$install_sh,;t t
10262 s,@STRIP@,$STRIP,;t t
10263 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10264 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10266 s,@SET_MAKE@,$SET_MAKE,;t t
10267 s,@am__leading_dot@,$am__leading_dot,;t t
10268 s,@DEPDIR@,$DEPDIR,;t t
10269 s,@am__include@,$am__include,;t t
10270 s,@am__quote@,$am__quote,;t t
10271 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10272 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10273 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10274 s,@CCDEPMODE@,$CCDEPMODE,;t t
10275 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10276 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10277 s,@LN_S@,$LN_S,;t t
10278 s,@RANLIB@,$RANLIB,;t t
10279 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10280 s,@LIBTOOL@,$LIBTOOL,;t t
10281 s,@use_sysroot@,$use_sysroot,;t t
10282 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
10283 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
10284 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
10286 s,@EGREP@,$EGREP,;t t
10287 s,@ALLOCA@,$ALLOCA,;t t
10288 s,@USE_NLS@,$USE_NLS,;t t
10289 s,@MSGFMT@,$MSGFMT,;t t
10290 s,@GMSGFMT@,$GMSGFMT,;t t
10291 s,@XGETTEXT@,$XGETTEXT,;t t
10292 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
10293 s,@CATALOGS@,$CATALOGS,;t t
10294 s,@CATOBJEXT@,$CATOBJEXT,;t t
10295 s,@DATADIRNAME@,$DATADIRNAME,;t t
10296 s,@GMOFILES@,$GMOFILES,;t t
10297 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
10298 s,@INTLDEPS@,$INTLDEPS,;t t
10299 s,@INTLLIBS@,$INTLLIBS,;t t
10300 s,@INTLOBJS@,$INTLOBJS,;t t
10301 s,@POFILES@,$POFILES,;t t
10302 s,@POSUB@,$POSUB,;t t
10303 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
10304 s,@GT_NO@,$GT_NO,;t t
10305 s,@GT_YES@,$GT_YES,;t t
10306 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10308 s,@YACC@,$YACC,;t t
10310 s,@LEXLIB@,$LEXLIB,;t t
10311 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10312 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10313 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10314 s,@MAINT@,$MAINT,;t t
10315 s,@HDEFINES@,$HDEFINES,;t t
10316 s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
10317 s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
10318 s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
10319 s,@STRINGIFY@,$STRINGIFY,;t t
10320 s,@EMUL@,$EMUL,;t t
10321 s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
10322 s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
10323 s,@LIB_PATH@,$LIB_PATH,;t t
10324 s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
10325 s,@TESTBFDLIB@,$TESTBFDLIB,;t t
10326 s,@LIBOBJS@,$LIBOBJS,;t t
10327 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10334 cat >>$CONFIG_STATUS <<\_ACEOF
10335 # Split the substitutions into bite-sized pieces for seds with
10336 # small command number limits, like on Digital OSF/1 and HP-UX.
10337 ac_max_sed_lines=48
10338 ac_sed_frag=1 # Number of current file.
10339 ac_beg=1 # First line for current file.
10340 ac_end=$ac_max_sed_lines # Line after last line for current file.
10343 while $ac_more_lines; do
10344 if test $ac_beg -gt 1; then
10345 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10347 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10349 if test ! -s $tmp/subs.frag; then
10350 ac_more_lines=false
10352 # The purpose of the label and of the branching condition is to
10353 # speed up the sed processing (if there are no `@' at all, there
10354 # is no need to browse any of the substitutions).
10355 # These are the two extra sed commands mentioned above.
10357 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10358 if test -z "$ac_sed_cmds"; then
10359 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10361 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10363 ac_sed_frag=`expr $ac_sed_frag + 1`
10365 ac_end=`expr $ac_end + $ac_max_sed_lines`
10368 if test -z "$ac_sed_cmds"; then
10371 fi # test -n "$CONFIG_FILES"
10374 cat >>$CONFIG_STATUS <<\_ACEOF
10375 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10376 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10378 - | *:- | *:-:* ) # input from stdin
10380 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10381 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10382 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10383 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10384 * ) ac_file_in=$ac_file.in ;;
10387 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10388 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10389 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10390 X"$ac_file" : 'X\(//\)[^/]' \| \
10391 X"$ac_file" : 'X\(//\)$' \| \
10392 X"$ac_file" : 'X\(/\)' \| \
10393 . : '\(.\)' 2>/dev/null ||
10395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10396 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10397 /^X\(\/\/\)$/{ s//\1/; q; }
10398 /^X\(\/\).*/{ s//\1/; q; }
10400 { if $as_mkdir_p; then
10405 while test ! -d "$as_dir"; do
10406 as_dirs="$as_dir $as_dirs"
10407 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10408 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10409 X"$as_dir" : 'X\(//\)[^/]' \| \
10410 X"$as_dir" : 'X\(//\)$' \| \
10411 X"$as_dir" : 'X\(/\)' \| \
10412 . : '\(.\)' 2>/dev/null ||
10414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10415 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10416 /^X\(\/\/\)$/{ s//\1/; q; }
10417 /^X\(\/\).*/{ s//\1/; q; }
10420 test ! -n "$as_dirs" || mkdir $as_dirs
10421 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10422 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10423 { (exit 1); exit 1; }; }; }
10427 if test "$ac_dir" != .; then
10428 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10429 # A "../" for each directory in $ac_dir_suffix.
10430 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10432 ac_dir_suffix= ac_top_builddir=
10436 .) # No --srcdir option. We are building in place.
10438 if test -z "$ac_top_builddir"; then
10441 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10443 [\\/]* | ?:[\\/]* ) # Absolute path.
10444 ac_srcdir=$srcdir$ac_dir_suffix;
10445 ac_top_srcdir=$srcdir ;;
10446 *) # Relative path.
10447 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10448 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10451 # Do not use `cd foo && pwd` to compute absolute paths, because
10452 # the directories may not exist.
10454 .) ac_abs_builddir="$ac_dir";;
10457 .) ac_abs_builddir=`pwd`;;
10458 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10459 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10462 case $ac_abs_builddir in
10463 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10465 case ${ac_top_builddir}. in
10466 .) ac_abs_top_builddir=$ac_abs_builddir;;
10467 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10468 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10471 case $ac_abs_builddir in
10472 .) ac_abs_srcdir=$ac_srcdir;;
10475 .) ac_abs_srcdir=$ac_abs_builddir;;
10476 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10477 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10480 case $ac_abs_builddir in
10481 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10483 case $ac_top_srcdir in
10484 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10485 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10486 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10492 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10493 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10496 if test x"$ac_file" != x-; then
10497 { echo "$as_me:$LINENO: creating $ac_file" >&5
10498 echo "$as_me: creating $ac_file" >&6;}
10501 # Let's still pretend it is `configure' which instantiates (i.e., don't
10502 # use $as_me), people would be surprised to read:
10503 # /* config.h. Generated by config.status. */
10504 if test x"$ac_file" = x-; then
10507 configure_input="$ac_file. "
10509 configure_input=$configure_input"Generated from `echo $ac_file_in |
10510 sed 's,.*/,,'` by configure."
10512 # First look for the input files in the build tree, otherwise in the
10514 ac_file_inputs=`IFS=:
10515 for f in $ac_file_in; do
10517 -) echo $tmp/stdin ;;
10519 # Absolute (can't be DOS-style, as IFS=:)
10520 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10521 echo "$as_me: error: cannot find input file: $f" >&2;}
10522 { (exit 1); exit 1; }; }
10525 if test -f "$f"; then
10528 elif test -f "$srcdir/$f"; then
10533 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10534 echo "$as_me: error: cannot find input file: $f" >&2;}
10535 { (exit 1); exit 1; }; }
10538 done` || { (exit 1); exit 1; }
10540 cat >>$CONFIG_STATUS <<_ACEOF
10544 cat >>$CONFIG_STATUS <<\_ACEOF
10546 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10547 s,@configure_input@,$configure_input,;t t
10548 s,@srcdir@,$ac_srcdir,;t t
10549 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10550 s,@top_srcdir@,$ac_top_srcdir,;t t
10551 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10552 s,@builddir@,$ac_builddir,;t t
10553 s,@abs_builddir@,$ac_abs_builddir,;t t
10554 s,@top_builddir@,$ac_top_builddir,;t t
10555 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10556 s,@INSTALL@,$ac_INSTALL,;t t
10557 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10559 if test x"$ac_file" != x-; then
10560 mv $tmp/out $ac_file
10568 cat >>$CONFIG_STATUS <<\_ACEOF
10571 # CONFIG_HEADER section.
10574 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10575 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10577 # ac_d sets the value in "#define NAME VALUE" lines.
10578 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10579 ac_dB='[ ].*$,\1#\2'
10582 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10583 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10584 ac_uB='$,\1#\2define\3'
10588 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10589 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10591 - | *:- | *:-:* ) # input from stdin
10593 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10594 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10595 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10596 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10597 * ) ac_file_in=$ac_file.in ;;
10600 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10601 echo "$as_me: creating $ac_file" >&6;}
10603 # First look for the input files in the build tree, otherwise in the
10605 ac_file_inputs=`IFS=:
10606 for f in $ac_file_in; do
10608 -) echo $tmp/stdin ;;
10610 # Absolute (can't be DOS-style, as IFS=:)
10611 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10612 echo "$as_me: error: cannot find input file: $f" >&2;}
10613 { (exit 1); exit 1; }; }
10614 # Do quote $f, to prevent DOS paths from being IFS'd.
10617 if test -f "$f"; then
10620 elif test -f "$srcdir/$f"; then
10625 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10626 echo "$as_me: error: cannot find input file: $f" >&2;}
10627 { (exit 1); exit 1; }; }
10630 done` || { (exit 1); exit 1; }
10631 # Remove the trailing spaces.
10632 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10636 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10637 # `conftest.undefs', that substitutes the proper values into
10638 # config.h.in to produce config.h. The first handles `#define'
10639 # templates, and the second `#undef' templates.
10640 # And first: Protect against being on the right side of a sed subst in
10641 # config.status. Protect against being in an unquoted here document
10642 # in config.status.
10643 rm -f conftest.defines conftest.undefs
10644 # Using a here document instead of a string reduces the quoting nightmare.
10645 # Putting comments in sed scripts is not portable.
10647 # `end' is used to avoid that the second main sed command (meant for
10648 # 0-ary CPP macros) applies to n-ary macro definitions.
10649 # See the Autoconf documentation for `clear'.
10650 cat >confdef2sed.sed <<\_ACEOF
10655 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10657 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10660 # If some macros were called several times there might be several times
10661 # the same #defines, which is useless. Nevertheless, we may not want to
10662 # sort them, since we want the *last* AC-DEFINE to be honored.
10663 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10664 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10665 rm -f confdef2sed.sed
10667 # This sed command replaces #undef with comments. This is necessary, for
10668 # example, in the case of _POSIX_SOURCE, which is predefined and required
10669 # on some systems where configure will not decide to define it.
10670 cat >>conftest.undefs <<\_ACEOF
10671 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10674 # Break up conftest.defines because some shells have a limit on the size
10675 # of here documents, and old seds have small limits too (100 cmds).
10676 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10677 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10678 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10679 echo ' :' >>$CONFIG_STATUS
10680 rm -f conftest.tail
10681 while grep . conftest.defines >/dev/null
10683 # Write a limited-size here document to $tmp/defines.sed.
10684 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10685 # Speed up: don't consider the non `#define' lines.
10686 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10687 # Work around the forget-to-reset-the-flag bug.
10688 echo 't clr' >>$CONFIG_STATUS
10689 echo ': clr' >>$CONFIG_STATUS
10690 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10692 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10694 mv $tmp/out $tmp/in
10696 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10697 rm -f conftest.defines
10698 mv conftest.tail conftest.defines
10700 rm -f conftest.defines
10701 echo ' fi # grep' >>$CONFIG_STATUS
10702 echo >>$CONFIG_STATUS
10704 # Break up conftest.undefs because some shells have a limit on the size
10705 # of here documents, and old seds have small limits too (100 cmds).
10706 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10707 rm -f conftest.tail
10708 while grep . conftest.undefs >/dev/null
10710 # Write a limited-size here document to $tmp/undefs.sed.
10711 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10712 # Speed up: don't consider the non `#undef'
10713 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10714 # Work around the forget-to-reset-the-flag bug.
10715 echo 't clr' >>$CONFIG_STATUS
10716 echo ': clr' >>$CONFIG_STATUS
10717 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10719 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10721 mv $tmp/out $tmp/in
10723 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10724 rm -f conftest.undefs
10725 mv conftest.tail conftest.undefs
10727 rm -f conftest.undefs
10729 cat >>$CONFIG_STATUS <<\_ACEOF
10730 # Let's still pretend it is `configure' which instantiates (i.e., don't
10731 # use $as_me), people would be surprised to read:
10732 # /* config.h. Generated by config.status. */
10733 if test x"$ac_file" = x-; then
10734 echo "/* Generated by configure. */" >$tmp/config.h
10736 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10738 cat $tmp/in >>$tmp/config.h
10740 if test x"$ac_file" != x-; then
10741 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10742 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10743 echo "$as_me: $ac_file is unchanged" >&6;}
10745 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10746 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10747 X"$ac_file" : 'X\(//\)[^/]' \| \
10748 X"$ac_file" : 'X\(//\)$' \| \
10749 X"$ac_file" : 'X\(/\)' \| \
10750 . : '\(.\)' 2>/dev/null ||
10752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10753 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10754 /^X\(\/\/\)$/{ s//\1/; q; }
10755 /^X\(\/\).*/{ s//\1/; q; }
10757 { if $as_mkdir_p; then
10762 while test ! -d "$as_dir"; do
10763 as_dirs="$as_dir $as_dirs"
10764 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10765 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10766 X"$as_dir" : 'X\(//\)[^/]' \| \
10767 X"$as_dir" : 'X\(//\)$' \| \
10768 X"$as_dir" : 'X\(/\)' \| \
10769 . : '\(.\)' 2>/dev/null ||
10771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10772 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10773 /^X\(\/\/\)$/{ s//\1/; q; }
10774 /^X\(\/\).*/{ s//\1/; q; }
10777 test ! -n "$as_dirs" || mkdir $as_dirs
10778 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10779 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10780 { (exit 1); exit 1; }; }; }
10783 mv $tmp/config.h $ac_file
10787 rm -f $tmp/config.h
10789 # Compute $ac_file's index in $config_headers.
10791 for _am_header in $config_headers :; do
10792 case $_am_header in
10793 $ac_file | $ac_file:* )
10796 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10799 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10800 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10801 X$ac_file : 'X\(//\)[^/]' \| \
10802 X$ac_file : 'X\(//\)$' \| \
10803 X$ac_file : 'X\(/\)' \| \
10804 . : '\(.\)' 2>/dev/null ||
10806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10808 /^X\(\/\/\)$/{ s//\1/; q; }
10809 /^X\(\/\).*/{ s//\1/; q; }
10810 s/.*/./; q'`/stamp-h$_am_stamp_count
10813 cat >>$CONFIG_STATUS <<\_ACEOF
10816 # CONFIG_COMMANDS section.
10818 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10819 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10820 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10821 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10822 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10823 X"$ac_dest" : 'X\(//\)[^/]' \| \
10824 X"$ac_dest" : 'X\(//\)$' \| \
10825 X"$ac_dest" : 'X\(/\)' \| \
10826 . : '\(.\)' 2>/dev/null ||
10828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10829 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10830 /^X\(\/\/\)$/{ s//\1/; q; }
10831 /^X\(\/\).*/{ s//\1/; q; }
10833 { if $as_mkdir_p; then
10838 while test ! -d "$as_dir"; do
10839 as_dirs="$as_dir $as_dirs"
10840 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10841 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10842 X"$as_dir" : 'X\(//\)[^/]' \| \
10843 X"$as_dir" : 'X\(//\)$' \| \
10844 X"$as_dir" : 'X\(/\)' \| \
10845 . : '\(.\)' 2>/dev/null ||
10847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10848 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10849 /^X\(\/\/\)$/{ s//\1/; q; }
10850 /^X\(\/\).*/{ s//\1/; q; }
10853 test ! -n "$as_dirs" || mkdir $as_dirs
10854 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10855 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10856 { (exit 1); exit 1; }; }; }
10860 if test "$ac_dir" != .; then
10861 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10862 # A "../" for each directory in $ac_dir_suffix.
10863 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10865 ac_dir_suffix= ac_top_builddir=
10869 .) # No --srcdir option. We are building in place.
10871 if test -z "$ac_top_builddir"; then
10874 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10876 [\\/]* | ?:[\\/]* ) # Absolute path.
10877 ac_srcdir=$srcdir$ac_dir_suffix;
10878 ac_top_srcdir=$srcdir ;;
10879 *) # Relative path.
10880 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10881 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10884 # Do not use `cd foo && pwd` to compute absolute paths, because
10885 # the directories may not exist.
10887 .) ac_abs_builddir="$ac_dir";;
10890 .) ac_abs_builddir=`pwd`;;
10891 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10892 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10895 case $ac_abs_builddir in
10896 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10898 case ${ac_top_builddir}. in
10899 .) ac_abs_top_builddir=$ac_abs_builddir;;
10900 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10901 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10904 case $ac_abs_builddir in
10905 .) ac_abs_srcdir=$ac_srcdir;;
10908 .) ac_abs_srcdir=$ac_abs_builddir;;
10909 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10910 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10913 case $ac_abs_builddir in
10914 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10916 case $ac_top_srcdir in
10917 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10918 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10919 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10924 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10925 echo "$as_me: executing $ac_dest commands" >&6;}
10927 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10928 # Strip MF so we end up with the name of the file.
10929 mf=`echo "$mf" | sed -e 's/:.*$//'`
10930 # Check whether this is an Automake generated Makefile or not.
10931 # We used to match only the files named `Makefile.in', but
10932 # some people rename them; so instead we look at the file content.
10933 # Grep'ing the first line is not enough: some people post-process
10934 # each Makefile.in and add a new line on top of each file to say so.
10935 # So let's grep whole file.
10936 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10937 dirpart=`(dirname "$mf") 2>/dev/null ||
10938 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10939 X"$mf" : 'X\(//\)[^/]' \| \
10940 X"$mf" : 'X\(//\)$' \| \
10941 X"$mf" : 'X\(/\)' \| \
10942 . : '\(.\)' 2>/dev/null ||
10944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10945 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10946 /^X\(\/\/\)$/{ s//\1/; q; }
10947 /^X\(\/\).*/{ s//\1/; q; }
10952 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10953 # Extract the definition of DEP_FILES from the Makefile without
10955 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10956 test -z "$DEPDIR" && continue
10957 # When using ansi2knr, U may be empty or an underscore; expand it
10958 U=`sed -n -e '/^U = / s///p' < "$mf"`
10959 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10960 # We invoke sed twice because it is the simplest approach to
10961 # changing $(DEPDIR) to its actual value in the expansion.
10962 for file in `sed -n -e '
10963 /^DEP_FILES = .*\\\\$/ {
10972 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10973 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10974 # Make sure the directory exists.
10975 test -f "$dirpart/$file" && continue
10976 fdir=`(dirname "$file") 2>/dev/null ||
10977 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10978 X"$file" : 'X\(//\)[^/]' \| \
10979 X"$file" : 'X\(//\)$' \| \
10980 X"$file" : 'X\(/\)' \| \
10981 . : '\(.\)' 2>/dev/null ||
10983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10984 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10985 /^X\(\/\/\)$/{ s//\1/; q; }
10986 /^X\(\/\).*/{ s//\1/; q; }
10988 { if $as_mkdir_p; then
10989 mkdir -p $dirpart/$fdir
10991 as_dir=$dirpart/$fdir
10993 while test ! -d "$as_dir"; do
10994 as_dirs="$as_dir $as_dirs"
10995 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10996 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10997 X"$as_dir" : 'X\(//\)[^/]' \| \
10998 X"$as_dir" : 'X\(//\)$' \| \
10999 X"$as_dir" : 'X\(/\)' \| \
11000 . : '\(.\)' 2>/dev/null ||
11002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11004 /^X\(\/\/\)$/{ s//\1/; q; }
11005 /^X\(\/\).*/{ s//\1/; q; }
11008 test ! -n "$as_dirs" || mkdir $as_dirs
11009 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11010 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11011 { (exit 1); exit 1; }; }; }
11013 # echo "creating $dirpart/$file"
11014 echo '# dummy' > "$dirpart/$file"
11018 default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
11023 cat >>$CONFIG_STATUS <<\_ACEOF
11025 { (exit 0); exit 0; }
11027 chmod +x $CONFIG_STATUS
11028 ac_clean_files=$ac_clean_files_save
11031 # configure is writing to config.log, and then calls config.status.
11032 # config.status does its own redirection, appending to config.log.
11033 # Unfortunately, on DOS this fails, as config.log is still kept open
11034 # by configure, so config.status won't be able to write to it; its
11035 # output is simply discarded. So we exec the FD to /dev/null,
11036 # effectively closing config.log, so it can be properly (re)opened and
11037 # appended to by config.status. When coming back to configure, we
11038 # need to make the FD available again.
11039 if test "$no_create" != yes; then
11041 ac_config_status_args=
11042 test "$silent" = yes &&
11043 ac_config_status_args="$ac_config_status_args --quiet"
11045 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11047 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11048 # would make configure fail if this is the last instruction.
11049 $ac_cs_success || { (exit 1); exit 1; }