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="sdcppmain.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
671 build_install_headers_dir
702 ac_precious_vars='build_alias
712 # Initialize some variables set by options.
714 ac_init_version=false
715 # The variables have the same names as the options, with
716 # dashes changed to underlines.
724 program_transform_name=s,x,x,
732 # Installation directory options.
733 # These are left unexpanded so users can "make install exec_prefix=/foo"
734 # and all the variables that are supposed to be based on exec_prefix
735 # by default will actually change.
736 # Use braces instead of parens because sh, perl, etc. also accept them.
737 # (The list follows the same order as the GNU Coding Standards.)
738 bindir='${exec_prefix}/bin'
739 sbindir='${exec_prefix}/sbin'
740 libexecdir='${exec_prefix}/libexec'
741 datarootdir='${prefix}/share'
742 datadir='${datarootdir}'
743 sysconfdir='${prefix}/etc'
744 sharedstatedir='${prefix}/com'
745 localstatedir='${prefix}/var'
746 includedir='${prefix}/include'
747 oldincludedir='/usr/include'
748 docdir='${datarootdir}/doc/${PACKAGE}'
749 infodir='${datarootdir}/info'
754 libdir='${exec_prefix}/lib'
755 localedir='${datarootdir}/locale'
756 mandir='${datarootdir}/man'
762 # If the previous option needs an argument, assign it.
763 if test -n "$ac_prev"; then
764 eval $ac_prev=\$ac_option
770 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
774 # Accept the important Cygnus configure options, so we can diagnose typos.
776 case $ac_dashdash$ac_option in
780 -bindir | --bindir | --bindi | --bind | --bin | --bi)
782 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
785 -build | --build | --buil | --bui | --bu)
786 ac_prev=build_alias ;;
787 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
788 build_alias=$ac_optarg ;;
790 -cache-file | --cache-file | --cache-fil | --cache-fi \
791 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
792 ac_prev=cache_file ;;
793 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
794 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
795 cache_file=$ac_optarg ;;
798 cache_file=config.cache ;;
800 -datadir | --datadir | --datadi | --datad)
802 -datadir=* | --datadir=* | --datadi=* | --datad=*)
803 datadir=$ac_optarg ;;
805 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
806 | --dataroo | --dataro | --datar)
807 ac_prev=datarootdir ;;
808 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
809 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
810 datarootdir=$ac_optarg ;;
812 -disable-* | --disable-*)
813 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
814 # Reject names that are not valid shell variable names.
815 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
816 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
817 { (exit 1); exit 1; }; }
818 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
819 eval enable_$ac_feature=no ;;
821 -docdir | --docdir | --docdi | --doc | --do)
823 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
826 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
828 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
831 -enable-* | --enable-*)
832 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
835 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
836 { (exit 1); exit 1; }; }
837 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
838 eval enable_$ac_feature=\$ac_optarg ;;
840 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
841 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
842 | --exec | --exe | --ex)
843 ac_prev=exec_prefix ;;
844 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
845 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
846 | --exec=* | --exe=* | --ex=*)
847 exec_prefix=$ac_optarg ;;
849 -gas | --gas | --ga | --g)
850 # Obsolete; use --with-gas.
853 -help | --help | --hel | --he | -h)
855 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
856 ac_init_help=recursive ;;
857 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
858 ac_init_help=short ;;
860 -host | --host | --hos | --ho)
861 ac_prev=host_alias ;;
862 -host=* | --host=* | --hos=* | --ho=*)
863 host_alias=$ac_optarg ;;
865 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
867 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
869 htmldir=$ac_optarg ;;
871 -includedir | --includedir | --includedi | --included | --include \
872 | --includ | --inclu | --incl | --inc)
873 ac_prev=includedir ;;
874 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
875 | --includ=* | --inclu=* | --incl=* | --inc=*)
876 includedir=$ac_optarg ;;
878 -infodir | --infodir | --infodi | --infod | --info | --inf)
880 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
881 infodir=$ac_optarg ;;
883 -libdir | --libdir | --libdi | --libd)
885 -libdir=* | --libdir=* | --libdi=* | --libd=*)
888 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
889 | --libexe | --libex | --libe)
890 ac_prev=libexecdir ;;
891 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
892 | --libexe=* | --libex=* | --libe=*)
893 libexecdir=$ac_optarg ;;
895 -localedir | --localedir | --localedi | --localed | --locale)
897 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
898 localedir=$ac_optarg ;;
900 -localstatedir | --localstatedir | --localstatedi | --localstated \
901 | --localstate | --localstat | --localsta | --localst | --locals)
902 ac_prev=localstatedir ;;
903 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
904 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
905 localstatedir=$ac_optarg ;;
907 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
909 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
913 # Obsolete; use --without-fp.
916 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
917 | --no-cr | --no-c | -n)
920 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
921 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
924 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
925 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
926 | --oldin | --oldi | --old | --ol | --o)
927 ac_prev=oldincludedir ;;
928 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
929 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
930 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
931 oldincludedir=$ac_optarg ;;
933 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
935 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
938 -program-prefix | --program-prefix | --program-prefi | --program-pref \
939 | --program-pre | --program-pr | --program-p)
940 ac_prev=program_prefix ;;
941 -program-prefix=* | --program-prefix=* | --program-prefi=* \
942 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
943 program_prefix=$ac_optarg ;;
945 -program-suffix | --program-suffix | --program-suffi | --program-suff \
946 | --program-suf | --program-su | --program-s)
947 ac_prev=program_suffix ;;
948 -program-suffix=* | --program-suffix=* | --program-suffi=* \
949 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
950 program_suffix=$ac_optarg ;;
952 -program-transform-name | --program-transform-name \
953 | --program-transform-nam | --program-transform-na \
954 | --program-transform-n | --program-transform- \
955 | --program-transform | --program-transfor \
956 | --program-transfo | --program-transf \
957 | --program-trans | --program-tran \
958 | --progr-tra | --program-tr | --program-t)
959 ac_prev=program_transform_name ;;
960 -program-transform-name=* | --program-transform-name=* \
961 | --program-transform-nam=* | --program-transform-na=* \
962 | --program-transform-n=* | --program-transform-=* \
963 | --program-transform=* | --program-transfor=* \
964 | --program-transfo=* | --program-transf=* \
965 | --program-trans=* | --program-tran=* \
966 | --progr-tra=* | --program-tr=* | --program-t=*)
967 program_transform_name=$ac_optarg ;;
969 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
971 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
974 -psdir | --psdir | --psdi | --psd | --ps)
976 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
980 | -silent | --silent | --silen | --sile | --sil)
983 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
985 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
987 sbindir=$ac_optarg ;;
989 -sharedstatedir | --sharedstatedir | --sharedstatedi \
990 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
991 | --sharedst | --shareds | --shared | --share | --shar \
993 ac_prev=sharedstatedir ;;
994 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
995 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
996 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
998 sharedstatedir=$ac_optarg ;;
1000 -site | --site | --sit)
1002 -site=* | --site=* | --sit=*)
1005 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1007 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1008 srcdir=$ac_optarg ;;
1010 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1011 | --syscon | --sysco | --sysc | --sys | --sy)
1012 ac_prev=sysconfdir ;;
1013 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1014 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1015 sysconfdir=$ac_optarg ;;
1017 -target | --target | --targe | --targ | --tar | --ta | --t)
1018 ac_prev=target_alias ;;
1019 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1020 target_alias=$ac_optarg ;;
1022 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1025 -version | --version | --versio | --versi | --vers | -V)
1026 ac_init_version=: ;;
1029 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1032 { echo "$as_me: error: invalid package name: $ac_package" >&2
1033 { (exit 1); exit 1; }; }
1034 ac_package=`echo $ac_package| sed 's/-/_/g'`
1035 eval with_$ac_package=\$ac_optarg ;;
1037 -without-* | --without-*)
1038 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1041 { echo "$as_me: error: invalid package name: $ac_package" >&2
1042 { (exit 1); exit 1; }; }
1043 ac_package=`echo $ac_package | sed 's/-/_/g'`
1044 eval with_$ac_package=no ;;
1047 # Obsolete; use --with-x.
1050 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1051 | --x-incl | --x-inc | --x-in | --x-i)
1052 ac_prev=x_includes ;;
1053 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1054 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1055 x_includes=$ac_optarg ;;
1057 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1058 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1059 ac_prev=x_libraries ;;
1060 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1061 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1062 x_libraries=$ac_optarg ;;
1064 -*) { echo "$as_me: error: unrecognized option: $ac_option
1065 Try \`$0 --help' for more information." >&2
1066 { (exit 1); exit 1; }; }
1070 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1073 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1074 { (exit 1); exit 1; }; }
1075 eval $ac_envvar=\$ac_optarg
1076 export $ac_envvar ;;
1079 # FIXME: should be removed in autoconf 3.0.
1080 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1081 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1082 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1083 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1089 if test -n "$ac_prev"; then
1090 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1091 { echo "$as_me: error: missing argument to $ac_option" >&2
1092 { (exit 1); exit 1; }; }
1095 # Be sure to have absolute directory names.
1096 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1097 datadir sysconfdir sharedstatedir localstatedir includedir \
1098 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1099 libdir localedir mandir
1101 eval ac_val=\$$ac_var
1103 [\\/$]* | ?:[\\/]* ) continue;;
1104 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1106 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1107 { (exit 1); exit 1; }; }
1110 # There might be people who depend on the old broken behavior: `$host'
1111 # used to hold the argument of --host etc.
1112 # FIXME: To remove some day.
1115 target=$target_alias
1117 # FIXME: To remove some day.
1118 if test "x$host_alias" != x; then
1119 if test "x$build_alias" = x; then
1120 cross_compiling=maybe
1121 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1122 If a cross compiler is detected then cross compile mode will be used." >&2
1123 elif test "x$build_alias" != "x$host_alias"; then
1129 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1131 test "$silent" = yes && exec 6>/dev/null
1134 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1135 ac_ls_di=`ls -di .` &&
1136 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1137 { echo "$as_me: error: Working directory cannot be determined" >&2
1138 { (exit 1); exit 1; }; }
1139 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1140 { echo "$as_me: error: pwd does not report name of working directory" >&2
1141 { (exit 1); exit 1; }; }
1144 # Find the source files, if location was not specified.
1145 if test -z "$srcdir"; then
1146 ac_srcdir_defaulted=yes
1147 # Try the directory containing this script, then the parent directory.
1148 ac_confdir=`$as_dirname -- "$0" ||
1149 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1150 X"$0" : 'X\(//\)[^/]' \| \
1151 X"$0" : 'X\(//\)$' \| \
1152 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1172 if test ! -r "$srcdir/$ac_unique_file"; then
1176 ac_srcdir_defaulted=no
1178 if test ! -r "$srcdir/$ac_unique_file"; then
1179 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1180 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1181 { (exit 1); exit 1; }; }
1183 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1185 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1186 { (exit 1); exit 1; }; }
1188 # When building in place, set srcdir=.
1189 if test "$ac_abs_confdir" = "$ac_pwd"; then
1192 # Remove unnecessary trailing slashes from srcdir.
1193 # Double slashes in file names in object file debugging info
1194 # mess up M-x gdb in Emacs.
1196 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1198 for ac_var in $ac_precious_vars; do
1199 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1200 eval ac_env_${ac_var}_value=\$${ac_var}
1201 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1202 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1206 # Report the --help message.
1208 if test "$ac_init_help" = "long"; then
1209 # Omit some internal or obsolete options to make the list less imposing.
1210 # This message is too long to be a string in the A/UX 3.1 sh.
1212 \`configure' configures this package to adapt to many kinds of systems.
1214 Usage: $0 [OPTION]... [VAR=VALUE]...
1216 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1217 VAR=VALUE. See below for descriptions of some of the useful variables.
1219 Defaults for the options are specified in brackets.
1222 -h, --help display this help and exit
1223 --help=short display options specific to this package
1224 --help=recursive display the short help of all the included packages
1225 -V, --version display version information and exit
1226 -q, --quiet, --silent do not print \`checking...' messages
1227 --cache-file=FILE cache test results in FILE [disabled]
1228 -C, --config-cache alias for \`--cache-file=config.cache'
1229 -n, --no-create do not create output files
1230 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1232 Installation directories:
1233 --prefix=PREFIX install architecture-independent files in PREFIX
1234 [$ac_default_prefix]
1235 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1238 By default, \`make install' will install all the files in
1239 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1240 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1241 for instance \`--prefix=\$HOME'.
1243 For better control, use the options below.
1245 Fine tuning of the installation directories:
1246 --bindir=DIR user executables [EPREFIX/bin]
1247 --sbindir=DIR system admin executables [EPREFIX/sbin]
1248 --libexecdir=DIR program executables [EPREFIX/libexec]
1249 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1250 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1251 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1252 --libdir=DIR object code libraries [EPREFIX/lib]
1253 --includedir=DIR C header files [PREFIX/include]
1254 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1255 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1256 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1257 --infodir=DIR info documentation [DATAROOTDIR/info]
1258 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1259 --mandir=DIR man documentation [DATAROOTDIR/man]
1260 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1261 --htmldir=DIR html documentation [DOCDIR]
1262 --dvidir=DIR dvi documentation [DOCDIR]
1263 --pdfdir=DIR pdf documentation [DOCDIR]
1264 --psdir=DIR ps documentation [DOCDIR]
1270 --program-prefix=PREFIX prepend PREFIX to installed program names
1271 --program-suffix=SUFFIX append SUFFIX to installed program names
1272 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1276 if test -n "$ac_init_help"; then
1281 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1282 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1283 --enable-c-mbchar enable multibyte characters for C and C++
1284 --enable-maintainer-mode
1285 enable make rules and dependencies not useful
1286 (and sometimes confusing) to the casual installer
1289 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1290 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1291 --with-gnu-ld arrange to work with GNU ld.
1292 --with-ld arrange to use the specified ld (full pathname)
1293 --with-gnu-as arrange to work with GNU as
1294 --with-as arrange to use the specified as (full pathname)
1295 --with-stabs arrange to use stabs instead of host debug format
1296 --with-elf arrange to use ELF instead of host debug format
1297 --with-local-prefix=DIR specifies directory to put local include
1299 Some influential environment variables:
1300 CC C compiler command
1301 CFLAGS C compiler flags
1302 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1303 nonstandard directory <lib dir>
1304 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1305 you have headers in a nonstandard directory <include dir>
1308 Use these variables to override the choices made by `configure' or to help
1309 it to find libraries and programs with nonstandard names/locations.
1315 if test "$ac_init_help" = "recursive"; then
1316 # If there are subdirs, report their specific --help.
1317 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1318 test -d "$ac_dir" || continue
1322 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1324 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1325 # A ".." for each directory in $ac_dir_suffix.
1326 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1327 case $ac_top_builddir_sub in
1328 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1329 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1332 ac_abs_top_builddir=$ac_pwd
1333 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1334 # for backward compatibility:
1335 ac_top_builddir=$ac_top_build_prefix
1338 .) # We are building in place.
1340 ac_top_srcdir=$ac_top_builddir_sub
1341 ac_abs_top_srcdir=$ac_pwd ;;
1342 [\\/]* | ?:[\\/]* ) # Absolute name.
1343 ac_srcdir=$srcdir$ac_dir_suffix;
1344 ac_top_srcdir=$srcdir
1345 ac_abs_top_srcdir=$srcdir ;;
1347 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1348 ac_top_srcdir=$ac_top_build_prefix$srcdir
1349 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1351 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1353 cd "$ac_dir" || { ac_status=$?; continue; }
1354 # Check for guested configure.
1355 if test -f "$ac_srcdir/configure.gnu"; then
1357 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1358 elif test -f "$ac_srcdir/configure"; then
1360 $SHELL "$ac_srcdir/configure" --help=recursive
1362 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1364 cd "$ac_pwd" || { ac_status=$?; break; }
1368 test -n "$ac_init_help" && exit $ac_status
1369 if $ac_init_version; then
1372 generated by GNU Autoconf 2.60
1374 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1375 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1376 This configure script is free software; the Free Software Foundation
1377 gives unlimited permission to copy, distribute and modify it.
1381 cat >config.log <<_ACEOF
1382 This file contains any messages produced by compilers while
1383 running configure, to aid debugging if configure makes a mistake.
1385 It was created by $as_me, which was
1386 generated by GNU Autoconf 2.60. Invocation command line was
1398 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1399 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1400 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1401 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1402 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1404 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1405 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1407 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1408 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1409 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1410 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1411 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1412 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1413 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1421 test -z "$as_dir" && as_dir=.
1422 echo "PATH: $as_dir"
1438 # Keep a trace of the command line.
1439 # Strip out --no-create and --no-recursion so they do not pile up.
1440 # Strip out --silent because we don't want to record it for future runs.
1441 # Also quote any args containing shell meta-characters.
1442 # Make two passes to allow for proper duplicate-argument suppression.
1446 ac_must_keep_next=false
1452 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1453 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1454 | -silent | --silent | --silen | --sile | --sil)
1457 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1460 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1462 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1463 if test $ac_must_keep_next = true; then
1464 ac_must_keep_next=false # Got value, back to normal.
1467 *=* | --config-cache | -C | -disable-* | --disable-* \
1468 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1469 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1470 | -with-* | --with-* | -without-* | --without-* | --x)
1471 case "$ac_configure_args0 " in
1472 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1475 -* ) ac_must_keep_next=true ;;
1478 ac_configure_args="$ac_configure_args '$ac_arg'"
1483 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1484 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1486 # When interrupted or exit'd, cleanup temporary files, and complete
1487 # config.log. We remove comments because anyway the quotes in there
1488 # would cause problems or look ugly.
1489 # WARNING: Use '\'' to represent an apostrophe within the trap.
1490 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1491 trap 'exit_status=$?
1492 # Save into config.log some information that might help in debugging.
1497 ## ---------------- ##
1498 ## Cache variables. ##
1499 ## ---------------- ##
1502 # The following way of writing the cache mishandles newlines in values,
1504 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1505 eval ac_val=\$$ac_var
1509 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1510 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1513 _ | IFS | as_nl) ;; #(
1514 *) $as_unset $ac_var ;;
1519 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1520 *${as_nl}ac_space=\ *)
1522 "s/'\''/'\''\\\\'\'''\''/g;
1523 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1526 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1534 ## ----------------- ##
1535 ## Output variables. ##
1536 ## ----------------- ##
1539 for ac_var in $ac_subst_vars
1541 eval ac_val=\$$ac_var
1543 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1545 echo "$ac_var='\''$ac_val'\''"
1549 if test -n "$ac_subst_files"; then
1551 ## ------------------- ##
1552 ## File substitutions. ##
1553 ## ------------------- ##
1556 for ac_var in $ac_subst_files
1558 eval ac_val=\$$ac_var
1560 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1562 echo "$ac_var='\''$ac_val'\''"
1567 if test -s confdefs.h; then
1577 test "$ac_signal" != 0 &&
1578 echo "$as_me: caught signal $ac_signal"
1579 echo "$as_me: exit $exit_status"
1581 rm -f core *.core core.conftest.* &&
1582 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1585 for ac_signal in 1 2 13 15; do
1586 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1590 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1591 rm -f -r conftest* confdefs.h
1593 # Predefined preprocessor variables.
1595 cat >>confdefs.h <<_ACEOF
1596 #define PACKAGE_NAME "$PACKAGE_NAME"
1600 cat >>confdefs.h <<_ACEOF
1601 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1605 cat >>confdefs.h <<_ACEOF
1606 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1610 cat >>confdefs.h <<_ACEOF
1611 #define PACKAGE_STRING "$PACKAGE_STRING"
1615 cat >>confdefs.h <<_ACEOF
1616 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1620 # Let the site file select an alternate cache file if it wants to.
1621 # Prefer explicitly selected file to automatically selected ones.
1622 if test -n "$CONFIG_SITE"; then
1623 set x "$CONFIG_SITE"
1624 elif test "x$prefix" != xNONE; then
1625 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1627 set x "$ac_default_prefix/share/config.site" \
1628 "$ac_default_prefix/etc/config.site"
1633 if test -r "$ac_site_file"; then
1634 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1635 echo "$as_me: loading site script $ac_site_file" >&6;}
1636 sed 's/^/| /' "$ac_site_file" >&5
1641 if test -r "$cache_file"; then
1642 # Some versions of bash will fail to source /dev/null (special
1643 # files actually), so we avoid doing that.
1644 if test -f "$cache_file"; then
1645 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1646 echo "$as_me: loading cache $cache_file" >&6;}
1648 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1649 *) . "./$cache_file";;
1653 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1654 echo "$as_me: creating cache $cache_file" >&6;}
1658 # Check that the precious variables saved in the cache have kept the same
1660 ac_cache_corrupted=false
1661 for ac_var in $ac_precious_vars; do
1662 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1663 eval ac_new_set=\$ac_env_${ac_var}_set
1664 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1665 eval ac_new_val=\$ac_env_${ac_var}_value
1666 case $ac_old_set,$ac_new_set in
1668 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1669 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1670 ac_cache_corrupted=: ;;
1672 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1673 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1674 ac_cache_corrupted=: ;;
1677 if test "x$ac_old_val" != "x$ac_new_val"; then
1678 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1679 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1680 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1681 echo "$as_me: former value: $ac_old_val" >&2;}
1682 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1683 echo "$as_me: current value: $ac_new_val" >&2;}
1684 ac_cache_corrupted=:
1687 # Pass precious variables to config.status.
1688 if test "$ac_new_set" = set; then
1690 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1691 *) ac_arg=$ac_var=$ac_new_val ;;
1693 case " $ac_configure_args " in
1694 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1695 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1699 if $ac_cache_corrupted; then
1700 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1701 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1702 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1703 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1704 { (exit 1); exit 1; }; }
1724 ac_cpp='$CPP $CPPFLAGS'
1725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1730 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1735 symbolic_link='ln -s'
1738 # Check for additional parameters
1742 # Check whether --with-gnu-ld was given.
1743 if test "${with_gnu_ld+set}" = set; then
1744 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
1750 # With pre-defined ld
1752 # Check whether --with-ld was given.
1753 if test "${with_ld+set}" = set; then
1754 withval=$with_ld; DEFAULT_LINKER="$with_ld"
1757 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1758 if test ! -x "$DEFAULT_LINKER"; then
1759 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1760 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1761 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1765 cat >>confdefs.h <<_ACEOF
1766 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1773 # Check whether --with-gnu-as was given.
1774 if test "${with_gnu_as+set}" = set; then
1775 withval=$with_gnu_as; gas_flag="$with_gnu_as"
1782 # Check whether --with-as was given.
1783 if test "${with_as+set}" = set; then
1784 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
1787 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1788 if test ! -x "$DEFAULT_ASSEMBLER"; then
1789 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1790 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1791 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1795 cat >>confdefs.h <<_ACEOF
1796 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1803 # Check whether --with-stabs was given.
1804 if test "${with_stabs+set}" = set; then
1805 withval=$with_stabs; stabs="$with_stabs"
1813 # Check whether --with-elf was given.
1814 if test "${with_elf+set}" = set; then
1815 withval=$with_elf; elf="$with_elf"
1821 # Specify the local prefix
1824 # Check whether --with-local-prefix was given.
1825 if test "${with_local_prefix+set}" = set; then
1826 withval=$with_local_prefix; case "${withval}" in
1827 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1828 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1829 { (exit 1); exit 1; }; } ;;
1831 *) local_prefix=$with_local_prefix ;;
1836 # Default local prefix if it is empty
1837 if test x$local_prefix = x; then
1838 local_prefix=/usr/local
1841 test "$program_prefix" != NONE &&
1842 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1843 # Use a double $ so make ignores it.
1844 test "$program_suffix" != NONE &&
1845 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1846 # Double any \ or $. echo might interpret backslashes.
1847 # By default was `s,x,x', remove it if useless.
1848 cat <<\_ACEOF >conftest.sed
1849 s/[\\$]/&&/g;s/;s,x,x,$//
1851 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1855 # Enable Multibyte Characters for C/C++
1856 # Check whether --enable-c-mbchar was given.
1857 if test "${enable_c_mbchar+set}" = set; then
1858 enableval=$enable_c_mbchar; if test x$enable_c_mbchar != xno; then
1860 cat >>confdefs.h <<\_ACEOF
1861 #define MULTIBYTE_CHARS 1
1868 # Find the native compiler
1870 ac_cpp='$CPP $CPPFLAGS'
1871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1874 if test -n "$ac_tool_prefix"; then
1875 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1876 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1879 if test "${ac_cv_prog_CC+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 if test -n "$CC"; then
1883 ac_cv_prog_CC="$CC" # Let the user override the test.
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 test -z "$as_dir" && as_dir=.
1890 for ac_exec_ext in '' $ac_executable_extensions; do
1891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1892 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903 if test -n "$CC"; then
1904 { echo "$as_me:$LINENO: result: $CC" >&5
1905 echo "${ECHO_T}$CC" >&6; }
1907 { echo "$as_me:$LINENO: result: no" >&5
1908 echo "${ECHO_T}no" >&6; }
1913 if test -z "$ac_cv_prog_CC"; then
1915 # Extract the first word of "gcc", so it can be a program name with args.
1916 set dummy gcc; ac_word=$2
1917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1919 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 if test -n "$ac_ct_CC"; then
1923 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929 test -z "$as_dir" && as_dir=.
1930 for ac_exec_ext in '' $ac_executable_extensions; do
1931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1932 ac_cv_prog_ac_ct_CC="gcc"
1933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1943 if test -n "$ac_ct_CC"; then
1944 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1945 echo "${ECHO_T}$ac_ct_CC" >&6; }
1947 { echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6; }
1951 if test "x$ac_ct_CC" = x; then
1954 case $cross_compiling:$ac_tool_warned in
1956 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1957 whose name does not start with the host triplet. If you think this
1958 configuration is useful to you, please write to autoconf@gnu.org." >&5
1959 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1960 whose name does not start with the host triplet. If you think this
1961 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1962 ac_tool_warned=yes ;;
1970 if test -z "$CC"; then
1971 if test -n "$ac_tool_prefix"; then
1972 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1973 set dummy ${ac_tool_prefix}cc; ac_word=$2
1974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1976 if test "${ac_cv_prog_CC+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 if test -n "$CC"; then
1980 ac_cv_prog_CC="$CC" # Let the user override the test.
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 test -z "$as_dir" && as_dir=.
1987 for ac_exec_ext in '' $ac_executable_extensions; do
1988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1989 ac_cv_prog_CC="${ac_tool_prefix}cc"
1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 if test -n "$CC"; then
2001 { echo "$as_me:$LINENO: result: $CC" >&5
2002 echo "${ECHO_T}$CC" >&6; }
2004 { echo "$as_me:$LINENO: result: no" >&5
2005 echo "${ECHO_T}no" >&6; }
2011 if test -z "$CC"; then
2012 # Extract the first word of "cc", so it can be a program name with args.
2013 set dummy cc; ac_word=$2
2014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2016 if test "${ac_cv_prog_CC+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 if test -n "$CC"; then
2020 ac_cv_prog_CC="$CC" # Let the user override the test.
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2030 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2031 ac_prog_rejected=yes
2035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 if test $ac_prog_rejected = yes; then
2043 # We found a bogon in the path, so make sure we never use it.
2044 set dummy $ac_cv_prog_CC
2046 if test $# != 0; then
2047 # We chose a different compiler from the bogus one.
2048 # However, it has the same basename, so the bogon will be chosen
2049 # first if we set CC to just the basename; use the full file name.
2051 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2057 if test -n "$CC"; then
2058 { echo "$as_me:$LINENO: result: $CC" >&5
2059 echo "${ECHO_T}$CC" >&6; }
2061 { echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6; }
2067 if test -z "$CC"; then
2068 if test -n "$ac_tool_prefix"; then
2069 for ac_prog in cl.exe
2071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2075 if test "${ac_cv_prog_CC+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 if test -n "$CC"; then
2079 ac_cv_prog_CC="$CC" # Let the user override the test.
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085 test -z "$as_dir" && as_dir=.
2086 for ac_exec_ext in '' $ac_executable_extensions; do
2087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2088 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099 if test -n "$CC"; then
2100 { echo "$as_me:$LINENO: result: $CC" >&5
2101 echo "${ECHO_T}$CC" >&6; }
2103 { echo "$as_me:$LINENO: result: no" >&5
2104 echo "${ECHO_T}no" >&6; }
2108 test -n "$CC" && break
2111 if test -z "$CC"; then
2113 for ac_prog in cl.exe
2115 # Extract the first word of "$ac_prog", so it can be a program name with args.
2116 set dummy $ac_prog; ac_word=$2
2117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2119 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 if test -n "$ac_ct_CC"; then
2123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 test -z "$as_dir" && as_dir=.
2130 for ac_exec_ext in '' $ac_executable_extensions; do
2131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2132 ac_cv_prog_ac_ct_CC="$ac_prog"
2133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2143 if test -n "$ac_ct_CC"; then
2144 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2145 echo "${ECHO_T}$ac_ct_CC" >&6; }
2147 { echo "$as_me:$LINENO: result: no" >&5
2148 echo "${ECHO_T}no" >&6; }
2152 test -n "$ac_ct_CC" && break
2155 if test "x$ac_ct_CC" = x; then
2158 case $cross_compiling:$ac_tool_warned in
2160 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2161 whose name does not start with the host triplet. If you think this
2162 configuration is useful to you, please write to autoconf@gnu.org." >&5
2163 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2164 whose name does not start with the host triplet. If you think this
2165 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2166 ac_tool_warned=yes ;;
2175 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2176 See \`config.log' for more details." >&5
2177 echo "$as_me: error: no acceptable C compiler found in \$PATH
2178 See \`config.log' for more details." >&2;}
2179 { (exit 1); exit 1; }; }
2181 # Provide some information about the compiler.
2182 echo "$as_me:$LINENO: checking for C compiler version" >&5
2183 ac_compiler=`set X $ac_compile; echo $2`
2184 { (ac_try="$ac_compiler --version >&5"
2186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2187 *) ac_try_echo=$ac_try;;
2189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2190 (eval "$ac_compiler --version >&5") 2>&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }
2194 { (ac_try="$ac_compiler -v >&5"
2196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2197 *) ac_try_echo=$ac_try;;
2199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2200 (eval "$ac_compiler -v >&5") 2>&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }
2204 { (ac_try="$ac_compiler -V >&5"
2206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2207 *) ac_try_echo=$ac_try;;
2209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2210 (eval "$ac_compiler -V >&5") 2>&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }
2215 cat >conftest.$ac_ext <<_ACEOF
2218 cat confdefs.h >>conftest.$ac_ext
2219 cat >>conftest.$ac_ext <<_ACEOF
2220 /* end confdefs.h. */
2230 ac_clean_files_save=$ac_clean_files
2231 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2232 # Try to create an executable without -o first, disregard a.out.
2233 # It will help us diagnose broken compilers, and finding out an intuition
2235 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2236 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2237 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2239 # List of possible output files, starting from the most likely.
2240 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2241 # only as a last resort. b.out is created by i960 compilers.
2242 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2244 # The IRIX 6 linker writes into existing files which may not be
2245 # executable, retaining their permissions. Remove them first so a
2246 # subsequent execution test works.
2248 for ac_file in $ac_files
2251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2252 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2257 if { (ac_try="$ac_link_default"
2259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260 *) ac_try_echo=$ac_try;;
2262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2263 (eval "$ac_link_default") 2>&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; then
2267 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2268 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2269 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2270 # so that the user can short-circuit this test for compilers unknown to
2272 for ac_file in $ac_files
2274 test -f "$ac_file" || continue
2276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2279 # We found the default executable, but exeext='' is most
2283 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2285 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2287 # We set ac_cv_exeext here because the later test for it is not
2288 # safe: cross compilers may not add the suffix if given an `-o'
2289 # argument, so we may need to know it at that point already.
2290 # Even if this section looks crufty: it has the advantage of
2297 test "$ac_cv_exeext" = no && ac_cv_exeext=
2300 echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2303 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2304 See \`config.log' for more details." >&5
2305 echo "$as_me: error: C compiler cannot create executables
2306 See \`config.log' for more details." >&2;}
2307 { (exit 77); exit 77; }; }
2310 ac_exeext=$ac_cv_exeext
2311 { echo "$as_me:$LINENO: result: $ac_file" >&5
2312 echo "${ECHO_T}$ac_file" >&6; }
2314 # Check that the compiler produces executables we can run. If not, either
2315 # the compiler is broken, or we cross compile.
2316 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2317 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2318 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2319 # If not cross compiling, check that we can run a simple program.
2320 if test "$cross_compiling" != yes; then
2321 if { ac_try='./$ac_file'
2322 { (case "(($ac_try" in
2323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324 *) ac_try_echo=$ac_try;;
2326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2327 (eval "$ac_try") 2>&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2333 if test "$cross_compiling" = maybe; then
2336 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2337 If you meant to cross compile, use \`--host'.
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot run C compiled programs.
2340 If you meant to cross compile, use \`--host'.
2341 See \`config.log' for more details." >&2;}
2342 { (exit 1); exit 1; }; }
2346 { echo "$as_me:$LINENO: result: yes" >&5
2347 echo "${ECHO_T}yes" >&6; }
2349 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2350 ac_clean_files=$ac_clean_files_save
2351 # Check that the compiler produces executables we can run. If not, either
2352 # the compiler is broken, or we cross compile.
2353 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2354 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2355 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2356 echo "${ECHO_T}$cross_compiling" >&6; }
2358 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2359 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2360 if { (ac_try="$ac_link"
2362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363 *) ac_try_echo=$ac_try;;
2365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2366 (eval "$ac_link") 2>&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; then
2370 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2371 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2372 # work properly (i.e., refer to `conftest.exe'), while it won't with
2374 for ac_file in conftest.exe conftest conftest.*; do
2375 test -f "$ac_file" || continue
2377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2378 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2384 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2385 See \`config.log' for more details." >&5
2386 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2387 See \`config.log' for more details." >&2;}
2388 { (exit 1); exit 1; }; }
2391 rm -f conftest$ac_cv_exeext
2392 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2393 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2395 rm -f conftest.$ac_ext
2396 EXEEXT=$ac_cv_exeext
2398 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2399 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2400 if test "${ac_cv_objext+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 cat >conftest.$ac_ext <<_ACEOF
2406 cat confdefs.h >>conftest.$ac_ext
2407 cat >>conftest.$ac_ext <<_ACEOF
2408 /* end confdefs.h. */
2418 rm -f conftest.o conftest.obj
2419 if { (ac_try="$ac_compile"
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425 (eval "$ac_compile") 2>&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; then
2429 for ac_file in conftest.o conftest.obj conftest.*; do
2430 test -f "$ac_file" || continue;
2432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2433 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2441 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2442 See \`config.log' for more details." >&5
2443 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2444 See \`config.log' for more details." >&2;}
2445 { (exit 1); exit 1; }; }
2448 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2450 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2451 echo "${ECHO_T}$ac_cv_objext" >&6; }
2452 OBJEXT=$ac_cv_objext
2454 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2455 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2456 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 cat >conftest.$ac_ext <<_ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2477 rm -f conftest.$ac_objext
2478 if { (ac_try="$ac_compile"
2480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481 *) ac_try_echo=$ac_try;;
2483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2484 (eval "$ac_compile") 2>conftest.er1
2486 grep -v '^ *+' conftest.er1 >conftest.err
2488 cat conftest.err >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); } &&
2491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2492 { (case "(($ac_try" in
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2497 (eval "$ac_try") 2>&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; } &&
2501 { ac_try='test -s conftest.$ac_objext'
2502 { (case "(($ac_try" in
2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507 (eval "$ac_try") 2>&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; }; then
2513 echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.$ac_ext >&5
2519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2520 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2523 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2524 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2525 GCC=`test $ac_compiler_gnu = yes && echo yes`
2526 ac_test_CFLAGS=${CFLAGS+set}
2527 ac_save_CFLAGS=$CFLAGS
2528 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2529 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2530 if test "${ac_cv_prog_cc_g+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 ac_save_c_werror_flag=$ac_c_werror_flag
2534 ac_c_werror_flag=yes
2537 cat >conftest.$ac_ext <<_ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2552 rm -f conftest.$ac_objext
2553 if { (ac_try="$ac_compile"
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_compile") 2>conftest.er1
2561 grep -v '^ *+' conftest.er1 >conftest.err
2563 cat conftest.err >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2567 { (case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_try") 2>&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; } &&
2576 { ac_try='test -s conftest.$ac_objext'
2577 { (case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_try") 2>&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2592 cat >conftest.$ac_ext <<_ACEOF
2595 cat confdefs.h >>conftest.$ac_ext
2596 cat >>conftest.$ac_ext <<_ACEOF
2597 /* end confdefs.h. */
2607 rm -f conftest.$ac_objext
2608 if { (ac_try="$ac_compile"
2610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2611 *) ac_try_echo=$ac_try;;
2613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2614 (eval "$ac_compile") 2>conftest.er1
2616 grep -v '^ *+' conftest.er1 >conftest.err
2618 cat conftest.err >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } &&
2621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2622 { (case "(($ac_try" in
2623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624 *) ac_try_echo=$ac_try;;
2626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2627 (eval "$ac_try") 2>&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; } &&
2631 { ac_try='test -s conftest.$ac_objext'
2632 { (case "(($ac_try" in
2633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 *) ac_try_echo=$ac_try;;
2636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637 (eval "$ac_try") 2>&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
2643 echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2646 ac_c_werror_flag=$ac_save_c_werror_flag
2648 cat >conftest.$ac_ext <<_ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h. */
2663 rm -f conftest.$ac_objext
2664 if { (ac_try="$ac_compile"
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2670 (eval "$ac_compile") 2>conftest.er1
2672 grep -v '^ *+' conftest.er1 >conftest.err
2674 cat conftest.err >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); } &&
2677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2678 { (case "(($ac_try" in
2679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2683 (eval "$ac_try") 2>&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; } &&
2687 { ac_try='test -s conftest.$ac_objext'
2688 { (case "(($ac_try" in
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2693 (eval "$ac_try") 2>&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; }; then
2699 echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.$ac_ext >&5
2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2712 ac_c_werror_flag=$ac_save_c_werror_flag
2714 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2715 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2716 if test "$ac_test_CFLAGS" = set; then
2717 CFLAGS=$ac_save_CFLAGS
2718 elif test $ac_cv_prog_cc_g = yes; then
2719 if test "$GCC" = yes; then
2725 if test "$GCC" = yes; then
2731 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2732 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2733 if test "${ac_cv_prog_cc_c89+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 ac_cv_prog_cc_c89=no
2738 cat >conftest.$ac_ext <<_ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2746 #include <sys/types.h>
2747 #include <sys/stat.h>
2748 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2749 struct buf { int x; };
2750 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2751 static char *e (p, i)
2757 static char *f (char * (*g) (char **, int), char **p, ...)
2762 s = g (p, va_arg (v,int));
2767 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2768 function prototypes and stuff, but not '\xHH' hex character constants.
2769 These don't provoke an error unfortunately, instead are silently treated
2770 as 'x'. The following induces an error, until -std is added to get
2771 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2772 array size at least. It's necessary to write '\x00'==0 to get something
2773 that's true only with -std. */
2774 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2776 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2777 inside strings and character constants. */
2779 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2781 int test (int i, double x);
2782 struct s1 {int (*f) (int a);};
2783 struct s2 {int (*f) (double a);};
2784 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2790 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2795 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2796 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2798 CC="$ac_save_CC $ac_arg"
2799 rm -f conftest.$ac_objext
2800 if { (ac_try="$ac_compile"
2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803 *) ac_try_echo=$ac_try;;
2805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2806 (eval "$ac_compile") 2>conftest.er1
2808 grep -v '^ *+' conftest.er1 >conftest.err
2810 cat conftest.err >&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); } &&
2813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2814 { (case "(($ac_try" in
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819 (eval "$ac_try") 2>&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; } &&
2823 { ac_try='test -s conftest.$ac_objext'
2824 { (case "(($ac_try" in
2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2829 (eval "$ac_try") 2>&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }; }; then
2833 ac_cv_prog_cc_c89=$ac_arg
2835 echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2841 rm -f core conftest.err conftest.$ac_objext
2842 test "x$ac_cv_prog_cc_c89" != "xno" && break
2844 rm -f conftest.$ac_ext
2849 case "x$ac_cv_prog_cc_c89" in
2851 { echo "$as_me:$LINENO: result: none needed" >&5
2852 echo "${ECHO_T}none needed" >&6; } ;;
2854 { echo "$as_me:$LINENO: result: unsupported" >&5
2855 echo "${ECHO_T}unsupported" >&6; } ;;
2857 CC="$CC $ac_cv_prog_cc_c89"
2858 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2859 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2864 ac_cpp='$CPP $CPPFLAGS'
2865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2869 if test "x$CC" != xcc; then
2870 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2871 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
2873 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2874 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
2876 set dummy $CC; ac_cc=`echo $2 |
2877 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2878 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 cat >conftest.$ac_ext <<_ACEOF
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h. */
2896 # Make sure it works both with $CC and with simple cc.
2897 # We do the test twice because some compilers refuse to overwrite an
2898 # existing .o file with -o, though they will create one.
2899 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2901 if { (case "(($ac_try" in
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906 (eval "$ac_try") 2>&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } &&
2910 test -f conftest2.$ac_objext && { (case "(($ac_try" in
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915 (eval "$ac_try") 2>&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); };
2920 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2921 if test "x$CC" != xcc; then
2922 # Test first that cc exists at all.
2923 if { ac_try='cc -c conftest.$ac_ext >&5'
2924 { (case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929 (eval "$ac_try") 2>&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; }; then
2933 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2935 if { (case "(($ac_try" in
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2940 (eval "$ac_try") 2>&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 test -f conftest2.$ac_objext && { (case "(($ac_try" in
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_try") 2>&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); };
2957 # cc exists but doesn't like -o.
2958 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2963 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2965 rm -f core conftest*
2968 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
2969 { echo "$as_me:$LINENO: result: yes" >&5
2970 echo "${ECHO_T}yes" >&6; }
2972 { echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6; }
2975 cat >>confdefs.h <<\_ACEOF
2976 #define NO_MINUS_C_MINUS_O 1
2981 # autoconf is lame and doesn't give us any substitution variable for this.
2982 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2983 NO_MINUS_C_MINUS_O=yes
2985 OUTPUT_OPTION='-o $@'
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2996 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2997 # On Suns, sometimes $CPP names a directory.
2998 if test -n "$CPP" && test -d "$CPP"; then
3001 if test -z "$CPP"; then
3002 if test "${ac_cv_prog_CPP+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 # Double quotes because CPP needs to be expanded
3006 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3009 for ac_c_preproc_warn_flag in '' yes
3011 # Use a header file that comes with gcc, so configuring glibc
3012 # with a fresh cross-compiler works.
3013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3014 # <limits.h> exists even on freestanding compilers.
3015 # On the NeXT, cc -E runs the code through the compiler's parser,
3016 # not just through cpp. "Syntax error" is here to catch this case.
3017 cat >conftest.$ac_ext <<_ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3024 # include <limits.h>
3026 # include <assert.h>
3030 if { (ac_try="$ac_cpp conftest.$ac_ext"
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3038 grep -v '^ *+' conftest.er1 >conftest.err
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } >/dev/null; then
3043 if test -s conftest.err; then
3044 ac_cpp_err=$ac_c_preproc_warn_flag
3045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3052 if test -z "$ac_cpp_err"; then
3055 echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3058 # Broken: fails on valid input.
3062 rm -f conftest.err conftest.$ac_ext
3064 # OK, works on sane cases. Now check whether nonexistent headers
3065 # can be detected and how.
3066 cat >conftest.$ac_ext <<_ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3072 #include <ac_nonexistent.h>
3074 if { (ac_try="$ac_cpp conftest.$ac_ext"
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3082 grep -v '^ *+' conftest.er1 >conftest.err
3084 cat conftest.err >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } >/dev/null; then
3087 if test -s conftest.err; then
3088 ac_cpp_err=$ac_c_preproc_warn_flag
3089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3096 if test -z "$ac_cpp_err"; then
3097 # Broken: success on invalid input.
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 # Passes both tests.
3108 rm -f conftest.err conftest.$ac_ext
3111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3112 rm -f conftest.err conftest.$ac_ext
3113 if $ac_preproc_ok; then
3125 { echo "$as_me:$LINENO: result: $CPP" >&5
3126 echo "${ECHO_T}$CPP" >&6; }
3128 for ac_c_preproc_warn_flag in '' yes
3130 # Use a header file that comes with gcc, so configuring glibc
3131 # with a fresh cross-compiler works.
3132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3133 # <limits.h> exists even on freestanding compilers.
3134 # On the NeXT, cc -E runs the code through the compiler's parser,
3135 # not just through cpp. "Syntax error" is here to catch this case.
3136 cat >conftest.$ac_ext <<_ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3143 # include <limits.h>
3145 # include <assert.h>
3149 if { (ac_try="$ac_cpp conftest.$ac_ext"
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3157 grep -v '^ *+' conftest.er1 >conftest.err
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } >/dev/null; then
3162 if test -s conftest.err; then
3163 ac_cpp_err=$ac_c_preproc_warn_flag
3164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3171 if test -z "$ac_cpp_err"; then
3174 echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3177 # Broken: fails on valid input.
3181 rm -f conftest.err conftest.$ac_ext
3183 # OK, works on sane cases. Now check whether nonexistent headers
3184 # can be detected and how.
3185 cat >conftest.$ac_ext <<_ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h. */
3191 #include <ac_nonexistent.h>
3193 if { (ac_try="$ac_cpp conftest.$ac_ext"
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3201 grep -v '^ *+' conftest.er1 >conftest.err
3203 cat conftest.err >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } >/dev/null; then
3206 if test -s conftest.err; then
3207 ac_cpp_err=$ac_c_preproc_warn_flag
3208 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3215 if test -z "$ac_cpp_err"; then
3216 # Broken: success on invalid input.
3219 echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3222 # Passes both tests.
3227 rm -f conftest.err conftest.$ac_ext
3230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3231 rm -f conftest.err conftest.$ac_ext
3232 if $ac_preproc_ok; then
3235 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3236 See \`config.log' for more details." >&5
3237 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3238 See \`config.log' for more details." >&2;}
3239 { (exit 1); exit 1; }; }
3243 ac_cpp='$CPP $CPPFLAGS'
3244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3249 { echo "$as_me:$LINENO: checking for inline" >&5
3250 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3251 if test "${ac_cv_c_inline+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 for ac_kw in inline __inline__ __inline; do
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3264 static $ac_kw foo_t static_foo () {return 0; }
3265 $ac_kw foo_t foo () {return 0; }
3269 rm -f conftest.$ac_objext
3270 if { (ac_try="$ac_compile"
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276 (eval "$ac_compile") 2>conftest.er1
3278 grep -v '^ *+' conftest.er1 >conftest.err
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } &&
3283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3284 { (case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_try") 2>&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; } &&
3293 { ac_try='test -s conftest.$ac_objext'
3294 { (case "(($ac_try" in
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3299 (eval "$ac_try") 2>&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3303 ac_cv_c_inline=$ac_kw
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312 test "$ac_cv_c_inline" != no && break
3316 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3317 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3320 case $ac_cv_c_inline in
3323 case $ac_cv_c_inline in
3325 *) ac_val=$ac_cv_c_inline;;
3327 cat >>confdefs.h <<_ACEOF
3329 #define inline $ac_val
3336 { echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3337 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6; }
3338 if test "${gcc_cv_c__bool+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 cat >conftest.$ac_ext <<_ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3356 rm -f conftest.$ac_objext
3357 if { (ac_try="$ac_compile"
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_compile") 2>conftest.er1
3365 grep -v '^ *+' conftest.er1 >conftest.err
3367 cat conftest.err >&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } &&
3370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3371 { (case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_try") 2>&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; } &&
3380 { ac_try='test -s conftest.$ac_objext'
3381 { (case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_try") 2>&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); }; }; then
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 { echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3402 echo "${ECHO_T}$gcc_cv_c__bool" >&6; }
3403 if test $gcc_cv_c__bool = yes; then
3405 cat >>confdefs.h <<\_ACEOF
3406 #define HAVE__BOOL 1
3412 # sizeof(char) is 1 by definition.
3413 { echo "$as_me:$LINENO: checking size of short" >&5
3414 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
3415 if test "${ac_cv_sizeof_short+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
3419 cat >conftest.$ac_ext <<_ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425 #include "confdefs.h"
3426 #include <sys/types.h>
3432 switch (0) case 0: case (sizeof (short) == $ac_size):;
3437 rm -f conftest.$ac_objext
3438 if { (ac_try="$ac_compile"
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444 (eval "$ac_compile") 2>conftest.er1
3446 grep -v '^ *+' conftest.er1 >conftest.err
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
3451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3452 { (case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3457 (eval "$ac_try") 2>&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; } &&
3461 { ac_try='test -s conftest.$ac_objext'
3462 { (case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467 (eval "$ac_try") 2>&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); }; }; then
3471 ac_cv_sizeof_short=$ac_size
3473 echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480 if test x$ac_cv_sizeof_short != x ; then break; fi
3485 if test x$ac_cv_sizeof_short = x ; then
3486 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3487 echo "$as_me: error: cannot determine a size for short" >&2;}
3488 { (exit 1); exit 1; }; }
3490 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3491 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
3493 cat >>confdefs.h <<_ACEOF
3494 #define SIZEOF_SHORT $ac_cv_sizeof_short
3498 { echo "$as_me:$LINENO: checking size of int" >&5
3499 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
3500 if test "${ac_cv_sizeof_int+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
3504 cat >conftest.$ac_ext <<_ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3510 #include "confdefs.h"
3511 #include <sys/types.h>
3517 switch (0) case 0: case (sizeof (int) == $ac_size):;
3522 rm -f conftest.$ac_objext
3523 if { (ac_try="$ac_compile"
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529 (eval "$ac_compile") 2>conftest.er1
3531 grep -v '^ *+' conftest.er1 >conftest.err
3533 cat conftest.err >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } &&
3536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3537 { (case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_try") 2>&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; } &&
3546 { ac_try='test -s conftest.$ac_objext'
3547 { (case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_try") 2>&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; }; then
3556 ac_cv_sizeof_int=$ac_size
3558 echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 if test x$ac_cv_sizeof_int != x ; then break; fi
3570 if test x$ac_cv_sizeof_int = x ; then
3571 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3572 echo "$as_me: error: cannot determine a size for int" >&2;}
3573 { (exit 1); exit 1; }; }
3575 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3576 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
3578 cat >>confdefs.h <<_ACEOF
3579 #define SIZEOF_INT $ac_cv_sizeof_int
3583 { echo "$as_me:$LINENO: checking size of long" >&5
3584 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
3585 if test "${ac_cv_sizeof_long+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
3589 cat >conftest.$ac_ext <<_ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3595 #include "confdefs.h"
3596 #include <sys/types.h>
3602 switch (0) case 0: case (sizeof (long) == $ac_size):;
3607 rm -f conftest.$ac_objext
3608 if { (ac_try="$ac_compile"
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_compile") 2>conftest.er1
3616 grep -v '^ *+' conftest.er1 >conftest.err
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3622 { (case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_try") 2>&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; } &&
3631 { ac_try='test -s conftest.$ac_objext'
3632 { (case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637 (eval "$ac_try") 2>&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; }; then
3641 ac_cv_sizeof_long=$ac_size
3643 echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 if test x$ac_cv_sizeof_long != x ; then break; fi
3655 if test x$ac_cv_sizeof_long = x ; then
3656 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3657 echo "$as_me: error: cannot determine a size for long" >&2;}
3658 { (exit 1); exit 1; }; }
3660 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3661 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
3663 cat >>confdefs.h <<_ACEOF
3664 #define SIZEOF_LONG $ac_cv_sizeof_long
3670 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3671 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3672 if test "${ac_cv_path_GREP+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 # Extract the first word of "grep ggrep" to use in msg output
3676 if test -z "$GREP"; then
3677 set dummy grep ggrep; ac_prog_name=$2
3678 if test "${ac_cv_path_GREP+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 ac_path_GREP_found=false
3682 # Loop through the user's path and test for each of PROGNAME-LIST
3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3687 test -z "$as_dir" && as_dir=.
3688 for ac_prog in grep ggrep; do
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3691 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3692 # Check for GNU ac_path_GREP and select it if it is found.
3693 # Check for GNU $ac_path_GREP
3694 case `"$ac_path_GREP" --version 2>&1` in
3696 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3699 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3702 cat "conftest.in" "conftest.in" >"conftest.tmp"
3703 mv "conftest.tmp" "conftest.in"
3704 cp "conftest.in" "conftest.nl"
3705 echo 'GREP' >> "conftest.nl"
3706 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3707 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3708 ac_count=`expr $ac_count + 1`
3709 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3710 # Best one so far, save it but keep looking for a better one
3711 ac_cv_path_GREP="$ac_path_GREP"
3712 ac_path_GREP_max=$ac_count
3714 # 10*(2^10) chars as input seems more than enough
3715 test $ac_count -gt 10 && break
3717 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3721 $ac_path_GREP_found && break 3
3731 GREP="$ac_cv_path_GREP"
3732 if test -z "$GREP"; then
3733 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3734 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3735 { (exit 1); exit 1; }; }
3739 ac_cv_path_GREP=$GREP
3744 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3745 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3746 GREP="$ac_cv_path_GREP"
3749 { echo "$as_me:$LINENO: checking for egrep" >&5
3750 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3751 if test "${ac_cv_path_EGREP+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3755 then ac_cv_path_EGREP="$GREP -E"
3757 # Extract the first word of "egrep" to use in msg output
3758 if test -z "$EGREP"; then
3759 set dummy egrep; ac_prog_name=$2
3760 if test "${ac_cv_path_EGREP+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 ac_path_EGREP_found=false
3764 # Loop through the user's path and test for each of PROGNAME-LIST
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3769 test -z "$as_dir" && as_dir=.
3770 for ac_prog in egrep; do
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3773 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3774 # Check for GNU ac_path_EGREP and select it if it is found.
3775 # Check for GNU $ac_path_EGREP
3776 case `"$ac_path_EGREP" --version 2>&1` in
3778 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3781 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3784 cat "conftest.in" "conftest.in" >"conftest.tmp"
3785 mv "conftest.tmp" "conftest.in"
3786 cp "conftest.in" "conftest.nl"
3787 echo 'EGREP' >> "conftest.nl"
3788 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3789 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3790 ac_count=`expr $ac_count + 1`
3791 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3792 # Best one so far, save it but keep looking for a better one
3793 ac_cv_path_EGREP="$ac_path_EGREP"
3794 ac_path_EGREP_max=$ac_count
3796 # 10*(2^10) chars as input seems more than enough
3797 test $ac_count -gt 10 && break
3799 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3803 $ac_path_EGREP_found && break 3
3813 EGREP="$ac_cv_path_EGREP"
3814 if test -z "$EGREP"; then
3815 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3816 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3817 { (exit 1); exit 1; }; }
3821 ac_cv_path_EGREP=$EGREP
3827 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3828 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3829 EGREP="$ac_cv_path_EGREP"
3832 { echo "$as_me:$LINENO: checking execution character set" >&5
3833 echo $ECHO_N "checking execution character set... $ECHO_C" >&6; }
3834 if test "${ac_cv_c_charset+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 cat >conftest.$ac_ext <<_ACEOF
3840 cat confdefs.h >>conftest.$ac_ext
3841 cat >>conftest.$ac_ext <<_ACEOF
3842 /* end confdefs.h. */
3843 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
3844 && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
3848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3849 $EGREP "ASCII" >/dev/null 2>&1; then
3850 ac_cv_c_charset=ASCII
3854 if test x${ac_cv_c_charset+set} != xset; then
3855 cat >conftest.$ac_ext <<_ACEOF
3858 cat confdefs.h >>conftest.$ac_ext
3859 cat >>conftest.$ac_ext <<_ACEOF
3860 /* end confdefs.h. */
3861 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
3862 && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
3866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3867 $EGREP "EBCDIC" >/dev/null 2>&1; then
3868 ac_cv_c_charset=EBCDIC
3873 if test x${ac_cv_c_charset+set} != xset; then
3874 ac_cv_c_charset=unknown
3877 { echo "$as_me:$LINENO: result: $ac_cv_c_charset" >&5
3878 echo "${ECHO_T}$ac_cv_c_charset" >&6; }
3879 if test $ac_cv_c_charset = unknown; then
3880 { { echo "$as_me:$LINENO: error: *** Cannot determine host character set." >&5
3881 echo "$as_me: error: *** Cannot determine host character set." >&2;}
3882 { (exit 1); exit 1; }; }
3883 elif test $ac_cv_c_charset = EBCDIC; then
3885 cat >>confdefs.h <<\_ACEOF
3886 #define HOST_EBCDIC 1
3891 # If the native compiler is GCC, we can enable warnings even in stage1.
3892 # That's useful for people building cross-compilers, or just running a
3895 if test "x$GCC" = "xyes"; then
3896 warn_cflags='$(GCC_WARN_CFLAGS)'
3900 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3901 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3902 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3903 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 cat >conftest.make <<\_ACEOF
3909 @echo '@@@%%%=$(MAKE)=@@@%%%'
3911 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3912 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3914 eval ac_cv_prog_make_${ac_make}_set=yes;;
3916 eval ac_cv_prog_make_${ac_make}_set=no;;
3920 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3921 { echo "$as_me:$LINENO: result: yes" >&5
3922 echo "${ECHO_T}yes" >&6; }
3925 { echo "$as_me:$LINENO: result: no" >&5
3926 echo "${ECHO_T}no" >&6; }
3927 SET_MAKE="MAKE=${MAKE-make}"
3931 { echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
3932 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6; }
3933 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3934 if test x"$gas_flag" = x"no"; then
3935 { echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
3936 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6; }
3938 { echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3939 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3942 { echo "$as_me:$LINENO: result: no" >&5
3943 echo "${ECHO_T}no" >&6; }
3946 { echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
3947 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6; }
3948 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3949 if test x"$gnu_ld_flag" = x"no"; then
3950 { echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
3951 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6; }
3953 { echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3954 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3957 { echo "$as_me:$LINENO: result: no" >&5
3958 echo "${ECHO_T}no" >&6; }
3961 # Find some useful tools
3962 { echo "$as_me:$LINENO: checking whether ln works" >&5
3963 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
3964 if test "${gcc_cv_prog_LN+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 rm -f conftestdata_t
3968 echo >conftestdata_f
3969 if ln conftestdata_f conftestdata_t 2>/dev/null
3973 if ln -s conftestdata_f conftestdata_t 2>/dev/null
3975 gcc_cv_prog_LN="ln -s"
3980 rm -f conftestdata_f conftestdata_t
3983 LN="$gcc_cv_prog_LN"
3984 if test "$gcc_cv_prog_LN" = "ln"; then
3985 { echo "$as_me:$LINENO: result: yes" >&5
3986 echo "${ECHO_T}yes" >&6; }
3988 if test "$gcc_cv_prog_LN" = "ln -s"; then
3989 { echo "$as_me:$LINENO: result: no, using ln -s" >&5
3990 echo "${ECHO_T}no, using ln -s" >&6; }
3992 { echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
3993 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6; }
3997 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3998 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3999 if test "${gcc_cv_prog_LN_S+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 rm -f conftestdata_t
4003 echo >conftestdata_f
4004 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4006 gcc_cv_prog_LN_S="ln -s"
4008 if ln conftestdata_f conftestdata_t 2>/dev/null
4015 rm -f conftestdata_f conftestdata_t
4018 LN_S="$gcc_cv_prog_LN_S"
4019 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4020 { echo "$as_me:$LINENO: result: yes" >&5
4021 echo "${ECHO_T}yes" >&6; }
4023 if test "$gcc_cv_prog_LN_S" = "ln"; then
4024 { echo "$as_me:$LINENO: result: no, using ln" >&5
4025 echo "${ECHO_T}no, using ln" >&6; }
4027 { echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4028 echo "${ECHO_T}no, and neither does ln, so using cp" >&6; }
4032 if test -n "$ac_tool_prefix"; then
4033 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4034 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4037 if test "${ac_cv_prog_RANLIB+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 if test -n "$RANLIB"; then
4041 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 test -z "$as_dir" && as_dir=.
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4050 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4060 RANLIB=$ac_cv_prog_RANLIB
4061 if test -n "$RANLIB"; then
4062 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4063 echo "${ECHO_T}$RANLIB" >&6; }
4065 { echo "$as_me:$LINENO: result: no" >&5
4066 echo "${ECHO_T}no" >&6; }
4071 if test -z "$ac_cv_prog_RANLIB"; then
4072 ac_ct_RANLIB=$RANLIB
4073 # Extract the first word of "ranlib", so it can be a program name with args.
4074 set dummy ranlib; ac_word=$2
4075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4077 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 if test -n "$ac_ct_RANLIB"; then
4081 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 test -z "$as_dir" && as_dir=.
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4090 ac_cv_prog_ac_ct_RANLIB="ranlib"
4091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4100 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4101 if test -n "$ac_ct_RANLIB"; then
4102 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4103 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4105 { echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6; }
4109 if test "x$ac_ct_RANLIB" = x; then
4112 case $cross_compiling:$ac_tool_warned in
4114 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4115 whose name does not start with the host triplet. If you think this
4116 configuration is useful to you, please write to autoconf@gnu.org." >&5
4117 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4118 whose name does not start with the host triplet. If you think this
4119 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4120 ac_tool_warned=yes ;;
4122 RANLIB=$ac_ct_RANLIB
4125 RANLIB="$ac_cv_prog_RANLIB"
4129 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4130 if test -f "$ac_dir/install-sh"; then
4132 ac_install_sh="$ac_aux_dir/install-sh -c"
4134 elif test -f "$ac_dir/install.sh"; then
4136 ac_install_sh="$ac_aux_dir/install.sh -c"
4138 elif test -f "$ac_dir/shtool"; then
4140 ac_install_sh="$ac_aux_dir/shtool install -c"
4144 if test -z "$ac_aux_dir"; then
4145 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4146 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4147 { (exit 1); exit 1; }; }
4150 # These three variables are undocumented and unsupported,
4151 # and are intended to be withdrawn in a future Autoconf release.
4152 # They can cause serious problems if a builder's source tree is in a directory
4153 # whose full name contains unusual characters.
4154 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4155 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4156 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4159 # Find a good install program. We prefer a C program (faster),
4160 # so one script is as good as another. But avoid the broken or
4161 # incompatible versions:
4162 # SysV /etc/install, /usr/sbin/install
4163 # SunOS /usr/etc/install
4164 # IRIX /sbin/install
4166 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4167 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4168 # ./install, which can be erroneously created by make from ./install.sh.
4169 { echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4170 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6; }
4171 if test -z "$INSTALL"; then
4172 if test "${ac_cv_path_install+set}" = set; then
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
4176 for ac_dir in $PATH; do
4177 # Account for people who put trailing slashes in PATH elements.
4179 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4181 # OSF1 and SCO ODT 3.0 have their own names for install.
4182 for ac_prog in ginstall scoinst install; do
4183 if test -f $ac_dir/$ac_prog; then
4184 if test $ac_prog = install &&
4185 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4186 # AIX install. It has an incompatible calling convention.
4187 # OSF/1 installbsd also uses dspmsg, but is usable.
4190 ac_cv_path_install="$ac_dir/$ac_prog -c"
4201 if test "${ac_cv_path_install+set}" = set; then
4202 INSTALL="$ac_cv_path_install"
4204 # As a last resort, use the slow shell script. We don't cache a
4205 # path for INSTALL within a source directory, because that will
4206 # break other packages using the cache if that directory is
4207 # removed, or if the path is relative.
4208 INSTALL="$ac_install_sh"
4211 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4212 echo "${ECHO_T}$INSTALL" >&6; }
4214 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4215 # It thinks the first close brace ends the variable substitution.
4216 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4218 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4221 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4222 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4223 if test "${ac_cv_header_stdc+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 cat >conftest.$ac_ext <<_ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4245 rm -f conftest.$ac_objext
4246 if { (ac_try="$ac_compile"
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252 (eval "$ac_compile") 2>conftest.er1
4254 grep -v '^ *+' conftest.er1 >conftest.err
4256 cat conftest.err >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } &&
4259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4260 { (case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_try") 2>&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try='test -s conftest.$ac_objext'
4270 { (case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_try") 2>&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; }; then
4279 ac_cv_header_stdc=yes
4281 echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4284 ac_cv_header_stdc=no
4287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289 if test $ac_cv_header_stdc = yes; then
4290 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4291 cat >conftest.$ac_ext <<_ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4301 $EGREP "memchr" >/dev/null 2>&1; then
4304 ac_cv_header_stdc=no
4310 if test $ac_cv_header_stdc = yes; then
4311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4312 cat >conftest.$ac_ext <<_ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4322 $EGREP "free" >/dev/null 2>&1; then
4325 ac_cv_header_stdc=no
4331 if test $ac_cv_header_stdc = yes; then
4332 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4333 if test "$cross_compiling" = yes; then
4336 cat >conftest.$ac_ext <<_ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h. */
4344 #if ((' ' & 0x0FF) == 0x020)
4345 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4346 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4348 # define ISLOWER(c) \
4349 (('a' <= (c) && (c) <= 'i') \
4350 || ('j' <= (c) && (c) <= 'r') \
4351 || ('s' <= (c) && (c) <= 'z'))
4352 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4355 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4360 for (i = 0; i < 256; i++)
4361 if (XOR (islower (i), ISLOWER (i))
4362 || toupper (i) != TOUPPER (i))
4367 rm -f conftest$ac_exeext
4368 if { (ac_try="$ac_link"
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_link") 2>&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4378 { (case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_try") 2>&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; }; then
4389 echo "$as_me: program exited with status $ac_status" >&5
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4394 ac_cv_header_stdc=no
4396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4402 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4403 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4404 if test $ac_cv_header_stdc = yes; then
4406 cat >>confdefs.h <<\_ACEOF
4407 #define STDC_HEADERS 1
4412 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4413 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4414 if test "${ac_cv_header_time+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 cat >conftest.$ac_ext <<_ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4423 #include <sys/types.h>
4424 #include <sys/time.h>
4430 if ((struct tm *) 0)
4436 rm -f conftest.$ac_objext
4437 if { (ac_try="$ac_compile"
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443 (eval "$ac_compile") 2>conftest.er1
4445 grep -v '^ *+' conftest.er1 >conftest.err
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } &&
4450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4451 { (case "(($ac_try" in
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4456 (eval "$ac_try") 2>&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; } &&
4460 { ac_try='test -s conftest.$ac_objext'
4461 { (case "(($ac_try" in
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466 (eval "$ac_try") 2>&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4470 ac_cv_header_time=yes
4472 echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4475 ac_cv_header_time=no
4478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4481 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4482 if test $ac_cv_header_time = yes; then
4484 cat >>confdefs.h <<\_ACEOF
4485 #define TIME_WITH_SYS_TIME 1
4490 { echo "$as_me:$LINENO: checking for working stdbool.h" >&5
4491 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6; }
4492 if test "${ac_cv_header_stdbool_h+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 cat >conftest.$ac_ext <<_ACEOF
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h. */
4501 #include <stdbool.h>
4510 rm -f conftest.$ac_objext
4511 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4519 grep -v '^ *+' conftest.er1 >conftest.err
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } &&
4524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4525 { (case "(($ac_try" in
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4530 (eval "$ac_try") 2>&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; } &&
4534 { ac_try='test -s conftest.$ac_objext'
4535 { (case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540 (eval "$ac_try") 2>&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; }; then
4544 ac_cv_header_stdbool_h=yes
4546 echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.$ac_ext >&5
4549 ac_cv_header_stdbool_h=no
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4555 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
4556 if test $ac_cv_header_stdbool_h = yes; then
4558 cat >>confdefs.h <<\_ACEOF
4559 #define HAVE_STDBOOL_H 1
4564 { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
4565 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
4566 if test "${gcc_cv_header_string+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 cat >conftest.$ac_ext <<_ACEOF
4572 cat confdefs.h >>conftest.$ac_ext
4573 cat >>conftest.$ac_ext <<_ACEOF
4574 /* end confdefs.h. */
4576 #include <strings.h>
4585 rm -f conftest.$ac_objext
4586 if { (ac_try="$ac_compile"
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592 (eval "$ac_compile") 2>conftest.er1
4594 grep -v '^ *+' conftest.er1 >conftest.err
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } &&
4599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4600 { (case "(($ac_try" in
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_try") 2>&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; } &&
4609 { ac_try='test -s conftest.$ac_objext'
4610 { (case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615 (eval "$ac_try") 2>&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
4619 gcc_cv_header_string=yes
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4624 gcc_cv_header_string=no
4627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4629 { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
4630 echo "${ECHO_T}$gcc_cv_header_string" >&6; }
4631 if test $gcc_cv_header_string = yes; then
4633 cat >>confdefs.h <<\_ACEOF
4634 #define STRING_WITH_STRINGS 1
4639 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4640 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
4641 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 cat >conftest.$ac_ext <<_ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4650 #include <sys/types.h>
4651 #include <sys/wait.h>
4653 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4656 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4664 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4669 rm -f conftest.$ac_objext
4670 if { (ac_try="$ac_compile"
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676 (eval "$ac_compile") 2>conftest.er1
4678 grep -v '^ *+' conftest.er1 >conftest.err
4680 cat conftest.err >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } &&
4683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4684 { (case "(($ac_try" in
4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686 *) ac_try_echo=$ac_try;;
4688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689 (eval "$ac_try") 2>&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; } &&
4693 { ac_try='test -s conftest.$ac_objext'
4694 { (case "(($ac_try" in
4695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696 *) ac_try_echo=$ac_try;;
4698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4699 (eval "$ac_try") 2>&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); }; }; then
4703 ac_cv_header_sys_wait_h=yes
4705 echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4708 ac_cv_header_sys_wait_h=no
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4714 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
4715 if test $ac_cv_header_sys_wait_h = yes; then
4717 cat >>confdefs.h <<\_ACEOF
4718 #define HAVE_SYS_WAIT_H 1
4723 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4733 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4734 inttypes.h stdint.h unistd.h
4736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 cat >conftest.$ac_ext <<_ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4748 $ac_includes_default
4750 #include <$ac_header>
4752 rm -f conftest.$ac_objext
4753 if { (ac_try="$ac_compile"
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4759 (eval "$ac_compile") 2>conftest.er1
4761 grep -v '^ *+' conftest.er1 >conftest.err
4763 cat conftest.err >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } &&
4766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4767 { (case "(($ac_try" in
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772 (eval "$ac_try") 2>&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; } &&
4776 { ac_try='test -s conftest.$ac_objext'
4777 { (case "(($ac_try" in
4778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4779 *) ac_try_echo=$ac_try;;
4781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4782 (eval "$ac_try") 2>&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4786 eval "$as_ac_Header=yes"
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4791 eval "$as_ac_Header=no"
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 ac_res=`eval echo '${'$as_ac_Header'}'`
4797 { echo "$as_me:$LINENO: result: $ac_res" >&5
4798 echo "${ECHO_T}$ac_res" >&6; }
4799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4800 cat >>confdefs.h <<_ACEOF
4801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4823 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
4824 fcntl.h unistd.h sys/file.h sys/time.h \
4825 sys/param.h sys/stat.h \
4828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 ac_res=`eval echo '${'$as_ac_Header'}'`
4836 { echo "$as_me:$LINENO: result: $ac_res" >&5
4837 echo "${ECHO_T}$ac_res" >&6; }
4839 # Is the header compilable?
4840 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4842 cat >conftest.$ac_ext <<_ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 $ac_includes_default
4849 #include <$ac_header>
4851 rm -f conftest.$ac_objext
4852 if { (ac_try="$ac_compile"
4854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855 *) ac_try_echo=$ac_try;;
4857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4858 (eval "$ac_compile") 2>conftest.er1
4860 grep -v '^ *+' conftest.er1 >conftest.err
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4866 { (case "(($ac_try" in
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4871 (eval "$ac_try") 2>&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; } &&
4875 { ac_try='test -s conftest.$ac_objext'
4876 { (case "(($ac_try" in
4877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878 *) ac_try_echo=$ac_try;;
4880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4881 (eval "$ac_try") 2>&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; }; then
4885 ac_header_compiler=yes
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4890 ac_header_compiler=no
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4895 echo "${ECHO_T}$ac_header_compiler" >&6; }
4897 # Is the header present?
4898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4900 cat >conftest.$ac_ext <<_ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4906 #include <$ac_header>
4908 if { (ac_try="$ac_cpp conftest.$ac_ext"
4910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911 *) ac_try_echo=$ac_try;;
4913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4916 grep -v '^ *+' conftest.er1 >conftest.err
4918 cat conftest.err >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); } >/dev/null; then
4921 if test -s conftest.err; then
4922 ac_cpp_err=$ac_c_preproc_warn_flag
4923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4930 if test -z "$ac_cpp_err"; then
4931 ac_header_preproc=yes
4933 echo "$as_me: failed program was:" >&5
4934 sed 's/^/| /' conftest.$ac_ext >&5
4936 ac_header_preproc=no
4939 rm -f conftest.err conftest.$ac_ext
4940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4941 echo "${ECHO_T}$ac_header_preproc" >&6; }
4943 # So? What about this header?
4944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4950 ac_header_preproc=yes
4953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4956 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4957 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4959 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4960 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4963 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4968 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4969 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 eval "$as_ac_Header=\$ac_header_preproc"
4975 ac_res=`eval echo '${'$as_ac_Header'}'`
4976 { echo "$as_me:$LINENO: result: $ac_res" >&5
4977 echo "${ECHO_T}$ac_res" >&6; }
4980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4981 cat >>confdefs.h <<_ACEOF
4982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4990 # Check for thread headers.
4992 # These tests can't be done till we know if we have limits.h.
4993 { echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
4994 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6; }
4995 if test "${gcc_cv_decl_char_bit+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 cat >conftest.$ac_ext <<_ACEOF
5001 cat confdefs.h >>conftest.$ac_ext
5002 cat >>conftest.$ac_ext <<_ACEOF
5003 /* end confdefs.h. */
5004 #ifdef HAVE_LIMITS_H
5011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5012 $EGREP "found" >/dev/null 2>&1; then
5013 gcc_cv_decl_char_bit=yes
5015 gcc_cv_decl_char_bit=no
5021 { echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
5022 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6; }
5023 if test $gcc_cv_decl_char_bit = no; then
5024 { echo "$as_me:$LINENO: checking number of bits in a byte" >&5
5025 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6; }
5026 if test "${gcc_cv_c_nbby+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 while test $i -lt 65; do
5032 cat >conftest.$ac_ext <<_ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h. */
5043 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
5044 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
5050 rm -f conftest.$ac_objext
5051 if { (ac_try="$ac_compile"
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_compile") 2>conftest.er1
5059 grep -v '^ *+' conftest.er1 >conftest.err
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } &&
5064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5065 { (case "(($ac_try" in
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5070 (eval "$ac_try") 2>&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; } &&
5074 { ac_try='test -s conftest.$ac_objext'
5075 { (case "(($ac_try" in
5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077 *) ac_try_echo=$ac_try;;
5079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5080 (eval "$ac_try") 2>&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; }; then
5084 gcc_cv_c_nbby=$i; break
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5095 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
5098 { echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
5099 echo "${ECHO_T}$gcc_cv_c_nbby" >&6; }
5100 if test $gcc_cv_c_nbby = failed; then
5101 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
5102 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
5103 { (exit 1); exit 1; }; }
5106 cat >>confdefs.h <<_ACEOF
5107 #define CHAR_BIT $gcc_cv_c_nbby
5112 { echo "$as_me:$LINENO: checking byte ordering" >&5
5113 echo $ECHO_N "checking byte ordering... $ECHO_C" >&6; }
5114 if test "${ac_cv_c_compile_endian+set}" = set; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 ac_cv_c_compile_endian=unknown
5120 ac_cpp='$CPP $CPPFLAGS'
5121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5125 cat > conftest.$ac_ext <<EOF
5126 #line 5126 "configure"
5127 #include "confdefs.h"
5129 #ifdef HAVE_LIMITS_H
5130 # include <limits.h>
5132 /* This structure must have no internal padding. */
5134 char prefix[sizeof "\nendian:" - 1];
5139 #if SIZEOF_SHORT == 4
5140 ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) |
5142 ('A' << CHAR_BIT) | 'B',
5146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5147 (eval $ac_compile) 2>&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; then
5152 sed 's/^[0-7]*[ ]*/ /
5155 s/ [0-9][0-9][0-9]/./g
5161 if grep 'endian:AB' conftest.dmp >/dev/null 2>&1; then
5162 ac_cv_c_compile_endian=big-endian
5163 elif grep 'endian:BA' conftest.dmp >/dev/null 2>&1; then
5164 ac_cv_c_compile_endian=little-endian
5169 ac_cpp='$CPP $CPPFLAGS'
5170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5176 { echo "$as_me:$LINENO: result: $ac_cv_c_compile_endian" >&5
5177 echo "${ECHO_T}$ac_cv_c_compile_endian" >&6; }
5178 if test $ac_cv_c_compile_endian = unknown; then
5179 { { echo "$as_me:$LINENO: error: *** unable to determine endianness" >&5
5180 echo "$as_me: error: *** unable to determine endianness" >&2;}
5181 { (exit 1); exit 1; }; }
5182 elif test $ac_cv_c_compile_endian = big-endian; then
5184 cat >>confdefs.h <<\_ACEOF
5185 #define HOST_WORDS_BIG_ENDIAN 1
5191 # See if we have the mktemp command.
5192 # Extract the first word of "mktemp", so it can be a program name with args.
5193 set dummy mktemp; ac_word=$2
5194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5196 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5197 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 if test -n "$have_mktemp_command"; then
5200 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5209 ac_cv_prog_have_mktemp_command="yes"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5220 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5221 if test -n "$have_mktemp_command"; then
5222 { echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5223 echo "${ECHO_T}$have_mktemp_command" >&6; }
5225 { echo "$as_me:$LINENO: result: no" >&5
5226 echo "${ECHO_T}no" >&6; }
5231 # Extract the first word of "strip", so it can be a program name with args.
5232 set dummy strip; ac_word=$2
5233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5235 if test "${ac_cv_prog_STRIP+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 if test -n "$STRIP"; then
5239 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 test -z "$as_dir" && as_dir=.
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5248 ac_cv_prog_STRIP="strip"
5249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
5259 STRIP=$ac_cv_prog_STRIP
5260 if test -n "$STRIP"; then
5261 { echo "$as_me:$LINENO: result: $STRIP" >&5
5262 echo "${ECHO_T}$STRIP" >&6; }
5264 { echo "$as_me:$LINENO: result: no" >&5
5265 echo "${ECHO_T}no" >&6; }
5270 # See if the stage1 system preprocessor understands the ANSI C
5271 # preprocessor stringification operator. (Used by symcat.h.)
5272 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
5273 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
5274 if test "${ac_cv_c_stringize+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 cat >conftest.$ac_ext <<_ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5285 char *s = x(teststring);
5287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5288 $EGREP "#teststring" >/dev/null 2>&1; then
5289 ac_cv_c_stringize=no
5291 ac_cv_c_stringize=yes
5296 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
5297 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
5298 if test $ac_cv_c_stringize = yes; then
5300 cat >>confdefs.h <<\_ACEOF
5301 #define HAVE_STRINGIZE 1
5312 for ac_func in clock strchr strrchr lstat
5314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5315 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5317 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 cat >conftest.$ac_ext <<_ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5328 #define $ac_func innocuous_$ac_func
5330 /* System header to define __stub macros and hopefully few prototypes,
5331 which can conflict with char $ac_func (); below.
5332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5333 <limits.h> exists even on freestanding compilers. */
5336 # include <limits.h>
5338 # include <assert.h>
5343 /* Override any GCC internal prototype to avoid an error.
5344 Use char because int might match the return type of a GCC
5345 builtin and then its argument prototype would still apply. */
5350 /* The GNU C library defines this for functions which it implements
5351 to always fail with ENOSYS. Some functions are actually named
5352 something starting with __ and the normal name is an alias. */
5353 #if defined __stub_$ac_func || defined __stub___$ac_func
5365 rm -f conftest.$ac_objext conftest$ac_exeext
5366 if { (ac_try="$ac_link"
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372 (eval "$ac_link") 2>conftest.er1
5374 grep -v '^ *+' conftest.er1 >conftest.err
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } &&
5379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5380 { (case "(($ac_try" in
5381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382 *) ac_try_echo=$ac_try;;
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385 (eval "$ac_try") 2>&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; } &&
5389 { ac_try='test -s conftest$ac_exeext'
5390 { (case "(($ac_try" in
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_try") 2>&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; }; then
5399 eval "$as_ac_var=yes"
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5404 eval "$as_ac_var=no"
5407 rm -f core conftest.err conftest.$ac_objext \
5408 conftest$ac_exeext conftest.$ac_ext
5410 ac_res=`eval echo '${'$as_ac_var'}'`
5411 { echo "$as_me:$LINENO: result: $ac_res" >&5
5412 echo "${ECHO_T}$ac_res" >&6; }
5413 if test `eval echo '${'$as_ac_var'}'` = yes; then
5414 cat >>confdefs.h <<_ACEOF
5415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5422 { echo "$as_me:$LINENO: checking for ssize_t" >&5
5423 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
5424 if test "${ac_cv_type_ssize_t+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 cat >conftest.$ac_ext <<_ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 $ac_includes_default
5434 typedef ssize_t ac__type_new_;
5438 if ((ac__type_new_ *) 0)
5440 if (sizeof (ac__type_new_))
5446 rm -f conftest.$ac_objext
5447 if { (ac_try="$ac_compile"
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453 (eval "$ac_compile") 2>conftest.er1
5455 grep -v '^ *+' conftest.er1 >conftest.err
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } &&
5460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5461 { (case "(($ac_try" in
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_try") 2>&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }; } &&
5470 { ac_try='test -s conftest.$ac_objext'
5471 { (case "(($ac_try" in
5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476 (eval "$ac_try") 2>&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }; }; then
5480 ac_cv_type_ssize_t=yes
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5485 ac_cv_type_ssize_t=no
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
5491 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
5492 if test $ac_cv_type_ssize_t = yes; then
5496 cat >>confdefs.h <<_ACEOF
5504 for ac_func in getpagesize
5506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5507 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5509 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 cat >conftest.$ac_ext <<_ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5520 #define $ac_func innocuous_$ac_func
5522 /* System header to define __stub macros and hopefully few prototypes,
5523 which can conflict with char $ac_func (); below.
5524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5525 <limits.h> exists even on freestanding compilers. */
5528 # include <limits.h>
5530 # include <assert.h>
5535 /* Override any GCC internal prototype to avoid an error.
5536 Use char because int might match the return type of a GCC
5537 builtin and then its argument prototype would still apply. */
5542 /* The GNU C library defines this for functions which it implements
5543 to always fail with ENOSYS. Some functions are actually named
5544 something starting with __ and the normal name is an alias. */
5545 #if defined __stub_$ac_func || defined __stub___$ac_func
5557 rm -f conftest.$ac_objext conftest$ac_exeext
5558 if { (ac_try="$ac_link"
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564 (eval "$ac_link") 2>conftest.er1
5566 grep -v '^ *+' conftest.er1 >conftest.err
5568 cat conftest.err >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } &&
5571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5572 { (case "(($ac_try" in
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_try") 2>&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; } &&
5581 { ac_try='test -s conftest$ac_exeext'
5582 { (case "(($ac_try" in
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_try") 2>&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; }; then
5591 eval "$as_ac_var=yes"
5593 echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5596 eval "$as_ac_var=no"
5599 rm -f core conftest.err conftest.$ac_objext \
5600 conftest$ac_exeext conftest.$ac_ext
5602 ac_res=`eval echo '${'$as_ac_var'}'`
5603 { echo "$as_me:$LINENO: result: $ac_res" >&5
5604 echo "${ECHO_T}$ac_res" >&6; }
5605 if test `eval echo '${'$as_ac_var'}'` = yes; then
5606 cat >>confdefs.h <<_ACEOF
5607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5613 # The test program for the next two tests is the same except for one
5615 cat >ct-mmap.inc <<'EOF'
5616 #include <sys/types.h>
5617 #include <sys/mman.h>
5623 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
5624 # define MAP_ANONYMOUS MAP_ANON
5627 /* This mess was copied from the GNU getpagesize.h. */
5628 #ifndef HAVE_GETPAGESIZE
5629 # ifdef HAVE_UNISTD_H
5630 # include <unistd.h>
5633 /* Assume that all systems that can run configure have sys/param.h. */
5634 # ifndef HAVE_SYS_PARAM_H
5635 # define HAVE_SYS_PARAM_H 1
5638 # ifdef _SC_PAGESIZE
5639 # define getpagesize() sysconf(_SC_PAGESIZE)
5640 # else /* no _SC_PAGESIZE */
5641 # ifdef HAVE_SYS_PARAM_H
5642 # include <sys/param.h>
5643 # ifdef EXEC_PAGESIZE
5644 # define getpagesize() EXEC_PAGESIZE
5645 # else /* no EXEC_PAGESIZE */
5647 # define getpagesize() NBPG * CLSIZE
5650 # endif /* no CLSIZE */
5651 # else /* no NBPG */
5653 # define getpagesize() NBPC
5654 # else /* no NBPC */
5656 # define getpagesize() PAGESIZE
5657 # endif /* PAGESIZE */
5658 # endif /* no NBPC */
5659 # endif /* no NBPG */
5660 # endif /* no EXEC_PAGESIZE */
5661 # else /* no HAVE_SYS_PARAM_H */
5662 # define getpagesize() 8192 /* punt totally */
5663 # endif /* no HAVE_SYS_PARAM_H */
5664 # endif /* no _SC_PAGESIZE */
5666 #endif /* no HAVE_GETPAGESIZE */
5669 # define MAP_FAILED -1
5673 #define perror_exit(str, val) \
5674 do { perror(str); exit(val); } while (0)
5676 /* Some versions of cygwin mmap require that munmap is called with the
5677 same parameters as mmap. GCC expects that this is not the case.
5678 Test for various forms of this problem. Warning - icky signal games. */
5680 static sigset_t unblock_sigsegv;
5690 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
5691 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
5693 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
5694 MAP_PRIVATE, devzero, 0);
5702 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
5706 /* Basic functionality test. */
5710 char *x = anonmap (pg);
5711 if (x == (char *) MAP_FAILED)
5712 perror_exit("test 0 mmap", 2);
5716 if (munmap(x, pg) < 0)
5717 perror_exit("test 0 munmap", 3);
5720 /* 1. If we map a 2-page region and unmap its second page, the first page
5725 char *x = anonmap (pg * 2);
5726 if (x == (char *)MAP_FAILED)
5727 perror_exit ("test 1 mmap", 4);
5729 signal (SIGSEGV, sigsegv);
5731 perror_exit ("test 1 fault", 5);
5736 if (munmap (x + pg, pg) < 0)
5737 perror_exit ("test 1 munmap 1", 6);
5740 if (setjmp (r) == 0)
5743 perror_exit ("test 1 no fault", 7);
5745 if (munmap (x, pg) < 0)
5746 perror_exit ("test 1 munmap 2", 8);
5749 /* 2. If we map a 2-page region and unmap its first page, the second
5750 page must remain. */
5754 char *x = anonmap (pg * 2);
5755 if (x == (char *)MAP_FAILED)
5756 perror_exit ("test 2 mmap", 9);
5758 signal (SIGSEGV, sigsegv);
5760 perror_exit ("test 2 fault", 10);
5765 if (munmap (x, pg) < 0)
5766 perror_exit ("test 2 munmap 1", 11);
5770 if (setjmp (r) == 0)
5773 perror_exit ("test 2 no fault", 12);
5776 if (munmap (x+pg, pg) < 0)
5777 perror_exit ("test 2 munmap 2", 13);
5780 /* 3. If we map two adjacent 1-page regions and unmap them both with
5781 one munmap, both must go away.
5783 Getting two adjacent 1-page regions with two mmap calls is slightly
5784 tricky. All OS's tested skip over already-allocated blocks; therefore
5785 we have been careful to unmap all allocated regions in previous tests.
5786 HP/UX allocates pages backward in memory. No OS has yet been observed
5787 to be so perverse as to leave unmapped space between consecutive calls
5796 if (x == (char *)MAP_FAILED)
5797 perror_exit ("test 3 mmap 1", 14);
5799 if (y == (char *)MAP_FAILED)
5800 perror_exit ("test 3 mmap 2", 15);
5805 z = y, y = x, x = z;
5808 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
5809 (unsigned long)x, (unsigned long)y);
5814 signal (SIGSEGV, sigsegv);
5816 perror_exit ("test 3 fault", 17);
5821 if (munmap (x, pg*2) < 0)
5822 perror_exit ("test 3 munmap", 18);
5824 if (setjmp (r) == 0)
5827 perror_exit ("test 3 no fault 1", 19);
5830 signal (SIGSEGV, sigsegv);
5831 if (setjmp (r) == 0)
5834 perror_exit ("test 3 no fault 2", 20);
5841 sigemptyset (&unblock_sigsegv);
5842 sigaddset (&unblock_sigsegv, SIGSEGV);
5843 pg = getpagesize ();
5844 #ifndef USE_MAP_ANON
5845 devzero = open ("/dev/zero", O_RDWR);
5847 perror_exit ("open /dev/zero", 1);
5859 { echo "$as_me:$LINENO: checking for working mmap from /dev/zero" >&5
5860 echo $ECHO_N "checking for working mmap from /dev/zero... $ECHO_C" >&6; }
5861 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5864 if test "$cross_compiling" = yes; then
5865 # If this is not cygwin, and /dev/zero is a character device, it's probably
5866 # safe to assume it works.
5868 cygwin* | win32 | pe | mingw* ) ac_cv_func_mmap_dev_zero=buggy ;;
5869 * ) if test -c /dev/zero
5870 then ac_cv_func_mmap_dev_zero=yes
5871 else ac_cv_func_mmap_dev_zero=no
5875 cat >conftest.$ac_ext <<_ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5881 #include "ct-mmap.inc"
5883 rm -f conftest$ac_exeext
5884 if { (ac_try="$ac_link"
5886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887 *) ac_try_echo=$ac_try;;
5889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5890 (eval "$ac_link") 2>&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5894 { (case "(($ac_try" in
5895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5896 *) ac_try_echo=$ac_try;;
5898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5899 (eval "$ac_try") 2>&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; }; then
5903 ac_cv_func_mmap_dev_zero=yes
5905 echo "$as_me: program exited with status $ac_status" >&5
5906 echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5911 then ac_cv_func_mmap_dev_zero=no
5912 else ac_cv_func_mmap_dev_zero=buggy
5915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5921 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
5922 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6; }
5923 if test $ac_cv_func_mmap_dev_zero = yes; then
5925 cat >>confdefs.h <<\_ACEOF
5926 #define HAVE_MMAP_DEV_ZERO 1
5931 { echo "$as_me:$LINENO: checking for working mmap with MAP_ANON(YMOUS)" >&5
5932 echo $ECHO_N "checking for working mmap with MAP_ANON(YMOUS)... $ECHO_C" >&6; }
5933 if test "${ac_cv_func_mmap_anon+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 if test "$cross_compiling" = yes; then
5937 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
5938 # just because it's there. Some SCO Un*xen define it but don't implement it.
5939 ac_cv_func_mmap_anon=no
5941 cat >conftest.$ac_ext <<_ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h. */
5947 #define USE_MAP_ANON
5948 #include "ct-mmap.inc"
5950 rm -f conftest$ac_exeext
5951 if { (ac_try="$ac_link"
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_link") 2>&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5961 { (case "(($ac_try" in
5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963 *) ac_try_echo=$ac_try;;
5965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966 (eval "$ac_try") 2>&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); }; }; then
5970 ac_cv_func_mmap_anon=yes
5972 echo "$as_me: program exited with status $ac_status" >&5
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5978 then ac_cv_func_mmap_anon=no
5979 else ac_cv_func_mmap_anon=buggy
5982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5988 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
5989 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6; }
5990 if test $ac_cv_func_mmap_anon = yes; then
5992 cat >>confdefs.h <<\_ACEOF
5993 #define HAVE_MMAP_ANON 1
5999 { echo "$as_me:$LINENO: checking for working mmap of a file" >&5
6000 echo $ECHO_N "checking for working mmap of a file... $ECHO_C" >&6; }
6001 if test "${ac_cv_func_mmap_file+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 # Create a file one thousand bytes long.
6005 for i in 1 2 3 4 5 6 7 8 9 0
6006 do for j in 1 2 3 4 5 6 7 8 9 0
6009 done > conftestdata$$
6011 if test "$cross_compiling" = yes; then
6012 ac_cv_func_mmap_file=no
6014 cat >conftest.$ac_ext <<_ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6021 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
6022 Richard Henderson and Alexandre Oliva.
6023 Check whether read-only mmap of a plain file works. */
6024 #include <sys/types.h>
6025 #include <sys/stat.h>
6027 #include <sys/mman.h>
6035 fd = open("conftestdata$$", O_RDONLY);
6039 if (fstat (fd, &st))
6042 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
6043 if (x == (char *) -1)
6046 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
6049 if (munmap(x, st.st_size) < 0)
6055 rm -f conftest$ac_exeext
6056 if { (ac_try="$ac_link"
6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062 (eval "$ac_link") 2>&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6066 { (case "(($ac_try" in
6067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068 *) ac_try_echo=$ac_try;;
6070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071 (eval "$ac_try") 2>&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; }; then
6075 ac_cv_func_mmap_file=yes
6077 echo "$as_me: program exited with status $ac_status" >&5
6078 echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6082 ac_cv_func_mmap_file=no
6084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6089 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
6090 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
6091 if test $ac_cv_func_mmap_file = yes; then
6093 cat >>confdefs.h <<\_ACEOF
6094 #define HAVE_MMAP_FILE 1
6100 # We will need to find libiberty.h and ansidecl.h
6101 saved_CFLAGS="$CFLAGS"
6102 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
6103 for ac_func in getenv abort errno \
6104 malloc realloc calloc free clock
6106 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6107 { echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
6108 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6; }
6109 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 cat >conftest.$ac_ext <<_ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6119 #define $ac_tr_decl 1
6121 #include "ansidecl.h"
6128 char *(*pfn) = (char *(*)) $ac_func ;
6134 rm -f conftest.$ac_objext
6135 if { (ac_try="$ac_compile"
6137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138 *) ac_try_echo=$ac_try;;
6140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141 (eval "$ac_compile") 2>conftest.er1
6143 grep -v '^ *+' conftest.er1 >conftest.err
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
6148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6149 { (case "(($ac_try" in
6150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6151 *) ac_try_echo=$ac_try;;
6153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6154 (eval "$ac_try") 2>&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; } &&
6158 { ac_try='test -s conftest.$ac_objext'
6159 { (case "(($ac_try" in
6160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6161 *) ac_try_echo=$ac_try;;
6163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6164 (eval "$ac_try") 2>&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6168 eval "gcc_cv_have_decl_$ac_func=yes"
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6173 eval "gcc_cv_have_decl_$ac_func=no"
6176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6179 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
6180 { echo "$as_me:$LINENO: result: yes" >&5
6181 echo "${ECHO_T}yes" >&6; } ; cat >>confdefs.h <<_ACEOF
6182 #define $ac_tr_decl 1
6186 { echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6; } ; cat >>confdefs.h <<_ACEOF
6188 #define $ac_tr_decl 0
6194 if test x = y ; then
6196 cat >>confdefs.h <<\_ACEOF
6197 #define HAVE_DECL_GETENV 1
6200 cat >>confdefs.h <<\_ACEOF
6201 #define HAVE_DECL_ABORT 1
6204 cat >>confdefs.h <<\_ACEOF
6205 #define HAVE_DECL_ERRNO 1
6209 cat >>confdefs.h <<\_ACEOF
6210 #define HAVE_DECL_MALLOC 1
6213 cat >>confdefs.h <<\_ACEOF
6214 #define HAVE_DECL_REALLOC 1
6217 cat >>confdefs.h <<\_ACEOF
6218 #define HAVE_DECL_CALLOC 1
6221 cat >>confdefs.h <<\_ACEOF
6222 #define HAVE_DECL_FREE 1
6225 cat >>confdefs.h <<\_ACEOF
6226 #define HAVE_DECL_CLOCK 1
6231 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
6232 CFLAGS="$saved_CFLAGS"
6234 # mkdir takes a single argument on some systems.
6235 { echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
6236 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6; }
6237 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 cat >conftest.$ac_ext <<_ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h. */
6247 #include <sys/types.h>
6248 #ifdef HAVE_SYS_STAT_H
6249 # include <sys/stat.h>
6251 #ifdef HAVE_UNISTD_H
6252 # include <unistd.h>
6254 #ifdef HAVE_DIRECT_H
6255 # include <direct.h>
6265 rm -f conftest.$ac_objext
6266 if { (ac_try="$ac_compile"
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_compile") 2>conftest.er1
6274 grep -v '^ *+' conftest.er1 >conftest.err
6276 cat conftest.err >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } &&
6279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6280 { (case "(($ac_try" in
6281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6282 *) ac_try_echo=$ac_try;;
6284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6285 (eval "$ac_try") 2>&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; } &&
6289 { ac_try='test -s conftest.$ac_objext'
6290 { (case "(($ac_try" in
6291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6292 *) ac_try_echo=$ac_try;;
6294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6295 (eval "$ac_try") 2>&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 gcc_cv_mkdir_takes_one_arg=no
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 gcc_cv_mkdir_takes_one_arg=yes
6307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309 { echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
6310 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6; }
6311 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
6313 cat >>confdefs.h <<\_ACEOF
6314 #define MKDIR_TAKES_ONE_ARG 1
6328 build_install_headers_dir=install-headers-tar
6333 host_truncate_target=
6336 # Decode the host machine, then the target machine.
6337 # For the host machine, we save the xm_file variable as host_xm_file;
6338 # then we decode the target machine and forget everything else
6339 # that came from the host machine.
6340 #for machine in $build $host $target; do
6341 # . ${srcdir}/config.gcc
6344 extra_objs="${host_extra_objs} ${extra_objs}"
6346 # Default the target-machine variables that were not explicitly set.
6347 if test x"$tm_file" = x
6348 then tm_file=$cpu_type/$cpu_type.h; fi
6350 if test x"$extra_headers" = x
6351 then extra_headers=; fi
6353 if test x$md_file = x
6354 then md_file=$cpu_type/$cpu_type.md; fi
6356 if test x$out_file = x
6357 then out_file=$cpu_type/$cpu_type.c; fi
6359 if test x"$tmake_file" = x
6360 then tmake_file=$cpu_type/t-$cpu_type
6363 if test x"$dwarf2" = xyes
6364 then tm_file="$tm_file tm-dwarf2.h"
6367 # Handle cpp installation.
6368 if test x$enable_cpp != xno
6370 tmake_file="$tmake_file t-install-cpp"
6373 # auto-host.h is the file containing items generated by autoconf and is
6374 # the first file included by config.h.
6375 # If host=build, it is correct to have hconfig include auto-host.h
6376 # as well. If host!=build, we are in error and need to do more
6377 # work to find out the build config parameters.
6378 if test x$host = x$build
6380 build_auto=auto-host.h
6382 # We create a subdir, then run autoconf in the subdir.
6383 # To prevent recursion we set host and build for the new
6384 # invocation of configure to the build for this invocation
6391 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
6392 *) realsrcdir=../${srcdir};;
6394 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
6395 --target=$target --host=$build --build=$build
6397 # We just finished tests for the build machine, so rename
6398 # the file auto-build.h in the gcc directory.
6399 mv auto-host.h ../auto-build.h
6402 build_auto=auto-build.h
6405 tm_file="${tm_file} defaults.h"
6406 host_xm_file="auto-host.h ansidecl.h ${host_xm_file} ${tm_file}"
6407 build_xm_file="${build_auto} ansidecl.h ${build_xm_file} ${tm_file}"
6408 xm_file="ansidecl.h ${xm_file} ${tm_file}"
6410 # Truncate the target if necessary
6411 if test x$host_truncate_target != x; then
6412 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
6415 # Get the version trigger filename from the toplevel
6416 if test "${with_gcc_version_trigger+set}" = set; then
6417 gcc_version_trigger=$with_gcc_version_trigger
6419 gcc_version_trigger=${srcdir}/version.c
6421 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
6422 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
6424 # Compile in configure arguments.
6425 if test -f configargs.h ; then
6426 # Being re-configured.
6427 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
6428 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
6430 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
6432 cat > configargs.h <<EOF
6433 /* Generated automatically. */
6434 static const char configuration_arguments[] = "$gcc_config_arguments";
6435 static const char thread_model[] = "$thread_file";
6438 # Internationalization
6440 VERSION="$gcc_version"
6442 cat >>confdefs.h <<_ACEOF
6443 #define PACKAGE "$PACKAGE"
6447 cat >>confdefs.h <<_ACEOF
6448 #define VERSION "$VERSION"
6456 # Get an absolute path to the GCC top-level source directory
6462 out_object_file=`basename $out_file .c`.o
6464 # Figure out what assembler we will be using.
6465 { echo "$as_me:$LINENO: checking what assembler to use" >&5
6466 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6; }
6468 gcc_cv_gas_major_version=
6469 gcc_cv_gas_minor_version=
6470 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
6471 if test -x "$DEFAULT_ASSEMBLER"; then
6472 gcc_cv_as="$DEFAULT_ASSEMBLER"
6473 elif test -x "$AS"; then
6475 elif test -x as$host_exeext; then
6476 # Build using assembler in the current directory.
6477 gcc_cv_as=./as$host_exeext
6478 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
6479 # Single tree build which includes gas.
6480 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
6482 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
6483 if test x$gcc_cv_gas_version != x; then
6487 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
6488 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
6491 if test "x$gcc_cv_as" = x -a x$host = x$target; then
6493 # Search the same directories that the installed compiler will
6494 # search. Else we may find the wrong assembler and lose. If we
6495 # do not find a suitable assembler binary, then try the user's
6498 # Also note we have to check MD_EXEC_PREFIX before checking the
6499 # user's path. Unfortunately, there is no good way to get at the
6500 # value of MD_EXEC_PREFIX here. So we do a brute force search
6501 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
6502 # to be fixed as part of the make/configure rewrite too.
6504 if test "x$exec_prefix" = xNONE; then
6505 if test "x$prefix" = xNONE; then
6506 test_prefix=/usr/local
6511 test_prefix=$exec_prefix
6514 # If the loop below does not find an assembler, then use whatever
6515 # one we can find in the users's path.
6517 gcc_cv_as=as$host_exeext
6519 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
6520 $test_prefix/lib/gcc-lib/$target \
6521 /usr/lib/gcc/$target/$gcc_version \
6522 /usr/lib/gcc/$target \
6523 $test_prefix/$target/bin/$target/$gcc_version \
6524 $test_prefix/$target/bin \
6529 /bsd43/usr/lib/cmplrs/cc \
6530 /usr/cross64/usr/bin \
6531 /usr/lib/cmplrs/cc \
6532 /sysv/usr/lib/cmplrs/cc \
6533 /svr4/usr/lib/cmplrs/cc \
6536 for dir in $test_dirs; do
6537 if test -f $dir/as$host_exeext; then
6538 gcc_cv_as=$dir/as$host_exeext
6543 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
6544 { echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
6545 echo "${ECHO_T}\"newly built gas\"" >&6; }
6547 { echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
6548 echo "${ECHO_T}$gcc_cv_as" >&6; }
6551 # Figure out what nm we will be using.
6552 { echo "$as_me:$LINENO: checking what nm to use" >&5
6553 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6; }
6554 if test -x nm$host_exeext; then
6555 gcc_cv_nm=./nm$host_exeext
6556 elif test x$host = x$target; then
6558 gcc_cv_nm=nm$host_exeext
6560 { echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
6561 echo "${ECHO_T}$gcc_cv_nm" >&6; }
6564 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6565 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
6566 # Check whether --enable-maintainer-mode was given.
6567 if test "${enable_maintainer_mode+set}" = set; then
6568 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
6574 { echo "$as_me:$LINENO: result: $maintainer_mode" >&5
6575 echo "${ECHO_T}$maintainer_mode" >&6; }
6577 if test "$maintainer_mode" = "yes"; then
6583 # These (without "all_") are set in each config-lang.in.
6584 # `language' must be a single word so is spelled singularly.
6586 all_outputs='Makefile'
6587 # List of language makefile fragments.
6589 # Add the language fragments.
6590 # Languages are added via two mechanisms. Some information must be
6591 # recorded in makefile variables, these are defined in config-lang.in.
6592 # We accumulate them and plug them into the main Makefile.
6593 # The other mechanism is a set of hooks for each of the main targets
6594 # like `clean', `install', etc.
6596 language_fragments="Make-lang"
6598 # Define variables host_canonical and build_canonical
6599 # because some Cygnus local changes in the Makefile depend on them.
6600 build_canonical=${build}
6601 host_canonical=${host}
6603 if test "${host}" != "${target}" ; then
6604 target_subdir=${target_alias}/
6610 # Nothing to do for FLOAT_H, float_format already handled.
6614 # Substitute configuration variables
6646 #AC_SUBST_FILE(target_overrides)
6647 #AC_SUBST_FILE(host_overrides)
6648 #AC_SUBST(cross_defines)
6649 #AC_SUBST_FILE(cross_overrides)
6650 #AC_SUBST_FILE(build_overrides)
6652 # Create the Makefile
6653 # and configure language subdirectories
6654 ac_config_files="$ac_config_files $all_outputs"
6656 ac_config_commands="$ac_config_commands default"
6658 cat >confcache <<\_ACEOF
6659 # This file is a shell script that caches the results of configure
6660 # tests run on this system so they can be shared between configure
6661 # scripts and configure runs, see configure's option --config-cache.
6662 # It is not useful on other systems. If it contains results you don't
6663 # want to keep, you may remove or edit it.
6665 # config.status only pays attention to the cache file if you give it
6666 # the --recheck option to rerun configure.
6668 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6669 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6674 # The following way of writing the cache mishandles newlines in values,
6675 # but we know of no workaround that is simple, portable, and efficient.
6676 # So, we kill variables containing newlines.
6677 # Ultrix sh set writes to stderr and can't be redirected directly,
6678 # and sets the high bit in the cache file unless we assign to the vars.
6680 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6681 eval ac_val=\$$ac_var
6685 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6686 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6689 _ | IFS | as_nl) ;; #(
6690 *) $as_unset $ac_var ;;
6696 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6697 *${as_nl}ac_space=\ *)
6698 # `set' does not quote correctly, so add quotes (double-quote
6699 # substitution turns \\\\ into \\, and sed turns \\ into \).
6702 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6705 # `set' quotes correctly as required by POSIX, so do not add quotes.
6706 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6715 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6717 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6719 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6720 if test -w "$cache_file"; then
6721 test "x$cache_file" != "x/dev/null" &&
6722 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6723 echo "$as_me: updating cache $cache_file" >&6;}
6724 cat confcache >$cache_file
6726 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6727 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6732 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6733 # Let make expand exec_prefix.
6734 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6736 DEFS=-DHAVE_CONFIG_H
6740 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6741 # 1. Remove the extension, and $U if already installed.
6742 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6743 ac_i=`echo "$ac_i" | sed "$ac_script"`
6744 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6745 # will be set to the directory where LIBOBJS objects are built.
6746 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6747 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6751 LTLIBOBJS=$ac_ltlibobjs
6755 : ${CONFIG_STATUS=./config.status}
6756 ac_clean_files_save=$ac_clean_files
6757 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6758 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6759 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6760 cat >$CONFIG_STATUS <<_ACEOF
6762 # Generated by $as_me.
6763 # Run this file to recreate the current configuration.
6764 # Compiler output produced by configure, useful for debugging
6765 # configure, is in config.log if it exists.
6770 SHELL=\${CONFIG_SHELL-$SHELL}
6773 cat >>$CONFIG_STATUS <<\_ACEOF
6774 ## --------------------- ##
6775 ## M4sh Initialization. ##
6776 ## --------------------- ##
6778 # Be Bourne compatible
6779 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6782 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6783 # is contrary to our usage. Disable this feature.
6784 alias -g '${1+"$@"}'='"$@"'
6785 setopt NO_GLOB_SUBST
6787 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
6789 BIN_SH=xpg4; export BIN_SH # for Tru64
6790 DUALCASE=1; export DUALCASE # for MKS sh
6794 # Avoid depending upon Character Ranges.
6795 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6796 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6797 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6798 as_cr_digits='0123456789'
6799 as_cr_alnum=$as_cr_Letters$as_cr_digits
6801 # The user is always right.
6802 if test "${PATH_SEPARATOR+set}" != set; then
6803 echo "#! /bin/sh" >conf$$.sh
6804 echo "exit 0" >>conf$$.sh
6806 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6814 # Support unset when possible.
6815 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6823 # We need space, tab and new line, in precisely that order. Quoting is
6824 # there to prevent editors from complaining about space-tab.
6825 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6826 # splitting by setting IFS to empty value.)
6831 # Find who we are. Look in the path if we contain no directory separator.
6833 *[\\/]* ) as_myself=$0 ;;
6834 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 test -z "$as_dir" && as_dir=.
6839 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6845 # We did not find ourselves, most probably we were run as `sh COMMAND'
6846 # in which case we are not to be found in the path.
6847 if test "x$as_myself" = x; then
6850 if test ! -f "$as_myself"; then
6851 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6852 { (exit 1); exit 1; }
6855 # Work around bugs in pre-3.0 UWIN ksh.
6856 for as_var in ENV MAIL MAILPATH
6857 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6865 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6866 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6867 LC_TELEPHONE LC_TIME
6869 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6870 eval $as_var=C; export $as_var
6872 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6876 # Required to use basename.
6877 if expr a : '\(a\)' >/dev/null 2>&1 &&
6878 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6884 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6885 as_basename=basename
6891 # Name of the executable.
6892 as_me=`$as_basename -- "$0" ||
6893 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6894 X"$0" : 'X\(//\)$' \| \
6895 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6897 sed '/^.*\/\([^/][^/]*\)\/*$/{
6918 test "x$as_lineno_1" != "x$as_lineno_2" &&
6919 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6921 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6922 # uniformly replaced by the line number. The first 'sed' inserts a
6923 # line-number line after each line using $LINENO; the second 'sed'
6924 # does the real work. The second script uses 'N' to pair each
6925 # line-number line with the line containing $LINENO, and appends
6926 # trailing '-' during substitution so that $LINENO is not a special
6928 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6929 # scripts with optimization help from Paolo Bonzini. Blame Lee
6930 # E. McMahon (1931-1989) for sed's syntax. :-)
6942 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6946 chmod +x "$as_me.lineno" ||
6947 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6948 { (exit 1); exit 1; }; }
6950 # Don't try to exec as it changes $[0], causing all sort of problems
6951 # (the dirname of $[0] is not the place where we might find the
6952 # original and so on. Autoconf is especially sensitive to this).
6954 # Exit status is that of the last command.
6959 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6965 ECHO_C= ECHO_N= ECHO_T=
6968 case `echo 'x\c'` in
6969 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6976 if expr a : '\(a\)' >/dev/null 2>&1 &&
6977 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6983 rm -f conf$$ conf$$.exe conf$$.file
6984 if test -d conf$$.dir; then
6985 rm -f conf$$.dir/conf$$.file
6991 if ln -s conf$$.file conf$$ 2>/dev/null; then
6993 # ... but there are two gotchas:
6994 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6995 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6996 # In both cases, we have to default to `cp -p'.
6997 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6999 elif ln conf$$.file conf$$ 2>/dev/null; then
7004 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7005 rmdir conf$$.dir 2>/dev/null
7007 if mkdir -p . 2>/dev/null; then
7010 test -d ./-p && rmdir ./-p
7014 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
7015 # systems may use methods other than mode bits to determine executability.
7016 cat >conf$$.file <<_ASEOF
7020 chmod +x conf$$.file
7021 if test -x conf$$.file >/dev/null 2>&1; then
7022 as_executable_p="test -x"
7028 # Sed expression to map a string onto a valid CPP name.
7029 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7031 # Sed expression to map a string onto a valid variable name.
7032 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7037 # Save the log message, to keep $[0] and so on meaningful, and to
7038 # report actual input values of CONFIG_FILES etc. instead of their
7039 # values after options handling.
7041 This file was extended by $as_me, which was
7042 generated by GNU Autoconf 2.60. Invocation command line was
7044 CONFIG_FILES = $CONFIG_FILES
7045 CONFIG_HEADERS = $CONFIG_HEADERS
7046 CONFIG_LINKS = $CONFIG_LINKS
7047 CONFIG_COMMANDS = $CONFIG_COMMANDS
7050 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7055 cat >>$CONFIG_STATUS <<_ACEOF
7056 # Files that config.status was made for.
7057 config_files="$ac_config_files"
7058 config_headers="$ac_config_headers"
7059 config_commands="$ac_config_commands"
7063 cat >>$CONFIG_STATUS <<\_ACEOF
7065 \`$as_me' instantiates files from templates according to the
7066 current configuration.
7068 Usage: $0 [OPTIONS] [FILE]...
7070 -h, --help print this help, then exit
7071 -V, --version print version number, then exit
7072 -q, --quiet do not print progress messages
7073 -d, --debug don't remove temporary files
7074 --recheck update $as_me by reconfiguring in the same conditions
7075 --file=FILE[:TEMPLATE]
7076 instantiate the configuration file FILE
7077 --header=FILE[:TEMPLATE]
7078 instantiate the configuration header FILE
7080 Configuration files:
7083 Configuration headers:
7086 Configuration commands:
7089 Report bugs to <bug-autoconf@gnu.org>."
7092 cat >>$CONFIG_STATUS <<_ACEOF
7095 configured by $0, generated by GNU Autoconf 2.60,
7096 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7098 Copyright (C) 2006 Free Software Foundation, Inc.
7099 This config.status script is free software; the Free Software Foundation
7100 gives unlimited permission to copy, distribute and modify it."
7106 cat >>$CONFIG_STATUS <<\_ACEOF
7107 # If no file are specified by the user, then we need to provide default
7108 # value. By we need to know if files were specified by the user.
7114 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7115 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7126 # Handling of the options.
7127 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7129 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7130 echo "$ac_cs_version"; exit ;;
7131 --debug | --debu | --deb | --de | --d | -d )
7133 --file | --fil | --fi | --f )
7135 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7136 ac_need_defaults=false;;
7137 --header | --heade | --head | --hea )
7139 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7140 ac_need_defaults=false;;
7142 # Conflict between --help and --header
7143 { echo "$as_me: error: ambiguous option: $1
7144 Try \`$0 --help' for more information." >&2
7145 { (exit 1); exit 1; }; };;
7146 --help | --hel | -h )
7147 echo "$ac_cs_usage"; exit ;;
7148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7149 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7153 -*) { echo "$as_me: error: unrecognized option: $1
7154 Try \`$0 --help' for more information." >&2
7155 { (exit 1); exit 1; }; } ;;
7157 *) ac_config_targets="$ac_config_targets $1"
7158 ac_need_defaults=false ;;
7164 ac_configure_extra_args=
7166 if $ac_cs_silent; then
7168 ac_configure_extra_args="$ac_configure_extra_args --silent"
7172 cat >>$CONFIG_STATUS <<_ACEOF
7173 if \$ac_cs_recheck; then
7174 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7177 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7181 cat >>$CONFIG_STATUS <<\_ACEOF
7185 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7186 ## Running $as_me. ##
7192 cat >>$CONFIG_STATUS <<_ACEOF
7200 target_alias='${target_alias}'
7202 symbolic_link='${symbolic_link}'
7203 program_transform_set='${program_transform_set}'
7204 program_transform_name='${program_transform_name}'
7205 dep_host_xmake_file='${dep_host_xmake_file}'
7206 host_xmake_file='${host_xmake_file}'
7207 dep_tmake_file='${dep_tmake_file}'
7208 tmake_file='${tmake_file}'
7209 thread_file='${thread_file}'
7210 gcc_config_arguments='${gcc_config_arguments}'
7211 gcc_version='${gcc_version}'
7212 gcc_version_full='${gcc_version_full}'
7213 gcc_version_trigger='${gcc_version_trigger}'
7214 local_prefix='${local_prefix}'
7215 build_install_headers_dir='${build_install_headers_dir}'
7216 build_exeext='${build_exeext}'
7217 host_exeext='${host_exeext}'
7218 out_file='${out_file}'
7219 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
7220 SET_MAKE='${SET_MAKE}'
7221 target_list='${target_list}'
7222 target_overrides='${target_overrides}'
7223 host_overrides='${host_overrides}'
7224 cross_defines='${cross_defines}'
7225 cross_overrides='${cross_overrides}'
7226 build_overrides='${build_overrides}'
7227 cpp_install_dir='${cpp_install_dir}'
7232 cat >>$CONFIG_STATUS <<\_ACEOF
7234 # Handling of arguments.
7235 for ac_config_target in $ac_config_targets
7237 case $ac_config_target in
7238 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
7239 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
7240 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7242 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7243 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7244 { (exit 1); exit 1; }; };;
7249 # If the user did not use the arguments to specify the items to instantiate,
7250 # then the envvar interface is used. Set only those that are not.
7251 # We use the long form for the default assignment because of an extremely
7252 # bizarre bug on SunOS 4.1.3.
7253 if $ac_need_defaults; then
7254 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7255 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7256 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7259 # Have a temporary directory for convenience. Make it in the build tree
7260 # simply because there is no reason against having it here, and in addition,
7261 # creating and moving files from /tmp can sometimes cause problems.
7262 # Hook for its removal unless debugging.
7263 # Note that there is a small window in which the directory will not be cleaned:
7264 # after its creation but before its name has been assigned to `$tmp'.
7268 trap 'exit_status=$?
7269 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7271 trap '{ (exit 1); exit 1; }' 1 2 13 15
7273 # Create a (secure) tmp directory for tmp files.
7276 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7277 test -n "$tmp" && test -d "$tmp"
7280 tmp=./conf$$-$RANDOM
7281 (umask 077 && mkdir "$tmp")
7284 echo "$me: cannot create a temporary directory in ." >&2
7285 { (exit 1); exit 1; }
7289 # Set up the sed scripts for CONFIG_FILES section.
7292 # No need to generate the scripts if there are no CONFIG_FILES.
7293 # This happens for instance when ./config.status config.h
7294 if test -n "$CONFIG_FILES"; then
7301 for ac_last_try in false false false false false :; do
7302 cat >conf$$subs.sed <<_ACEOF
7303 SHELL!$SHELL$ac_delim
7304 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7305 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7306 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7307 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7308 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7309 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7310 exec_prefix!$exec_prefix$ac_delim
7311 prefix!$prefix$ac_delim
7312 program_transform_name!$program_transform_name$ac_delim
7313 bindir!$bindir$ac_delim
7314 sbindir!$sbindir$ac_delim
7315 libexecdir!$libexecdir$ac_delim
7316 datarootdir!$datarootdir$ac_delim
7317 datadir!$datadir$ac_delim
7318 sysconfdir!$sysconfdir$ac_delim
7319 sharedstatedir!$sharedstatedir$ac_delim
7320 localstatedir!$localstatedir$ac_delim
7321 includedir!$includedir$ac_delim
7322 oldincludedir!$oldincludedir$ac_delim
7323 docdir!$docdir$ac_delim
7324 infodir!$infodir$ac_delim
7325 htmldir!$htmldir$ac_delim
7326 dvidir!$dvidir$ac_delim
7327 pdfdir!$pdfdir$ac_delim
7328 psdir!$psdir$ac_delim
7329 libdir!$libdir$ac_delim
7330 localedir!$localedir$ac_delim
7331 mandir!$mandir$ac_delim
7333 ECHO_C!$ECHO_C$ac_delim
7334 ECHO_N!$ECHO_N$ac_delim
7335 ECHO_T!$ECHO_T$ac_delim
7337 build_alias!$build_alias$ac_delim
7338 host_alias!$host_alias$ac_delim
7339 target_alias!$target_alias$ac_delim
7341 CFLAGS!$CFLAGS$ac_delim
7342 LDFLAGS!$LDFLAGS$ac_delim
7343 CPPFLAGS!$CPPFLAGS$ac_delim
7344 ac_ct_CC!$ac_ct_CC$ac_delim
7345 EXEEXT!$EXEEXT$ac_delim
7346 OBJEXT!$OBJEXT$ac_delim
7347 NO_MINUS_C_MINUS_O!$NO_MINUS_C_MINUS_O$ac_delim
7348 OUTPUT_OPTION!$OUTPUT_OPTION$ac_delim
7351 EGREP!$EGREP$ac_delim
7352 warn_cflags!$warn_cflags$ac_delim
7353 SET_MAKE!$SET_MAKE$ac_delim
7356 RANLIB!$RANLIB$ac_delim
7357 INSTALL!$INSTALL$ac_delim
7358 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7359 INSTALL_DATA!$INSTALL_DATA$ac_delim
7360 have_mktemp_command!$have_mktemp_command$ac_delim
7361 STRIP!$STRIP$ac_delim
7362 manext!$manext$ac_delim
7363 objext!$objext$ac_delim
7364 PACKAGE!$PACKAGE$ac_delim
7365 VERSION!$VERSION$ac_delim
7366 MAINT!$MAINT$ac_delim
7367 build_canonical!$build_canonical$ac_delim
7368 host_canonical!$host_canonical$ac_delim
7369 target_subdir!$target_subdir$ac_delim
7370 objdir!$objdir$ac_delim
7371 all_stagestuff!$all_stagestuff$ac_delim
7372 build_exeext!$build_exeext$ac_delim
7373 build_install_headers_dir!$build_install_headers_dir$ac_delim
7374 build_xm_file_list!$build_xm_file_list$ac_delim
7375 build_xm_file!$build_xm_file$ac_delim
7376 build_xm_defines!$build_xm_defines$ac_delim
7377 check_languages!$check_languages$ac_delim
7378 dep_host_xmake_file!$dep_host_xmake_file$ac_delim
7379 dep_tmake_file!$dep_tmake_file$ac_delim
7380 extra_c_flags!$extra_c_flags$ac_delim
7381 extra_headers_list!$extra_headers_list$ac_delim
7382 extra_objs!$extra_objs$ac_delim
7383 extra_parts!$extra_parts$ac_delim
7384 extra_passes!$extra_passes$ac_delim
7385 extra_programs!$extra_programs$ac_delim
7386 gcc_config_arguments!$gcc_config_arguments$ac_delim
7387 gcc_version!$gcc_version$ac_delim
7388 gcc_version_full!$gcc_version_full$ac_delim
7389 gcc_version_trigger!$gcc_version_trigger$ac_delim
7390 host_exeext!$host_exeext$ac_delim
7391 host_extra_gcc_objs!$host_extra_gcc_objs$ac_delim
7392 install!$install$ac_delim
7393 lang_tree_files!$lang_tree_files$ac_delim
7394 local_prefix!$local_prefix$ac_delim
7395 md_file!$md_file$ac_delim
7396 out_file!$out_file$ac_delim
7397 out_object_file!$out_object_file$ac_delim
7398 symbolic_link!$symbolic_link$ac_delim
7399 thread_file!$thread_file$ac_delim
7402 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
7404 elif $ac_last_try; then
7405 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7406 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7407 { (exit 1); exit 1; }; }
7409 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7413 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7414 if test -n "$ac_eof"; then
7415 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7416 ac_eof=`expr $ac_eof + 1`
7419 cat >>$CONFIG_STATUS <<_ACEOF
7420 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7421 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7424 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7425 s/^/s,@/; s/!/@,|#_!!_#|/
7428 s/'"$ac_delim"'$/,g/; t
7430 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7431 ' >>$CONFIG_STATUS <conf$$subs.sed
7432 rm -f conf$$subs.sed
7433 cat >>$CONFIG_STATUS <<_ACEOF
7439 for ac_last_try in false false false false false :; do
7440 cat >conf$$subs.sed <<_ACEOF
7441 c_target_objs!$c_target_objs$ac_delim
7442 LIBOBJS!$LIBOBJS$ac_delim
7443 LTLIBOBJS!$LTLIBOBJS$ac_delim
7446 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
7448 elif $ac_last_try; then
7449 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7450 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7451 { (exit 1); exit 1; }; }
7453 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7457 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7458 if test -n "$ac_eof"; then
7459 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
7460 ac_eof=`expr $ac_eof + 1`
7463 cat >>$CONFIG_STATUS <<_ACEOF
7464 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
7465 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7468 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7469 s/^/s,@/; s/!/@,|#_!!_#|/
7472 s/'"$ac_delim"'$/,g/; t
7474 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7475 ' >>$CONFIG_STATUS <conf$$subs.sed
7476 rm -f conf$$subs.sed
7477 cat >>$CONFIG_STATUS <<_ACEOF
7484 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7485 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7486 # trailing colons and then remove the whole line if VPATH becomes empty
7487 # (actually we leave an empty line to preserve line numbers).
7488 if test "x$srcdir" = x.; then
7489 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7493 s/^\([^=]*=[ ]*\):*/\1/
7499 cat >>$CONFIG_STATUS <<\_ACEOF
7500 fi # test -n "$CONFIG_FILES"
7503 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
7506 :[FHLC]) ac_mode=$ac_tag; continue;;
7508 case $ac_mode$ac_tag in
7510 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7511 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7512 { (exit 1); exit 1; }; };;
7513 :[FH]-) ac_tag=-:-;;
7514 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7531 -) ac_f="$tmp/stdin";;
7532 *) # Look for the file first in the build tree, then in the source tree
7533 # (if the path is not absolute). The absolute path cannot be DOS-style,
7534 # because $ac_f cannot contain `:'.
7538 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7540 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7541 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7542 { (exit 1); exit 1; }; };;
7544 ac_file_inputs="$ac_file_inputs $ac_f"
7547 # Let's still pretend it is `configure' which instantiates (i.e., don't
7548 # use $as_me), people would be surprised to read:
7549 # /* config.h. Generated by config.status. */
7550 configure_input="Generated from "`IFS=:
7551 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7552 if test x"$ac_file" != x-; then
7553 configure_input="$ac_file. $configure_input"
7554 { echo "$as_me:$LINENO: creating $ac_file" >&5
7555 echo "$as_me: creating $ac_file" >&6;}
7559 *:-:* | *:-) cat >"$tmp/stdin";;
7564 ac_dir=`$as_dirname -- "$ac_file" ||
7565 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7566 X"$ac_file" : 'X\(//\)[^/]' \| \
7567 X"$ac_file" : 'X\(//\)$' \| \
7568 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7589 -*) as_dir=./$as_dir;;
7591 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7595 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7596 *) as_qdir=$as_dir;;
7598 as_dirs="'$as_qdir' $as_dirs"
7599 as_dir=`$as_dirname -- "$as_dir" ||
7600 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7601 X"$as_dir" : 'X\(//\)[^/]' \| \
7602 X"$as_dir" : 'X\(//\)$' \| \
7603 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7622 test -d "$as_dir" && break
7624 test -z "$as_dirs" || eval "mkdir $as_dirs"
7625 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7626 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7627 { (exit 1); exit 1; }; }; }
7631 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7633 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7634 # A ".." for each directory in $ac_dir_suffix.
7635 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7636 case $ac_top_builddir_sub in
7637 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7638 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7641 ac_abs_top_builddir=$ac_pwd
7642 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7643 # for backward compatibility:
7644 ac_top_builddir=$ac_top_build_prefix
7647 .) # We are building in place.
7649 ac_top_srcdir=$ac_top_builddir_sub
7650 ac_abs_top_srcdir=$ac_pwd ;;
7651 [\\/]* | ?:[\\/]* ) # Absolute name.
7652 ac_srcdir=$srcdir$ac_dir_suffix;
7653 ac_top_srcdir=$srcdir
7654 ac_abs_top_srcdir=$srcdir ;;
7656 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7657 ac_top_srcdir=$ac_top_build_prefix$srcdir
7658 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7660 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7671 cat >>$CONFIG_STATUS <<\_ACEOF
7672 # If the template does not know about datarootdir, expand it.
7673 # FIXME: This hack should be removed a few years after 2.60.
7674 ac_datarootdir_hack=; ac_datarootdir_seen=
7676 case `sed -n '/datarootdir/ {
7685 ' $ac_file_inputs` in
7686 *datarootdir*) ac_datarootdir_seen=yes;;
7687 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7688 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7689 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7691 cat >>$CONFIG_STATUS <<_ACEOF
7692 ac_datarootdir_hack='
7693 s&@datadir@&$datadir&g
7694 s&@docdir@&$docdir&g
7695 s&@infodir@&$infodir&g
7696 s&@localedir@&$localedir&g
7697 s&@mandir@&$mandir&g
7698 s&\\\${datarootdir}&$datarootdir&g' ;;
7702 # Neutralize VPATH when `$srcdir' = `.'.
7703 # Shell code in configure.ac might set extrasub.
7704 # FIXME: do we really want to maintain this feature?
7705 cat >>$CONFIG_STATUS <<_ACEOF
7709 cat >>$CONFIG_STATUS <<\_ACEOF
7711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7712 s&@configure_input@&$configure_input&;t t
7713 s&@top_builddir@&$ac_top_builddir_sub&;t t
7714 s&@srcdir@&$ac_srcdir&;t t
7715 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7716 s&@top_srcdir@&$ac_top_srcdir&;t t
7717 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7718 s&@builddir@&$ac_builddir&;t t
7719 s&@abs_builddir@&$ac_abs_builddir&;t t
7720 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7721 $ac_datarootdir_hack
7722 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
7724 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7725 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7726 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7727 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7728 which seems to be undefined. Please make sure it is defined." >&5
7729 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7730 which seems to be undefined. Please make sure it is defined." >&2;}
7734 -) cat "$tmp/out"; rm -f "$tmp/out";;
7735 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7744 # Transform confdefs.h into a sed script `conftest.defines', that
7745 # substitutes the proper values into config.h.in to produce config.h.
7746 rm -f conftest.defines conftest.tail
7747 # First, append a space to every undef/define line, to ease matching.
7748 echo 's/$/ /' >conftest.defines
7749 # Then, protect against being on the right side of a sed subst, or in
7750 # an unquoted here document, in config.status. If some macros were
7751 # called several times there might be several #defines for the same
7752 # symbol, which is useless. But do not sort them, since the last
7753 # AC_DEFINE must be honored.
7754 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7755 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7756 # NAME is the cpp macro being defined, VALUE is the value it is being given.
7757 # PARAMS is the parameter list in the macro definition--in most cases, it's
7758 # just an empty string.
7759 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
7760 ac_dB='\\)[ (].*,\\1define\\2'
7768 s/^[ ]*#[ ]*define[ ][ ]*//
7773 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7774 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7775 ' >>conftest.defines
7777 # Remove the space that was appended to ease matching.
7778 # Then replace #undef with comments. This is necessary, for
7779 # example, in the case of _POSIX_SOURCE, which is predefined and required
7780 # on some systems where configure will not decide to define it.
7781 # (The regexp can be short, since the line contains either #define or #undef.)
7783 s,^[ #]*u.*,/* & */,' >>conftest.defines
7785 # Break up conftest.defines:
7788 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7789 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7790 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7792 ac_in='$ac_file_inputs'
7793 ac_out='"$tmp/out1"'
7794 ac_nxt='"$tmp/out2"'
7798 # Write a here document:
7799 cat >>$CONFIG_STATUS <<_ACEOF
7800 # First, check the format of the line:
7801 cat >"\$tmp/defines.sed" <<\\CEOF
7802 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
7803 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
7807 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7809 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7810 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
7811 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
7812 grep . conftest.tail >/dev/null || break
7813 rm -f conftest.defines
7814 mv conftest.tail conftest.defines
7816 rm -f conftest.defines conftest.tail
7818 echo "ac_result=$ac_in" >>$CONFIG_STATUS
7819 cat >>$CONFIG_STATUS <<\_ACEOF
7820 if test x"$ac_file" != x-; then
7821 echo "/* $configure_input */" >"$tmp/config.h"
7822 cat "$ac_result" >>"$tmp/config.h"
7823 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
7824 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7825 echo "$as_me: $ac_file is unchanged" >&6;}
7828 mv "$tmp/config.h" $ac_file
7831 echo "/* $configure_input */"
7837 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
7838 echo "$as_me: executing $ac_file commands" >&6;}
7843 case $ac_file$ac_mode in
7845 case x$CONFIG_HEADERS in
7846 xauto-host.h:config.in)
7850 # Avoid having to add intl to our include paths.
7851 if test -f intl/libintl.h; then
7852 echo creating libintl.h
7853 echo '#include "intl/libintl.h"' >libintl.h
7861 { (exit 0); exit 0; }
7863 chmod +x $CONFIG_STATUS
7864 ac_clean_files=$ac_clean_files_save
7867 # configure is writing to config.log, and then calls config.status.
7868 # config.status does its own redirection, appending to config.log.
7869 # Unfortunately, on DOS this fails, as config.log is still kept open
7870 # by configure, so config.status won't be able to write to it; its
7871 # output is simply discarded. So we exec the FD to /dev/null,
7872 # effectively closing config.log, so it can be properly (re)opened and
7873 # appended to by config.status. When coming back to configure, we
7874 # need to make the FD available again.
7875 if test "$no_create" != yes; then
7877 ac_config_status_args=
7878 test "$silent" = yes &&
7879 ac_config_status_args="$ac_config_status_args --quiet"
7881 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7883 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7884 # would make configure fail if this is the last instruction.
7885 $ac_cs_success || { (exit 1); exit 1; }