2 # From configure.in CVSid.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for GNU C Library (see version.h).
6 # Report bugs to <glibc>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir=.
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
261 CONFIG_SHELL=$as_shell
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
289 as_func_ret_success () {
292 as_func_ret_failure () {
297 if as_func_success; then
301 echo as_func_success failed.
304 if as_func_failure; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
475 ECHO_C= ECHO_N= ECHO_T=
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 elif ln conf$$.file conf$$ 2>/dev/null; then
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
520 test -d ./-p && rmdir ./-p
524 if test -x / >/dev/null 2>&1; then
527 if ls -dL / >/dev/null 2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix=/usr/local
567 ac_config_libobj_dir=.
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME='GNU C Library'
577 PACKAGE_TARNAME='c-library'
578 PACKAGE_VERSION='(see version.h)'
579 PACKAGE_STRING='GNU C Library (see version.h)'
580 PACKAGE_BUGREPORT='glibc'
582 ac_unique_file="include/features.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
596 # ifdef HAVE_STDLIB_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
628 program_transform_name
708 libc_cv_gcc_static_libgcc
718 libc_cv_cc_with_libunwind
720 libc_cv_libgcc_s_suffix
730 libc_cv_have_initfini
740 libc_cv_gcc_unwind_find_fde
749 libc_cv_forced_unwind
769 ac_precious_vars='build_alias
783 # Initialize some variables set by options.
785 ac_init_version=false
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
795 program_transform_name=s,x,x,
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir='${exec_prefix}/bin'
810 sbindir='${exec_prefix}/sbin'
811 libexecdir='${exec_prefix}/libexec'
812 datarootdir='${prefix}/share'
813 datadir='${datarootdir}'
814 sysconfdir='${prefix}/etc'
815 sharedstatedir='${prefix}/com'
816 localstatedir='${prefix}/var'
817 includedir='${prefix}/include'
818 oldincludedir='/usr/include'
819 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820 infodir='${datarootdir}/info'
825 libdir='${exec_prefix}/lib'
826 localedir='${datarootdir}/locale'
827 mandir='${datarootdir}/man'
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
835 eval $ac_prev=\$ac_option
841 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 # Accept the important Cygnus configure options, so we can diagnose typos.
847 case $ac_dashdash$ac_option in
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
869 cache_file=config.cache ;;
871 -datadir | --datadir | --datadi | --datad)
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
883 -disable-* | --disable-*)
884 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
887 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
888 { (exit 1); exit 1; }; }
889 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
890 eval enable_$ac_feature=no ;;
892 -docdir | --docdir | --docdi | --doc | --do)
894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902 -enable-* | --enable-*)
903 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
906 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
907 { (exit 1); exit 1; }; }
908 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
909 eval enable_$ac_feature=\$ac_optarg ;;
911 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
912 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
913 | --exec | --exe | --ex)
914 ac_prev=exec_prefix ;;
915 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
916 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
917 | --exec=* | --exe=* | --ex=*)
918 exec_prefix=$ac_optarg ;;
920 -gas | --gas | --ga | --g)
921 # Obsolete; use --with-gas.
924 -help | --help | --hel | --he | -h)
926 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
927 ac_init_help=recursive ;;
928 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
929 ac_init_help=short ;;
931 -host | --host | --hos | --ho)
932 ac_prev=host_alias ;;
933 -host=* | --host=* | --hos=* | --ho=*)
934 host_alias=$ac_optarg ;;
936 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
938 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
940 htmldir=$ac_optarg ;;
942 -includedir | --includedir | --includedi | --included | --include \
943 | --includ | --inclu | --incl | --inc)
944 ac_prev=includedir ;;
945 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
946 | --includ=* | --inclu=* | --incl=* | --inc=*)
947 includedir=$ac_optarg ;;
949 -infodir | --infodir | --infodi | --infod | --info | --inf)
951 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
952 infodir=$ac_optarg ;;
954 -libdir | --libdir | --libdi | --libd)
956 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
960 | --libexe | --libex | --libe)
961 ac_prev=libexecdir ;;
962 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
963 | --libexe=* | --libex=* | --libe=*)
964 libexecdir=$ac_optarg ;;
966 -localedir | --localedir | --localedi | --localed | --locale)
968 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
969 localedir=$ac_optarg ;;
971 -localstatedir | --localstatedir | --localstatedi | --localstated \
972 | --localstate | --localstat | --localsta | --localst | --locals)
973 ac_prev=localstatedir ;;
974 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
975 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
976 localstatedir=$ac_optarg ;;
978 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
980 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
984 # Obsolete; use --without-fp.
987 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988 | --no-cr | --no-c | -n)
991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
996 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
997 | --oldin | --oldi | --old | --ol | --o)
998 ac_prev=oldincludedir ;;
999 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1000 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1001 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1002 oldincludedir=$ac_optarg ;;
1004 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1006 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1007 prefix=$ac_optarg ;;
1009 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1010 | --program-pre | --program-pr | --program-p)
1011 ac_prev=program_prefix ;;
1012 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1013 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1014 program_prefix=$ac_optarg ;;
1016 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1017 | --program-suf | --program-su | --program-s)
1018 ac_prev=program_suffix ;;
1019 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1020 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1021 program_suffix=$ac_optarg ;;
1023 -program-transform-name | --program-transform-name \
1024 | --program-transform-nam | --program-transform-na \
1025 | --program-transform-n | --program-transform- \
1026 | --program-transform | --program-transfor \
1027 | --program-transfo | --program-transf \
1028 | --program-trans | --program-tran \
1029 | --progr-tra | --program-tr | --program-t)
1030 ac_prev=program_transform_name ;;
1031 -program-transform-name=* | --program-transform-name=* \
1032 | --program-transform-nam=* | --program-transform-na=* \
1033 | --program-transform-n=* | --program-transform-=* \
1034 | --program-transform=* | --program-transfor=* \
1035 | --program-transfo=* | --program-transf=* \
1036 | --program-trans=* | --program-tran=* \
1037 | --progr-tra=* | --program-tr=* | --program-t=*)
1038 program_transform_name=$ac_optarg ;;
1040 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1042 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1043 pdfdir=$ac_optarg ;;
1045 -psdir | --psdir | --psdi | --psd | --ps)
1047 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051 | -silent | --silent | --silen | --sile | --sil)
1054 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058 sbindir=$ac_optarg ;;
1060 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1061 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1062 | --sharedst | --shareds | --shared | --share | --shar \
1064 ac_prev=sharedstatedir ;;
1065 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1066 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1067 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069 sharedstatedir=$ac_optarg ;;
1071 -site | --site | --sit)
1073 -site=* | --site=* | --sit=*)
1076 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1079 srcdir=$ac_optarg ;;
1081 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1082 | --syscon | --sysco | --sysc | --sys | --sy)
1083 ac_prev=sysconfdir ;;
1084 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1085 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1086 sysconfdir=$ac_optarg ;;
1088 -target | --target | --targe | --targ | --tar | --ta | --t)
1089 ac_prev=target_alias ;;
1090 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1091 target_alias=$ac_optarg ;;
1093 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 -version | --version | --versio | --versi | --vers | -V)
1097 ac_init_version=: ;;
1100 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103 { echo "$as_me: error: invalid package name: $ac_package" >&2
1104 { (exit 1); exit 1; }; }
1105 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1106 eval with_$ac_package=\$ac_optarg ;;
1108 -without-* | --without-*)
1109 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid package name: $ac_package" >&2
1113 { (exit 1); exit 1; }; }
1114 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1115 eval with_$ac_package=no ;;
1118 # Obsolete; use --with-x.
1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122 | --x-incl | --x-inc | --x-in | --x-i)
1123 ac_prev=x_includes ;;
1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1126 x_includes=$ac_optarg ;;
1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130 ac_prev=x_libraries ;;
1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1133 x_libraries=$ac_optarg ;;
1135 -*) { echo "$as_me: error: unrecognized option: $ac_option
1136 Try \`$0 --help' for more information." >&2
1137 { (exit 1); exit 1; }; }
1141 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1144 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1145 { (exit 1); exit 1; }; }
1146 eval $ac_envvar=\$ac_optarg
1147 export $ac_envvar ;;
1150 # FIXME: should be removed in autoconf 3.0.
1151 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1160 if test -n "$ac_prev"; then
1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162 { echo "$as_me: error: missing argument to $ac_option" >&2
1163 { (exit 1); exit 1; }; }
1166 # Be sure to have absolute directory names.
1167 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168 datadir sysconfdir sharedstatedir localstatedir includedir \
1169 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170 libdir localedir mandir
1172 eval ac_val=\$$ac_var
1174 [\\/$]* | ?:[\\/]* ) continue;;
1175 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1177 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1178 { (exit 1); exit 1; }; }
1181 # There might be people who depend on the old broken behavior: `$host'
1182 # used to hold the argument of --host etc.
1183 # FIXME: To remove some day.
1186 target=$target_alias
1188 # FIXME: To remove some day.
1189 if test "x$host_alias" != x; then
1190 if test "x$build_alias" = x; then
1191 cross_compiling=maybe
1192 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1193 If a cross compiler is detected then cross compile mode will be used." >&2
1194 elif test "x$build_alias" != "x$host_alias"; then
1200 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1202 test "$silent" = yes && exec 6>/dev/null
1205 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1206 ac_ls_di=`ls -di .` &&
1207 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1208 { echo "$as_me: error: Working directory cannot be determined" >&2
1209 { (exit 1); exit 1; }; }
1210 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1211 { echo "$as_me: error: pwd does not report name of working directory" >&2
1212 { (exit 1); exit 1; }; }
1215 # Find the source files, if location was not specified.
1216 if test -z "$srcdir"; then
1217 ac_srcdir_defaulted=yes
1218 # Try the directory containing this script, then the parent directory.
1219 ac_confdir=`$as_dirname -- "$0" ||
1220 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1221 X"$0" : 'X\(//\)[^/]' \| \
1222 X"$0" : 'X\(//\)$' \| \
1223 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243 if test ! -r "$srcdir/$ac_unique_file"; then
1247 ac_srcdir_defaulted=no
1249 if test ! -r "$srcdir/$ac_unique_file"; then
1250 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1251 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1252 { (exit 1); exit 1; }; }
1254 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1256 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1257 { (exit 1); exit 1; }; }
1259 # When building in place, set srcdir=.
1260 if test "$ac_abs_confdir" = "$ac_pwd"; then
1263 # Remove unnecessary trailing slashes from srcdir.
1264 # Double slashes in file names in object file debugging info
1265 # mess up M-x gdb in Emacs.
1267 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1269 for ac_var in $ac_precious_vars; do
1270 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1271 eval ac_env_${ac_var}_value=\$${ac_var}
1272 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1277 # Report the --help message.
1279 if test "$ac_init_help" = "long"; then
1280 # Omit some internal or obsolete options to make the list less imposing.
1281 # This message is too long to be a string in the A/UX 3.1 sh.
1283 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1285 Usage: $0 [OPTION]... [VAR=VALUE]...
1287 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1288 VAR=VALUE. See below for descriptions of some of the useful variables.
1290 Defaults for the options are specified in brackets.
1293 -h, --help display this help and exit
1294 --help=short display options specific to this package
1295 --help=recursive display the short help of all the included packages
1296 -V, --version display version information and exit
1297 -q, --quiet, --silent do not print \`checking...' messages
1298 --cache-file=FILE cache test results in FILE [disabled]
1299 -C, --config-cache alias for \`--cache-file=config.cache'
1300 -n, --no-create do not create output files
1301 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1303 Installation directories:
1304 --prefix=PREFIX install architecture-independent files in PREFIX
1305 [$ac_default_prefix]
1306 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1309 By default, \`make install' will install all the files in
1310 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1311 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1312 for instance \`--prefix=\$HOME'.
1314 For better control, use the options below.
1316 Fine tuning of the installation directories:
1317 --bindir=DIR user executables [EPREFIX/bin]
1318 --sbindir=DIR system admin executables [EPREFIX/sbin]
1319 --libexecdir=DIR program executables [EPREFIX/libexec]
1320 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1321 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1322 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1323 --libdir=DIR object code libraries [EPREFIX/lib]
1324 --includedir=DIR C header files [PREFIX/include]
1325 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1326 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1327 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1328 --infodir=DIR info documentation [DATAROOTDIR/info]
1329 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1330 --mandir=DIR man documentation [DATAROOTDIR/man]
1331 --docdir=DIR documentation root [DATAROOTDIR/doc/c-library]
1332 --htmldir=DIR html documentation [DOCDIR]
1333 --dvidir=DIR dvi documentation [DOCDIR]
1334 --pdfdir=DIR pdf documentation [DOCDIR]
1335 --psdir=DIR ps documentation [DOCDIR]
1341 --build=BUILD configure for building on BUILD [guessed]
1342 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1346 if test -n "$ac_init_help"; then
1347 case $ac_init_help in
1348 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1353 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1354 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1355 --disable-sanity-checks really do not use threads (should not be used except
1356 in special situations) [default=yes]
1357 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1359 --enable-shared build shared library [default=yes if GNU ld & ELF]
1360 --enable-profile build profiled library [default=no]
1361 --enable-omitfp build undebuggable optimized library [default=no]
1362 --enable-bounded build with runtime bounds checking [default=no]
1363 --disable-versioning do not include versioning information in the library
1364 objects [default=yes if supported]
1365 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1366 [default=glibc default]
1367 --enable-stackguard-randomization
1368 initialize __stack_chk_guard canary with a random
1369 number at program start
1370 --enable-add-ons[=DIRS...]
1371 configure and build add-ons in DIR1,DIR2,... search
1372 for add-ons if no parameter given
1373 --disable-hidden-plt do not hide internal function calls to avoid PLT
1374 --enable-bind-now disable lazy relocations in DSOs
1375 --enable-static-nss build static NSS modules [default=no]
1376 --disable-force-install don't force installation of files from this package,
1377 even if they are older than the installed files
1378 --enable-kernel=VERSION compile for compatibility with kernel not older than
1380 --enable-all-warnings enable all useful warnings gcc can issue
1383 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1384 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1385 --with-gd=DIR find libgd include dir and library with prefix DIR
1386 --with-gd-include=DIR find libgd include files in DIR
1387 --with-gd-lib=DIR find libgd library files in DIR
1388 --with-fp if using floating-point hardware [default=yes]
1389 --with-binutils=PATH specify location of binutils (as and ld)
1390 --with-elf if using the ELF object format
1391 --with-selinux if building with SELinux support
1392 --with-xcoff if using the XCOFF object format
1393 --without-cvs if CVS should not be used
1394 --with-headers=PATH location of system headers to use (for example
1395 /usr/src/linux/include) [default=compiler default]
1396 --with-tls enable support for TLS
1397 --without-__thread do not use TLS features even when supporting them
1398 --with-cpu=CPU select code for CPU variant
1400 Some influential environment variables:
1401 CC C compiler command
1402 CFLAGS C compiler flags
1403 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1404 nonstandard directory <lib dir>
1405 LIBS libraries to pass to the linker, e.g. -l<library>
1406 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1407 you have headers in a nonstandard directory <include dir>
1409 CXX C++ compiler command
1410 CXXFLAGS C++ compiler flags
1412 Use these variables to override the choices made by `configure' or to help
1413 it to find libraries and programs with nonstandard names/locations.
1415 Report bugs to <glibc>.
1420 if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423 test -d "$ac_dir" || continue
1427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1430 # A ".." for each directory in $ac_dir_suffix.
1431 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1432 case $ac_top_builddir_sub in
1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437 ac_abs_top_builddir=$ac_pwd
1438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439 # for backward compatibility:
1440 ac_top_builddir=$ac_top_build_prefix
1443 .) # We are building in place.
1445 ac_top_srcdir=$ac_top_builddir_sub
1446 ac_abs_top_srcdir=$ac_pwd ;;
1447 [\\/]* | ?:[\\/]* ) # Absolute name.
1448 ac_srcdir=$srcdir$ac_dir_suffix;
1449 ac_top_srcdir=$srcdir
1450 ac_abs_top_srcdir=$srcdir ;;
1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1458 cd "$ac_dir" || { ac_status=$?; continue; }
1459 # Check for guested configure.
1460 if test -f "$ac_srcdir/configure.gnu"; then
1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1463 elif test -f "$ac_srcdir/configure"; then
1465 $SHELL "$ac_srcdir/configure" --help=recursive
1467 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1469 cd "$ac_pwd" || { ac_status=$?; break; }
1473 test -n "$ac_init_help" && exit $ac_status
1474 if $ac_init_version; then
1476 GNU C Library configure (see version.h)
1477 generated by GNU Autoconf 2.61
1479 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1480 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1481 This configure script is free software; the Free Software Foundation
1482 gives unlimited permission to copy, distribute and modify it.
1486 cat >config.log <<_ACEOF
1487 This file contains any messages produced by compilers while
1488 running configure, to aid debugging if configure makes a mistake.
1490 It was created by GNU C Library $as_me (see version.h), which was
1491 generated by GNU Autoconf 2.61. Invocation command line was
1503 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1504 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1505 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1506 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1507 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1509 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1510 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1512 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1513 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1514 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1515 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1516 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1517 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1518 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 test -z "$as_dir" && as_dir=.
1527 echo "PATH: $as_dir"
1543 # Keep a trace of the command line.
1544 # Strip out --no-create and --no-recursion so they do not pile up.
1545 # Strip out --silent because we don't want to record it for future runs.
1546 # Also quote any args containing shell meta-characters.
1547 # Make two passes to allow for proper duplicate-argument suppression.
1551 ac_must_keep_next=false
1557 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1559 | -silent | --silent | --silen | --sile | --sil)
1562 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1565 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1567 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1568 if test $ac_must_keep_next = true; then
1569 ac_must_keep_next=false # Got value, back to normal.
1572 *=* | --config-cache | -C | -disable-* | --disable-* \
1573 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1574 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1575 | -with-* | --with-* | -without-* | --without-* | --x)
1576 case "$ac_configure_args0 " in
1577 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1580 -* ) ac_must_keep_next=true ;;
1583 ac_configure_args="$ac_configure_args '$ac_arg'"
1588 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1589 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1591 # When interrupted or exit'd, cleanup temporary files, and complete
1592 # config.log. We remove comments because anyway the quotes in there
1593 # would cause problems or look ugly.
1594 # WARNING: Use '\'' to represent an apostrophe within the trap.
1595 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1596 trap 'exit_status=$?
1597 # Save into config.log some information that might help in debugging.
1602 ## ---------------- ##
1603 ## Cache variables. ##
1604 ## ---------------- ##
1607 # The following way of writing the cache mishandles newlines in values,
1609 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1610 eval ac_val=\$$ac_var
1614 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1615 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1618 _ | IFS | as_nl) ;; #(
1619 *) $as_unset $ac_var ;;
1624 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1625 *${as_nl}ac_space=\ *)
1627 "s/'\''/'\''\\\\'\'''\''/g;
1628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1639 ## ----------------- ##
1640 ## Output variables. ##
1641 ## ----------------- ##
1644 for ac_var in $ac_subst_vars
1646 eval ac_val=\$$ac_var
1648 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1650 echo "$ac_var='\''$ac_val'\''"
1654 if test -n "$ac_subst_files"; then
1656 ## ------------------- ##
1657 ## File substitutions. ##
1658 ## ------------------- ##
1661 for ac_var in $ac_subst_files
1663 eval ac_val=\$$ac_var
1665 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1667 echo "$ac_var='\''$ac_val'\''"
1672 if test -s confdefs.h; then
1682 test "$ac_signal" != 0 &&
1683 echo "$as_me: caught signal $ac_signal"
1684 echo "$as_me: exit $exit_status"
1686 rm -f core *.core core.conftest.* &&
1687 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1690 for ac_signal in 1 2 13 15; do
1691 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1695 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1696 rm -f -r conftest* confdefs.h
1698 # Predefined preprocessor variables.
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_NAME "$PACKAGE_NAME"
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_STRING "$PACKAGE_STRING"
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1725 # Let the site file select an alternate cache file if it wants to.
1726 # Prefer explicitly selected file to automatically selected ones.
1727 if test -n "$CONFIG_SITE"; then
1728 set x "$CONFIG_SITE"
1729 elif test "x$prefix" != xNONE; then
1730 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1732 set x "$ac_default_prefix/share/config.site" \
1733 "$ac_default_prefix/etc/config.site"
1738 if test -r "$ac_site_file"; then
1739 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1740 echo "$as_me: loading site script $ac_site_file" >&6;}
1741 sed 's/^/| /' "$ac_site_file" >&5
1746 if test -r "$cache_file"; then
1747 # Some versions of bash will fail to source /dev/null (special
1748 # files actually), so we avoid doing that.
1749 if test -f "$cache_file"; then
1750 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1751 echo "$as_me: loading cache $cache_file" >&6;}
1753 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1754 *) . "./$cache_file";;
1758 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1759 echo "$as_me: creating cache $cache_file" >&6;}
1763 # Check that the precious variables saved in the cache have kept the same
1765 ac_cache_corrupted=false
1766 for ac_var in $ac_precious_vars; do
1767 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1768 eval ac_new_set=\$ac_env_${ac_var}_set
1769 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1770 eval ac_new_val=\$ac_env_${ac_var}_value
1771 case $ac_old_set,$ac_new_set in
1773 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1774 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1775 ac_cache_corrupted=: ;;
1777 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1778 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1779 ac_cache_corrupted=: ;;
1782 if test "x$ac_old_val" != "x$ac_new_val"; then
1783 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1784 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1785 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1786 echo "$as_me: former value: $ac_old_val" >&2;}
1787 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1788 echo "$as_me: current value: $ac_new_val" >&2;}
1789 ac_cache_corrupted=:
1792 # Pass precious variables to config.status.
1793 if test "$ac_new_set" = set; then
1795 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1796 *) ac_arg=$ac_var=$ac_new_val ;;
1798 case " $ac_configure_args " in
1799 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1800 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1804 if $ac_cache_corrupted; then
1805 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1806 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1807 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1808 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1809 { (exit 1); exit 1; }; }
1837 ac_cpp='$CPP $CPPFLAGS'
1838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1844 ac_config_headers="$ac_config_headers config.h"
1847 for ac_dir in scripts "$srcdir"/scripts; do
1848 if test -f "$ac_dir/install-sh"; then
1850 ac_install_sh="$ac_aux_dir/install-sh -c"
1852 elif test -f "$ac_dir/install.sh"; then
1854 ac_install_sh="$ac_aux_dir/install.sh -c"
1856 elif test -f "$ac_dir/shtool"; then
1858 ac_install_sh="$ac_aux_dir/shtool install -c"
1862 if test -z "$ac_aux_dir"; then
1863 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&5
1864 echo "$as_me: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&2;}
1865 { (exit 1); exit 1; }; }
1868 # These three variables are undocumented and unsupported,
1869 # and are intended to be withdrawn in a future Autoconf release.
1870 # They can cause serious problems if a builder's source tree is in a directory
1871 # whose full name contains unusual characters.
1872 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1873 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1874 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1878 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
1879 { { echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
1880 echo "$as_me: error: you must configure in a separate build directory" >&2;}
1881 { (exit 1); exit 1; }; }
1884 # This will get text that should go into config.make.
1887 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
1889 # Check whether --with-gd was given.
1890 if test "${with_gd+set}" = set; then
1891 withval=$with_gd; case "$with_gd" in
1893 *) libgd_include="-I$withval/include"
1894 libgd_ldflags="-L$withval/lib" ;;
1900 # Check whether --with-gd-include was given.
1901 if test "${with_gd_include+set}" = set; then
1902 withval=$with_gd_include; case "$with_gd_include" in
1904 *) libgd_include="-I$withval" ;;
1910 # Check whether --with-gd-lib was given.
1911 if test "${with_gd_lib+set}" = set; then
1912 withval=$with_gd_lib; case "$with_gd_lib" in
1914 *) libgd_ldflags="-L$withval" ;;
1920 if test -n "$libgd_include"; then
1921 config_vars="$config_vars
1922 CFLAGS-memusagestat.c = $libgd_include"
1924 if test -n "$libgd_ldflags"; then
1925 config_vars="$config_vars
1926 libgd-LDFLAGS = $libgd_ldflags"
1930 # Check whether --with-fp was given.
1931 if test "${with_fp+set}" = set; then
1932 withval=$with_fp; with_fp=$withval
1939 # Check whether --with-binutils was given.
1940 if test "${with_binutils+set}" = set; then
1941 withval=$with_binutils; path_binutils=$withval
1947 # Check whether --with-elf was given.
1948 if test "${with_elf+set}" = set; then
1949 withval=$with_elf; elf=$withval
1955 # Check whether --with-selinux was given.
1956 if test "${with_selinux+set}" = set; then
1957 withval=$with_selinux; with_selinux=$withval
1963 # Check whether --with-xcoff was given.
1964 if test "${with_xcoff+set}" = set; then
1965 withval=$with_xcoff; xcoff=$withval
1971 # Check whether --with-cvs was given.
1972 if test "${with_cvs+set}" = set; then
1973 withval=$with_cvs; with_cvs=$withval
1978 if test "$with_cvs" = yes; then
1979 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
1987 # Check whether --with-headers was given.
1988 if test "${with_headers+set}" = set; then
1989 withval=$with_headers; sysheaders=$withval
1995 # Check whether --enable-sanity-checks was given.
1996 if test "${enable_sanity_checks+set}" = set; then
1997 enableval=$enable_sanity_checks; enable_sanity=$enableval
2004 # Check whether --enable-check-abi was given.
2005 if test "${enable_check_abi+set}" = set; then
2006 enableval=$enable_check_abi; enable_check_abi=$enableval
2013 # Check whether --enable-shared was given.
2014 if test "${enable_shared+set}" = set; then
2015 enableval=$enable_shared; shared=$enableval
2020 # Check whether --enable-profile was given.
2021 if test "${enable_profile+set}" = set; then
2022 enableval=$enable_profile; profile=$enableval
2027 # Check whether --enable-omitfp was given.
2028 if test "${enable_omitfp+set}" = set; then
2029 enableval=$enable_omitfp; omitfp=$enableval
2034 # Check whether --enable-bounded was given.
2035 if test "${enable_bounded+set}" = set; then
2036 enableval=$enable_bounded; bounded=$enableval
2041 # Check whether --enable-versioning was given.
2042 if test "${enable_versioning+set}" = set; then
2043 enableval=$enable_versioning; enable_versioning=$enableval
2045 enable_versioning=yes
2049 # Check whether --enable-oldest-abi was given.
2050 if test "${enable_oldest_abi+set}" = set; then
2051 enableval=$enable_oldest_abi; oldest_abi=$enableval
2056 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
2059 cat >>confdefs.h <<_ACEOF
2060 #define GLIBC_OLDEST_ABI "$oldest_abi"
2066 # Check whether --enable-stackguard-randomization was given.
2067 if test "${enable_stackguard_randomization+set}" = set; then
2068 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
2070 enable_stackguard_randomize=no
2073 if test "$enable_stackguard_randomize" = yes; then
2074 cat >>confdefs.h <<\_ACEOF
2075 #define ENABLE_STACKGUARD_RANDOMIZE 1
2080 # Check whether --enable-add-ons was given.
2081 if test "${enable_add_ons+set}" = set; then
2082 enableval=$enable_add_ons;
2089 # Check whether --with-tls was given.
2090 if test "${with_tls+set}" = set; then
2091 withval=$with_tls; usetls=$withval
2098 # Check whether --with-__thread was given.
2099 if test "${with___thread+set}" = set; then
2100 withval=$with___thread; use__thread=$withval
2106 # Check whether --enable-hidden-plt was given.
2107 if test "${enable_hidden_plt+set}" = set; then
2108 enableval=$enable_hidden_plt; hidden=$enableval
2113 if test "x$hidden" = xno; then
2114 cat >>confdefs.h <<\_ACEOF
2120 # Check whether --enable-bind-now was given.
2121 if test "${enable_bind_now+set}" = set; then
2122 enableval=$enable_bind_now; bindnow=$enableval
2129 # Check whether --enable-static-nss was given.
2130 if test "${enable_static_nss+set}" = set; then
2131 enableval=$enable_static_nss; static_nss=$enableval
2136 if test x"$static_nss" = xyes || test x"$shared" = xno; then
2138 cat >>confdefs.h <<\_ACEOF
2139 #define DO_STATIC_NSS 1
2144 # Check whether --enable-force-install was given.
2145 if test "${enable_force_install+set}" = set; then
2146 enableval=$enable_force_install; force_install=$enableval
2153 # Check whether --enable-kernel was given.
2154 if test "${enable_kernel+set}" = set; then
2155 enableval=$enable_kernel; minimum_kernel=$enableval
2158 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
2159 # Better nothing than this.
2162 if test "$minimum_kernel" = current; then
2163 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
2167 # Check whether --enable-all-warnings was given.
2168 if test "${enable_all_warnings+set}" = set; then
2169 enableval=$enable_all_warnings; all_warnings=$enableval
2174 # Make sure we can run config.sub.
2175 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2176 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2177 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2178 { (exit 1); exit 1; }; }
2180 { echo "$as_me:$LINENO: checking build system type" >&5
2181 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2182 if test "${ac_cv_build+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 ac_build_alias=$build_alias
2186 test "x$ac_build_alias" = x &&
2187 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2188 test "x$ac_build_alias" = x &&
2189 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2190 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2191 { (exit 1); exit 1; }; }
2192 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2193 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2194 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2195 { (exit 1); exit 1; }; }
2198 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2199 echo "${ECHO_T}$ac_cv_build" >&6; }
2200 case $ac_cv_build in
2202 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2203 echo "$as_me: error: invalid value of canonical build" >&2;}
2204 { (exit 1); exit 1; }; };;
2207 ac_save_IFS=$IFS; IFS='-'
2213 # Remember, the first character of IFS is used to create $*,
2214 # except with old shells:
2217 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2220 { echo "$as_me:$LINENO: checking host system type" >&5
2221 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2222 if test "${ac_cv_host+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 if test "x$host_alias" = x; then
2226 ac_cv_host=$ac_cv_build
2228 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2229 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2230 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2231 { (exit 1); exit 1; }; }
2235 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2236 echo "${ECHO_T}$ac_cv_host" >&6; }
2239 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2240 echo "$as_me: error: invalid value of canonical host" >&2;}
2241 { (exit 1); exit 1; }; };;
2244 ac_save_IFS=$IFS; IFS='-'
2250 # Remember, the first character of IFS is used to create $*,
2251 # except with old shells:
2254 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2258 # The way shlib-versions is used to generate soversions.mk uses a
2259 # fairly simplistic model for name recognition that can't distinguish
2260 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
2261 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
2262 # tell. This doesn't get used much beyond that, so it's fairly safe.
2267 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
2271 # We keep the original values in `$config_*' and never modify them, so we
2272 # can write them unchanged into config.make. Everything else uses
2273 # $machine, $vendor, and $os, and changes them whenever convenient.
2274 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
2276 # Don't allow vendor == "unknown"
2277 test "$config_vendor" = unknown && config_vendor=
2278 config_os="`echo $config_os | sed 's/^unknown-//'`"
2280 # Some configurations imply other options.
2282 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
2283 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
2285 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6* | opensolaris*-gnu*)
2286 # These systems (almost) always use the ELF format.
2290 # These systems are always xcoff
2296 # The configure fragment of an add-on port can modify these to supplement
2297 # or override the table in the case statement below. No fragment should
2298 # ever change the config_* variables, however.
2299 machine=$config_machine
2300 vendor=$config_vendor
2303 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
2305 if test "$machine" = rs6000; then
2309 # Braindead PowerPC box with absolutely no FPU.
2310 case "$machine-$host_os" in
2318 # Check whether --with-cpu was given.
2319 if test "${with_cpu+set}" = set; then
2320 withval=$with_cpu; case "$withval" in
2321 yes|'') { { echo "$as_me:$LINENO: error: --with-cpu requires an argument" >&5
2322 echo "$as_me: error: --with-cpu requires an argument" >&2;}
2323 { (exit 1); exit 1; }; } ;;
2325 *) submachine="$withval" ;;
2332 # An add-on can set this when it wants to disable the sanity check below.
2338 case "$enable_add_ons" in
2341 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
2342 sed 's@/[^/]*$@@' | sort | uniq`
2343 add_ons_automatic=yes
2345 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
2346 add_ons_automatic=no ;;
2352 if test x"$add_ons" != x; then
2353 for f in $add_ons; do
2354 # Some sanity checks
2357 { { echo "$as_me:$LINENO: error:
2358 *** It seems that you're using an old \`crypt' add-on. crypt is now
2359 *** part of glibc and using the old add-on will not work with this
2360 *** release. Start again with fresh sources and without the old
2361 *** \`crypt' add-on." >&5
2362 echo "$as_me: error:
2363 *** It seems that you're using an old \`crypt' add-on. crypt is now
2364 *** part of glibc and using the old add-on will not work with this
2365 *** release. Start again with fresh sources and without the old
2366 *** \`crypt' add-on." >&2;}
2367 { (exit 1); exit 1; }; }
2370 { { echo "$as_me:$LINENO: error:
2371 *** It seems that you're using an old \`localedata' add-on. localedata
2372 *** is now part of glibc and using the old add-on will not work with
2373 *** this release. Start again with fresh sources and without the old
2374 *** \`localedata' add-on." >&5
2375 echo "$as_me: error:
2376 *** It seems that you're using an old \`localedata' add-on. localedata
2377 *** is now part of glibc and using the old add-on will not work with
2378 *** this release. Start again with fresh sources and without the old
2379 *** \`localedata' add-on." >&2;}
2380 { (exit 1); exit 1; }; }
2385 # Now source each add-on's configure fragment.
2386 # The fragments can use $srcdir/$libc_add_on to find themselves,
2387 # and test $add_ons_automatic to see if they were explicitly requested.
2388 # A fragment can clear (or even change) $libc_add_on to affect
2389 # whether it goes into the list to be actually used in the build.
2391 for libc_add_on in $add_ons; do
2392 # Test whether such a directory really exists.
2393 # It can be absolute, or relative to $srcdir, or relative to the build dir.
2394 case "$libc_add_on" in
2396 libc_add_on_srcdir=$libc_add_on
2399 test -d "$srcdir/$libc_add_on" || {
2400 if test -d "$libc_add_on"; then
2401 libc_add_on="`pwd`/$libc_add_on"
2403 { { echo "$as_me:$LINENO: error: add-on directory \"$libc_add_on\" does not exist" >&5
2404 echo "$as_me: error: add-on directory \"$libc_add_on\" does not exist" >&2;}
2405 { (exit 1); exit 1; }; }
2408 libc_add_on_srcdir=$srcdir/$libc_add_on
2412 libc_add_on_frag=$libc_add_on_srcdir/configure
2413 libc_add_on_canonical=
2414 if test -r "$libc_add_on_frag"; then
2415 { echo "$as_me:$LINENO: running configure fragment for add-on $libc_add_on" >&5
2416 echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
2417 libc_add_on_canonical=unknown
2418 libc_add_on_subdirs=
2419 . "$libc_add_on_frag"
2420 test -z "$libc_add_on" || {
2421 configured_add_ons="$configured_add_ons $libc_add_on"
2422 if test "x$libc_add_on_canonical" = xunknown; then
2423 { { echo "$as_me:$LINENO: error: fragment must set \$libc_add_on_canonical" >&5
2424 echo "$as_me: error: fragment must set \$libc_add_on_canonical" >&2;}
2425 { (exit 1); exit 1; }; }
2427 for d in $libc_add_on_subdirs; do
2428 case "$libc_add_on" in
2429 /*) subdir_srcdir="$libc_add_on" ;;
2430 *) subdir_srcdir="\$(..)$libc_add_on" ;;
2434 d="${libc_add_on_canonical:-$libc_add_on}"
2440 subdir_srcdir="$subdir_srcdir/$d"
2443 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
2444 add_on_subdirs="$add_on_subdirs $d"
2445 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
2446 $d-srcdir = $subdir_srcdir"
2450 if test -n "$libc_add_on"; then
2451 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
2453 { echo "$as_me:$LINENO: checking add-on $libc_add_on for preconfigure fragments" >&5
2454 echo $ECHO_N "checking add-on $libc_add_on for preconfigure fragments... $ECHO_C" >&6; }
2455 for frag in $frags; do
2456 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
2457 echo $ECHO_N "$name $ECHO_C" >&6
2460 { echo "$as_me:$LINENO: result: " >&5
2461 echo "${ECHO_T}" >&6; }
2463 use_add_ons="$use_add_ons $libc_add_on"
2464 add_ons_pfx="$add_ons_pfx $libc_add_on/"
2465 test -z "$libc_add_on_canonical" ||
2466 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
2469 # Use echo to strip excess whitespace.
2470 add_ons="`echo $use_add_ons`"
2477 ### I put this here to prevent those annoying emails from people who cannot
2478 ### read and try to compile glibc on unsupported platforms. --drepper
2480 ### By using the undocumented --enable-hacker-mode option for configure
2481 ### one can skip this test to make the configuration not fail for unsupported
2484 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
2485 case "$machine-$host_os" in
2486 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.* | opensolaris*-gnu*)
2489 echo "*** The GNU C library is currently not available for this platform."
2490 echo "*** So far nobody cared to port it and if there is no volunteer it"
2491 echo "*** might never happen. So, if you have interest to see glibc on"
2492 echo "*** this platform visit"
2493 echo "*** http://www.gnu.org/software/libc/porting.html"
2494 echo "*** and join the group of porters"
2500 # Expand the configuration machine name into a subdirectory by architecture
2501 # type and particular chip. If an add-on configure fragment already set
2502 # base_machine, we don't change it.
2503 test -n "$base_machine" || case "$machine" in
2504 a29k | am29000) base_machine=a29k machine=a29k ;;
2505 alpha*) base_machine=alpha machine=alpha/$machine ;;
2506 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
2507 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
2508 i[34567]86) base_machine=i386 machine=i386/$machine ;;
2509 ia64) base_machine=ia64 machine=ia64 ;;
2510 m88???) base_machine=m88k machine=m88k/$machine ;;
2511 m88k) base_machine=m88k machine=m88k/m88100 ;;
2512 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
2513 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
2514 s390) base_machine=s390 machine=s390/s390-32 ;;
2515 s390x) base_machine=s390 machine=s390/s390-64 ;;
2516 sh3*) base_machine=sh machine=sh/sh3 ;;
2517 sh4*) base_machine=sh machine=sh/sh4 ;;
2519 base_machine=sparc machine=sparc/sparc32 ;;
2520 sparcv8 | supersparc | hypersparc)
2521 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
2522 sparcv8plus | sparcv8plusa | sparcv9)
2523 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
2524 sparcv8plusb | sparcv9b)
2525 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
2527 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
2529 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
2531 base_machine=sparc machine=sparc/sparc64 ;;
2533 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
2535 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
2537 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
2538 *) base_machine=$machine ;;
2542 if test "$base_machine" = "i386"; then
2543 cat >>confdefs.h <<\_ACEOF
2544 #define USE_REGPARMS 1
2549 # Compute the list of sysdep directories for this configuration.
2550 # This can take a while to compute.
2551 sysdep_dir=$srcdir/sysdeps
2552 { echo "$as_me:$LINENO: checking sysdep dirs" >&5
2553 echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6; }
2554 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
2555 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
2559 base_os=mach/hurd ;;
2560 netbsd* | 386bsd* | freebsd* | bsdi*)
2561 base_os=unix/bsd/bsd4.4 ;;
2562 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
2564 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
2565 base_os=unix/sysv ;;
2567 base_os=unix/sysv/irix6/$os ;;
2569 base_os=unix/sysv/sysv4 ;;
2571 base_os=unix/sysv/hpux/$os ;;
2573 base_os=unix/sysv/aix/aix4.3 ;;
2575 base_os=unix/sysv/solaris2/opensolaris-gnu ;;
2577 base_os=standalone ;;
2582 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
2585 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
2589 o=`echo $tail | sed 's/[0-9]*$//'`
2590 if test $o != $tail; then
2593 # For linux-gnu, try linux-gnu, then linux.
2594 o=`echo $tail | sed 's/-.*$//'`
2595 if test $o != $tail; then
2599 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
2602 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
2608 # For sparc/sparc32, try sparc/sparc32 and then sparc.
2610 tail=$machine${submachine:+/$submachine}
2611 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
2613 # Prepend the machine's FPU directory unless --without-fp.
2614 if test "$with_fp" = yes; then
2615 mach="$mach /$1/fpu"
2617 mach="$mach /$1/nofpu"
2624 # Find what sysdep directories exist.
2627 for b in $base ''; do
2628 for m0 in $mach ''; do
2629 for v in /$vendor ''; do
2630 test "$v" = / && continue
2631 for o in /$ostry ''; do
2632 test "$o" = / && continue
2633 for m in $mach ''; do
2634 for d in $add_ons_pfx ''; do
2635 for a in $add_ons_sfx ''; do
2636 if test -n "$m0$m0sub$b$v$o$m$msub"; then
2637 try_srcdir="${srcdir}/"
2641 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
2642 test -n "$enable_debug_configure" &&
2643 echo "$0 DEBUG: try $try" >&2
2644 if test -d "$try_srcdir$try"; then
2645 sysnames="$sysnames $try"
2646 { test -n "$o" || test -n "$b"; } && os_used=t
2647 { test -n "$m" || test -n "$m0"; } && machine_used=t
2649 x*/$submachine) submachine_used=t ;;
2651 if test -n "$d"; then
2652 case "$sysnames_add_ons" in
2654 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
2667 if test -z "$os_used" && test "$os" != none; then
2668 { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
2669 echo "$as_me: error: Operating system $os is not supported." >&2;}
2670 { (exit 1); exit 1; }; }
2672 if test -z "$machine_used" && test "$machine" != none; then
2673 { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
2674 echo "$as_me: error: The $machine is not supported." >&2;}
2675 { (exit 1); exit 1; }; }
2677 if test -z "$submachine_used" && test -n "$submachine"; then
2678 { { echo "$as_me:$LINENO: error: The $submachine subspecies of $host_cpu is not supported." >&5
2679 echo "$as_me: error: The $submachine subspecies of $host_cpu is not supported." >&2;}
2680 { (exit 1); exit 1; }; }
2684 # We have now validated the configuration.
2687 # If using ELF, look for an `elf' subdirectory of each machine directory.
2688 # We prepend these rather than inserting them whereever the machine appears
2689 # because things specified by the machine's ELF ABI should override
2690 # OS-specific things, and should always be the same for any OS on the
2691 # machine (otherwise what's the point of an ABI?).
2692 if test "$elf" = yes; then
2694 for d in $add_ons_pfx ''; do
2696 if test -d $srcdir/${d}sysdeps$m/elf; then
2697 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
2701 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
2705 # Expand the list of system names into a full list of directories
2706 # from each element's parent name and Implies file (if present).
2709 while test $# -gt 0; do
2713 case " $names " in *" $name "*)
2714 # Already in the list.
2718 # Report each name as we discover it, so there is no long pause in output.
2719 echo $ECHO_N "$name $ECHO_C" >&6
2721 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
2725 *) xsrcdir=$srcdir/ ;;
2727 test -n "$enable_debug_configure" &&
2728 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
2730 if test -f $xsrcdir$name/Implies; then
2731 # Collect more names from the `Implies' file (removing comments).
2732 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
2734 for x in $implied_candidate; do
2736 if test -d $xsrcdir$name_base/$x; then
2737 implied="$implied $name_base/$x";
2740 for d in $add_ons_pfx ''; do
2741 try="${d}sysdeps/$x"
2744 *) try_srcdir=$srcdir/ ;;
2746 test -n "$enable_debug_configure" &&
2747 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
2748 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
2750 implied="$implied $try"
2752 case "$sysnames_add_ons" in
2754 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
2758 if test $found = no; then
2759 { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
2760 echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
2767 # Add NAME to the list of names.
2768 names="$names $name"
2770 # Find the parent of NAME, using the empty string if it has none.
2771 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
2773 # Add the names implied by NAME, and NAME's parent (if it has one), to
2774 # the list of names to be processed (the argument list). We prepend the
2775 # implied names to the list and append the parent. We want implied
2776 # directories to come before further directories inferred from the
2777 # configuration components; this ensures that for sysv4, unix/common
2778 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
2780 sysnames="`echo $implied $* $parent`"
2781 test -n "$sysnames" && set $sysnames
2784 # Add the default directories.
2785 default_sysnames=sysdeps/generic
2786 if test "$elf" = yes; then
2787 default_sysnames="sysdeps/generic/elf $default_sysnames"
2789 sysnames="$names $default_sysnames"
2791 # The other names were emitted during the scan.
2792 { echo "$as_me:$LINENO: result: $default_sysnames" >&5
2793 echo "${ECHO_T}$default_sysnames" >&6; }
2795 # Collect the list of add-ons that supply partial sysdeps trees.
2797 for add_on in $add_ons; do
2800 *) xsrcdir="$srcdir/" ;;
2803 test -d "$xsrcdir$add_on/sysdeps" || {
2804 case "$configured_add_ons " in
2807 { { echo "$as_me:$LINENO: error: add-on $add_on has no configure fragment or sysdeps tree" >&5
2808 echo "$as_me: error: add-on $add_on has no configure fragment or sysdeps tree" >&2;}
2809 { (exit 1); exit 1; }; }
2815 sysdeps_add_ons="$sysdeps_add_ons $add_on"
2816 case "$sysnames_add_ons" in
2819 { echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no sysdeps directories" >&5
2820 echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
2825 for d in $sysnames; do
2827 $add_on/sysdeps/*) ;;
2830 (cd "$xsrcdir$d" && for f in *[!~]; do
2833 for ff in $f/*.h; do
2834 test -d "$ff" || { test -e "$ff" && exit 88; }
2838 test -d "$f" || { test -e "$f" && exit 88; }
2842 if test $? -eq 88; then
2847 if test $found = no; then
2848 { echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
2849 echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
2857 # Find a good install program. We prefer a C program (faster),
2858 # so one script is as good as another. But avoid the broken or
2859 # incompatible versions:
2860 # SysV /etc/install, /usr/sbin/install
2861 # SunOS /usr/etc/install
2862 # IRIX /sbin/install
2864 # AmigaOS /C/install, which installs bootblocks on floppy discs
2865 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2866 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2867 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2868 # OS/2's system install, which has a completely different semantic
2869 # ./install, which can be erroneously created by make from ./install.sh.
2870 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2871 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2872 if test -z "$INSTALL"; then
2873 if test "${ac_cv_path_install+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 test -z "$as_dir" && as_dir=.
2881 # Account for people who put trailing slashes in PATH elements.
2883 ./ | .// | /cC/* | \
2884 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2885 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2888 # OSF1 and SCO ODT 3.0 have their own names for install.
2889 # Don't use installbsd from OSF since it installs stuff as root
2891 for ac_prog in ginstall scoinst install; do
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2894 if test $ac_prog = install &&
2895 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2896 # AIX install. It has an incompatible calling convention.
2898 elif test $ac_prog = install &&
2899 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2900 # program-specific install script used by HP pwplus--don't use.
2903 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2916 if test "${ac_cv_path_install+set}" = set; then
2917 INSTALL=$ac_cv_path_install
2919 # As a last resort, use the slow shell script. Don't cache a
2920 # value for INSTALL within a source directory, because that will
2921 # break other packages using the cache if that directory is
2922 # removed, or if the value is a relative name.
2923 INSTALL=$ac_install_sh
2926 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2927 echo "${ECHO_T}$INSTALL" >&6; }
2929 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2930 # It thinks the first close brace ends the variable substitution.
2931 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2933 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2935 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2937 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
2938 # The makefiles need to use a different form to find it in $srcdir.
2939 INSTALL='\$(..)./scripts/install-sh -c'
2941 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
2942 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2944 if test "$LN_S" = "ln -s"; then
2945 { echo "$as_me:$LINENO: result: yes" >&5
2946 echo "${ECHO_T}yes" >&6; }
2948 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2949 echo "${ECHO_T}no, using $LN_S" >&6; }
2954 ac_cpp='$CPP $CPPFLAGS'
2955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2958 if test -n "$ac_tool_prefix"; then
2959 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2960 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2963 if test "${ac_cv_prog_CC+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 if test -n "$CC"; then
2967 ac_cv_prog_CC="$CC" # Let the user override the test.
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 if test -n "$CC"; then
2988 { echo "$as_me:$LINENO: result: $CC" >&5
2989 echo "${ECHO_T}$CC" >&6; }
2991 { echo "$as_me:$LINENO: result: no" >&5
2992 echo "${ECHO_T}no" >&6; }
2997 if test -z "$ac_cv_prog_CC"; then
2999 # Extract the first word of "gcc", so it can be a program name with args.
3000 set dummy gcc; ac_word=$2
3001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3003 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 if test -n "$ac_ct_CC"; then
3007 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 test -z "$as_dir" && as_dir=.
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3016 ac_cv_prog_ac_ct_CC="gcc"
3017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3027 if test -n "$ac_ct_CC"; then
3028 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3029 echo "${ECHO_T}$ac_ct_CC" >&6; }
3031 { echo "$as_me:$LINENO: result: no" >&5
3032 echo "${ECHO_T}no" >&6; }
3035 if test "x$ac_ct_CC" = x; then
3038 case $cross_compiling:$ac_tool_warned in
3040 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3041 whose name does not start with the host triplet. If you think this
3042 configuration is useful to you, please write to autoconf@gnu.org." >&5
3043 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3044 whose name does not start with the host triplet. If you think this
3045 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3046 ac_tool_warned=yes ;;
3054 if test -z "$CC"; then
3055 if test -n "$ac_tool_prefix"; then
3056 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3057 set dummy ${ac_tool_prefix}cc; ac_word=$2
3058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3060 if test "${ac_cv_prog_CC+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3063 if test -n "$CC"; then
3064 ac_cv_prog_CC="$CC" # Let the user override the test.
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 ac_cv_prog_CC="${ac_tool_prefix}cc"
3074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 if test -n "$CC"; then
3085 { echo "$as_me:$LINENO: result: $CC" >&5
3086 echo "${ECHO_T}$CC" >&6; }
3088 { echo "$as_me:$LINENO: result: no" >&5
3089 echo "${ECHO_T}no" >&6; }
3095 if test -z "$CC"; then
3096 # Extract the first word of "cc", so it can be a program name with args.
3097 set dummy cc; ac_word=$2
3098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3100 if test "${ac_cv_prog_CC+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3103 if test -n "$CC"; then
3104 ac_cv_prog_CC="$CC" # Let the user override the test.
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3114 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3115 ac_prog_rejected=yes
3119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 if test $ac_prog_rejected = yes; then
3127 # We found a bogon in the path, so make sure we never use it.
3128 set dummy $ac_cv_prog_CC
3130 if test $# != 0; then
3131 # We chose a different compiler from the bogus one.
3132 # However, it has the same basename, so the bogon will be chosen
3133 # first if we set CC to just the basename; use the full file name.
3135 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3141 if test -n "$CC"; then
3142 { echo "$as_me:$LINENO: result: $CC" >&5
3143 echo "${ECHO_T}$CC" >&6; }
3145 { echo "$as_me:$LINENO: result: no" >&5
3146 echo "${ECHO_T}no" >&6; }
3151 if test -z "$CC"; then
3152 if test -n "$ac_tool_prefix"; then
3153 for ac_prog in cl.exe
3155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3159 if test "${ac_cv_prog_CC+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 if test -n "$CC"; then
3163 ac_cv_prog_CC="$CC" # Let the user override the test.
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3172 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 if test -n "$CC"; then
3184 { echo "$as_me:$LINENO: result: $CC" >&5
3185 echo "${ECHO_T}$CC" >&6; }
3187 { echo "$as_me:$LINENO: result: no" >&5
3188 echo "${ECHO_T}no" >&6; }
3192 test -n "$CC" && break
3195 if test -z "$CC"; then
3197 for ac_prog in cl.exe
3199 # Extract the first word of "$ac_prog", so it can be a program name with args.
3200 set dummy $ac_prog; ac_word=$2
3201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3203 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 if test -n "$ac_ct_CC"; then
3207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216 ac_cv_prog_ac_ct_CC="$ac_prog"
3217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3227 if test -n "$ac_ct_CC"; then
3228 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3229 echo "${ECHO_T}$ac_ct_CC" >&6; }
3231 { echo "$as_me:$LINENO: result: no" >&5
3232 echo "${ECHO_T}no" >&6; }
3236 test -n "$ac_ct_CC" && break
3239 if test "x$ac_ct_CC" = x; then
3242 case $cross_compiling:$ac_tool_warned in
3244 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3245 whose name does not start with the host triplet. If you think this
3246 configuration is useful to you, please write to autoconf@gnu.org." >&5
3247 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3248 whose name does not start with the host triplet. If you think this
3249 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3250 ac_tool_warned=yes ;;
3259 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3260 See \`config.log' for more details." >&5
3261 echo "$as_me: error: no acceptable C compiler found in \$PATH
3262 See \`config.log' for more details." >&2;}
3263 { (exit 1); exit 1; }; }
3265 # Provide some information about the compiler.
3266 echo "$as_me:$LINENO: checking for C compiler version" >&5
3267 ac_compiler=`set X $ac_compile; echo $2`
3268 { (ac_try="$ac_compiler --version >&5"
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3274 (eval "$ac_compiler --version >&5") 2>&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }
3278 { (ac_try="$ac_compiler -v >&5"
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3284 (eval "$ac_compiler -v >&5") 2>&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }
3288 { (ac_try="$ac_compiler -V >&5"
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294 (eval "$ac_compiler -V >&5") 2>&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }
3300 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3301 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3302 if test "${ac_cv_objext+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 cat >conftest.$ac_ext <<_ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3320 rm -f conftest.o conftest.obj
3321 if { (ac_try="$ac_compile"
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327 (eval "$ac_compile") 2>&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; then
3331 for ac_file in conftest.o conftest.obj conftest.*; do
3332 test -f "$ac_file" || continue;
3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3335 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3343 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3344 See \`config.log' for more details." >&5
3345 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3346 See \`config.log' for more details." >&2;}
3347 { (exit 1); exit 1; }; }
3350 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3352 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3353 echo "${ECHO_T}$ac_cv_objext" >&6; }
3354 OBJEXT=$ac_cv_objext
3356 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3357 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3358 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 cat >conftest.$ac_ext <<_ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3379 rm -f conftest.$ac_objext
3380 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3388 grep -v '^ *+' conftest.er1 >conftest.err
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } && {
3393 test -z "$ac_c_werror_flag" ||
3394 test ! -s conftest.err
3395 } && test -s conftest.$ac_objext; then
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3408 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3409 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3410 GCC=`test $ac_compiler_gnu = yes && echo yes`
3411 ac_test_CFLAGS=${CFLAGS+set}
3412 ac_save_CFLAGS=$CFLAGS
3413 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3414 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3415 if test "${ac_cv_prog_cc_g+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 ac_save_c_werror_flag=$ac_c_werror_flag
3419 ac_c_werror_flag=yes
3422 cat >conftest.$ac_ext <<_ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
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 test -z "$ac_c_werror_flag" ||
3452 test ! -s conftest.err
3453 } && test -s conftest.$ac_objext; then
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3460 cat >conftest.$ac_ext <<_ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3475 rm -f conftest.$ac_objext
3476 if { (ac_try="$ac_compile"
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482 (eval "$ac_compile") 2>conftest.er1
3484 grep -v '^ *+' conftest.er1 >conftest.err
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } && {
3489 test -z "$ac_c_werror_flag" ||
3490 test ! -s conftest.err
3491 } && test -s conftest.$ac_objext; then
3494 echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3497 ac_c_werror_flag=$ac_save_c_werror_flag
3499 cat >conftest.$ac_ext <<_ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3514 rm -f conftest.$ac_objext
3515 if { (ac_try="$ac_compile"
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_compile") 2>conftest.er1
3523 grep -v '^ *+' conftest.er1 >conftest.err
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } && {
3528 test -z "$ac_c_werror_flag" ||
3529 test ! -s conftest.err
3530 } && test -s conftest.$ac_objext; then
3533 echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546 ac_c_werror_flag=$ac_save_c_werror_flag
3548 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3549 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3550 if test "$ac_test_CFLAGS" = set; then
3551 CFLAGS=$ac_save_CFLAGS
3552 elif test $ac_cv_prog_cc_g = yes; then
3553 if test "$GCC" = yes; then
3559 if test "$GCC" = yes; then
3565 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3566 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3567 if test "${ac_cv_prog_cc_c89+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 ac_cv_prog_cc_c89=no
3572 cat >conftest.$ac_ext <<_ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h. */
3580 #include <sys/types.h>
3581 #include <sys/stat.h>
3582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3583 struct buf { int x; };
3584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3585 static char *e (p, i)
3591 static char *f (char * (*g) (char **, int), char **p, ...)
3596 s = g (p, va_arg (v,int));
3601 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3602 function prototypes and stuff, but not '\xHH' hex character constants.
3603 These don't provoke an error unfortunately, instead are silently treated
3604 as 'x'. The following induces an error, until -std is added to get
3605 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3606 array size at least. It's necessary to write '\x00'==0 to get something
3607 that's true only with -std. */
3608 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3610 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3611 inside strings and character constants. */
3613 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3615 int test (int i, double x);
3616 struct s1 {int (*f) (int a);};
3617 struct s2 {int (*f) (double a);};
3618 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3624 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3629 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3630 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3632 CC="$ac_save_CC $ac_arg"
3633 rm -f conftest.$ac_objext
3634 if { (ac_try="$ac_compile"
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_compile") 2>conftest.er1
3642 grep -v '^ *+' conftest.er1 >conftest.err
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } && {
3647 test -z "$ac_c_werror_flag" ||
3648 test ! -s conftest.err
3649 } && test -s conftest.$ac_objext; then
3650 ac_cv_prog_cc_c89=$ac_arg
3652 echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3658 rm -f core conftest.err conftest.$ac_objext
3659 test "x$ac_cv_prog_cc_c89" != "xno" && break
3661 rm -f conftest.$ac_ext
3666 case "x$ac_cv_prog_cc_c89" in
3668 { echo "$as_me:$LINENO: result: none needed" >&5
3669 echo "${ECHO_T}none needed" >&6; } ;;
3671 { echo "$as_me:$LINENO: result: unsupported" >&5
3672 echo "${ECHO_T}unsupported" >&6; } ;;
3674 CC="$CC $ac_cv_prog_cc_c89"
3675 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3676 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3681 ac_cpp='$CPP $CPPFLAGS'
3682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686 if test $host != $build; then
3687 for ac_prog in gcc cc
3689 # Extract the first word of "$ac_prog", so it can be a program name with args.
3690 set dummy $ac_prog; ac_word=$2
3691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3693 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 if test -n "$BUILD_CC"; then
3697 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3706 ac_cv_prog_BUILD_CC="$ac_prog"
3707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 BUILD_CC=$ac_cv_prog_BUILD_CC
3717 if test -n "$BUILD_CC"; then
3718 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3719 echo "${ECHO_T}$BUILD_CC" >&6; }
3721 { echo "$as_me:$LINENO: result: no" >&5
3722 echo "${ECHO_T}no" >&6; }
3726 test -n "$BUILD_CC" && break
3732 ac_cpp='$CPP $CPPFLAGS'
3733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3736 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3737 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3738 # On Suns, sometimes $CPP names a directory.
3739 if test -n "$CPP" && test -d "$CPP"; then
3742 if test -z "$CPP"; then
3743 if test "${ac_cv_prog_CPP+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 # Double quotes because CPP needs to be expanded
3747 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3750 for ac_c_preproc_warn_flag in '' yes
3752 # Use a header file that comes with gcc, so configuring glibc
3753 # with a fresh cross-compiler works.
3754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3755 # <limits.h> exists even on freestanding compilers.
3756 # On the NeXT, cc -E runs the code through the compiler's parser,
3757 # not just through cpp. "Syntax error" is here to catch this case.
3758 cat >conftest.$ac_ext <<_ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3765 # include <limits.h>
3767 # include <assert.h>
3771 if { (ac_try="$ac_cpp conftest.$ac_ext"
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3779 grep -v '^ *+' conftest.er1 >conftest.err
3781 cat conftest.err >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } >/dev/null && {
3784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3785 test ! -s conftest.err
3789 echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3792 # Broken: fails on valid input.
3796 rm -f conftest.err conftest.$ac_ext
3798 # OK, works on sane cases. Now check whether nonexistent headers
3799 # can be detected and how.
3800 cat >conftest.$ac_ext <<_ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3806 #include <ac_nonexistent.h>
3808 if { (ac_try="$ac_cpp conftest.$ac_ext"
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3816 grep -v '^ *+' conftest.er1 >conftest.err
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } >/dev/null && {
3821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3822 test ! -s conftest.err
3824 # Broken: success on invalid input.
3827 echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3830 # Passes both tests.
3835 rm -f conftest.err conftest.$ac_ext
3838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3839 rm -f conftest.err conftest.$ac_ext
3840 if $ac_preproc_ok; then
3852 { echo "$as_me:$LINENO: result: $CPP" >&5
3853 echo "${ECHO_T}$CPP" >&6; }
3855 for ac_c_preproc_warn_flag in '' yes
3857 # Use a header file that comes with gcc, so configuring glibc
3858 # with a fresh cross-compiler works.
3859 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3860 # <limits.h> exists even on freestanding compilers.
3861 # On the NeXT, cc -E runs the code through the compiler's parser,
3862 # not just through cpp. "Syntax error" is here to catch this case.
3863 cat >conftest.$ac_ext <<_ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3870 # include <limits.h>
3872 # include <assert.h>
3876 if { (ac_try="$ac_cpp conftest.$ac_ext"
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3884 grep -v '^ *+' conftest.er1 >conftest.err
3886 cat conftest.err >&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } >/dev/null && {
3889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3890 test ! -s conftest.err
3894 echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3897 # Broken: fails on valid input.
3901 rm -f conftest.err conftest.$ac_ext
3903 # OK, works on sane cases. Now check whether nonexistent headers
3904 # can be detected and how.
3905 cat >conftest.$ac_ext <<_ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3911 #include <ac_nonexistent.h>
3913 if { (ac_try="$ac_cpp conftest.$ac_ext"
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3921 grep -v '^ *+' conftest.er1 >conftest.err
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } >/dev/null && {
3926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3929 # Broken: success on invalid input.
3932 echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3935 # Passes both tests.
3940 rm -f conftest.err conftest.$ac_ext
3943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3944 rm -f conftest.err conftest.$ac_ext
3945 if $ac_preproc_ok; then
3948 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3949 See \`config.log' for more details." >&5
3950 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3951 See \`config.log' for more details." >&2;}
3952 { (exit 1); exit 1; }; }
3956 ac_cpp='$CPP $CPPFLAGS'
3957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3961 # We need the C++ compiler only for testing.
3963 ac_cpp='$CXXCPP $CPPFLAGS'
3964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3967 if test -z "$CXX"; then
3968 if test -n "$CCC"; then
3971 if test -n "$ac_tool_prefix"; then
3972 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3978 if test "${ac_cv_prog_CXX+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 if test -n "$CXX"; then
3982 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3991 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 if test -n "$CXX"; then
4003 { echo "$as_me:$LINENO: result: $CXX" >&5
4004 echo "${ECHO_T}$CXX" >&6; }
4006 { echo "$as_me:$LINENO: result: no" >&5
4007 echo "${ECHO_T}no" >&6; }
4011 test -n "$CXX" && break
4014 if test -z "$CXX"; then
4016 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4018 # Extract the first word of "$ac_prog", so it can be a program name with args.
4019 set dummy $ac_prog; ac_word=$2
4020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4022 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 if test -n "$ac_ct_CXX"; then
4026 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4035 ac_cv_prog_ac_ct_CXX="$ac_prog"
4036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4046 if test -n "$ac_ct_CXX"; then
4047 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4048 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4050 { echo "$as_me:$LINENO: result: no" >&5
4051 echo "${ECHO_T}no" >&6; }
4055 test -n "$ac_ct_CXX" && break
4058 if test "x$ac_ct_CXX" = x; then
4061 case $cross_compiling:$ac_tool_warned in
4063 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4064 whose name does not start with the host triplet. If you think this
4065 configuration is useful to you, please write to autoconf@gnu.org." >&5
4066 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4067 whose name does not start with the host triplet. If you think this
4068 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4069 ac_tool_warned=yes ;;
4077 # Provide some information about the compiler.
4078 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4079 ac_compiler=`set X $ac_compile; echo $2`
4080 { (ac_try="$ac_compiler --version >&5"
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086 (eval "$ac_compiler --version >&5") 2>&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }
4090 { (ac_try="$ac_compiler -v >&5"
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096 (eval "$ac_compiler -v >&5") 2>&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }
4100 { (ac_try="$ac_compiler -V >&5"
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_compiler -V >&5") 2>&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }
4111 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4112 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4113 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4114 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 cat >conftest.$ac_ext <<_ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4143 grep -v '^ *+' conftest.er1 >conftest.err
4145 cat conftest.err >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && {
4148 test -z "$ac_cxx_werror_flag" ||
4149 test ! -s conftest.err
4150 } && test -s conftest.$ac_objext; then
4153 echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4163 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4164 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4165 GXX=`test $ac_compiler_gnu = yes && echo yes`
4166 ac_test_CXXFLAGS=${CXXFLAGS+set}
4167 ac_save_CXXFLAGS=$CXXFLAGS
4168 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4169 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4170 if test "${ac_cv_prog_cxx_g+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4174 ac_cxx_werror_flag=yes
4177 cat >conftest.$ac_ext <<_ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h. */
4192 rm -f conftest.$ac_objext
4193 if { (ac_try="$ac_compile"
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199 (eval "$ac_compile") 2>conftest.er1
4201 grep -v '^ *+' conftest.er1 >conftest.err
4203 cat conftest.err >&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); } && {
4206 test -z "$ac_cxx_werror_flag" ||
4207 test ! -s conftest.err
4208 } && test -s conftest.$ac_objext; then
4209 ac_cv_prog_cxx_g=yes
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.$ac_ext >&5
4215 cat >conftest.$ac_ext <<_ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4230 rm -f conftest.$ac_objext
4231 if { (ac_try="$ac_compile"
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_compile") 2>conftest.er1
4239 grep -v '^ *+' conftest.er1 >conftest.err
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } && {
4244 test -z "$ac_cxx_werror_flag" ||
4245 test ! -s conftest.err
4246 } && test -s conftest.$ac_objext; then
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4252 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4254 cat >conftest.$ac_ext <<_ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4269 rm -f conftest.$ac_objext
4270 if { (ac_try="$ac_compile"
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_compile") 2>conftest.er1
4278 grep -v '^ *+' conftest.er1 >conftest.err
4280 cat conftest.err >&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } && {
4283 test -z "$ac_cxx_werror_flag" ||
4284 test ! -s conftest.err
4285 } && test -s conftest.$ac_objext; then
4286 ac_cv_prog_cxx_g=yes
4288 echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4303 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4304 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4305 if test "$ac_test_CXXFLAGS" = set; then
4306 CXXFLAGS=$ac_save_CXXFLAGS
4307 elif test $ac_cv_prog_cxx_g = yes; then
4308 if test "$GXX" = yes; then
4314 if test "$GXX" = yes; then
4321 ac_cpp='$CPP $CPPFLAGS'
4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326 # Was a --with-binutils option given?
4327 if test -n "$path_binutils"; then
4328 # Make absolute; ensure a single trailing slash.
4329 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4330 CC="$CC -B$path_binutils"
4332 AS=`$CC -print-prog-name=as`
4333 LD=`$CC -print-prog-name=ld`
4334 AR=`$CC -print-prog-name=ar`
4336 OBJDUMP=`$CC -print-prog-name=objdump`
4339 # ranlib has to be treated a bit differently since it might not exist at all.
4340 ac_ranlib=`$CC -print-prog-name=ranlib`
4341 if test "x$ac_ranlib" = xranlib; then
4342 # This extra check has to happen since gcc simply echos the parameter in
4343 # case it cannot find the value in its own directories.
4344 if test -n "$ac_tool_prefix"; then
4345 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4346 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4349 if test "${ac_cv_prog_RANLIB+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 if test -n "$RANLIB"; then
4353 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 RANLIB=$ac_cv_prog_RANLIB
4373 if test -n "$RANLIB"; then
4374 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4375 echo "${ECHO_T}$RANLIB" >&6; }
4377 { echo "$as_me:$LINENO: result: no" >&5
4378 echo "${ECHO_T}no" >&6; }
4383 if test -z "$ac_cv_prog_RANLIB"; then
4384 ac_ct_RANLIB=$RANLIB
4385 # Extract the first word of "ranlib", so it can be a program name with args.
4386 set dummy ranlib; ac_word=$2
4387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 if test -n "$ac_ct_RANLIB"; then
4393 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_ac_ct_RANLIB="ranlib"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4413 if test -n "$ac_ct_RANLIB"; then
4414 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4415 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4417 { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4421 if test "x$ac_ct_RANLIB" = x; then
4424 case $cross_compiling:$ac_tool_warned in
4426 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4427 whose name does not start with the host triplet. If you think this
4428 configuration is useful to you, please write to autoconf@gnu.org." >&5
4429 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4430 whose name does not start with the host triplet. If you think this
4431 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4432 ac_tool_warned=yes ;;
4434 RANLIB=$ac_ct_RANLIB
4437 RANLIB="$ac_cv_prog_RANLIB"
4445 # Determine whether we are using GNU binutils.
4446 { echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
4447 echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6; }
4448 if test "${libc_cv_prog_as_gnu+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 # Most GNU programs take a -v and spit out some text including
4452 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4453 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4454 libc_cv_prog_as_gnu=yes
4456 libc_cv_prog_as_gnu=no
4460 { echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
4461 echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6; }
4463 gnu_as=$libc_cv_prog_as_gnu
4465 { echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
4466 echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6; }
4467 if test "${libc_cv_prog_ld_gnu+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 # Most GNU programs take a -v and spit out some text including
4471 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4472 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4473 libc_cv_prog_ld_gnu=yes
4475 libc_cv_prog_ld_gnu=no
4479 { echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
4480 echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6; }
4481 gnu_ld=$libc_cv_prog_ld_gnu
4484 # Accept binutils 2.13 or newer.
4487 # Extract the first word of "$ac_prog", so it can be a program name with args.
4488 set dummy $ac_prog; ac_word=$2
4489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4491 if test "${ac_cv_prog_AS+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 if test -n "$AS"; then
4495 ac_cv_prog_AS="$AS" # Let the user override the test.
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4504 ac_cv_prog_AS="$ac_prog"
4505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 if test -n "$AS"; then
4516 { echo "$as_me:$LINENO: result: $AS" >&5
4517 echo "${ECHO_T}$AS" >&6; }
4519 { echo "$as_me:$LINENO: result: no" >&5
4520 echo "${ECHO_T}no" >&6; }
4524 test -n "$AS" && break
4527 if test -z "$AS"; then
4530 # Found it, now check the version.
4531 { echo "$as_me:$LINENO: checking version of $AS" >&5
4532 echo $ECHO_N "checking version of $AS... $ECHO_C" >&6; }
4533 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4534 case $ac_prog_version in
4535 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4537 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4538 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4541 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4542 echo "${ECHO_T}$ac_prog_version" >&6; }
4544 if test $ac_verc_fail = yes; then
4545 AS=: critic_missing="$critic_missing as"
4550 # Extract the first word of "$ac_prog", so it can be a program name with args.
4551 set dummy $ac_prog; ac_word=$2
4552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4554 if test "${ac_cv_prog_LD+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 if test -n "$LD"; then
4558 ac_cv_prog_LD="$LD" # Let the user override the test.
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567 ac_cv_prog_LD="$ac_prog"
4568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 if test -n "$LD"; then
4579 { echo "$as_me:$LINENO: result: $LD" >&5
4580 echo "${ECHO_T}$LD" >&6; }
4582 { echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6; }
4587 test -n "$LD" && break
4590 if test -z "$LD"; then
4593 # Found it, now check the version.
4594 { echo "$as_me:$LINENO: checking version of $LD" >&5
4595 echo $ECHO_N "checking version of $LD... $ECHO_C" >&6; }
4596 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4597 case $ac_prog_version in
4598 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4600 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4601 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4604 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4605 echo "${ECHO_T}$ac_prog_version" >&6; }
4607 if test $ac_verc_fail = yes; then
4608 LD=: critic_missing="$critic_missing ld"
4612 # We need the physical current working directory. We cannot use the
4613 # "pwd -P" shell builtin since that's not portable. Instead we try to
4614 # find a pwd binary. Note that assigning to the PWD environment
4615 # variable might have some interesting side effects, so we don't do
4617 # Extract the first word of "pwd", so it can be a program name with args.
4618 set dummy pwd; ac_word=$2
4619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4621 if test "${ac_cv_path_PWD_P+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4648 PWD_P=$ac_cv_path_PWD_P
4649 if test -n "$PWD_P"; then
4650 { echo "$as_me:$LINENO: result: $PWD_P" >&5
4651 echo "${ECHO_T}$PWD_P" >&6; }
4653 { echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6; }
4658 if test "$PWD_P" = no; then
4659 { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
4660 echo "$as_me: error: *** A pwd binary could not be found." >&2;}
4661 { (exit 1); exit 1; }; }
4664 # These programs are version sensitive.
4666 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4668 # Extract the first word of "$ac_prog", so it can be a program name with args.
4669 set dummy $ac_prog; ac_word=$2
4670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4672 if test "${ac_cv_prog_CC+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 if test -n "$CC"; then
4676 ac_cv_prog_CC="$CC" # Let the user override the test.
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685 ac_cv_prog_CC="$ac_prog"
4686 echo "$as_me:$LINENO: found&nbs