2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
66 # Find who we are. Look in the path if we contain no directory separator.
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
157 if test $as_have_required = yes && (eval ":
167 as_func_ret_success () {
170 as_func_ret_failure () {
175 if as_func_success; then
179 echo as_func_success failed.
182 if as_func_failure; then
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
253 CONFIG_SHELL=$as_shell
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
280 as_func_ret_success () {
283 as_func_ret_failure () {
288 if as_func_success; then
292 echo as_func_success failed.
295 if as_func_failure; then
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
369 as_func_ret_success () {
372 as_func_ret_failure () {
377 if as_func_success; then
381 echo as_func_success failed.
384 if as_func_failure; then
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 echo positional parameters were not saved.
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 ECHO_C= ECHO_N= ECHO_T=
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
511 test -d ./-p && rmdir ./-p
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
555 SHELL=${CONFIG_SHELL-/bin/sh}
557 # Identity of this package.
564 ac_unique_file="sdcpp.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
569 # include <sys/types.h>
572 # include <sys/stat.h>
583 # if !STDC_HEADERS && HAVE_MEMORY_H
589 # include <strings.h>
592 # include <inttypes.h>
610 program_transform_name
672 build_install_headers_dir
703 ac_precious_vars='build_alias
713 # Initialize some variables set by options.
715 ac_init_version=false
716 # The variables have the same names as the options, with
717 # dashes changed to underlines.
725 program_transform_name=s,x,x,
733 # Installation directory options.
734 # These are left unexpanded so users can "make install exec_prefix=/foo"
735 # and all the variables that are supposed to be based on exec_prefix
736 # by default will actually change.
737 # Use braces instead of parens because sh, perl, etc. also accept them.
738 # (The list follows the same order as the GNU Coding Standards.)
739 bindir='${exec_prefix}/bin'
740 sbindir='${exec_prefix}/sbin'
741 libexecdir='${exec_prefix}/libexec'
742 datarootdir='${prefix}/share'
743 datadir='${datarootdir}'
744 sysconfdir='${prefix}/etc'
745 sharedstatedir='${prefix}/com'
746 localstatedir='${prefix}/var'
747 includedir='${prefix}/include'
748 oldincludedir='/usr/include'
749 docdir='${datarootdir}/doc/${PACKAGE}'
750 infodir='${datarootdir}/info'
755 libdir='${exec_prefix}/lib'
756 localedir='${datarootdir}/locale'
757 mandir='${datarootdir}/man'
763 # If the previous option needs an argument, assign it.
764 if test -n "$ac_prev"; then
765 eval $ac_prev=\$ac_option
771 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
775 # Accept the important Cygnus configure options, so we can diagnose typos.
777 case $ac_dashdash$ac_option in
781 -bindir | --bindir | --bindi | --bind | --bin | --bi)
783 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
786 -build | --build | --buil | --bui | --bu)
787 ac_prev=build_alias ;;
788 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
789 build_alias=$ac_optarg ;;
791 -cache-file | --cache-file | --cache-fil | --cache-fi \
792 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
793 ac_prev=cache_file ;;
794 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
795 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
796 cache_file=$ac_optarg ;;
799 cache_file=config.cache ;;
801 -datadir | --datadir | --datadi | --datad)
803 -datadir=* | --datadir=* | --datadi=* | --datad=*)
804 datadir=$ac_optarg ;;
806 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
807 | --dataroo | --dataro | --datar)
808 ac_prev=datarootdir ;;
809 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
810 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
811 datarootdir=$ac_optarg ;;
813 -disable-* | --disable-*)
814 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
815 # Reject names that are not valid shell variable names.
816 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
817 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
818 { (exit 1); exit 1; }; }
819 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
820 eval enable_$ac_feature=no ;;
822 -docdir | --docdir | --docdi | --doc | --do)
824 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
827 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
829 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
832 -enable-* | --enable-*)
833 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
834 # Reject names that are not valid shell variable names.
835 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
836 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
837 { (exit 1); exit 1; }; }
838 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
839 eval enable_$ac_feature=\$ac_optarg ;;
841 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
842 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
843 | --exec | --exe | --ex)
844 ac_prev=exec_prefix ;;
845 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
846 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
847 | --exec=* | --exe=* | --ex=*)
848 exec_prefix=$ac_optarg ;;
850 -gas | --gas | --ga | --g)
851 # Obsolete; use --with-gas.
854 -help | --help | --hel | --he | -h)
856 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
857 ac_init_help=recursive ;;
858 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
859 ac_init_help=short ;;
861 -host | --host | --hos | --ho)
862 ac_prev=host_alias ;;
863 -host=* | --host=* | --hos=* | --ho=*)
864 host_alias=$ac_optarg ;;
866 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
868 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
870 htmldir=$ac_optarg ;;
872 -includedir | --includedir | --includedi | --included | --include \
873 | --includ | --inclu | --incl | --inc)
874 ac_prev=includedir ;;
875 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
876 | --includ=* | --inclu=* | --incl=* | --inc=*)
877 includedir=$ac_optarg ;;
879 -infodir | --infodir | --infodi | --infod | --info | --inf)
881 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
882 infodir=$ac_optarg ;;
884 -libdir | --libdir | --libdi | --libd)
886 -libdir=* | --libdir=* | --libdi=* | --libd=*)
889 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
890 | --libexe | --libex | --libe)
891 ac_prev=libexecdir ;;
892 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
893 | --libexe=* | --libex=* | --libe=*)
894 libexecdir=$ac_optarg ;;
896 -localedir | --localedir | --localedi | --localed | --locale)
898 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
899 localedir=$ac_optarg ;;
901 -localstatedir | --localstatedir | --localstatedi | --localstated \
902 | --localstate | --localstat | --localsta | --localst | --locals)
903 ac_prev=localstatedir ;;
904 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
905 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
906 localstatedir=$ac_optarg ;;
908 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
910 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
914 # Obsolete; use --without-fp.
917 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
918 | --no-cr | --no-c | -n)
921 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
922 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
925 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
926 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
927 | --oldin | --oldi | --old | --ol | --o)
928 ac_prev=oldincludedir ;;
929 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
930 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
931 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
932 oldincludedir=$ac_optarg ;;
934 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
936 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
939 -program-prefix | --program-prefix | --program-prefi | --program-pref \
940 | --program-pre | --program-pr | --program-p)
941 ac_prev=program_prefix ;;
942 -program-prefix=* | --program-prefix=* | --program-prefi=* \
943 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
944 program_prefix=$ac_optarg ;;
946 -program-suffix | --program-suffix | --program-suffi | --program-suff \
947 | --program-suf | --program-su | --program-s)
948 ac_prev=program_suffix ;;
949 -program-suffix=* | --program-suffix=* | --program-suffi=* \
950 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
951 program_suffix=$ac_optarg ;;
953 -program-transform-name | --program-transform-name \
954 | --program-transform-nam | --program-transform-na \
955 | --program-transform-n | --program-transform- \
956 | --program-transform | --program-transfor \
957 | --program-transfo | --program-transf \
958 | --program-trans | --program-tran \
959 | --progr-tra | --program-tr | --program-t)
960 ac_prev=program_transform_name ;;
961 -program-transform-name=* | --program-transform-name=* \
962 | --program-transform-nam=* | --program-transform-na=* \
963 | --program-transform-n=* | --program-transform-=* \
964 | --program-transform=* | --program-transfor=* \
965 | --program-transfo=* | --program-transf=* \
966 | --program-trans=* | --program-tran=* \
967 | --progr-tra=* | --program-tr=* | --program-t=*)
968 program_transform_name=$ac_optarg ;;
970 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
972 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
975 -psdir | --psdir | --psdi | --psd | --ps)
977 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
981 | -silent | --silent | --silen | --sile | --sil)
984 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
986 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
988 sbindir=$ac_optarg ;;
990 -sharedstatedir | --sharedstatedir | --sharedstatedi \
991 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
992 | --sharedst | --shareds | --shared | --share | --shar \
994 ac_prev=sharedstatedir ;;
995 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
996 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
997 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
999 sharedstatedir=$ac_optarg ;;
1001 -site | --site | --sit)
1003 -site=* | --site=* | --sit=*)
1006 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1008 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1009 srcdir=$ac_optarg ;;
1011 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1012 | --syscon | --sysco | --sysc | --sys | --sy)
1013 ac_prev=sysconfdir ;;
1014 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1015 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1016 sysconfdir=$ac_optarg ;;
1018 -target | --target | --targe | --targ | --tar | --ta | --t)
1019 ac_prev=target_alias ;;
1020 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1021 target_alias=$ac_optarg ;;
1023 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1026 -version | --version | --versio | --versi | --vers | -V)
1027 ac_init_version=: ;;
1030 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1033 { echo "$as_me: error: invalid package name: $ac_package" >&2
1034 { (exit 1); exit 1; }; }
1035 ac_package=`echo $ac_package| sed 's/-/_/g'`
1036 eval with_$ac_package=\$ac_optarg ;;
1038 -without-* | --without-*)
1039 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1042 { echo "$as_me: error: invalid package name: $ac_package" >&2
1043 { (exit 1); exit 1; }; }
1044 ac_package=`echo $ac_package | sed 's/-/_/g'`
1045 eval with_$ac_package=no ;;
1048 # Obsolete; use --with-x.
1051 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1052 | --x-incl | --x-inc | --x-in | --x-i)
1053 ac_prev=x_includes ;;
1054 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1055 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1056 x_includes=$ac_optarg ;;
1058 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1059 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1060 ac_prev=x_libraries ;;
1061 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1062 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1063 x_libraries=$ac_optarg ;;
1065 -*) { echo "$as_me: error: unrecognized option: $ac_option
1066 Try \`$0 --help' for more information." >&2
1067 { (exit 1); exit 1; }; }
1071 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1075 { (exit 1); exit 1; }; }
1076 eval $ac_envvar=\$ac_optarg
1077 export $ac_envvar ;;
1080 # FIXME: should be removed in autoconf 3.0.
1081 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1082 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1084 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1090 if test -n "$ac_prev"; then
1091 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1092 { echo "$as_me: error: missing argument to $ac_option" >&2
1093 { (exit 1); exit 1; }; }
1096 # Be sure to have absolute directory names.
1097 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1098 datadir sysconfdir sharedstatedir localstatedir includedir \
1099 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1100 libdir localedir mandir
1102 eval ac_val=\$$ac_var
1104 [\\/$]* | ?:[\\/]* ) continue;;
1105 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1107 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1108 { (exit 1); exit 1; }; }
1111 # There might be people who depend on the old broken behavior: `$host'
1112 # used to hold the argument of --host etc.
1113 # FIXME: To remove some day.
1116 target=$target_alias
1118 # FIXME: To remove some day.
1119 if test "x$host_alias" != x; then
1120 if test "x$build_alias" = x; then
1121 cross_compiling=maybe
1122 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1123 If a cross compiler is detected then cross compile mode will be used." >&2
1124 elif test "x$build_alias" != "x$host_alias"; then
1130 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1132 test "$silent" = yes && exec 6>/dev/null
1135 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1136 ac_ls_di=`ls -di .` &&
1137 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1138 { echo "$as_me: error: Working directory cannot be determined" >&2
1139 { (exit 1); exit 1; }; }
1140 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1141 { echo "$as_me: error: pwd does not report name of working directory" >&2
1142 { (exit 1); exit 1; }; }
1145 # Find the source files, if location was not specified.
1146 if test -z "$srcdir"; then
1147 ac_srcdir_defaulted=yes
1148 # Try the directory containing this script, then the parent directory.
1149 ac_confdir=`$as_dirname -- "$0" ||
1150 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1151 X"$0" : 'X\(//\)[^/]' \| \
1152 X"$0" : 'X\(//\)$' \| \
1153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1173 if test ! -r "$srcdir/$ac_unique_file"; then
1177 ac_srcdir_defaulted=no
1179 if test ! -r "$srcdir/$ac_unique_file"; then
1180 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1181 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1182 { (exit 1); exit 1; }; }
1184 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1186 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1187 { (exit 1); exit 1; }; }
1189 # When building in place, set srcdir=.
1190 if test "$ac_abs_confdir" = "$ac_pwd"; then
1193 # Remove unnecessary trailing slashes from srcdir.
1194 # Double slashes in file names in object file debugging info
1195 # mess up M-x gdb in Emacs.
1197 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1199 for ac_var in $ac_precious_vars; do
1200 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1201 eval ac_env_${ac_var}_value=\$${ac_var}
1202 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1203 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1207 # Report the --help message.
1209 if test "$ac_init_help" = "long"; then
1210 # Omit some internal or obsolete options to make the list less imposing.
1211 # This message is too long to be a string in the A/UX 3.1 sh.
1213 \`configure' configures this package to adapt to many kinds of systems.
1215 Usage: $0 [OPTION]... [VAR=VALUE]...
1217 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1218 VAR=VALUE. See below for descriptions of some of the useful variables.
1220 Defaults for the options are specified in brackets.
1223 -h, --help display this help and exit
1224 --help=short display options specific to this package
1225 --help=recursive display the short help of all the included packages
1226 -V, --version display version information and exit
1227 -q, --quiet, --silent do not print \`checking...' messages
1228 --cache-file=FILE cache test results in FILE [disabled]
1229 -C, --config-cache alias for \`--cache-file=config.cache'
1230 -n, --no-create do not create output files
1231 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1233 Installation directories:
1234 --prefix=PREFIX install architecture-independent files in PREFIX
1235 [$ac_default_prefix]
1236 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1239 By default, \`make install' will install all the files in
1240 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1241 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1242 for instance \`--prefix=\$HOME'.
1244 For better control, use the options below.
1246 Fine tuning of the installation directories:
1247 --bindir=DIR user executables [EPREFIX/bin]
1248 --sbindir=DIR system admin executables [EPREFIX/sbin]
1249 --libexecdir=DIR program executables [EPREFIX/libexec]
1250 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1251 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1252 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1253 --libdir=DIR object code libraries [EPREFIX/lib]
1254 --includedir=DIR C header files [PREFIX/include]
1255 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1256 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1257 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1258 --infodir=DIR info documentation [DATAROOTDIR/info]
1259 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1260 --mandir=DIR man documentation [DATAROOTDIR/man]
1261 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1262 --htmldir=DIR html documentation [DOCDIR]
1263 --dvidir=DIR dvi documentation [DOCDIR]
1264 --pdfdir=DIR pdf documentation [DOCDIR]
1265 --psdir=DIR ps documentation [DOCDIR]
1271 --program-prefix=PREFIX prepend PREFIX to installed program names
1272 --program-suffix=SUFFIX append SUFFIX to installed program names
1273 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1277 if test -n "$ac_init_help"; then
1282 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1283 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1284 --enable-c-mbchar enable multibyte characters for C and C++
1285 --enable-maintainer-mode
1286 enable make rules and dependencies not useful
1287 (and sometimes confusing) to the casual installer
1290 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1291 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1292 --with-gnu-ld arrange to work with GNU ld.
1293 --with-ld arrange to use the specified ld (full pathname)
1294 --with-gnu-as arrange to work with GNU as
1295 --with-as arrange to use the specified as (full pathname)
1296 --with-stabs arrange to use stabs instead of host debug format
1297 --with-elf arrange to use ELF instead of host debug format
1298 --with-local-prefix=DIR specifies directory to put local include
1300 Some influential environment variables:
1301 CC C compiler command
1302 CFLAGS C compiler flags
1303 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1304 nonstandard directory <lib dir>
1305 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1306 you have headers in a nonstandard directory <include dir>
1309 Use these variables to override the choices made by `configure' or to help
1310 it to find libraries and programs with nonstandard names/locations.
1316 if test "$ac_init_help" = "recursive"; then
1317 # If there are subdirs, report their specific --help.
1318 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1319 test -d "$ac_dir" || continue
1323 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1325 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1326 # A ".." for each directory in $ac_dir_suffix.
1327 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1328 case $ac_top_builddir_sub in
1329 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1330 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1333 ac_abs_top_builddir=$ac_pwd
1334 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1335 # for backward compatibility:
1336 ac_top_builddir=$ac_top_build_prefix
1339 .) # We are building in place.
1341 ac_top_srcdir=$ac_top_builddir_sub
1342 ac_abs_top_srcdir=$ac_pwd ;;
1343 [\\/]* | ?:[\\/]* ) # Absolute name.
1344 ac_srcdir=$srcdir$ac_dir_suffix;
1345 ac_top_srcdir=$srcdir
1346 ac_abs_top_srcdir=$srcdir ;;
1348 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1349 ac_top_srcdir=$ac_top_build_prefix$srcdir
1350 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1352 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1354 cd "$ac_dir" || { ac_status=$?; continue; }
1355 # Check for guested configure.
1356 if test -f "$ac_srcdir/configure.gnu"; then
1358 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1359 elif test -f "$ac_srcdir/configure"; then
1361 $SHELL "$ac_srcdir/configure" --help=recursive
1363 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1365 cd "$ac_pwd" || { ac_status=$?; break; }
1369 test -n "$ac_init_help" && exit $ac_status
1370 if $ac_init_version; then
1373 generated by GNU Autoconf 2.60
1375 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1376 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1377 This configure script is free software; the Free Software Foundation
1378 gives unlimited permission to copy, distribute and modify it.
1382 cat >config.log <<_ACEOF
1383 This file contains any messages produced by compilers while
1384 running configure, to aid debugging if configure makes a mistake.
1386 It was created by $as_me, which was
1387 generated by GNU Autoconf 2.60. Invocation command line was
1399 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1400 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1401 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1402 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1403 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1405 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1406 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1408 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1409 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1410 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1411 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1412 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1413 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1414 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1422 test -z "$as_dir" && as_dir=.
1423 echo "PATH: $as_dir"
1439 # Keep a trace of the command line.
1440 # Strip out --no-create and --no-recursion so they do not pile up.
1441 # Strip out --silent because we don't want to record it for future runs.
1442 # Also quote any args containing shell meta-characters.
1443 # Make two passes to allow for proper duplicate-argument suppression.
1447 ac_must_keep_next=false
1453 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1454 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1455 | -silent | --silent | --silen | --sile | --sil)
1458 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1461 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1463 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1464 if test $ac_must_keep_next = true; then
1465 ac_must_keep_next=false # Got value, back to normal.
1468 *=* | --config-cache | -C | -disable-* | --disable-* \
1469 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1470 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1471 | -with-* | --with-* | -without-* | --without-* | --x)
1472 case "$ac_configure_args0 " in
1473 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1476 -* ) ac_must_keep_next=true ;;
1479 ac_configure_args="$ac_configure_args '$ac_arg'"
1484 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1485 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1487 # When interrupted or exit'd, cleanup temporary files, and complete
1488 # config.log. We remove comments because anyway the quotes in there
1489 # would cause problems or look ugly.
1490 # WARNING: Use '\'' to represent an apostrophe within the trap.
1491 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1492 trap 'exit_status=$?
1493 # Save into config.log some information that might help in debugging.
1498 ## ---------------- ##
1499 ## Cache variables. ##
1500 ## ---------------- ##
1503 # The following way of writing the cache mishandles newlines in values,
1505 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1506 eval ac_val=\$$ac_var
1510 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1511 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1514 _ | IFS | as_nl) ;; #(
1515 *) $as_unset $ac_var ;;
1520 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1521 *${as_nl}ac_space=\ *)
1523 "s/'\''/'\''\\\\'\'''\''/g;
1524 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1527 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1535 ## ----------------- ##
1536 ## Output variables. ##
1537 ## ----------------- ##
1540 for ac_var in $ac_subst_vars
1542 eval ac_val=\$$ac_var
1544 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1546 echo "$ac_var='\''$ac_val'\''"
1550 if test -n "$ac_subst_files"; then
1552 ## ------------------- ##
1553 ## File substitutions. ##
1554 ## ------------------- ##
1557 for ac_var in $ac_subst_files
1559 eval ac_val=\$$ac_var
1561 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1563 echo "$ac_var='\''$ac_val'\''"
1568 if test -s confdefs.h; then
1578 test "$ac_signal" != 0 &&
1579 echo "$as_me: caught signal $ac_signal"
1580 echo "$as_me: exit $exit_status"
1582 rm -f core *.core core.conftest.* &&
1583 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1586 for ac_signal in 1 2 13 15; do
1587 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1591 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1592 rm -f -r conftest* confdefs.h
1594 # Predefined preprocessor variables.
1596 cat >>confdefs.h <<_ACEOF
1597 #define PACKAGE_NAME "$PACKAGE_NAME"
1601 cat >>confdefs.h <<_ACEOF
1602 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1606 cat >>confdefs.h <<_ACEOF
1607 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1611 cat >>confdefs.h <<_ACEOF
1612 #define PACKAGE_STRING "$PACKAGE_STRING"
1616 cat >>confdefs.h <<_ACEOF
1617 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1621 # Let the site file select an alternate cache file if it wants to.
1622 # Prefer explicitly selected file to automatically selected ones.
1623 if test -n "$CONFIG_SITE"; then
1624 set x "$CONFIG_SITE"
1625 elif test "x$prefix" != xNONE; then
1626 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1628 set x "$ac_default_prefix/share/config.site" \
1629 "$ac_default_prefix/etc/config.site"
1634 if test -r "$ac_site_file"; then
1635 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1636 echo "$as_me: loading site script $ac_site_file" >&6;}
1637 sed 's/^/| /' "$ac_site_file" >&5
1642 if test -r "$cache_file"; then
1643 # Some versions of bash will fail to source /dev/null (special
1644 # files actually), so we avoid doing that.
1645 if test -f "$cache_file"; then
1646 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1647 echo "$as_me: loading cache $cache_file" >&6;}
1649 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1650 *) . "./$cache_file";;
1654 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1655 echo "$as_me: creating cache $cache_file" >&6;}
1659 # Check that the precious variables saved in the cache have kept the same
1661 ac_cache_corrupted=false
1662 for ac_var in $ac_precious_vars; do
1663 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1664 eval ac_new_set=\$ac_env_${ac_var}_set
1665 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1666 eval ac_new_val=\$ac_env_${ac_var}_value
1667 case $ac_old_set,$ac_new_set in
1669 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1670 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1671 ac_cache_corrupted=: ;;
1673 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1674 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1675 ac_cache_corrupted=: ;;
1678 if test "x$ac_old_val" != "x$ac_new_val"; then
1679 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1680 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1681 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1682 echo "$as_me: former value: $ac_old_val" >&2;}
1683 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1684 echo "$as_me: current value: $ac_new_val" >&2;}
1685 ac_cache_corrupted=:
1688 # Pass precious variables to config.status.
1689 if test "$ac_new_set" = set; then
1691 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1692 *) ac_arg=$ac_var=$ac_new_val ;;
1694 case " $ac_configure_args " in
1695 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1696 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1700 if $ac_cache_corrupted; then
1701 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1702 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1703 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1704 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1705 { (exit 1); exit 1; }; }
1725 ac_cpp='$CPP $CPPFLAGS'
1726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1731 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1736 symbolic_link='ln -s'
1739 # Check for additional parameters
1743 # Check whether --with-gnu-ld was given.
1744 if test "${with_gnu_ld+set}" = set; then
1745 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
1751 # With pre-defined ld
1753 # Check whether --with-ld was given.
1754 if test "${with_ld+set}" = set; then
1755 withval=$with_ld; DEFAULT_LINKER="$with_ld"
1758 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1759 if test ! -x "$DEFAULT_LINKER"; then
1760 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1761 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1762 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1766 cat >>confdefs.h <<_ACEOF
1767 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1774 # Check whether --with-gnu-as was given.
1775 if test "${with_gnu_as+set}" = set; then
1776 withval=$with_gnu_as; gas_flag="$with_gnu_as"
1783 # Check whether --with-as was given.
1784 if test "${with_as+set}" = set; then
1785 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
1788 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1789 if test ! -x "$DEFAULT_ASSEMBLER"; then
1790 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1791 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1792 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1796 cat >>confdefs.h <<_ACEOF
1797 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1804 # Check whether --with-stabs was given.
1805 if test "${with_stabs+set}" = set; then
1806 withval=$with_stabs; stabs="$with_stabs"
1814 # Check whether --with-elf was given.
1815 if test "${with_elf+set}" = set; then
1816 withval=$with_elf; elf="$with_elf"
1822 # Specify the local prefix
1825 # Check whether --with-local-prefix was given.
1826 if test "${with_local_prefix+set}" = set; then
1827 withval=$with_local_prefix; case "${withval}" in
1828 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1829 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1830 { (exit 1); exit 1; }; } ;;
1832 *) local_prefix=$with_local_prefix ;;
1837 # Default local prefix if it is empty
1838 if test x$local_prefix = x; then
1839 local_prefix=/usr/local
1842 test "$program_prefix" != NONE &&
1843 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1844 # Use a double $ so make ignores it.
1845 test "$program_suffix" != NONE &&
1846 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1847 # Double any \ or $. echo might interpret backslashes.
1848 # By default was `s,x,x', remove it if useless.
1849 cat <<\_ACEOF >conftest.sed
1850 s/[\\$]/&&/g;s/;s,x,x,$//
1852 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1856 # Enable Multibyte Characters for C/C++
1857 # Check whether --enable-c-mbchar was given.
1858 if test "${enable_c_mbchar+set}" = set; then
1859 enableval=$enable_c_mbchar; if test x$enable_c_mbchar != xno; then
1861 cat >>confdefs.h <<\_ACEOF
1862 #define MULTIBYTE_CHARS 1
1869 # Find the native compiler
1871 ac_cpp='$CPP $CPPFLAGS'
1872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1875 if test -n "$ac_tool_prefix"; then
1876 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1877 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1880 if test "${ac_cv_prog_CC+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1883 if test -n "$CC"; then
1884 ac_cv_prog_CC="$CC" # Let the user override the test.
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1893 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 if test -n "$CC"; then
1905 { echo "$as_me:$LINENO: result: $CC" >&5
1906 echo "${ECHO_T}$CC" >&6; }
1908 { echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6; }
1914 if test -z "$ac_cv_prog_CC"; then
1916 # Extract the first word of "gcc", so it can be a program name with args.
1917 set dummy gcc; ac_word=$2
1918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1920 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 if test -n "$ac_ct_CC"; then
1924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 test -z "$as_dir" && as_dir=.
1931 for ac_exec_ext in '' $ac_executable_extensions; do
1932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1933 ac_cv_prog_ac_ct_CC="gcc"
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1944 if test -n "$ac_ct_CC"; then
1945 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1946 echo "${ECHO_T}$ac_ct_CC" >&6; }
1948 { echo "$as_me:$LINENO: result: no" >&5
1949 echo "${ECHO_T}no" >&6; }
1952 if test "x$ac_ct_CC" = x; then
1955 case $cross_compiling:$ac_tool_warned in
1957 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1958 whose name does not start with the host triplet. If you think this
1959 configuration is useful to you, please write to autoconf@gnu.org." >&5
1960 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1961 whose name does not start with the host triplet. If you think this
1962 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1963 ac_tool_warned=yes ;;
1971 if test -z "$CC"; then
1972 if test -n "$ac_tool_prefix"; then
1973 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1974 set dummy ${ac_tool_prefix}cc; ac_word=$2
1975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1977 if test "${ac_cv_prog_CC+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 if test -n "$CC"; then
1981 ac_cv_prog_CC="$CC" # Let the user override the test.
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 test -z "$as_dir" && as_dir=.
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1990 ac_cv_prog_CC="${ac_tool_prefix}cc"
1991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 if test -n "$CC"; then
2002 { echo "$as_me:$LINENO: result: $CC" >&5
2003 echo "${ECHO_T}$CC" >&6; }
2005 { echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6; }
2012 if test -z "$CC"; then
2013 # Extract the first word of "cc", so it can be a program name with args.
2014 set dummy cc; ac_word=$2
2015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2017 if test "${ac_cv_prog_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 if test -n "$CC"; then
2021 ac_cv_prog_CC="$CC" # Let the user override the test.
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir=.
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2031 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2032 ac_prog_rejected=yes
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 if test $ac_prog_rejected = yes; then
2044 # We found a bogon in the path, so make sure we never use it.
2045 set dummy $ac_cv_prog_CC
2047 if test $# != 0; then
2048 # We chose a different compiler from the bogus one.
2049 # However, it has the same basename, so the bogon will be chosen
2050 # first if we set CC to just the basename; use the full file name.
2052 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2058 if test -n "$CC"; then
2059 { echo "$as_me:$LINENO: result: $CC" >&5
2060 echo "${ECHO_T}$CC" >&6; }
2062 { echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6; }
2068 if test -z "$CC"; then
2069 if test -n "$ac_tool_prefix"; then
2070 for ac_prog in cl.exe
2072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2073 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2076 if test "${ac_cv_prog_CC+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 if test -n "$CC"; then
2080 ac_cv_prog_CC="$CC" # Let the user override the test.
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2089 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100 if test -n "$CC"; then
2101 { echo "$as_me:$LINENO: result: $CC" >&5
2102 echo "${ECHO_T}$CC" >&6; }
2104 { echo "$as_me:$LINENO: result: no" >&5
2105 echo "${ECHO_T}no" >&6; }
2109 test -n "$CC" && break
2112 if test -z "$CC"; then
2114 for ac_prog in cl.exe
2116 # Extract the first word of "$ac_prog", so it can be a program name with args.
2117 set dummy $ac_prog; ac_word=$2
2118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 if test -n "$ac_ct_CC"; then
2124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 test -z "$as_dir" && as_dir=.
2131 for ac_exec_ext in '' $ac_executable_extensions; do
2132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2133 ac_cv_prog_ac_ct_CC="$ac_prog"
2134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2144 if test -n "$ac_ct_CC"; then
2145 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2146 echo "${ECHO_T}$ac_ct_CC" >&6; }
2148 { echo "$as_me:$LINENO: result: no" >&5
2149 echo "${ECHO_T}no" >&6; }
2153 test -n "$ac_ct_CC" && break
2156 if test "x$ac_ct_CC" = x; then
2159 case $cross_compiling:$ac_tool_warned in
2161 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2162 whose name does not start with the host triplet. If you think this
2163 configuration is useful to you, please write to autoconf@gnu.org." >&5
2164 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2165 whose name does not start with the host triplet. If you think this
2166 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2167 ac_tool_warned=yes ;;
2176 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2177 See \`config.log' for more details." >&5
2178 echo "$as_me: error: no acceptable C compiler found in \$PATH
2179 See \`config.log' for more details." >&2;}
2180 { (exit 1); exit 1; }; }
2182 # Provide some information about the compiler.
2183 echo "$as_me:$LINENO: checking for C compiler version" >&5
2184 ac_compiler=`set X $ac_compile; echo $2`
2185 { (ac_try="$ac_compiler --version >&5"
2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2191 (eval "$ac_compiler --version >&5") 2>&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }
2195 { (ac_try="$ac_compiler -v >&5"
2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198 *) ac_try_echo=$ac_try;;
2200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2201 (eval "$ac_compiler -v >&5") 2>&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }
2205 { (ac_try="$ac_compiler -V >&5"
2207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2208 *) ac_try_echo=$ac_try;;
2210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2211 (eval "$ac_compiler -V >&5") 2>&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }
2216 cat >conftest.$ac_ext <<_ACEOF
2219 cat confdefs.h >>conftest.$ac_ext
2220 cat >>conftest.$ac_ext <<_ACEOF
2221 /* end confdefs.h. */
2231 ac_clean_files_save=$ac_clean_files
2232 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2233 # Try to create an executable without -o first, disregard a.out.
2234 # It will help us diagnose broken compilers, and finding out an intuition
2236 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2237 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2238 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2240 # List of possible output files, starting from the most likely.
2241 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2242 # only as a last resort. b.out is created by i960 compilers.
2243 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2245 # The IRIX 6 linker writes into existing files which may not be
2246 # executable, retaining their permissions. Remove them first so a
2247 # subsequent execution test works.
2249 for ac_file in $ac_files
2252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2253 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2258 if { (ac_try="$ac_link_default"
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;;
2263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2264 (eval "$ac_link_default") 2>&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; then
2268 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2269 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2270 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2271 # so that the user can short-circuit this test for compilers unknown to
2273 for ac_file in $ac_files
2275 test -f "$ac_file" || continue
2277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2280 # We found the default executable, but exeext='' is most
2284 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2286 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2288 # We set ac_cv_exeext here because the later test for it is not
2289 # safe: cross compilers may not add the suffix if given an `-o'
2290 # argument, so we may need to know it at that point already.
2291 # Even if this section looks crufty: it has the advantage of
2298 test "$ac_cv_exeext" = no && ac_cv_exeext=
2301 echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2304 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2305 See \`config.log' for more details." >&5
2306 echo "$as_me: error: C compiler cannot create executables
2307 See \`config.log' for more details." >&2;}
2308 { (exit 77); exit 77; }; }
2311 ac_exeext=$ac_cv_exeext
2312 { echo "$as_me:$LINENO: result: $ac_file" >&5
2313 echo "${ECHO_T}$ac_file" >&6; }
2315 # Check that the compiler produces executables we can run. If not, either
2316 # the compiler is broken, or we cross compile.
2317 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2318 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2319 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2320 # If not cross compiling, check that we can run a simple program.
2321 if test "$cross_compiling" != yes; then
2322 if { ac_try='./$ac_file'
2323 { (case "(($ac_try" in
2324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325 *) ac_try_echo=$ac_try;;
2327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2328 (eval "$ac_try") 2>&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2334 if test "$cross_compiling" = maybe; then
2337 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2338 If you meant to cross compile, use \`--host'.
2339 See \`config.log' for more details." >&5
2340 echo "$as_me: error: cannot run C compiled programs.
2341 If you meant to cross compile, use \`--host'.
2342 See \`config.log' for more details." >&2;}
2343 { (exit 1); exit 1; }; }
2347 { echo "$as_me:$LINENO: result: yes" >&5
2348 echo "${ECHO_T}yes" >&6; }
2350 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2351 ac_clean_files=$ac_clean_files_save
2352 # Check that the compiler produces executables we can run. If not, either
2353 # the compiler is broken, or we cross compile.
2354 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2355 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2356 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2357 echo "${ECHO_T}$cross_compiling" >&6; }
2359 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2360 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2361 if { (ac_try="$ac_link"
2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2367 (eval "$ac_link") 2>&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; then
2371 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2372 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2373 # work properly (i.e., refer to `conftest.exe'), while it won't with
2375 for ac_file in conftest.exe conftest conftest.*; do
2376 test -f "$ac_file" || continue
2378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2379 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2385 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2386 See \`config.log' for more details." >&5
2387 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2388 See \`config.log' for more details." >&2;}
2389 { (exit 1); exit 1; }; }
2392 rm -f conftest$ac_cv_exeext
2393 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2394 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2396 rm -f conftest.$ac_ext
2397 EXEEXT=$ac_cv_exeext
2399 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2400 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2401 if test "${ac_cv_objext+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 cat >conftest.$ac_ext <<_ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h. */
2419 rm -f conftest.o conftest.obj
2420 if { (ac_try="$ac_compile"
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426 (eval "$ac_compile") 2>&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; then
2430 for ac_file in conftest.o conftest.obj conftest.*; do
2431 test -f "$ac_file" || continue;
2433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2434 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2439 echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2442 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2443 See \`config.log' for more details." >&5
2444 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2445 See \`config.log' for more details." >&2;}
2446 { (exit 1); exit 1; }; }
2449 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2451 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2452 echo "${ECHO_T}$ac_cv_objext" >&6; }
2453 OBJEXT=$ac_cv_objext
2455 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2456 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2457 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 cat >conftest.$ac_ext <<_ACEOF
2463 cat confdefs.h >>conftest.$ac_ext
2464 cat >>conftest.$ac_ext <<_ACEOF
2465 /* end confdefs.h. */
2478 rm -f conftest.$ac_objext
2479 if { (ac_try="$ac_compile"
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2485 (eval "$ac_compile") 2>conftest.er1
2487 grep -v '^ *+' conftest.er1 >conftest.err
2489 cat conftest.err >&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); } &&
2492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2493 { (case "(($ac_try" in
2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495 *) ac_try_echo=$ac_try;;
2497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2498 (eval "$ac_try") 2>&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; } &&
2502 { ac_try='test -s conftest.$ac_objext'
2503 { (case "(($ac_try" in
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508 (eval "$ac_try") 2>&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; }; then
2514 echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2521 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2524 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2525 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2526 GCC=`test $ac_compiler_gnu = yes && echo yes`
2527 ac_test_CFLAGS=${CFLAGS+set}
2528 ac_save_CFLAGS=$CFLAGS
2529 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2530 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2531 if test "${ac_cv_prog_cc_g+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 ac_save_c_werror_flag=$ac_c_werror_flag
2535 ac_c_werror_flag=yes
2538 cat >conftest.$ac_ext <<_ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h. */
2553 rm -f conftest.$ac_objext
2554 if { (ac_try="$ac_compile"
2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2560 (eval "$ac_compile") 2>conftest.er1
2562 grep -v '^ *+' conftest.er1 >conftest.err
2564 cat conftest.err >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); } &&
2567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2568 { (case "(($ac_try" in
2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570 *) ac_try_echo=$ac_try;;
2572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2573 (eval "$ac_try") 2>&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try='test -s conftest.$ac_objext'
2578 { (case "(($ac_try" in
2579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580 *) ac_try_echo=$ac_try;;
2582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2583 (eval "$ac_try") 2>&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2589 echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2593 cat >conftest.$ac_ext <<_ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2608 rm -f conftest.$ac_objext
2609 if { (ac_try="$ac_compile"
2611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612 *) ac_try_echo=$ac_try;;
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615 (eval "$ac_compile") 2>conftest.er1
2617 grep -v '^ *+' conftest.er1 >conftest.err
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2623 { (case "(($ac_try" in
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628 (eval "$ac_try") 2>&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (case "(($ac_try" in
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2638 (eval "$ac_try") 2>&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; }; then
2644 echo "$as_me: failed program was:" >&5
2645 sed 's/^/| /' conftest.$ac_ext >&5
2647 ac_c_werror_flag=$ac_save_c_werror_flag
2649 cat >conftest.$ac_ext <<_ACEOF
2652 cat confdefs.h >>conftest.$ac_ext
2653 cat >>conftest.$ac_ext <<_ACEOF
2654 /* end confdefs.h. */
2664 rm -f conftest.$ac_objext
2665 if { (ac_try="$ac_compile"
2667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668 *) ac_try_echo=$ac_try;;
2670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2671 (eval "$ac_compile") 2>conftest.er1
2673 grep -v '^ *+' conftest.er1 >conftest.err
2675 cat conftest.err >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } &&
2678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2679 { (case "(($ac_try" in
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684 (eval "$ac_try") 2>&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest.$ac_objext'
2689 { (case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694 (eval "$ac_try") 2>&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; }; then
2700 echo "$as_me: failed program was:" >&5
2701 sed 's/^/| /' conftest.$ac_ext >&5
2706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2713 ac_c_werror_flag=$ac_save_c_werror_flag
2715 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2716 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2717 if test "$ac_test_CFLAGS" = set; then
2718 CFLAGS=$ac_save_CFLAGS
2719 elif test $ac_cv_prog_cc_g = yes; then
2720 if test "$GCC" = yes; then
2726 if test "$GCC" = yes; then
2732 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2733 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2734 if test "${ac_cv_prog_cc_c89+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 ac_cv_prog_cc_c89=no
2739 cat >conftest.$ac_ext <<_ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h. */
2747 #include <sys/types.h>
2748 #include <sys/stat.h>
2749 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2750 struct buf { int x; };
2751 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2752 static char *e (p, i)
2758 static char *f (char * (*g) (char **, int), char **p, ...)
2763 s = g (p, va_arg (v,int));
2768 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2769 function prototypes and stuff, but not '\xHH' hex character constants.
2770 These don't provoke an error unfortunately, instead are silently treated
2771 as 'x'. The following induces an error, until -std is added to get
2772 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2773 array size at least. It's necessary to write '\x00'==0 to get something
2774 that's true only with -std. */
2775 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2777 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2778 inside strings and character constants. */
2780 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2782 int test (int i, double x);
2783 struct s1 {int (*f) (int a);};
2784 struct s2 {int (*f) (double a);};
2785 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2791 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2796 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2797 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2799 CC="$ac_save_CC $ac_arg"
2800 rm -f conftest.$ac_objext
2801 if { (ac_try="$ac_compile"
2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804 *) ac_try_echo=$ac_try;;
2806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2807 (eval "$ac_compile") 2>conftest.er1
2809 grep -v '^ *+' conftest.er1 >conftest.err
2811 cat conftest.err >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } &&
2814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2815 { (case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820 (eval "$ac_try") 2>&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; } &&
2824 { ac_try='test -s conftest.$ac_objext'
2825 { (case "(($ac_try" in
2826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827 *) ac_try_echo=$ac_try;;
2829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2830 (eval "$ac_try") 2>&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; }; then
2834 ac_cv_prog_cc_c89=$ac_arg
2836 echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2842 rm -f core conftest.err conftest.$ac_objext
2843 test "x$ac_cv_prog_cc_c89" != "xno" && break
2845 rm -f conftest.$ac_ext
2850 case "x$ac_cv_prog_cc_c89" in
2852 { echo "$as_me:$LINENO: result: none needed" >&5
2853 echo "${ECHO_T}none needed" >&6; } ;;
2855 { echo "$as_me:$LINENO: result: unsupported" >&5
2856 echo "${ECHO_T}unsupported" >&6; } ;;
2858 CC="$CC $ac_cv_prog_cc_c89"
2859 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2860 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2865 ac_cpp='$CPP $CPPFLAGS'
2866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2870 if test "x$CC" != xcc; then
2871 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2872 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
2874 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2875 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
2877 set dummy $CC; ac_cc=`echo $2 |
2878 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2879 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 cat >conftest.$ac_ext <<_ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h. */
2897 # Make sure it works both with $CC and with simple cc.
2898 # We do the test twice because some compilers refuse to overwrite an
2899 # existing .o file with -o, though they will create one.
2900 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2902 if { (case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_try") 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); } &&
2911 test -f conftest2.$ac_objext && { (case "(($ac_try" in
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916 (eval "$ac_try") 2>&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); };
2921 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2922 if test "x$CC" != xcc; then
2923 # Test first that cc exists at all.
2924 if { ac_try='cc -c conftest.$ac_ext >&5'
2925 { (case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_try") 2>&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; }; then
2934 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2936 if { (case "(($ac_try" in
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_try") 2>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } &&
2945 test -f conftest2.$ac_objext && { (case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_try") 2>&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); };
2958 # cc exists but doesn't like -o.
2959 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2964 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2966 rm -f core conftest*
2969 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
2970 { echo "$as_me:$LINENO: result: yes" >&5
2971 echo "${ECHO_T}yes" >&6; }
2973 { echo "$as_me:$LINENO: result: no" >&5
2974 echo "${ECHO_T}no" >&6; }
2976 cat >>confdefs.h <<\_ACEOF
2977 #define NO_MINUS_C_MINUS_O 1
2982 # autoconf is lame and doesn't give us any substitution variable for this.
2983 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2984 NO_MINUS_C_MINUS_O=yes
2986 OUTPUT_OPTION='-o $@'
2992 ac_cpp='$CPP $CPPFLAGS'
2993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2996 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2997 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2998 # On Suns, sometimes $CPP names a directory.
2999 if test -n "$CPP" && test -d "$CPP"; then
3002 if test -z "$CPP"; then
3003 if test "${ac_cv_prog_CPP+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 # Double quotes because CPP needs to be expanded
3007 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3010 for ac_c_preproc_warn_flag in '' yes
3012 # Use a header file that comes with gcc, so configuring glibc
3013 # with a fresh cross-compiler works.
3014 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3015 # <limits.h> exists even on freestanding compilers.
3016 # On the NeXT, cc -E runs the code through the compiler's parser,
3017 # not just through cpp. "Syntax error" is here to catch this case.
3018 cat >conftest.$ac_ext <<_ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3025 # include <limits.h>
3027 # include <assert.h>
3031 if { (ac_try="$ac_cpp conftest.$ac_ext"
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3039 grep -v '^ *+' conftest.er1 >conftest.err
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } >/dev/null; then
3044 if test -s conftest.err; then
3045 ac_cpp_err=$ac_c_preproc_warn_flag
3046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3053 if test -z "$ac_cpp_err"; then
3056 echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3059 # Broken: fails on valid input.
3063 rm -f conftest.err conftest.$ac_ext
3065 # OK, works on sane cases. Now check whether nonexistent headers
3066 # can be detected and how.
3067 cat >conftest.$ac_ext <<_ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3073 #include <ac_nonexistent.h>
3075 if { (ac_try="$ac_cpp conftest.$ac_ext"
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3083 grep -v '^ *+' conftest.er1 >conftest.err
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } >/dev/null; then
3088 if test -s conftest.err; then
3089 ac_cpp_err=$ac_c_preproc_warn_flag
3090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3097 if test -z "$ac_cpp_err"; then
3098 # Broken: success on invalid input.
3101 echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3104 # Passes both tests.
3109 rm -f conftest.err conftest.$ac_ext
3112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3113 rm -f conftest.err conftest.$ac_ext
3114 if $ac_preproc_ok; then
3126 { echo "$as_me:$LINENO: result: $CPP" >&5
3127 echo "${ECHO_T}$CPP" >&6; }
3129 for ac_c_preproc_warn_flag in '' yes
3131 # Use a header file that comes with gcc, so configuring glibc
3132 # with a fresh cross-compiler works.
3133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3134 # <limits.h> exists even on freestanding compilers.
3135 # On the NeXT, cc -E runs the code through the compiler's parser,
3136 # not just through cpp. "Syntax error" is here to catch this case.
3137 cat >conftest.$ac_ext <<_ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3144 # include <limits.h>
3146 # include <assert.h>
3150 if { (ac_try="$ac_cpp conftest.$ac_ext"
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3158 grep -v '^ *+' conftest.er1 >conftest.err
3160 cat conftest.err >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); } >/dev/null; then
3163 if test -s conftest.err; then
3164 ac_cpp_err=$ac_c_preproc_warn_flag
3165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3172 if test -z "$ac_cpp_err"; then
3175 echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3178 # Broken: fails on valid input.
3182 rm -f conftest.err conftest.$ac_ext
3184 # OK, works on sane cases. Now check whether nonexistent headers
3185 # can be detected and how.
3186 cat >conftest.$ac_ext <<_ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3192 #include <ac_nonexistent.h>
3194 if { (ac_try="$ac_cpp conftest.$ac_ext"
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3202 grep -v '^ *+' conftest.er1 >conftest.err
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } >/dev/null; then
3207 if test -s conftest.err; then
3208 ac_cpp_err=$ac_c_preproc_warn_flag
3209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3216 if test -z "$ac_cpp_err"; then
3217 # Broken: success on invalid input.
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3223 # Passes both tests.
3228 rm -f conftest.err conftest.$ac_ext
3231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3232 rm -f conftest.err conftest.$ac_ext
3233 if $ac_preproc_ok; then
3236 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3237 See \`config.log' for more details." >&5
3238 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3239 See \`config.log' for more details." >&2;}
3240 { (exit 1); exit 1; }; }
3244 ac_cpp='$CPP $CPPFLAGS'
3245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250 { echo "$as_me:$LINENO: checking for inline" >&5
3251 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3252 if test "${ac_cv_c_inline+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 for ac_kw in inline __inline__ __inline; do
3257 cat >conftest.$ac_ext <<_ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3265 static $ac_kw foo_t static_foo () {return 0; }
3266 $ac_kw foo_t foo () {return 0; }
3270 rm -f conftest.$ac_objext
3271 if { (ac_try="$ac_compile"
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_compile") 2>conftest.er1
3279 grep -v '^ *+' conftest.er1 >conftest.err
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } &&
3284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3285 { (case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_try") 2>&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; } &&
3294 { ac_try='test -s conftest.$ac_objext'
3295 { (case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_try") 2>&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3304 ac_cv_c_inline=$ac_kw
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3313 test "$ac_cv_c_inline" != no && break
3317 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3318 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3321 case $ac_cv_c_inline in
3324 case $ac_cv_c_inline in
3326 *) ac_val=$ac_cv_c_inline;;
3328 cat >>confdefs.h <<_ACEOF
3330 #define inline $ac_val
3337 { echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3338 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6; }
3339 if test "${gcc_cv_c__bool+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 cat >conftest.$ac_ext <<_ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3357 rm -f conftest.$ac_objext
3358 if { (ac_try="$ac_compile"
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3364 (eval "$ac_compile") 2>conftest.er1
3366 grep -v '^ *+' conftest.er1 >conftest.err
3368 cat conftest.err >&5
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } &&
3371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3372 { (case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_try") 2>&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; } &&
3381 { ac_try='test -s conftest.$ac_objext'
3382 { (case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_try") 2>&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3402 { echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3403 echo "${ECHO_T}$gcc_cv_c__bool" >&6; }
3404 if test $gcc_cv_c__bool = yes; then
3406 cat >>confdefs.h <<\_ACEOF
3407 #define HAVE__BOOL 1
3413 # sizeof(char) is 1 by definition.
3414 { echo "$as_me:$LINENO: checking size of short" >&5
3415 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
3416 if test "${ac_cv_sizeof_short+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
3420 cat >conftest.$ac_ext <<_ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3426 #include "confdefs.h"
3427 #include <sys/types.h>
3433 switch (0) case 0: case (sizeof (short) == $ac_size):;
3438 rm -f conftest.$ac_objext
3439 if { (ac_try="$ac_compile"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_compile") 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3453 { (case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458 (eval "$ac_try") 2>&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); }; } &&
3462 { ac_try='test -s conftest.$ac_objext'
3463 { (case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3468 (eval "$ac_try") 2>&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; }; then
3472 ac_cv_sizeof_short=$ac_size
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 if test x$ac_cv_sizeof_short != x ; then break; fi
3486 if test x$ac_cv_sizeof_short = x ; then
3487 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3488 echo "$as_me: error: cannot determine a size for short" >&2;}
3489 { (exit 1); exit 1; }; }
3491 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3492 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
3494 cat >>confdefs.h <<_ACEOF
3495 #define SIZEOF_SHORT $ac_cv_sizeof_short
3499 { echo "$as_me:$LINENO: checking size of int" >&5
3500 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
3501 if test "${ac_cv_sizeof_int+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3504 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
3505 cat >conftest.$ac_ext <<_ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3511 #include "confdefs.h"
3512 #include <sys/types.h>
3518 switch (0) case 0: case (sizeof (int) == $ac_size):;
3523 rm -f conftest.$ac_objext
3524 if { (ac_try="$ac_compile"
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3530 (eval "$ac_compile") 2>conftest.er1
3532 grep -v '^ *+' conftest.er1 >conftest.err
3534 cat conftest.err >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } &&
3537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3538 { (case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543 (eval "$ac_try") 2>&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; } &&
3547 { ac_try='test -s conftest.$ac_objext'
3548 { (case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_try") 2>&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; }; then
3557 ac_cv_sizeof_int=$ac_size
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 if test x$ac_cv_sizeof_int != x ; then break; fi
3571 if test x$ac_cv_sizeof_int = x ; then
3572 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3573 echo "$as_me: error: cannot determine a size for int" >&2;}
3574 { (exit 1); exit 1; }; }
3576 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3577 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
3579 cat >>confdefs.h <<_ACEOF
3580 #define SIZEOF_INT $ac_cv_sizeof_int
3584 { echo "$as_me:$LINENO: checking size of long" >&5
3585 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
3586 if test "${ac_cv_sizeof_long+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
3590 cat >conftest.$ac_ext <<_ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3596 #include "confdefs.h"
3597 #include <sys/types.h>
3603 switch (0) case 0: case (sizeof (long) == $ac_size):;
3608 rm -f conftest.$ac_objext
3609 if { (ac_try="$ac_compile"
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_compile") 2>conftest.er1
3617 grep -v '^ *+' conftest.er1 >conftest.err
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3623 { (case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628 (eval "$ac_try") 2>&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; } &&
3632 { ac_try='test -s conftest.$ac_objext'
3633 { (case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3638 (eval "$ac_try") 2>&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; }; then
3642 ac_cv_sizeof_long=$ac_size
3644 echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 if test x$ac_cv_sizeof_long != x ; then break; fi
3656 if test x$ac_cv_sizeof_long = x ; then
3657 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3658 echo "$as_me: error: cannot determine a size for long" >&2;}
3659 { (exit 1); exit 1; }; }
3661 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3662 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
3664 cat >>confdefs.h <<_ACEOF
3665 #define SIZEOF_LONG $ac_cv_sizeof_long
3671 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3672 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3673 if test "${ac_cv_path_GREP+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 # Extract the first word of "grep ggrep" to use in msg output
3677 if test -z "$GREP"; then
3678 set dummy grep ggrep; ac_prog_name=$2
3679 if test "${ac_cv_path_GREP+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 ac_path_GREP_found=false
3683 # Loop through the user's path and test for each of PROGNAME-LIST
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3688 test -z "$as_dir" && as_dir=.
3689 for ac_prog in grep ggrep; do
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3692 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3693 # Check for GNU ac_path_GREP and select it if it is found.
3694 # Check for GNU $ac_path_GREP
3695 case `"$ac_path_GREP" --version 2>&1` in
3697 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3700 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3703 cat "conftest.in" "conftest.in" >"conftest.tmp"
3704 mv "conftest.tmp" "conftest.in"
3705 cp "conftest.in" "conftest.nl"
3706 echo 'GREP' >> "conftest.nl"
3707 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3708 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3709 ac_count=`expr $ac_count + 1`
3710 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3711 # Best one so far, save it but keep looking for a better one
3712 ac_cv_path_GREP="$ac_path_GREP"
3713 ac_path_GREP_max=$ac_count
3715 # 10*(2^10) chars as input seems more than enough
3716 test $ac_count -gt 10 && break
3718 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3722 $ac_path_GREP_found && break 3
3732 GREP="$ac_cv_path_GREP"
3733 if test -z "$GREP"; then
3734 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3735 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3736 { (exit 1); exit 1; }; }
3740 ac_cv_path_GREP=$GREP
3745 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3746 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3747 GREP="$ac_cv_path_GREP"
3750 { echo "$as_me:$LINENO: checking for egrep" >&5
3751 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3752 if test "${ac_cv_path_EGREP+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3756 then ac_cv_path_EGREP="$GREP -E"
3758 # Extract the first word of "egrep" to use in msg output
3759 if test -z "$EGREP"; then
3760 set dummy egrep; ac_prog_name=$2
3761 if test "${ac_cv_path_EGREP+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 ac_path_EGREP_found=false
3765 # Loop through the user's path and test for each of PROGNAME-LIST
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3770 test -z "$as_dir" && as_dir=.
3771 for ac_prog in egrep; do
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3774 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3775 # Check for GNU ac_path_EGREP and select it if it is found.
3776 # Check for GNU $ac_path_EGREP
3777 case `"$ac_path_EGREP" --version 2>&1` in
3779 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3782 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3785 cat "conftest.in" "conftest.in" >"conftest.tmp"
3786 mv "conftest.tmp" "conftest.in"
3787 cp "conftest.in" "conftest.nl"
3788 echo 'EGREP' >> "conftest.nl"
3789 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3790 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3791 ac_count=`expr $ac_count + 1`
3792 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3793 # Best one so far, save it but keep looking for a better one
3794 ac_cv_path_EGREP="$ac_path_EGREP"
3795 ac_path_EGREP_max=$ac_count
3797 # 10*(2^10) chars as input seems more than enough
3798 test $ac_count -gt 10 && break
3800 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3804 $ac_path_EGREP_found && break 3
3814 EGREP="$ac_cv_path_EGREP"
3815 if test -z "$EGREP"; then
3816 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3817 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3818 { (exit 1); exit 1; }; }
3822 ac_cv_path_EGREP=$EGREP
3828 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3829 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3830 EGREP="$ac_cv_path_EGREP"
3833 { echo "$as_me:$LINENO: checking execution character set" >&5
3834 echo $ECHO_N "checking execution character set... $ECHO_C" >&6; }
3835 if test "${ac_cv_c_charset+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3838 cat >conftest.$ac_ext <<_ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
3845 && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
3849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3850 $EGREP "ASCII" >/dev/null 2>&1; then
3851 ac_cv_c_charset=ASCII
3855 if test x${ac_cv_c_charset+set} != xset; then
3856 cat >conftest.$ac_ext <<_ACEOF
3859 cat confdefs.h >>conftest.$ac_ext
3860 cat >>conftest.$ac_ext <<_ACEOF
3861 /* end confdefs.h. */
3862 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
3863 && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
3867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3868 $EGREP "EBCDIC" >/dev/null 2>&1; then
3869 ac_cv_c_charset=EBCDIC
3874 if test x${ac_cv_c_charset+set} != xset; then
3875 ac_cv_c_charset=unknown
3878 { echo "$as_me:$LINENO: result: $ac_cv_c_charset" >&5
3879 echo "${ECHO_T}$ac_cv_c_charset" >&6; }
3880 if test $ac_cv_c_charset = unknown; then
3881 { { echo "$as_me:$LINENO: error: *** Cannot determine host character set." >&5
3882 echo "$as_me: error: *** Cannot determine host character set." >&2;}
3883 { (exit 1); exit 1; }; }
3884 elif test $ac_cv_c_charset = EBCDIC; then
3886 cat >>confdefs.h <<\_ACEOF
3887 #define HOST_EBCDIC 1
3892 # If the native compiler is GCC, we can enable warnings even in stage1.
3893 # That's useful for people building cross-compilers, or just running a
3896 if test "x$GCC" = "xyes"; then
3897 warn_cflags='$(GCC_WARN_CFLAGS)'
3901 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3902 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3903 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3904 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 cat >conftest.make <<\_ACEOF
3910 @echo '@@@%%%=$(MAKE)=@@@%%%'
3912 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3913 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3915 eval ac_cv_prog_make_${ac_make}_set=yes;;
3917 eval ac_cv_prog_make_${ac_make}_set=no;;
3921 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3922 { echo "$as_me:$LINENO: result: yes" >&5
3923 echo "${ECHO_T}yes" >&6; }
3926 { echo "$as_me:$LINENO: result: no" >&5
3927 echo "${ECHO_T}no" >&6; }
3928 SET_MAKE="MAKE=${MAKE-make}"
3932 { echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
3933 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6; }
3934 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3935 if test x"$gas_flag" = x"no"; then
3936 { echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
3937 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6; }
3939 { echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3940 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3943 { echo "$as_me:$LINENO: result: no" >&5
3944 echo "${ECHO_T}no" >&6; }
3947 { echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
3948 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6; }
3949 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3950 if test x"$gnu_ld_flag" = x"no"; then
3951 { echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
3952 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6; }
3954 { echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3955 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3958 { echo "$as_me:$LINENO: result: no" >&5
3959 echo "${ECHO_T}no" >&6; }
3962 # Find some useful tools
3963 for ac_prog in gawk mawk nawk awk
3965 # Extract the first word of "$ac_prog", so it can be a program name with args.
3966 set dummy $ac_prog; ac_word=$2
3967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3969 if test "${ac_cv_prog_AWK+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 if test -n "$AWK"; then
3973 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 test -z "$as_dir" && as_dir=.
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3982 ac_cv_prog_AWK="$ac_prog"
3983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 if test -n "$AWK"; then
3994 { echo "$as_me:$LINENO: result: $AWK" >&5
3995 echo "${ECHO_T}$AWK" >&6; }
3997 { echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6; }
4002 test -n "$AWK" && break
4005 # We need awk to run opts.sh (to create options.c and options.h).
4006 # Bail out if it's missing.
4008 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4009 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4010 { (exit 1); exit 1; }; } ;;
4013 { echo "$as_me:$LINENO: checking whether ln works" >&5
4014 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
4015 if test "${gcc_cv_prog_LN+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 rm -f conftestdata_t
4019 echo >conftestdata_f
4020 if ln conftestdata_f conftestdata_t 2>/dev/null
4024 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4026 gcc_cv_prog_LN="ln -s"
4031 rm -f conftestdata_f conftestdata_t
4034 LN="$gcc_cv_prog_LN"
4035 if test "$gcc_cv_prog_LN" = "ln"; then
4036 { echo "$as_me:$LINENO: result: yes" >&5
4037 echo "${ECHO_T}yes" >&6; }
4039 if test "$gcc_cv_prog_LN" = "ln -s"; then
4040 { echo "$as_me:$LINENO: result: no, using ln -s" >&5
4041 echo "${ECHO_T}no, using ln -s" >&6; }
4043 { echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4044 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6; }
4048 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4049 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4050 if test "${gcc_cv_prog_LN_S+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 rm -f conftestdata_t
4054 echo >conftestdata_f
4055 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4057 gcc_cv_prog_LN_S="ln -s"
4059 if ln conftestdata_f conftestdata_t 2>/dev/null
4066 rm -f conftestdata_f conftestdata_t
4069 LN_S="$gcc_cv_prog_LN_S"
4070 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4071 { echo "$as_me:$LINENO: result: yes" >&5
4072 echo "${ECHO_T}yes" >&6; }
4074 if test "$gcc_cv_prog_LN_S" = "ln"; then
4075 { echo "$as_me:$LINENO: result: no, using ln" >&5
4076 echo "${ECHO_T}no, using ln" >&6; }
4078 { echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4079 echo "${ECHO_T}no, and neither does ln, so using cp" >&6; }
4083 if test -n "$ac_tool_prefix"; then
4084 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4085 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4088 if test "${ac_cv_prog_RANLIB+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 if test -n "$RANLIB"; then
4092 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 test -z "$as_dir" && as_dir=.
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4101 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4111 RANLIB=$ac_cv_prog_RANLIB
4112 if test -n "$RANLIB"; then
4113 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4114 echo "${ECHO_T}$RANLIB" >&6; }
4116 { echo "$as_me:$LINENO: result: no" >&5
4117 echo "${ECHO_T}no" >&6; }
4122 if test -z "$ac_cv_prog_RANLIB"; then
4123 ac_ct_RANLIB=$RANLIB
4124 # Extract the first word of "ranlib", so it can be a program name with args.
4125 set dummy ranlib; ac_word=$2
4126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4128 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 if test -n "$ac_ct_RANLIB"; then
4132 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4141 ac_cv_prog_ac_ct_RANLIB="ranlib"
4142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4151 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4152 if test -n "$ac_ct_RANLIB"; then
4153 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4154 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4156 { echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6; }
4160 if test "x$ac_ct_RANLIB" = x; then
4163 case $cross_compiling:$ac_tool_warned in
4165 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4166 whose name does not start with the host triplet. If you think this
4167 configuration is useful to you, please write to autoconf@gnu.org." >&5
4168 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4169 whose name does not start with the host triplet. If you think this
4170 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4171 ac_tool_warned=yes ;;
4173 RANLIB=$ac_ct_RANLIB
4176 RANLIB="$ac_cv_prog_RANLIB"
4180 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4181 if test -f "$ac_dir/install-sh"; then
4183 ac_install_sh="$ac_aux_dir/install-sh -c"
4185 elif test -f "$ac_dir/install.sh"; then
4187 ac_install_sh="$ac_aux_dir/install.sh -c"
4189 elif test -f "$ac_dir/shtool"; then
4191 ac_install_sh="$ac_aux_dir/shtool install -c"
4195 if test -z "$ac_aux_dir"; then
4196 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4197 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4198 { (exit 1); exit 1; }; }
4201 # These three variables are undocumented and unsupported,
4202 # and are intended to be withdrawn in a future Autoconf release.
4203 # They can cause serious problems if a builder's source tree is in a directory
4204 # whose full name contains unusual characters.
4205 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4206 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4207 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4210 # Find a good install program. We prefer a C program (faster),
4211 # so one script is as good as another. But avoid the broken or
4212 # incompatible versions:
4213 # SysV /etc/install, /usr/sbin/install
4214 # SunOS /usr/etc/install
4215 # IRIX /sbin/install
4217 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4218 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4219 # ./install, which can be erroneously created by make from ./install.sh.
4220 { echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4221 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6; }
4222 if test -z "$INSTALL"; then
4223 if test "${ac_cv_path_install+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
4227 for ac_dir in $PATH; do
4228 # Account for people who put trailing slashes in PATH elements.
4230 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4232 # OSF1 and SCO ODT 3.0 have their own names for install.
4233 for ac_prog in ginstall scoinst install; do
4234 if test -f $ac_dir/$ac_prog; then
4235 if test $ac_prog = install &&
4236 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4237 # AIX install. It has an incompatible calling convention.
4238 # OSF/1 installbsd also uses dspmsg, but is usable.
4241 ac_cv_path_install="$ac_dir/$ac_prog -c"
4252 if test "${ac_cv_path_install+set}" = set; then
4253 INSTALL="$ac_cv_path_install"
4255 # As a last resort, use the slow shell script. We don't cache a
4256 # path for INSTALL within a source directory, because that will
4257 # break other packages using the cache if that directory is
4258 # removed, or if the path is relative.
4259 INSTALL="$ac_install_sh"
4262 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4263 echo "${ECHO_T}$INSTALL" >&6; }
4265 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4266 # It thinks the first close brace ends the variable substitution.
4267 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4269 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4272 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4273 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4274 if test "${ac_cv_header_stdc+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 cat >conftest.$ac_ext <<_ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4296 rm -f conftest.$ac_objext
4297 if { (ac_try="$ac_compile"
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_compile") 2>conftest.er1
4305 grep -v '^ *+' conftest.er1 >conftest.err
4307 cat conftest.err >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } &&
4310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4311 { (case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316 (eval "$ac_try") 2>&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; } &&
4320 { ac_try='test -s conftest.$ac_objext'
4321 { (case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4326 (eval "$ac_try") 2>&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); }; }; then
4330 ac_cv_header_stdc=yes
4332 echo "$as_me: failed program was:" >&5
4333 sed 's/^/| /' conftest.$ac_ext >&5
4335 ac_cv_header_stdc=no
4338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340 if test $ac_cv_header_stdc = yes; then
4341 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4342 cat >conftest.$ac_ext <<_ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4352 $EGREP "memchr" >/dev/null 2>&1; then
4355 ac_cv_header_stdc=no
4361 if test $ac_cv_header_stdc = yes; then
4362 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4363 cat >conftest.$ac_ext <<_ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4373 $EGREP "free" >/dev/null 2>&1; then
4376 ac_cv_header_stdc=no
4382 if test $ac_cv_header_stdc = yes; then
4383 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4384 if test "$cross_compiling" = yes; then
4387 cat >conftest.$ac_ext <<_ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4395 #if ((' ' & 0x0FF) == 0x020)
4396 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4397 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4399 # define ISLOWER(c) \
4400 (('a' <= (c) && (c) <= 'i') \
4401 || ('j' <= (c) && (c) <= 'r') \
4402 || ('s' <= (c) && (c) <= 'z'))
4403 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4406 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4411 for (i = 0; i < 256; i++)
4412 if (XOR (islower (i), ISLOWER (i))
4413 || toupper (i) != TOUPPER (i))
4418 rm -f conftest$ac_exeext
4419 if { (ac_try="$ac_link"
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4425 (eval "$ac_link") 2>&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4429 { (case "(($ac_try" in
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434 (eval "$ac_try") 2>&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; }; then
4440 echo "$as_me: program exited with status $ac_status" >&5
4441 echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4445 ac_cv_header_stdc=no
4447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4453 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4454 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4455 if test $ac_cv_header_stdc = yes; then
4457 cat >>confdefs.h <<\_ACEOF
4458 #define STDC_HEADERS 1
4463 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4464 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4465 if test "${ac_cv_header_time+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 cat >conftest.$ac_ext <<_ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4474 #include <sys/types.h>
4475 #include <sys/time.h>
4481 if ((struct tm *) 0)
4487 rm -f conftest.$ac_objext
4488 if { (ac_try="$ac_compile"
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494 (eval "$ac_compile") 2>conftest.er1
4496 grep -v '^ *+' conftest.er1 >conftest.err
4498 cat conftest.err >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); } &&
4501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4502 { (case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4507 (eval "$ac_try") 2>&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); }; } &&
4511 { ac_try='test -s conftest.$ac_objext'
4512 { (case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517 (eval "$ac_try") 2>&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then
4521 ac_cv_header_time=yes
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4526 ac_cv_header_time=no
4529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4531 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4532 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4533 if test $ac_cv_header_time = yes; then
4535 cat >>confdefs.h <<\_ACEOF
4536 #define TIME_WITH_SYS_TIME 1
4541 { echo "$as_me:$LINENO: checking for working stdbool.h" >&5
4542 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6; }
4543 if test "${ac_cv_header_stdbool_h+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 cat >conftest.$ac_ext <<_ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4552 #include <stdbool.h>
4561 rm -f conftest.$ac_objext
4562 if { (ac_try="$ac_compile"
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568 (eval "$ac_compile") 2>conftest.er1
4570 grep -v '^ *+' conftest.er1 >conftest.err
4572 cat conftest.err >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } &&
4575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4576 { (case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581 (eval "$ac_try") 2>&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; } &&
4585 { ac_try='test -s conftest.$ac_objext'
4586 { (case "(($ac_try" in
4587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588 *) ac_try_echo=$ac_try;;
4590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591 (eval "$ac_try") 2>&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }; }; then
4595 ac_cv_header_stdbool_h=yes
4597 echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4600 ac_cv_header_stdbool_h=no
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4606 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
4607 if test $ac_cv_header_stdbool_h = yes; then
4609 cat >>confdefs.h <<\_ACEOF
4610 #define HAVE_STDBOOL_H 1
4615 { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
4616 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
4617 if test "${gcc_cv_header_string+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 cat >conftest.$ac_ext <<_ACEOF
4623 cat confdefs.h >>conftest.$ac_ext
4624 cat >>conftest.$ac_ext <<_ACEOF
4625 /* end confdefs.h. */
4627 #include <strings.h>
4636 rm -f conftest.$ac_objext
4637 if { (ac_try="$ac_compile"
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643 (eval "$ac_compile") 2>conftest.er1
4645 grep -v '^ *+' conftest.er1 >conftest.err
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } &&
4650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4651 { (case "(($ac_try" in
4652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656 (eval "$ac_try") 2>&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; } &&
4660 { ac_try='test -s conftest.$ac_objext'
4661 { (case "(($ac_try" in
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4666 (eval "$ac_try") 2>&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; }; then
4670 gcc_cv_header_string=yes
4672 echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4675 gcc_cv_header_string=no
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680 { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
4681 echo "${ECHO_T}$gcc_cv_header_string" >&6; }
4682 if test $gcc_cv_header_string = yes; then
4684 cat >>confdefs.h <<\_ACEOF
4685 #define STRING_WITH_STRINGS 1
4690 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4691 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
4692 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 cat >conftest.$ac_ext <<_ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h. */
4701 #include <sys/types.h>
4702 #include <sys/wait.h>
4704 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4707 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4715 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4720 rm -f conftest.$ac_objext
4721 if { (ac_try="$ac_compile"
4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724 *) ac_try_echo=$ac_try;;
4726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727 (eval "$ac_compile") 2>conftest.er1
4729 grep -v '^ *+' conftest.er1 >conftest.err
4731 cat conftest.err >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); } &&
4734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4735 { (case "(($ac_try" in
4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4740 (eval "$ac_try") 2>&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; } &&
4744 { ac_try='test -s conftest.$ac_objext'
4745 { (case "(($ac_try" in
4746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747 *) ac_try_echo=$ac_try;;
4749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4750 (eval "$ac_try") 2>&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 ac_cv_header_sys_wait_h=yes
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4759 ac_cv_header_sys_wait_h=no
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4765 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
4766 if test $ac_cv_header_sys_wait_h = yes; then
4768 cat >>confdefs.h <<\_ACEOF
4769 #define HAVE_SYS_WAIT_H 1
4774 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4784 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4785 inttypes.h stdint.h unistd.h
4787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 cat >conftest.$ac_ext <<_ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h. */
4799 $ac_includes_default
4801 #include <$ac_header>
4803 rm -f conftest.$ac_objext
4804 if { (ac_try="$ac_compile"
4806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807 *) ac_try_echo=$ac_try;;
4809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4810 (eval "$ac_compile") 2>conftest.er1
4812 grep -v '^ *+' conftest.er1 >conftest.err
4814 cat conftest.err >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } &&
4817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4818 { (case "(($ac_try" in
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823 (eval "$ac_try") 2>&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; } &&
4827 { ac_try='test -s conftest.$ac_objext'
4828 { (case "(($ac_try" in
4829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4830 *) ac_try_echo=$ac_try;;
4832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4833 (eval "$ac_try") 2>&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 eval "$as_ac_Header=yes"
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4842 eval "$as_ac_Header=no"
4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847 ac_res=`eval echo '${'$as_ac_Header'}'`
4848 { echo "$as_me:$LINENO: result: $ac_res" >&5
4849 echo "${ECHO_T}$ac_res" >&6; }
4850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4851 cat >>confdefs.h <<_ACEOF
4852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4874 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
4875 fcntl.h unistd.h sys/file.h sys/time.h \
4876 sys/param.h sys/stat.h \
4879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 ac_res=`eval echo '${'$as_ac_Header'}'`
4887 { echo "$as_me:$LINENO: result: $ac_res" >&5
4888 echo "${ECHO_T}$ac_res" >&6; }
4890 # Is the header compilable?
4891 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4893 cat >conftest.$ac_ext <<_ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h. */
4899 $ac_includes_default
4900 #include <$ac_header>
4902 rm -f conftest.$ac_objext
4903 if { (ac_try="$ac_compile"
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4909 (eval "$ac_compile") 2>conftest.er1
4911 grep -v '^ *+' conftest.er1 >conftest.err
4913 cat conftest.err >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } &&
4916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4917 { (case "(($ac_try" in
4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919 *) ac_try_echo=$ac_try;;
4921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4922 (eval "$ac_try") 2>&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; } &&
4926 { ac_try='test -s conftest.$ac_objext'
4927 { (case "(($ac_try" in
4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932 (eval "$ac_try") 2>&5
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; }; then
4936 ac_header_compiler=yes
4938 echo "$as_me: failed program was:" >&5
4939 sed 's/^/| /' conftest.$ac_ext >&5
4941 ac_header_compiler=no
4944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4945 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4946 echo "${ECHO_T}$ac_header_compiler" >&6; }
4948 # Is the header present?
4949 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4951 cat >conftest.$ac_ext <<_ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h. */
4957 #include <$ac_header>
4959 if { (ac_try="$ac_cpp conftest.$ac_ext"
4961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962 *) ac_try_echo=$ac_try;;
4964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4967 grep -v '^ *+' conftest.er1 >conftest.err
4969 cat conftest.err >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); } >/dev/null; then
4972 if test -s conftest.err; then
4973 ac_cpp_err=$ac_c_preproc_warn_flag
4974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4981 if test -z "$ac_cpp_err"; then
4982 ac_header_preproc=yes
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4987 ac_header_preproc=no
4990 rm -f conftest.err conftest.$ac_ext
4991 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4992 echo "${ECHO_T}$ac_header_preproc" >&6; }
4994 # So? What about this header?
4995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5001 ac_header_preproc=yes
5004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5007 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5008 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5009 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5010 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5011 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5014 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5015 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 eval "$as_ac_Header=\$ac_header_preproc"
5026 ac_res=`eval echo '${'$as_ac_Header'}'`
5027 { echo "$as_me:$LINENO: result: $ac_res" >&5
5028 echo "${ECHO_T}$ac_res" >&6; }
5031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5032 cat >>confdefs.h <<_ACEOF
5033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5041 # Check for thread headers.
5043 # These tests can't be done till we know if we have limits.h.
5044 { echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5045 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6; }
5046 if test "${gcc_cv_decl_char_bit+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5049 cat >conftest.$ac_ext <<_ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h. */
5055 #ifdef HAVE_LIMITS_H
5062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5063 $EGREP "found" >/dev/null 2>&1; then
5064 gcc_cv_decl_char_bit=yes
5066 gcc_cv_decl_char_bit=no
5072 { echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
5073 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6; }
5074 if test $gcc_cv_decl_char_bit = no; then
5075 { echo "$as_me:$LINENO: checking number of bits in a byte" >&5
5076 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6; }
5077 if test "${gcc_cv_c_nbby+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 while test $i -lt 65; do
5083 cat >conftest.$ac_ext <<_ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5094 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
5095 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
5101 rm -f conftest.$ac_objext
5102 if { (ac_try="$ac_compile"
5104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5105 *) ac_try_echo=$ac_try;;
5107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5108 (eval "$ac_compile") 2>conftest.er1
5110 grep -v '^ *+' conftest.er1 >conftest.err
5112 cat conftest.err >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } &&
5115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5116 { (case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5121 (eval "$ac_try") 2>&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; } &&
5125 { ac_try='test -s conftest.$ac_objext'
5126 { (case "(($ac_try" in
5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128 *) ac_try_echo=$ac_try;;
5130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5131 (eval "$ac_try") 2>&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; }; then
5135 gcc_cv_c_nbby=$i; break
5137 echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5146 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
5149 { echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
5150 echo "${ECHO_T}$gcc_cv_c_nbby" >&6; }
5151 if test $gcc_cv_c_nbby = failed; then
5152 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
5153 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
5154 { (exit 1); exit 1; }; }
5157 cat >>confdefs.h <<_ACEOF
5158 #define CHAR_BIT $gcc_cv_c_nbby
5163 { echo "$as_me:$LINENO: checking byte ordering" >&5
5164 echo $ECHO_N "checking byte ordering... $ECHO_C" >&6; }
5165 if test "${ac_cv_c_compile_endian+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 ac_cv_c_compile_endian=unknown
5171 ac_cpp='$CPP $CPPFLAGS'
5172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5176 cat > conftest.$ac_ext <<EOF
5177 #line 5177 "configure"
5178 #include "confdefs.h"
5180 #ifdef HAVE_LIMITS_H
5181 # include <limits.h>
5183 /* This structure must have no internal padding. */
5185 char prefix[sizeof "\nendian:" - 1];
5190 #if SIZEOF_SHORT == 4
5191 ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) |
5193 ('A' << CHAR_BIT) | 'B',
5197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5198 (eval $ac_compile) 2>&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; then
5203 sed 's/^[0-7]*[ ]*/ /
5206 s/ [0-9][0-9][0-9]/./g
5212 if grep 'endian:AB' conftest.dmp >/dev/null 2>&1; then
5213 ac_cv_c_compile_endian=big-endian
5214 elif grep 'endian:BA' conftest.dmp >/dev/null 2>&1; then
5215 ac_cv_c_compile_endian=little-endian
5220 ac_cpp='$CPP $CPPFLAGS'
5221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5227 { echo "$as_me:$LINENO: result: $ac_cv_c_compile_endian" >&5
5228 echo "${ECHO_T}$ac_cv_c_compile_endian" >&6; }
5229 if test $ac_cv_c_compile_endian = unknown; then
5230 { { echo "$as_me:$LINENO: error: *** unable to determine endianness" >&5
5231 echo "$as_me: error: *** unable to determine endianness" >&2;}
5232 { (exit 1); exit 1; }; }
5233 elif test $ac_cv_c_compile_endian = big-endian; then
5235 cat >>confdefs.h <<\_ACEOF
5236 #define HOST_WORDS_BIG_ENDIAN 1
5242 # See if we have the mktemp command.
5243 # Extract the first word of "mktemp", so it can be a program name with args.
5244 set dummy mktemp; ac_word=$2
5245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5247 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 if test -n "$have_mktemp_command"; then
5251 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5260 ac_cv_prog_have_mktemp_command="yes"
5261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5271 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5272 if test -n "$have_mktemp_command"; then
5273 { echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5274 echo "${ECHO_T}$have_mktemp_command" >&6; }
5276 { echo "$as_me:$LINENO: result: no" >&5
5277 echo "${ECHO_T}no" >&6; }
5282 # Extract the first word of "strip", so it can be a program name with args.
5283 set dummy strip; ac_word=$2
5284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5286 if test "${ac_cv_prog_STRIP+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 if test -n "$STRIP"; then
5290 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 test -z "$as_dir" && as_dir=.
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5299 ac_cv_prog_STRIP="strip"
5300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
5310 STRIP=$ac_cv_prog_STRIP
5311 if test -n "$STRIP"; then
5312 { echo "$as_me:$LINENO: result: $STRIP" >&5
5313 echo "${ECHO_T}$STRIP" >&6; }
5315 { echo "$as_me:$LINENO: result: no" >&5
5316 echo "${ECHO_T}no" >&6; }
5321 # See if the stage1 system preprocessor understands the ANSI C
5322 # preprocessor stringification operator. (Used by symcat.h.)
5323 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
5324 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
5325 if test "${ac_cv_c_stringize+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 cat >conftest.$ac_ext <<_ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h. */
5336 char *s = x(teststring);
5338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5339 $EGREP "#teststring" >/dev/null 2>&1; then
5340 ac_cv_c_stringize=no
5342 ac_cv_c_stringize=yes
5347 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
5348 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
5349 if test $ac_cv_c_stringize = yes; then
5351 cat >>confdefs.h <<\_ACEOF
5352 #define HAVE_STRINGIZE 1
5364 for ac_func in clock strsignal strchr strrchr lstat
5366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5367 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5369 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 cat >conftest.$ac_ext <<_ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h. */
5378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5380 #define $ac_func innocuous_$ac_func
5382 /* System header to define __stub macros and hopefully few prototypes,
5383 which can conflict with char $ac_func (); below.
5384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5385 <limits.h> exists even on freestanding compilers. */
5388 # include <limits.h>
5390 # include <assert.h>
5395 /* Override any GCC internal prototype to avoid an error.
5396 Use char because int might match the return type of a GCC
5397 builtin and then its argument prototype would still apply. */
5402 /* The GNU C library defines this for functions which it implements
5403 to always fail with ENOSYS. Some functions are actually named
5404 something starting with __ and the normal name is an alias. */
5405 #if defined __stub_$ac_func || defined __stub___$ac_func
5417 rm -f conftest.$ac_objext conftest$ac_exeext
5418 if { (ac_try="$ac_link"
5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421 *) ac_try_echo=$ac_try;;
5423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424 (eval "$ac_link") 2>conftest.er1
5426 grep -v '^ *+' conftest.er1 >conftest.err
5428 cat conftest.err >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } &&
5431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5432 { (case "(($ac_try" in
5433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5434 *) ac_try_echo=$ac_try;;
5436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5437 (eval "$ac_try") 2>&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; } &&
5441 { ac_try='test -s conftest$ac_exeext'
5442 { (case "(($ac_try" in
5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447 (eval "$ac_try") 2>&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; }; then
5451 eval "$as_ac_var=yes"
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5456 eval "$as_ac_var=no"
5459 rm -f core conftest.err conftest.$ac_objext \
5460 conftest$ac_exeext conftest.$ac_ext
5462 ac_res=`eval echo '${'$as_ac_var'}'`
5463 { echo "$as_me:$LINENO: result: $ac_res" >&5
5464 echo "${ECHO_T}$ac_res" >&6; }
5465 if test `eval echo '${'$as_ac_var'}'` = yes; then
5466 cat >>confdefs.h <<_ACEOF
5467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5474 { echo "$as_me:$LINENO: checking for ssize_t" >&5
5475 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
5476 if test "${ac_cv_type_ssize_t+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 cat >conftest.$ac_ext <<_ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5485 $ac_includes_default
5486 typedef ssize_t ac__type_new_;
5490 if ((ac__type_new_ *) 0)
5492 if (sizeof (ac__type_new_))
5498 rm -f conftest.$ac_objext
5499 if { (ac_try="$ac_compile"
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_compile") 2>conftest.er1
5507 grep -v '^ *+' conftest.er1 >conftest.err
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } &&
5512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5513 { (case "(($ac_try" in
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_try") 2>&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }; } &&
5522 { ac_try='test -s conftest.$ac_objext'
5523 { (case "(($ac_try" in
5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525 *) ac_try_echo=$ac_try;;
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528 (eval "$ac_try") 2>&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; }; then
5532 ac_cv_type_ssize_t=yes
5534 echo "$as_me: failed program was:" >&5
5535 sed 's/^/| /' conftest.$ac_ext >&5
5537 ac_cv_type_ssize_t=no
5540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
5543 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
5544 if test $ac_cv_type_ssize_t = yes; then
5548 cat >>confdefs.h <<_ACEOF
5556 for ac_func in getpagesize
5558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5559 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 cat >conftest.$ac_ext <<_ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5572 #define $ac_func innocuous_$ac_func
5574 /* System header to define __stub macros and hopefully few prototypes,
5575 which can conflict with char $ac_func (); below.
5576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5577 <limits.h> exists even on freestanding compilers. */
5580 # include <limits.h>
5582 # include <assert.h>
5587 /* Override any GCC internal prototype to avoid an error.
5588 Use char because int might match the return type of a GCC
5589 builtin and then its argument prototype would still apply. */
5594 /* The GNU C library defines this for functions which it implements
5595 to always fail with ENOSYS. Some functions are actually named
5596 something starting with __ and the normal name is an alias. */
5597 #if defined __stub_$ac_func || defined __stub___$ac_func
5609 rm -f conftest.$ac_objext conftest$ac_exeext
5610 if { (ac_try="$ac_link"
5612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613 *) ac_try_echo=$ac_try;;
5615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5616 (eval "$ac_link") 2>conftest.er1
5618 grep -v '^ *+' conftest.er1 >conftest.err
5620 cat conftest.err >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } &&
5623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5624 { (case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629 (eval "$ac_try") 2>&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; } &&
5633 { ac_try='test -s conftest$ac_exeext'
5634 { (case "(($ac_try" in
5635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639 (eval "$ac_try") 2>&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; }; then
5643 eval "$as_ac_var=yes"
5645 echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5648 eval "$as_ac_var=no"
5651 rm -f core conftest.err conftest.$ac_objext \
5652 conftest$ac_exeext conftest.$ac_ext
5654 ac_res=`eval echo '${'$as_ac_var'}'`
5655 { echo "$as_me:$LINENO: result: $ac_res" >&5
5656 echo "${ECHO_T}$ac_res" >&6; }
5657 if test `eval echo '${'$as_ac_var'}'` = yes; then
5658 cat >>confdefs.h <<_ACEOF
5659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5665 # The test program for the next two tests is the same except for one
5667 cat >ct-mmap.inc <<'EOF'
5668 #include <sys/types.h>
5669 #include <sys/mman.h>
5675 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
5676 # define MAP_ANONYMOUS MAP_ANON
5679 /* This mess was copied from the GNU getpagesize.h. */
5680 #ifndef HAVE_GETPAGESIZE
5681 # ifdef HAVE_UNISTD_H
5682 # include <unistd.h>
5685 /* Assume that all systems that can run configure have sys/param.h. */
5686 # ifndef HAVE_SYS_PARAM_H
5687 # define HAVE_SYS_PARAM_H 1
5690 # ifdef _SC_PAGESIZE
5691 # define getpagesize() sysconf(_SC_PAGESIZE)
5692 # else /* no _SC_PAGESIZE */
5693 # ifdef HAVE_SYS_PARAM_H
5694 # include <sys/param.h>
5695 # ifdef EXEC_PAGESIZE
5696 # define getpagesize() EXEC_PAGESIZE
5697 # else /* no EXEC_PAGESIZE */
5699 # define getpagesize() NBPG * CLSIZE
5702 # endif /* no CLSIZE */
5703 # else /* no NBPG */
5705 # define getpagesize() NBPC
5706 # else /* no NBPC */
5708 # define getpagesize() PAGESIZE
5709 # endif /* PAGESIZE */
5710 # endif /* no NBPC */
5711 # endif /* no NBPG */
5712 # endif /* no EXEC_PAGESIZE */
5713 # else /* no HAVE_SYS_PARAM_H */
5714 # define getpagesize() 8192 /* punt totally */
5715 # endif /* no HAVE_SYS_PARAM_H */
5716 # endif /* no _SC_PAGESIZE */
5718 #endif /* no HAVE_GETPAGESIZE */
5721 # define MAP_FAILED -1
5725 #define perror_exit(str, val) \
5726 do { perror(str); exit(val); } while (0)
5728 /* Some versions of cygwin mmap require that munmap is called with the
5729 same parameters as mmap. GCC expects that this is not the case.
5730 Test for various forms of this problem. Warning - icky signal games. */
5732 static sigset_t unblock_sigsegv;
5742 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
5743 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
5745 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
5746 MAP_PRIVATE, devzero, 0);
5754 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
5758 /* Basic functionality test. */
5762 char *x = anonmap (pg);
5763 if (x == (char *) MAP_FAILED)
5764 perror_exit("test 0 mmap", 2);
5768 if (munmap(x, pg) < 0)
5769 perror_exit("test 0 munmap", 3);
5772 /* 1. If we map a 2-page region and unmap its second page, the first page
5777 char *x = anonmap (pg * 2);
5778 if (x == (char *)MAP_FAILED)
5779 perror_exit ("test 1 mmap", 4);
5781 signal (SIGSEGV, sigsegv);
5783 perror_exit ("test 1 fault", 5);
5788 if (munmap (x + pg, pg) < 0)
5789 perror_exit ("test 1 munmap 1", 6);
5792 if (setjmp (r) == 0)
5795 perror_exit ("test 1 no fault", 7);
5797 if (munmap (x, pg) < 0)
5798 perror_exit ("test 1 munmap 2", 8);
5801 /* 2. If we map a 2-page region and unmap its first page, the second
5802 page must remain. */
5806 char *x = anonmap (pg * 2);
5807 if (x == (char *)MAP_FAILED)
5808 perror_exit ("test 2 mmap", 9);
5810 signal (SIGSEGV, sigsegv);
5812 perror_exit ("test 2 fault", 10);
5817 if (munmap (x, pg) < 0)
5818 perror_exit ("test 2 munmap 1", 11);
5822 if (setjmp (r) == 0)
5825 perror_exit ("test 2 no fault", 12);
5828 if (munmap (x+pg, pg) < 0)
5829 perror_exit ("test 2 munmap 2", 13);
5832 /* 3. If we map two adjacent 1-page regions and unmap them both with
5833 one munmap, both must go away.
5835 Getting two adjacent 1-page regions with two mmap calls is slightly
5836 tricky. All OS's tested skip over already-allocated blocks; therefore
5837 we have been careful to unmap all allocated regions in previous tests.
5838 HP/UX allocates pages backward in memory. No OS has yet been observed
5839 to be so perverse as to leave unmapped space between consecutive calls
5848 if (x == (char *)MAP_FAILED)
5849 perror_exit ("test 3 mmap 1", 14);
5851 if (y == (char *)MAP_FAILED)
5852 perror_exit ("test 3 mmap 2", 15);
5857 z = y, y = x, x = z;
5860 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
5861 (unsigned long)x, (unsigned long)y);
5866 signal (SIGSEGV, sigsegv);
5868 perror_exit ("test 3 fault", 17);
5873 if (munmap (x, pg*2) < 0)
5874 perror_exit ("test 3 munmap", 18);
5876 if (setjmp (r) == 0)
5879 perror_exit ("test 3 no fault 1", 19);
5882 signal (SIGSEGV, sigsegv);
5883 if (setjmp (r) == 0)
5886 perror_exit ("test 3 no fault 2", 20);
5893 sigemptyset (&unblock_sigsegv);
5894 sigaddset (&unblock_sigsegv, SIGSEGV);
5895 pg = getpagesize ();
5896 #ifndef USE_MAP_ANON
5897 devzero = open ("/dev/zero", O_RDWR);
5899 perror_exit ("open /dev/zero", 1);
5911 { echo "$as_me:$LINENO: checking for working mmap from /dev/zero" >&5
5912 echo $ECHO_N "checking for working mmap from /dev/zero... $ECHO_C" >&6; }
5913 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 if test "$cross_compiling" = yes; then
5917 # If this is not cygwin, and /dev/zero is a character device, it's probably
5918 # safe to assume it works.
5920 cygwin* | win32 | pe | mingw* ) ac_cv_func_mmap_dev_zero=buggy ;;
5921 * ) if test -c /dev/zero
5922 then ac_cv_func_mmap_dev_zero=yes
5923 else ac_cv_func_mmap_dev_zero=no
5927 cat >conftest.$ac_ext <<_ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5933 #include "ct-mmap.inc"
5935 rm -f conftest$ac_exeext
5936 if { (ac_try="$ac_link"
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942 (eval "$ac_link") 2>&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5946 { (case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_try") 2>&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5955 ac_cv_func_mmap_dev_zero=yes
5957 echo "$as_me: program exited with status $ac_status" >&5
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5963 then ac_cv_func_mmap_dev_zero=no
5964 else ac_cv_func_mmap_dev_zero=buggy
5967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5973 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
5974 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6; }
5975 if test $ac_cv_func_mmap_dev_zero = yes; then
5977 cat >>confdefs.h <<\_ACEOF
5978 #define HAVE_MMAP_DEV_ZERO 1
5983 { echo "$as_me:$LINENO: checking for working mmap with MAP_ANON(YMOUS)" >&5
5984 echo $ECHO_N "checking for working mmap with MAP_ANON(YMOUS)... $ECHO_C" >&6; }
5985 if test "${ac_cv_func_mmap_anon+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 if test "$cross_compiling" = yes; then
5989 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
5990 # just because it's there. Some SCO Un*xen define it but don't implement it.
5991 ac_cv_func_mmap_anon=no
5993 cat >conftest.$ac_ext <<_ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
5999 #define USE_MAP_ANON
6000 #include "ct-mmap.inc"
6002 rm -f conftest$ac_exeext
6003 if { (ac_try="$ac_link"
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_link") 2>&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6013 { (case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_try") 2>&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 ac_cv_func_mmap_anon=yes
6024 echo "$as_me: program exited with status $ac_status" >&5
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6030 then ac_cv_func_mmap_anon=no
6031 else ac_cv_func_mmap_anon=buggy
6034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6040 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
6041 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6; }
6042 if test $ac_cv_func_mmap_anon = yes; then
6044 cat >>confdefs.h <<\_ACEOF
6045 #define HAVE_MMAP_ANON 1
6051 { echo "$as_me:$LINENO: checking for working mmap of a file" >&5
6052 echo $ECHO_N "checking for working mmap of a file... $ECHO_C" >&6; }
6053 if test "${ac_cv_func_mmap_file+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 # Create a file one thousand bytes long.
6057 for i in 1 2 3 4 5 6 7 8 9 0
6058 do for j in 1 2 3 4 5 6 7 8 9 0
6061 done > conftestdata$$
6063 if test "$cross_compiling" = yes; then
6064 ac_cv_func_mmap_file=no
6066 cat >conftest.$ac_ext <<_ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6073 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
6074 Richard Henderson and Alexandre Oliva.
6075 Check whether read-only mmap of a plain file works. */
6076 #include <sys/types.h>
6077 #include <sys/stat.h>
6079 #include <sys/mman.h>
6087 fd = open("conftestdata$$", O_RDONLY);
6091 if (fstat (fd, &st))
6094 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
6095 if (x == (char *) -1)
6098 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
6101 if (munmap(x, st.st_size) < 0)
6107 rm -f conftest$ac_exeext
6108 if { (ac_try="$ac_link"
6110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6111 *) ac_try_echo=$ac_try;;
6113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6114 (eval "$ac_link") 2>&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6118 { (case "(($ac_try" in
6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120 *) ac_try_echo=$ac_try;;
6122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6123 (eval "$ac_try") 2>&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 ac_cv_func_mmap_file=yes
6129 echo "$as_me: program exited with status $ac_status" >&5
6130 echo "$as_me: failed program was:" >&5
6131 sed 's/^/| /' conftest.$ac_ext >&5
6134 ac_cv_func_mmap_file=no
6136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6141 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
6142 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
6143 if test $ac_cv_func_mmap_file = yes; then
6145 cat >>confdefs.h <<\_ACEOF
6146 #define HAVE_MMAP_FILE 1
6152 # We will need to find libiberty.h and ansidecl.h
6153 saved_CFLAGS="$CFLAGS"
6154 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
6155 for ac_func in getenv abort strsignal errno \
6156 malloc realloc calloc free clock
6158 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6159 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
6160 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
6161 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 cat >conftest.$ac_ext <<_ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6171 #define $ac_tr_decl 1
6173 #include "ansidecl.h"
6180 char *(*pfn) = (char *(*)) $ac_func ;
6186 rm -f conftest.$ac_objext
6187 if { (ac_try="$ac_compile"
6189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 *) ac_try_echo=$ac_try;;
6192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193 (eval "$ac_compile") 2>conftest.er1
6195 grep -v '^ *+' conftest.er1 >conftest.err
6197 cat conftest.err >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } &&
6200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6201 { (case "(($ac_try" in
6202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203 *) ac_try_echo=$ac_try;;
6205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206 (eval "$ac_try") 2>&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; } &&
6210 { ac_try='test -s conftest.$ac_objext'
6211 { (case "(($ac_try" in
6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213 *) ac_try_echo=$ac_try;;
6215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216 (eval "$ac_try") 2>&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; }; then
6220 eval "gcc_cv_have_decl_$ac_func=yes"
6222 echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6225 eval "gcc_cv_have_decl_$ac_func=no"
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
6232 { echo "$as_me:$LINENO: result: yes" >&5
6233 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
6234 #define $ac_tr_decl 1
6238 { echo "$as_me:$LINENO: result: no" >&5
6239 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
6240 #define $ac_tr_decl 0
6246 if test x = y ; then
6248 cat >>confdefs.h <<\_ACEOF
6249 #define HAVE_DECL_GETENV 1
6252 cat >>confdefs.h <<\_ACEOF
6253 #define HAVE_DECL_ABORT 1
6256 cat >>confdefs.h <<\_ACEOF
6257 #define HAVE_DECL_STRSIGNAL 1
6260 cat >>confdefs.h <<\_ACEOF
6261 #define HAVE_DECL_ERRNO 1
6265 cat >>confdefs.h <<\_ACEOF
6266 #define HAVE_DECL_MALLOC 1
6269 cat >>confdefs.h <<\_ACEOF
6270 #define HAVE_DECL_REALLOC 1
6273 cat >>confdefs.h <<\_ACEOF
6274 #define HAVE_DECL_CALLOC 1
6277 cat >>confdefs.h <<\_ACEOF
6278 #define HAVE_DECL_FREE 1
6281 cat >>confdefs.h <<\_ACEOF
6282 #define HAVE_DECL_CLOCK 1
6287 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
6288 CFLAGS="$saved_CFLAGS"
6290 # mkdir takes a single argument on some systems.
6291 { echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
6292 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6; }
6293 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 cat >conftest.$ac_ext <<_ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h. */
6303 #include <sys/types.h>
6304 #ifdef HAVE_SYS_STAT_H
6305 # include <sys/stat.h>
6307 #ifdef HAVE_UNISTD_H
6308 # include <unistd.h>
6310 #ifdef HAVE_DIRECT_H
6311 # include <direct.h>
6321 rm -f conftest.$ac_objext
6322 if { (ac_try="$ac_compile"
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_compile") 2>conftest.er1
6330 grep -v '^ *+' conftest.er1 >conftest.err
6332 cat conftest.err >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } &&
6335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6336 { (case "(($ac_try" in
6337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338 *) ac_try_echo=$ac_try;;
6340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341 (eval "$ac_try") 2>&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }; } &&
6345 { ac_try='test -s conftest.$ac_objext'
6346 { (case "(($ac_try" in
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_try") 2>&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; }; then
6355 gcc_cv_mkdir_takes_one_arg=no
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6360 gcc_cv_mkdir_takes_one_arg=yes
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365 { echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
6366 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6; }
6367 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
6369 cat >>confdefs.h <<\_ACEOF
6370 #define MKDIR_TAKES_ONE_ARG 1
6384 build_install_headers_dir=install-headers-tar
6389 host_truncate_target=
6392 # Decode the host machine, then the target machine.
6393 # For the host machine, we save the xm_file variable as host_xm_file;
6394 # then we decode the target machine and forget everything else
6395 # that came from the host machine.
6396 #for machine in $build $host $target; do
6397 # . ${srcdir}/config.gcc
6400 extra_objs="${host_extra_objs} ${extra_objs}"
6402 # Default the target-machine variables that were not explicitly set.
6403 if test x"$tm_file" = x
6404 then tm_file=$cpu_type/$cpu_type.h; fi
6406 if test x"$extra_headers" = x
6407 then extra_headers=; fi
6409 if test x$md_file = x
6410 then md_file=$cpu_type/$cpu_type.md; fi
6412 if test x$out_file = x
6413 then out_file=$cpu_type/$cpu_type.c; fi
6415 if test x"$tmake_file" = x
6416 then tmake_file=$cpu_type/t-$cpu_type
6419 if test x"$dwarf2" = xyes
6420 then tm_file="$tm_file tm-dwarf2.h"
6423 # Handle cpp installation.
6424 if test x$enable_cpp != xno
6426 tmake_file="$tmake_file t-install-cpp"
6429 # auto-host.h is the file containing items generated by autoconf and is
6430 # the first file included by config.h.
6431 # If host=build, it is correct to have hconfig include auto-host.h
6432 # as well. If host!=build, we are in error and need to do more
6433 # work to find out the build config parameters.
6434 if test x$host = x$build
6436 build_auto=auto-host.h
6438 # We create a subdir, then run autoconf in the subdir.
6439 # To prevent recursion we set host and build for the new
6440 # invocation of configure to the build for this invocation
6447 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
6448 *) realsrcdir=../${srcdir};;
6450 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
6451 --target=$target --host=$build --build=$build
6453 # We just finished tests for the build machine, so rename
6454 # the file auto-build.h in the gcc directory.
6455 mv auto-host.h ../auto-build.h
6458 build_auto=auto-build.h
6461 tm_file="${tm_file} defaults.h"
6462 host_xm_file="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
6463 build_xm_file="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
6464 xm_file="ansidecl.h ${xm_file} ${tm_file}"
6466 # Truncate the target if necessary
6467 if test x$host_truncate_target != x; then
6468 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6471 # Get the version trigger filename from the toplevel
6472 if test "${with_gcc_version_trigger+set}" = set; then
6473 gcc_version_trigger=$with_gcc_version_trigger
6475 gcc_version_trigger=${srcdir}/version.c
6477 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
6478 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
6480 # Compile in configure arguments.
6481 if test -f configargs.h ; then
6482 # Being re-configured.
6483 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
6484 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
6486 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
6488 cat > configargs.h <<EOF
6489 /* Generated automatically. */
6490 static const char configuration_arguments[] = "$gcc_config_arguments";
6491 static const char thread_model[] = "$thread_file";
6494 # Internationalization
6496 VERSION="$gcc_version"
6498 cat >>confdefs.h <<_ACEOF
6499 #define PACKAGE "$PACKAGE"
6503 cat >>confdefs.h <<_ACEOF
6504 #define VERSION "$VERSION"
6512 # Get an absolute path to the GCC top-level source directory
6518 out_object_file=`basename $out_file .c`.o
6520 # Figure out what assembler we will be using.
6521 { echo "$as_me:$LINENO: checking what assembler to use" >&5
6522 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6; }
6524 gcc_cv_gas_major_version=
6525 gcc_cv_gas_minor_version=
6526 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
6527 if test -x "$DEFAULT_ASSEMBLER"; then
6528 gcc_cv_as="$DEFAULT_ASSEMBLER"
6529 elif test -x "$AS"; then
6531 elif test -x as$host_exeext; then
6532 # Build using assembler in the current directory.
6533 gcc_cv_as=./as$host_exeext
6534 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
6535 # Single tree build which includes gas.
6536 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
6538 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6539 if test x$gcc_cv_gas_version != x; then
6543 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
6544 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6547 if test "x$gcc_cv_as" = x -a x$host = x$target; then
6549 # Search the same directories that the installed compiler will
6550 # search. Else we may find the wrong assembler and lose. If we
6551 # do not find a suitable assembler binary, then try the user's
6554 # Also note we have to check MD_EXEC_PREFIX before checking the
6555 # user's path. Unfortunately, there is no good way to get at the
6556 # value of MD_EXEC_PREFIX here. So we do a brute force search
6557 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6558 # to be fixed as part of the make/configure rewrite too.
6560 if test "x$exec_prefix" = xNONE; then
6561 if test "x$prefix" = xNONE; then
6562 test_prefix=/usr/local
6567 test_prefix=$exec_prefix
6570 # If the loop below does not find an assembler, then use whatever
6571 # one we can find in the users's path.
6573 gcc_cv_as=as$host_exeext
6575 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
6576 $test_prefix/lib/gcc-lib/$target \
6577 /usr/lib/gcc/$target/$gcc_version \
6578 /usr/lib/gcc/$target \
6579 $test_prefix/$target/bin/$target/$gcc_version \
6580 $test_prefix/$target/bin \
6585 /bsd43/usr/lib/cmplrs/cc \
6586 /usr/cross64/usr/bin \
6587 /usr/lib/cmplrs/cc \
6588 /sysv/usr/lib/cmplrs/cc \
6589 /svr4/usr/lib/cmplrs/cc \
6592 for dir in $test_dirs; do
6593 if test -f $dir/as$host_exeext; then
6594 gcc_cv_as=$dir/as$host_exeext
6599 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6600 { echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
6601 echo "${ECHO_T}\"newly built gas\"" >&6; }
6603 { echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
6604 echo "${ECHO_T}$gcc_cv_as" >&6; }
6607 # Figure out what nm we will be using.
6608 { echo "$as_me:$LINENO: checking what nm to use" >&5
6609 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6; }
6610 if test -x nm$host_exeext; then
6611 gcc_cv_nm=./nm$host_exeext
6612 elif test x$host = x$target; then
6614 gcc_cv_nm=nm$host_exeext
6616 { echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
6617 echo "${ECHO_T}$gcc_cv_nm" >&6; }
6620 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6621 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
6622 # Check whether --enable-maintainer-mode was given.
6623 if test "${enable_maintainer_mode+set}" = set; then
6624 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
6630 { echo "$as_me:$LINENO: result: $maintainer_mode" >&5
6631 echo "${ECHO_T}$maintainer_mode" >&6; }
6633 if test "$maintainer_mode" = "yes"; then
6639 # These (without "all_") are set in each config-lang.in.
6640 # `language' must be a single word so is spelled singularly.
6642 all_outputs='Makefile'
6643 # List of language makefile fragments.
6645 # Add the language fragments.
6646 # Languages are added via two mechanisms. Some information must be
6647 # recorded in makefile variables, these are defined in config-lang.in.
6648 # We accumulate them and plug them into the main Makefile.
6649 # The other mechanism is a set of hooks for each of the main targets
6650 # like `clean', `install', etc.
6652 language_fragments="Make-lang"
6654 # Define variables host_canonical and build_canonical
6655 # because some Cygnus local changes in the Makefile depend on them.
6656 build_canonical=${build}
6657 host_canonical=${host}
6659 if test "${host}" != "${target}" ; then
6660 target_subdir=${target_alias}/
6666 # Nothing to do for FLOAT_H, float_format already handled.
6670 # Substitute configuration variables
6702 #AC_SUBST_FILE(target_overrides)
6703 #AC_SUBST_FILE(host_overrides)
6704 #AC_SUBST(cross_defines)
6705 #AC_SUBST_FILE(cross_overrides)
6706 #AC_SUBST_FILE(build_overrides)
6708 # Create the Makefile
6709 # and configure language subdirectories
6710 ac_config_files="$ac_config_files $all_outputs"
6712 ac_config_commands="$ac_config_commands default"
6714 cat >confcache <<\_ACEOF
6715 # This file is a shell script that caches the results of configure
6716 # tests run on this system so they can be shared between configure
6717 # scripts and configure runs, see configure's option --config-cache.
6718 # It is not useful on other systems. If it contains results you don't
6719 # want to keep, you may remove or edit it.
6721 # config.status only pays attention to the cache file if you give it
6722 # the --recheck option to rerun configure.
6724 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6725 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6730 # The following way of writing the cache mishandles newlines in values,
6731 # but we know of no workaround that is simple, portable, and efficient.
6732 # So, we kill variables containing newlines.
6733 # Ultrix sh set writes to stderr and can't be redirected directly,
6734 # and sets the high bit in the cache file unless we assign to the vars.
6736 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6737 eval ac_val=\$$ac_var
6741 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6742 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6745 _ | IFS | as_nl) ;; #(
6746 *) $as_unset $ac_var ;;
6752 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6753 *${as_nl}ac_space=\ *)
6754 # `set' does not quote correctly, so add quotes (double-quote
6755 # substitution turns \\\\ into \\, and sed turns \\ into \).
6758 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6761 # `set' quotes correctly as required by POSIX, so do not add quotes.
6762 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6771 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6773 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6775 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6776 if test -w "$cache_file"; then
6777 test "x$cache_file" != "x/dev/null" &&
6778 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6779 echo "$as_me: updating cache $cache_file" >&6;}
6780 cat confcache >$cache_file
6782 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6783 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6788 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6789 # Let make expand exec_prefix.
6790 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6792 DEFS=-DHAVE_CONFIG_H
6796 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6797 # 1. Remove the extension, and $U if already installed.
6798 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6799 ac_i=`echo "$ac_i" | sed "$ac_script"`
6800 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6801 # will be set to the directory where LIBOBJS objects are built.
6802 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6803 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6807 LTLIBOBJS=$ac_ltlibobjs
6811 : ${CONFIG_STATUS=./config.status}
6812 ac_clean_files_save=$ac_clean_files
6813 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6814 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6815 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6816 cat >$CONFIG_STATUS <<_ACEOF
6818 # Generated by $as_me.
6819 # Run this file to recreate the current configuration.
6820 # Compiler output produced by configure, useful for debugging
6821 # configure, is in config.log if it exists.
6826 SHELL=\${CONFIG_SHELL-$SHELL}
6829 cat >>$CONFIG_STATUS <<\_ACEOF
6830 ## --------------------- ##
6831 ## M4sh Initialization. ##
6832 ## --------------------- ##
6834 # Be Bourne compatible
6835 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6838 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6839 # is contrary to our usage. Disable this feature.
6840 alias -g '${1+"$@"}'='"$@"'
6841 setopt NO_GLOB_SUBST
6843 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
6845 BIN_SH=xpg4; export BIN_SH # for Tru64
6846 DUALCASE=1; export DUALCASE # for MKS sh
6850 # Avoid depending upon Character Ranges.
6851 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6852 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6853 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6854 as_cr_digits='0123456789'
6855 as_cr_alnum=$as_cr_Letters$as_cr_digits
6857 # The user is always right.
6858 if test "${PATH_SEPARATOR+set}" != set; then
6859 echo "#! /bin/sh" >conf$$.sh
6860 echo "exit 0" >>conf$$.sh
6862 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6870 # Support unset when possible.
6871 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6879 # We need space, tab and new line, in precisely that order. Quoting is
6880 # there to prevent editors from complaining about space-tab.
6881 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6882 # splitting by setting IFS to empty value.)
6887 # Find who we are. Look in the path if we contain no directory separator.
6889 *[\\/]* ) as_myself=$0 ;;
6890 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 test -z "$as_dir" && as_dir=.
6895 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6901 # We did not find ourselves, most probably we were run as `sh COMMAND'
6902 # in which case we are not to be found in the path.
6903 if test "x$as_myself" = x; then
6906 if test ! -f "$as_myself"; then
6907 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6908 { (exit 1); exit 1; }
6911 # Work around bugs in pre-3.0 UWIN ksh.
6912 for as_var in ENV MAIL MAILPATH
6913 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6921 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6922 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6923 LC_TELEPHONE LC_TIME
6925 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6926 eval $as_var=C; export $as_var
6928 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6932 # Required to use basename.
6933 if expr a : '\(a\)' >/dev/null 2>&1 &&
6934 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6940 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6941 as_basename=basename
6947 # Name of the executable.
6948 as_me=`$as_basename -- "$0" ||
6949 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6950 X"$0" : 'X\(//\)$' \| \
6951 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6953 sed '/^.*\/\([^/][^/]*\)\/*$/{
6974 test "x$as_lineno_1" != "x$as_lineno_2" &&
6975 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6977 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6978 # uniformly replaced by the line number. The first 'sed' inserts a
6979 # line-number line after each line using $LINENO; the second 'sed'
6980 # does the real work. The second script uses 'N' to pair each
6981 # line-number line with the line containing $LINENO, and appends
6982 # trailing '-' during substitution so that $LINENO is not a special
6984 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6985 # scripts with optimization help from Paolo Bonzini. Blame Lee
6986 # E. McMahon (1931-1989) for sed's syntax. :-)
6998 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7002 chmod +x "$as_me.lineno" ||
7003 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7004 { (exit 1); exit 1; }; }
7006 # Don't try to exec as it changes $[0], causing all sort of problems
7007 # (the dirname of $[0] is not the place where we might find the
7008 # original and so on. Autoconf is especially sensitive to this).
7010 # Exit status is that of the last command.
7015 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7021 ECHO_C= ECHO_N= ECHO_T=
7024 case `echo 'x\c'` in
7025 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7032 if expr a : '\(a\)' >/dev/null 2>&1 &&
7033 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7039 rm -f conf$$ conf$$.exe conf$$.file
7040 if test -d conf$$.dir; then
7041 rm -f conf$$.dir/conf$$.file
7047 if ln -s conf$$.file conf$$ 2>/dev/null; then
7049 # ... but there are two gotchas:
7050 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7051 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7052 # In both cases, we have to default to `cp -p'.
7053 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7055 elif ln conf$$.file conf$$ 2>/dev/null; then
7060 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7061 rmdir conf$$.dir 2>/dev/null
7063 if mkdir -p . 2>/dev/null; then
7066 test -d ./-p && rmdir ./-p
7070 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
7071 # systems may use methods other than mode bits to determine executability.
7072 cat >conf$$.file <<_ASEOF
7076 chmod +x conf$$.file
7077 if test -x conf$$.file >/dev/null 2>&1; then
7078 as_executable_p="test -x"
7084 # Sed expression to map a string onto a valid CPP name.
7085 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7087 # Sed expression to map a string onto a valid variable name.
7088 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7093 # Save the log message, to keep $[0] and so on meaningful, and to
7094 # report actual input values of CONFIG_FILES etc. instead of their
7095 # values after options handling.
7097 This file was extended by $as_me, which was
7098 generated by GNU Autoconf 2.60. Invocation command line was
7100 CONFIG_FILES = $CONFIG_FILES
7101 CONFIG_HEADERS = $CONFIG_HEADERS
7102 CONFIG_LINKS = $CONFIG_LINKS
7103 CONFIG_COMMANDS = $CONFIG_COMMANDS
7106 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7111 cat >>$CONFIG_STATUS <<_ACEOF
7112 # Files that config.status was made for.
7113 config_files="$ac_config_files"
7114 config_headers="$ac_config_headers"
7115 config_commands="$ac_config_commands"
7119 cat >>$CONFIG_STATUS <<\_ACEOF
7121 \`$as_me' instantiates files from templates according to the
7122 current configuration.
7124 Usage: $0 [OPTIONS] [FILE]...
7126 -h, --help print this help, then exit
7127 -V, --version print version number, then exit
7128 -q, --quiet do not print progress messages
7129 -d, --debug don't remove temporary files
7130 --recheck update $as_me by reconfiguring in the same conditions
7131 --file=FILE[:TEMPLATE]
7132 instantiate the configuration file FILE
7133 --header=FILE[:TEMPLATE]
7134 instantiate the configuration header FILE
7136 Configuration files:
7139 Configuration headers:
7142 Configuration commands:
7145 Report bugs to <bug-autoconf@gnu.org>."
7148 cat >>$CONFIG_STATUS <<_ACEOF
7151 configured by $0, generated by GNU Autoconf 2.60,
7152 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7154 Copyright (C) 2006 Free Software Foundation, Inc.
7155 This config.status script is free software; the Free Software Foundation
7156 gives unlimited permission to copy, distribute and modify it."
7162 cat >>$CONFIG_STATUS <<\_ACEOF
7163 # If no file are specified by the user, then we need to provide default
7164 # value. By we need to know if files were specified by the user.
7170 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7171 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7182 # Handling of the options.
7183 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7185 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7186 echo "$ac_cs_version"; exit ;;
7187 --debug | --debu | --deb | --de | --d | -d )
7189 --file | --fil | --fi | --f )
7191 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7192 ac_need_defaults=false;;
7193 --header | --heade | --head | --hea )
7195 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7196 ac_need_defaults=false;;
7198 # Conflict between --help and --header
7199 { echo "$as_me: error: ambiguous option: $1
7200 Try \`$0 --help' for more information." >&2
7201 { (exit 1); exit 1; }; };;
7202 --help | --hel | -h )
7203 echo "$ac_cs_usage"; exit ;;
7204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7205 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7209 -*) { echo "$as_me: error: unrecognized option: $1
7210 Try \`$0 --help' for more information." >&2
7211 { (exit 1); exit 1; }; } ;;
7213 *) ac_config_targets="$ac_config_targets $1"
7214 ac_need_defaults=false ;;
7220 ac_configure_extra_args=
7222 if $ac_cs_silent; then
7224 ac_configure_extra_args="$ac_configure_extra_args --silent"
7228 cat >>$CONFIG_STATUS <<_ACEOF
7229 if \$ac_cs_recheck; then
7230 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7233 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7237 cat >>$CONFIG_STATUS <<\_ACEOF
7241 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7242 ## Running $as_me. ##
7248 cat >>$CONFIG_STATUS <<_ACEOF
7256 target_alias='${target_alias}'
7258 symbolic_link='${symbolic_link}'
7259 program_transform_set='${program_transform_set}'
7260 program_transform_name='${program_transform_name}'
7261 dep_host_xmake_file='${dep_host_xmake_file}'
7262 host_xmake_file='${host_xmake_file}'
7263 dep_tmake_file='${dep_tmake_file}'
7264 tmake_file='${tmake_file}'
7265 thread_file='${thread_file}'
7266 gcc_config_arguments='${gcc_config_arguments}'
7267 gcc_version='${gcc_version}'
7268 gcc_version_full='${gcc_version_full}'
7269 gcc_version_trigger='${gcc_version_trigger}'
7270 local_prefix='${local_prefix}'
7271 build_install_headers_dir='${build_install_headers_dir}'
7272 build_exeext='${build_exeext}'
7273 host_exeext='${host_exeext}'
7274 out_file='${out_file}'
7275 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
7276 SET_MAKE='${SET_MAKE}'
7277 target_list='${target_list}'
7278 target_overrides='${target_overrides}'
7279 host_overrides='${host_overrides}'
7280 cross_defines='${cross_defines}'
7281 cross_overrides='${cross_overrides}'
7282 build_overrides='${build_overrides}'
7283 cpp_install_dir='${cpp_install_dir}'
7288 cat >>$CONFIG_STATUS <<\_ACEOF
7290 # Handling of arguments.
7291 for ac_config_target in $ac_config_targets
7293 case $ac_config_target in
7294 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
7295 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
7296 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7298 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7299 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7300 { (exit 1); exit 1; }; };;
7305 # If the user did not use the arguments to specify the items to instantiate,
7306 # then the envvar interface is used. Set only those that are not.
7307 # We use the long form for the default assignment because of an extremely
7308 # bizarre bug on SunOS 4.1.3.
7309 if $ac_need_defaults; then
7310 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7311 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7312 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7315 # Have a temporary directory for convenience. Make it in the build tree
7316 # simply because there is no reason against having it here, and in addition,
7317 # creating and moving files from /tmp can sometimes cause problems.
7318 # Hook for its removal unless debugging.
7319 # Note that there is a small window in which the directory will not be cleaned:
7320 # after its creation but before its name has been assigned to `$tmp'.
7324 trap 'exit_status=$?
7325 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7327 trap '{ (exit 1); exit 1; }' 1 2 13 15
7329 # Create a (secure) tmp directory for tmp files.
7332 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7333 test -n "$tmp" && test -d "$tmp"
7336 tmp=./conf$$-$RANDOM
7337 (umask 077 && mkdir "$tmp")
7340 echo "$me: cannot create a temporary directory in ." >&2
7341 { (exit 1); exit 1; }
7345 # Set up the sed scripts for CONFIG_FILES section.
7348 # No need to generate the scripts if there are no CONFIG_FILES.
7349 # This happens for instance when ./config.status config.h
7350 if test -n "$CONFIG_FILES"; then
7357 for ac_last_try in false false false false false :; do
7358 cat >conf$$subs.sed <<_ACEOF
7359 SHELL!$SHELL$ac_delim
7360 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7361 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7362 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7363 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7364 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7365 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7366 exec_prefix!$exec_prefix$ac_delim
7367 prefix!$prefix$ac_delim
7368 program_transform_name!$program_transform_name$ac_delim
7369 bindir!$bindir$ac_delim
7370 sbindir!$sbindir$ac_delim
7371 libexecdir!$libexecdir$ac_delim
7372 datarootdir!$datarootdir$ac_delim
7373 datadir!$datadir$ac_delim
7374 sysconfdir!$sysconfdir$ac_delim
7375 sharedstatedir!$sharedstatedir$ac_delim
7376 localstatedir!$localstatedir$ac_delim
7377 includedir!$includedir$ac_delim
7378 oldincludedir!$oldincludedir$ac_delim
7379 docdir!$docdir$ac_delim
7380 infodir!$infodir$ac_delim
7381 htmldir!$htmldir$ac_delim
7382 dvidir!$dvidir$ac_delim
7383 pdfdir!$pdfdir$ac_delim
7384 psdir!$psdir$ac_delim
7385 libdir!$libdir$ac_delim
7386 localedir!$localedir$ac_delim
7387 mandir!$mandir$ac_delim
7389 ECHO_C!$ECHO_C$ac_delim
7390 ECHO_N!$ECHO_N$ac_delim
7391 ECHO_T!$ECHO_T$ac_delim
7393 build_alias!$build_alias$ac_delim
7394 host_alias!$host_alias$ac_delim
7395 target_alias!$target_alias$ac_delim
7397 CFLAGS!$CFLAGS$ac_delim
7398 LDFLAGS!$LDFLAGS$ac_delim
7399 CPPFLAGS!$CPPFLAGS$ac_delim
7400 ac_ct_CC!$ac_ct_CC$ac_delim
7401 EXEEXT!$EXEEXT$ac_delim
7402 OBJEXT!$OBJEXT$ac_delim
7403 NO_MINUS_C_MINUS_O!$NO_MINUS_C_MINUS_O$ac_delim
7404 OUTPUT_OPTION!$OUTPUT_OPTION$ac_delim
7407 EGREP!$EGREP$ac_delim
7408 warn_cflags!$warn_cflags$ac_delim
7409 SET_MAKE!$SET_MAKE$ac_delim
7413 RANLIB!$RANLIB$ac_delim
7414 INSTALL!$INSTALL$ac_delim
7415 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7416 INSTALL_DATA!$INSTALL_DATA$ac_delim
7417 have_mktemp_command!$have_mktemp_command$ac_delim
7418 STRIP!$STRIP$ac_delim
7419 manext!$manext$ac_delim
7420 objext!$objext$ac_delim
7421 PACKAGE!$PACKAGE$ac_delim
7422 VERSION!$VERSION$ac_delim
7423 MAINT!$MAINT$ac_delim
7424 build_canonical!$build_canonical$ac_delim
7425 host_canonical!$host_canonical$ac_delim
7426 target_subdir!$target_subdir$ac_delim
7427 objdir!$objdir$ac_delim
7428 all_stagestuff!$all_stagestuff$ac_delim
7429 build_exeext!$build_exeext$ac_delim
7430 build_install_headers_dir!$build_install_headers_dir$ac_delim
7431 build_xm_file_list!$build_xm_file_list$ac_delim
7432 build_xm_file!$build_xm_file$ac_delim
7433 build_xm_defines!$build_xm_defines$ac_delim
7434 check_languages!$check_languages$ac_delim
7435 dep_host_xmake_file!$dep_host_xmake_file$ac_delim
7436 dep_tmake_file!$dep_tmake_file$ac_delim
7437 extra_c_flags!$extra_c_flags$ac_delim
7438 extra_headers_list!$extra_headers_list$ac_delim
7439 extra_objs!$extra_objs$ac_delim
7440 extra_parts!$extra_parts$ac_delim
7441 extra_passes!$extra_passes$ac_delim
7442 extra_programs!$extra_programs$ac_delim
7443 gcc_config_arguments!$gcc_config_arguments$ac_delim
7444 gcc_version!$gcc_version$ac_delim
7445 gcc_version_full!$gcc_version_full$ac_delim
7446 gcc_version_trigger!$gcc_version_trigger$ac_delim
7447 host_exeext!$host_exeext$ac_delim
7448 host_extra_gcc_objs!$host_extra_gcc_objs$ac_delim
7449 install!$install$ac_delim
7450 lang_tree_files!$lang_tree_files$ac_delim
7451 local_prefix!$local_prefix$ac_delim
7452 md_file!$md_file$ac_delim
7453 out_file!$out_file$ac_delim
7454 out_object_file!$out_object_file$ac_delim
7455 symbolic_link!$symbolic_link$ac_delim
7458 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
7460 elif $ac_last_try; then
7461 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7462 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7463 { (exit 1); exit 1; }; }
7465 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7469 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7470 if test -n "$ac_eof"; then
7471 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7472 ac_eof=`expr $ac_eof + 1`
7475 cat >>$CONFIG_STATUS <<_ACEOF
7476 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7477 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7480 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7481 s/^/s,@/; s/!/@,|#_!!_#|/
7484 s/'"$ac_delim"'$/,g/; t
7486 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7487 ' >>$CONFIG_STATUS <conf$$subs.sed
7488 rm -f conf$$subs.sed
7489 cat >>$CONFIG_STATUS <<_ACEOF
7495 for ac_last_try in false false false false false :; do
7496 cat >conf$$subs.sed <<_ACEOF
7497 thread_file!$thread_file$ac_delim
7498 c_target_objs!$c_target_objs$ac_delim
7499 LIBOBJS!$LIBOBJS$ac_delim
7500 LTLIBOBJS!$LTLIBOBJS$ac_delim
7503 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
7505 elif $ac_last_try; then
7506 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7507 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7508 { (exit 1); exit 1; }; }
7510 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7514 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7515 if test -n "$ac_eof"; then
7516 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7517 ac_eof=`expr $ac_eof + 1`
7520 cat >>$CONFIG_STATUS <<_ACEOF
7521 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
7522 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7525 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7526 s/^/s,@/; s/!/@,|#_!!_#|/
7529 s/'"$ac_delim"'$/,g/; t
7531 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7532 ' >>$CONFIG_STATUS <conf$$subs.sed
7533 rm -f conf$$subs.sed
7534 cat >>$CONFIG_STATUS <<_ACEOF
7541 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7542 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7543 # trailing colons and then remove the whole line if VPATH becomes empty
7544 # (actually we leave an empty line to preserve line numbers).
7545 if test "x$srcdir" = x.; then
7546 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7550 s/^\([^=]*=[ ]*\):*/\1/
7556 cat >>$CONFIG_STATUS <<\_ACEOF
7557 fi # test -n "$CONFIG_FILES"
7560 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
7563 :[FHLC]) ac_mode=$ac_tag; continue;;
7565 case $ac_mode$ac_tag in
7567 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7568 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7569 { (exit 1); exit 1; }; };;
7570 :[FH]-) ac_tag=-:-;;
7571 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7588 -) ac_f="$tmp/stdin";;
7589 *) # Look for the file first in the build tree, then in the source tree
7590 # (if the path is not absolute). The absolute path cannot be DOS-style,
7591 # because $ac_f cannot contain `:'.
7595 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7597 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7598 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7599 { (exit 1); exit 1; }; };;
7601 ac_file_inputs="$ac_file_inputs $ac_f"
7604 # Let's still pretend it is `configure' which instantiates (i.e., don't
7605 # use $as_me), people would be surprised to read:
7606 # /* config.h. Generated by config.status. */
7607 configure_input="Generated from "`IFS=:
7608 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7609 if test x"$ac_file" != x-; then
7610 configure_input="$ac_file. $configure_input"
7611 { echo "$as_me:$LINENO: creating $ac_file" >&5
7612 echo "$as_me: creating $ac_file" >&6;}
7616 *:-:* | *:-) cat >"$tmp/stdin";;
7621 ac_dir=`$as_dirname -- "$ac_file" ||
7622 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7623 X"$ac_file" : 'X\(//\)[^/]' \| \
7624 X"$ac_file" : 'X\(//\)$' \| \
7625 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7646 -*) as_dir=./$as_dir;;
7648 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7652 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7653 *) as_qdir=$as_dir;;
7655 as_dirs="'$as_qdir' $as_dirs"
7656 as_dir=`$as_dirname -- "$as_dir" ||
7657 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7658 X"$as_dir" : 'X\(//\)[^/]' \| \
7659 X"$as_dir" : 'X\(//\)$' \| \
7660 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7679 test -d "$as_dir" && break
7681 test -z "$as_dirs" || eval "mkdir $as_dirs"
7682 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7683 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7684 { (exit 1); exit 1; }; }; }
7688 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7690 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7691 # A ".." for each directory in $ac_dir_suffix.
7692 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7693 case $ac_top_builddir_sub in
7694 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7695 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7698 ac_abs_top_builddir=$ac_pwd
7699 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7700 # for backward compatibility:
7701 ac_top_builddir=$ac_top_build_prefix
7704 .) # We are building in place.
7706 ac_top_srcdir=$ac_top_builddir_sub
7707 ac_abs_top_srcdir=$ac_pwd ;;
7708 [\\/]* | ?:[\\/]* ) # Absolute name.
7709 ac_srcdir=$srcdir$ac_dir_suffix;
7710 ac_top_srcdir=$srcdir
7711 ac_abs_top_srcdir=$srcdir ;;
7713 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7714 ac_top_srcdir=$ac_top_build_prefix$srcdir
7715 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7717 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7728 cat >>$CONFIG_STATUS <<\_ACEOF
7729 # If the template does not know about datarootdir, expand it.
7730 # FIXME: This hack should be removed a few years after 2.60.
7731 ac_datarootdir_hack=; ac_datarootdir_seen=
7733 case `sed -n '/datarootdir/ {
7742 ' $ac_file_inputs` in
7743 *datarootdir*) ac_datarootdir_seen=yes;;
7744 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7745 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7746 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7748 cat >>$CONFIG_STATUS <<_ACEOF
7749 ac_datarootdir_hack='
7750 s&@datadir@&$datadir&g
7751 s&@docdir@&$docdir&g
7752 s&@infodir@&$infodir&g
7753 s&@localedir@&$localedir&g
7754 s&@mandir@&$mandir&g
7755 s&\\\${datarootdir}&$datarootdir&g' ;;
7759 # Neutralize VPATH when `$srcdir' = `.'.
7760 # Shell code in configure.ac might set extrasub.
7761 # FIXME: do we really want to maintain this feature?
7762 cat >>$CONFIG_STATUS <<_ACEOF
7766 cat >>$CONFIG_STATUS <<\_ACEOF
7768 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7769 s&@configure_input@&$configure_input&;t t
7770 s&@top_builddir@&$ac_top_builddir_sub&;t t
7771 s&@srcdir@&$ac_srcdir&;t t
7772 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7773 s&@top_srcdir@&$ac_top_srcdir&;t t
7774 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7775 s&@builddir@&$ac_builddir&;t t
7776 s&@abs_builddir@&$ac_abs_builddir&;t t
7777 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7778 $ac_datarootdir_hack
7779 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
7781 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7782 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7783 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7784 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7785 which seems to be undefined. Please make sure it is defined." >&5
7786 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7787 which seems to be undefined. Please make sure it is defined." >&2;}
7791 -) cat "$tmp/out"; rm -f "$tmp/out";;
7792 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7801 # Transform confdefs.h into a sed script `conftest.defines', that
7802 # substitutes the proper values into config.h.in to produce config.h.
7803 rm -f conftest.defines conftest.tail
7804 # First, append a space to every undef/define line, to ease matching.
7805 echo 's/$/ /' >conftest.defines
7806 # Then, protect against being on the right side of a sed subst, or in
7807 # an unquoted here document, in config.status. If some macros were
7808 # called several times there might be several #defines for the same
7809 # symbol, which is useless. But do not sort them, since the last
7810 # AC_DEFINE must be honored.
7811 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7812 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7813 # NAME is the cpp macro being defined, VALUE is the value it is being given.
7814 # PARAMS is the parameter list in the macro definition--in most cases, it's
7815 # just an empty string.
7816 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
7817 ac_dB='\\)[ (].*,\\1define\\2'
7825 s/^[ ]*#[ ]*define[ ][ ]*//
7830 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7831 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7832 ' >>conftest.defines
7834 # Remove the space that was appended to ease matching.
7835 # Then replace #undef with comments. This is necessary, for
7836 # example, in the case of _POSIX_SOURCE, which is predefined and required
7837 # on some systems where configure will not decide to define it.
7838 # (The regexp can be short, since the line contains either #define or #undef.)
7840 s,^[ #]*u.*,/* & */,' >>conftest.defines
7842 # Break up conftest.defines:
7845 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7846 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7847 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7849 ac_in='$ac_file_inputs'
7850 ac_out='"$tmp/out1"'
7851 ac_nxt='"$tmp/out2"'
7855 # Write a here document:
7856 cat >>$CONFIG_STATUS <<_ACEOF
7857 # First, check the format of the line:
7858 cat >"\$tmp/defines.sed" <<\\CEOF
7859 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
7860 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
7864 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7866 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7867 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7868 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7869 grep . conftest.tail >/dev/null || break
7870 rm -f conftest.defines
7871 mv conftest.tail conftest.defines
7873 rm -f conftest.defines conftest.tail
7875 echo "ac_result=$ac_in" >>$CONFIG_STATUS
7876 cat >>$CONFIG_STATUS <<\_ACEOF
7877 if test x"$ac_file" != x-; then
7878 echo "/* $configure_input */" >"$tmp/config.h"
7879 cat "$ac_result" >>"$tmp/config.h"
7880 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7881 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7882 echo "$as_me: $ac_file is unchanged" >&6;}
7885 mv "$tmp/config.h" $ac_file
7888 echo "/* $configure_input */"
7894 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
7895 echo "$as_me: executing $ac_file commands" >&6;}
7900 case $ac_file$ac_mode in
7902 case x$CONFIG_HEADERS in
7903 xauto-host.h:config.in)
7907 # Avoid having to add intl to our include paths.
7908 if test -f intl/libintl.h; then
7909 echo creating libintl.h
7910 echo '#include "intl/libintl.h"' >libintl.h
7918 { (exit 0); exit 0; }
7920 chmod +x $CONFIG_STATUS
7921 ac_clean_files=$ac_clean_files_save
7924 # configure is writing to config.log, and then calls config.status.
7925 # config.status does its own redirection, appending to config.log.
7926 # Unfortunately, on DOS this fails, as config.log is still kept open
7927 # by configure, so config.status won't be able to write to it; its
7928 # output is simply discarded. So we exec the FD to /dev/null,
7929 # effectively closing config.log, so it can be properly (re)opened and
7930 # appended to by config.status. When coming back to configure, we
7931 # need to make the FD available again.
7932 if test "$no_create" != yes; then
7934 ac_config_status_args=
7935 test "$silent" = yes &&
7936 ac_config_status_args="$ac_config_status_args --quiet"
7938 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7940 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7941 # would make configure fail if this is the last instruction.
7942 $ac_cs_success || { (exit 1); exit 1; }