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
*)
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.
*)
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
=cx
0/c30
;;
2507 c4
[04]) base_machine
=cx0 machine
=cx
0/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
/sparcv
9/sparcv9b
;;
2527 base_machine
=sparc machine
=sparc
/sparc32
/sparcv
9/sparcv9v
;;
2529 base_machine
=sparc machine
=sparc
/sparc64
;;
2531 base_machine
=sparc machine
=sparc
/sparc64
/sparcv9b
;;
2533 base_machine
=sparc machine
=sparc
/sparc64
/sparcv9v
;;
2534 *) base_machine
=$machine ;;
2538 if test "$base_machine" = "i386"; then
2539 cat >>confdefs.h
<<\_ACEOF
2540 #define USE_REGPARMS 1
2545 # Compute the list of sysdep directories for this configuration.
2546 # This can take a while to compute.
2547 sysdep_dir
=$srcdir/sysdeps
2548 { echo "$as_me:$LINENO: checking sysdep dirs" >&5
2549 echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6; }
2550 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
2551 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
2555 base_os
=mach
/hurd
;;
2556 netbsd
* |
386bsd
* | freebsd
* | bsdi
*)
2557 base_os
=unix
/bsd
/bsd4.4
;;
2558 osf
* | sunos
* | ultrix
* | newsos
* | dynix
* |
*bsd
*)
2560 sysv
* | isc
* | esix
* | sco
* | minix
* | irix4
* | linux
*)
2561 base_os
=unix
/sysv
;;
2563 base_os
=unix
/sysv
/irix
6/$os ;;
2565 base_os
=unix
/sysv
/sysv4
;;
2567 base_os
=unix
/sysv
/hpux
/$os ;;
2569 base_os
=unix
/sysv
/aix
/aix4.3
;;
2571 base_os
=standalone
;;
2576 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
2579 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
2583 o
=`echo $tail | sed 's/[0-9]*$//'`
2584 if test $o != $tail; then
2587 # For linux-gnu, try linux-gnu, then linux.
2588 o
=`echo $tail | sed 's/-.*$//'`
2589 if test $o != $tail; then
2593 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
2596 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
2602 # For sparc/sparc32, try sparc/sparc32 and then sparc.
2604 tail=$machine${submachine:+/$submachine}
2605 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
2607 # Prepend the machine's FPU directory unless --without-fp.
2608 if test "$with_fp" = yes; then
2609 mach
="$mach /$1/fpu"
2611 mach
="$mach /$1/nofpu"
2618 # Find what sysdep directories exist.
2621 for b
in $base ''; do
2622 for m0
in $mach ''; do
2623 for v
in /$vendor ''; do
2624 test "$v" = / && continue
2625 for o
in /$ostry ''; do
2626 test "$o" = / && continue
2627 for m
in $mach ''; do
2628 for d
in $add_ons_pfx ''; do
2629 for a
in $add_ons_sfx ''; do
2630 if test -n "$m0$m0sub$b$v$o$m$msub"; then
2631 try_srcdir
="${srcdir}/"
2635 try
="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
2636 test -n "$enable_debug_configure" &&
2637 echo "$0 DEBUG: try $try" >&2
2638 if test -d "$try_srcdir$try"; then
2639 sysnames
="$sysnames $try"
2640 { test -n "$o" ||
test -n "$b"; } && os_used
=t
2641 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
2643 x
*/$submachine) submachine_used
=t
;;
2645 if test -n "$d"; then
2646 case "$sysnames_add_ons" in
2648 *|
'') sysnames_add_ons
="$sysnames_add_ons $d" ;;
2661 if test -z "$os_used" && test "$os" != none
; then
2662 { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
2663 echo "$as_me: error: Operating system $os is not supported." >&2;}
2664 { (exit 1); exit 1; }; }
2666 if test -z "$machine_used" && test "$machine" != none
; then
2667 { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
2668 echo "$as_me: error: The $machine is not supported." >&2;}
2669 { (exit 1); exit 1; }; }
2671 if test -z "$submachine_used" && test -n "$submachine"; then
2672 { { echo "$as_me:$LINENO: error: The $submachine subspecies of $host_cpu is not supported." >&5
2673 echo "$as_me: error: The $submachine subspecies of $host_cpu is not supported." >&2;}
2674 { (exit 1); exit 1; }; }
2678 # We have now validated the configuration.
2681 # If using ELF, look for an `elf' subdirectory of each machine directory.
2682 # We prepend these rather than inserting them whereever the machine appears
2683 # because things specified by the machine's ELF ABI should override
2684 # OS-specific things, and should always be the same for any OS on the
2685 # machine (otherwise what's the point of an ABI?).
2686 if test "$elf" = yes; then
2688 for d
in $add_ons_pfx ''; do
2690 if test -d $srcdir/${d}sysdeps
$m/elf
; then
2691 elf_dirs
="$elf_dirs ${d}sysdeps$m/elf"
2695 sysnames
="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
2699 # Expand the list of system names into a full list of directories
2700 # from each element's parent name and Implies file (if present).
2703 while test $# -gt 0; do
2707 case " $names " in *" $name "*)
2708 # Already in the list.
2712 # Report each name as we discover it, so there is no long pause in output.
2713 echo $ECHO_N "$name $ECHO_C" >&6
2715 name_base
=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
2719 *) xsrcdir
=$srcdir/ ;;
2721 test -n "$enable_debug_configure" &&
2722 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
2724 if test -f $xsrcdir$name/Implies
; then
2725 # Collect more names from the `Implies' file (removing comments).
2726 implied_candidate
="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
2728 for x
in $implied_candidate; do
2730 if test -d $xsrcdir$name_base/$x; then
2731 implied
="$implied $name_base/$x";
2734 for d
in $add_ons_pfx ''; do
2735 try
="${d}sysdeps/$x"
2738 *) try_srcdir
=$srcdir/ ;;
2740 test -n "$enable_debug_configure" &&
2741 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
2742 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
2744 implied
="$implied $try"
2746 case "$sysnames_add_ons" in
2748 *|
'') sysnames_add_ons
="$sysnames_add_ons $d" ;;
2752 if test $found = no
; then
2753 { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
2754 echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
2761 # Add NAME to the list of names.
2762 names
="$names $name"
2764 # Find the parent of NAME, using the empty string if it has none.
2765 parent
="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
2767 # Add the names implied by NAME, and NAME's parent (if it has one), to
2768 # the list of names to be processed (the argument list). We prepend the
2769 # implied names to the list and append the parent. We want implied
2770 # directories to come before further directories inferred from the
2771 # configuration components; this ensures that for sysv4, unix/common
2772 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
2774 sysnames
="`echo $implied $* $parent`"
2775 test -n "$sysnames" && set $sysnames
2778 # Add the default directories.
2779 default_sysnames
=sysdeps
/generic
2780 if test "$elf" = yes; then
2781 default_sysnames
="sysdeps/generic/elf $default_sysnames"
2783 sysnames
="$names $default_sysnames"
2785 # The other names were emitted during the scan.
2786 { echo "$as_me:$LINENO: result: $default_sysnames" >&5
2787 echo "${ECHO_T}$default_sysnames" >&6; }
2789 # Collect the list of add-ons that supply partial sysdeps trees.
2791 for add_on
in $add_ons; do
2794 *) xsrcdir
="$srcdir/" ;;
2797 test -d "$xsrcdir$add_on/sysdeps" ||
{
2798 case "$configured_add_ons " in
2801 { { echo "$as_me:$LINENO: error: add-on $add_on has no configure fragment or sysdeps tree" >&5
2802 echo "$as_me: error: add-on $add_on has no configure fragment or sysdeps tree" >&2;}
2803 { (exit 1); exit 1; }; }
2809 sysdeps_add_ons
="$sysdeps_add_ons $add_on"
2810 case "$sysnames_add_ons" in
2813 { echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no sysdeps directories" >&5
2814 echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
2819 for d
in $sysnames; do
2821 $add_on/sysdeps
/*) ;;
2824 (cd "$xsrcdir$d" && for f
in *[!~
]; do
2827 for ff
in $f/*.h
; do
2828 test -d "$ff" ||
{ test -e "$ff" && exit 88; }
2832 test -d "$f" ||
{ test -e "$f" && exit 88; }
2836 if test $?
-eq 88; then
2841 if test $found = no
; then
2842 { echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
2843 echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
2851 # Find a good install program. We prefer a C program (faster),
2852 # so one script is as good as another. But avoid the broken or
2853 # incompatible versions:
2854 # SysV /etc/install, /usr/sbin/install
2855 # SunOS /usr/etc/install
2856 # IRIX /sbin/install
2858 # AmigaOS /C/install, which installs bootblocks on floppy discs
2859 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2860 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2861 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2862 # OS/2's system install, which has a completely different semantic
2863 # ./install, which can be erroneously created by make from ./install.sh.
2864 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2865 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2866 if test -z "$INSTALL"; then
2867 if test "${ac_cv_path_install+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2874 test -z "$as_dir" && as_dir
=.
2875 # Account for people who put trailing slashes in PATH elements.
2877 .
/ | .
// |
/cC
/* | \
2878 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2879 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2882 # OSF1 and SCO ODT 3.0 have their own names for install.
2883 # Don't use installbsd from OSF since it installs stuff as root
2885 for ac_prog
in ginstall scoinst
install; do
2886 for ac_exec_ext
in '' $ac_executable_extensions; do
2887 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2888 if test $ac_prog = install &&
2889 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2890 # AIX install. It has an incompatible calling convention.
2892 elif test $ac_prog = install &&
2893 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2894 # program-specific install script used by HP pwplus--don't use.
2897 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2910 if test "${ac_cv_path_install+set}" = set; then
2911 INSTALL
=$ac_cv_path_install
2913 # As a last resort, use the slow shell script. Don't cache a
2914 # value for INSTALL within a source directory, because that will
2915 # break other packages using the cache if that directory is
2916 # removed, or if the value is a relative name.
2917 INSTALL
=$ac_install_sh
2920 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2921 echo "${ECHO_T}$INSTALL" >&6; }
2923 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2924 # It thinks the first close brace ends the variable substitution.
2925 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2927 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2929 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2931 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
2932 # The makefiles need to use a different form to find it in $srcdir.
2933 INSTALL
='\$(..)./scripts/install-sh -c'
2935 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
2936 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2938 if test "$LN_S" = "ln -s"; then
2939 { echo "$as_me:$LINENO: result: yes" >&5
2940 echo "${ECHO_T}yes" >&6; }
2942 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2943 echo "${ECHO_T}no, using $LN_S" >&6; }
2948 ac_cpp
='$CPP $CPPFLAGS'
2949 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2950 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2952 if test -n "$ac_tool_prefix"; then
2953 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2954 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2957 if test "${ac_cv_prog_CC+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 if test -n "$CC"; then
2961 ac_cv_prog_CC
="$CC" # Let the user override the test.
2963 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2967 test -z "$as_dir" && as_dir
=.
2968 for ac_exec_ext
in '' $ac_executable_extensions; do
2969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2970 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 if test -n "$CC"; then
2982 { echo "$as_me:$LINENO: result: $CC" >&5
2983 echo "${ECHO_T}$CC" >&6; }
2985 { echo "$as_me:$LINENO: result: no" >&5
2986 echo "${ECHO_T}no" >&6; }
2991 if test -z "$ac_cv_prog_CC"; then
2993 # Extract the first word of "gcc", so it can be a program name with args.
2994 set dummy gcc
; ac_word
=$2
2995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2997 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
3000 if test -n "$ac_ct_CC"; then
3001 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3003 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3007 test -z "$as_dir" && as_dir
=.
3008 for ac_exec_ext
in '' $ac_executable_extensions; do
3009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3010 ac_cv_prog_ac_ct_CC
="gcc"
3011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3021 if test -n "$ac_ct_CC"; then
3022 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3023 echo "${ECHO_T}$ac_ct_CC" >&6; }
3025 { echo "$as_me:$LINENO: result: no" >&5
3026 echo "${ECHO_T}no" >&6; }
3029 if test "x$ac_ct_CC" = x
; then
3032 case $cross_compiling:$ac_tool_warned in
3034 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3035 whose name does not start with the host triplet. If you think this
3036 configuration is useful to you, please write to autoconf@gnu.org." >&5
3037 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3038 whose name does not start with the host triplet. If you think this
3039 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3040 ac_tool_warned
=yes ;;
3048 if test -z "$CC"; then
3049 if test -n "$ac_tool_prefix"; then
3050 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3051 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3054 if test "${ac_cv_prog_CC+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3057 if test -n "$CC"; then
3058 ac_cv_prog_CC
="$CC" # Let the user override the test.
3060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3064 test -z "$as_dir" && as_dir
=.
3065 for ac_exec_ext
in '' $ac_executable_extensions; do
3066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 if test -n "$CC"; then
3079 { echo "$as_me:$LINENO: result: $CC" >&5
3080 echo "${ECHO_T}$CC" >&6; }
3082 { echo "$as_me:$LINENO: result: no" >&5
3083 echo "${ECHO_T}no" >&6; }
3089 if test -z "$CC"; then
3090 # Extract the first word of "cc", so it can be a program name with args.
3091 set dummy cc
; ac_word
=$2
3092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3094 if test "${ac_cv_prog_CC+set}" = set; then
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
3097 if test -n "$CC"; then
3098 ac_cv_prog_CC
="$CC" # Let the user override the test.
3101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3105 test -z "$as_dir" && as_dir
=.
3106 for ac_exec_ext
in '' $ac_executable_extensions; do
3107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3108 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3109 ac_prog_rejected
=yes
3113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 if test $ac_prog_rejected = yes; then
3121 # We found a bogon in the path, so make sure we never use it.
3122 set dummy
$ac_cv_prog_CC
3124 if test $# != 0; then
3125 # We chose a different compiler from the bogus one.
3126 # However, it has the same basename, so the bogon will be chosen
3127 # first if we set CC to just the basename; use the full file name.
3129 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3135 if test -n "$CC"; then
3136 { echo "$as_me:$LINENO: result: $CC" >&5
3137 echo "${ECHO_T}$CC" >&6; }
3139 { echo "$as_me:$LINENO: result: no" >&5
3140 echo "${ECHO_T}no" >&6; }
3145 if test -z "$CC"; then
3146 if test -n "$ac_tool_prefix"; then
3147 for ac_prog
in cl.exe
3149 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3150 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3153 if test "${ac_cv_prog_CC+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3156 if test -n "$CC"; then
3157 ac_cv_prog_CC
="$CC" # Let the user override the test.
3159 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3163 test -z "$as_dir" && as_dir
=.
3164 for ac_exec_ext
in '' $ac_executable_extensions; do
3165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 if test -n "$CC"; then
3178 { echo "$as_me:$LINENO: result: $CC" >&5
3179 echo "${ECHO_T}$CC" >&6; }
3181 { echo "$as_me:$LINENO: result: no" >&5
3182 echo "${ECHO_T}no" >&6; }
3186 test -n "$CC" && break
3189 if test -z "$CC"; then
3191 for ac_prog
in cl.exe
3193 # Extract the first word of "$ac_prog", so it can be a program name with args.
3194 set dummy
$ac_prog; ac_word
=$2
3195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3197 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 if test -n "$ac_ct_CC"; then
3201 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3207 test -z "$as_dir" && as_dir
=.
3208 for ac_exec_ext
in '' $ac_executable_extensions; do
3209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210 ac_cv_prog_ac_ct_CC
="$ac_prog"
3211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3221 if test -n "$ac_ct_CC"; then
3222 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3223 echo "${ECHO_T}$ac_ct_CC" >&6; }
3225 { echo "$as_me:$LINENO: result: no" >&5
3226 echo "${ECHO_T}no" >&6; }
3230 test -n "$ac_ct_CC" && break
3233 if test "x$ac_ct_CC" = x
; then
3236 case $cross_compiling:$ac_tool_warned in
3238 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3239 whose name does not start with the host triplet. If you think this
3240 configuration is useful to you, please write to autoconf@gnu.org." >&5
3241 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3242 whose name does not start with the host triplet. If you think this
3243 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3244 ac_tool_warned
=yes ;;
3253 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3254 See \`config.log' for more details." >&5
3255 echo "$as_me: error: no acceptable C compiler found in \$PATH
3256 See \`config.log' for more details." >&2;}
3257 { (exit 1); exit 1; }; }
3259 # Provide some information about the compiler.
3260 echo "$as_me:$LINENO: checking for C compiler version" >&5
3261 ac_compiler
=`set X $ac_compile; echo $2`
3262 { (ac_try
="$ac_compiler --version >&5"
3264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_compiler --version >&5") 2>&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }
3272 { (ac_try="$ac_compiler -v >&5"
3274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3275 *) ac_try_echo
=$ac_try;;
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278 (eval "$ac_compiler -v >&5") 2>&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }
3282 { (ac_try
="$ac_compiler -V >&5"
3284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288 (eval "$ac_compiler -V >&5") 2>&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }
3294 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3295 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3296 if test "${ac_cv_objext+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 cat >conftest.$ac_ext <<_ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3314 rm -f conftest.o conftest.obj
3315 if { (ac_try="$ac_compile"
3317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3318 *) ac_try_echo
=$ac_try;;
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321 (eval "$ac_compile") 2>&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; then
3325 for ac_file
in conftest.o conftest.obj conftest.
*; do
3326 test -f "$ac_file" ||
continue;
3328 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf
) ;;
3329 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3334 echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.
$ac_ext >&5
3337 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3338 See \`config.log' for more details." >&5
3339 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3340 See \`config.log' for more details." >&2;}
3341 { (exit 1); exit 1; }; }
3344 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3346 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3347 echo "${ECHO_T}$ac_cv_objext" >&6; }
3348 OBJEXT
=$ac_cv_objext
3350 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3351 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3352 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 cat >conftest.
$ac_ext <<_ACEOF
3358 cat confdefs.h
>>conftest.
$ac_ext
3359 cat >>conftest.
$ac_ext <<_ACEOF
3360 /* end confdefs.h. */
3373 rm -f conftest.
$ac_objext
3374 if { (ac_try
="$ac_compile"
3376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_compile") 2>conftest.er1
3382 grep -v '^ *+' conftest.er1 >conftest.err
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } && {
3387 test -z "$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3389 } && test -s conftest.$ac_objext; then
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3402 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3403 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3404 GCC=`test $ac_compiler_gnu = yes && echo yes`
3405 ac_test_CFLAGS=${CFLAGS+set}
3406 ac_save_CFLAGS=$CFLAGS
3407 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3408 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3409 if test "${ac_cv_prog_cc_g+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 ac_save_c_werror_flag=$ac_c_werror_flag
3413 ac_c_werror_flag=yes
3416 cat >conftest.$ac_ext <<_ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3431 rm -f conftest.$ac_objext
3432 if { (ac_try="$ac_compile"
3434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3435 *) ac_try_echo
=$ac_try;;
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_compile") 2>conftest.er1
3440 grep -v '^ *+' conftest.er1
>conftest.err
3442 cat conftest.err
>&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } && {
3445 test -z "$ac_c_werror_flag" ||
3446 test ! -s conftest.err
3447 } && test -s conftest.
$ac_objext; then
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.
$ac_ext >&5
3454 cat >conftest.
$ac_ext <<_ACEOF
3457 cat confdefs.h
>>conftest.
$ac_ext
3458 cat >>conftest.
$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3469 rm -f conftest.
$ac_objext
3470 if { (ac_try
="$ac_compile"
3472 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_compile") 2>conftest.er1
3478 grep -v '^ *+' conftest.er1 >conftest.err
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } && {
3483 test -z "$ac_c_werror_flag" ||
3484 test ! -s conftest.err
3485 } && test -s conftest.$ac_objext; then
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3491 ac_c_werror_flag=$ac_save_c_werror_flag
3493 cat >conftest.$ac_ext <<_ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3508 rm -f conftest.$ac_objext
3509 if { (ac_try="$ac_compile"
3511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3512 *) ac_try_echo
=$ac_try;;
3514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3515 (eval "$ac_compile") 2>conftest.er1
3517 grep -v '^ *+' conftest.er1
>conftest.err
3519 cat conftest.err
>&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } && {
3522 test -z "$ac_c_werror_flag" ||
3523 test ! -s conftest.err
3524 } && test -s conftest.
$ac_objext; then
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.
$ac_ext >&5
3533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3540 ac_c_werror_flag
=$ac_save_c_werror_flag
3542 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3543 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3544 if test "$ac_test_CFLAGS" = set; then
3545 CFLAGS
=$ac_save_CFLAGS
3546 elif test $ac_cv_prog_cc_g = yes; then
3547 if test "$GCC" = yes; then
3553 if test "$GCC" = yes; then
3559 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3560 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3561 if test "${ac_cv_prog_cc_c89+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 ac_cv_prog_cc_c89
=no
3566 cat >conftest.
$ac_ext <<_ACEOF
3569 cat confdefs.h
>>conftest.
$ac_ext
3570 cat >>conftest.
$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3574 #include <sys/types.h>
3575 #include <sys/stat.h>
3576 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3577 struct buf { int x; };
3578 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3579 static char *e (p, i)
3585 static char *f (char * (*g) (char **, int), char **p, ...)
3590 s = g (p, va_arg (v,int));
3595 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3596 function prototypes and stuff, but not '\xHH' hex character constants.
3597 These don't provoke an error unfortunately, instead are silently treated
3598 as 'x'. The following induces an error, until -std is added to get
3599 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3600 array size at least. It's necessary to write '\x00'==0 to get something
3601 that's true only with -std. */
3602 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3604 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3605 inside strings and character constants. */
3607 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3609 int test (int i, double x);
3610 struct s1 {int (*f) (int a);};
3611 struct s2 {int (*f) (double a);};
3612 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3618 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3623 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3624 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3626 CC
="$ac_save_CC $ac_arg"
3627 rm -f conftest.
$ac_objext
3628 if { (ac_try
="$ac_compile"
3630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3634 (eval "$ac_compile") 2>conftest.er1
3636 grep -v '^ *+' conftest.er1 >conftest.err
3638 cat conftest.err >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } && {
3641 test -z "$ac_c_werror_flag" ||
3642 test ! -s conftest.err
3643 } && test -s conftest.$ac_objext; then
3644 ac_cv_prog_cc_c89=$ac_arg
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3652 rm -f core conftest.err conftest.$ac_objext
3653 test "x$ac_cv_prog_cc_c89" != "xno" && break
3655 rm -f conftest.$ac_ext
3660 case "x$ac_cv_prog_cc_c89" in
3662 { echo "$as_me:$LINENO: result: none needed" >&5
3663 echo "${ECHO_T}none needed" >&6; } ;;
3665 { echo "$as_me:$LINENO: result: unsupported" >&5
3666 echo "${ECHO_T}unsupported" >&6; } ;;
3668 CC="$CC $ac_cv_prog_cc_c89"
3669 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3670 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3675 ac_cpp='$CPP $CPPFLAGS'
3676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680 if test $host != $build; then
3681 for ac_prog in gcc cc
3683 # Extract the first word of "$ac_prog", so it can be a program name with args.
3684 set dummy $ac_prog; ac_word=$2
3685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3687 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 if test -n "$BUILD_CC"; then
3691 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3700 ac_cv_prog_BUILD_CC="$ac_prog"
3701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 BUILD_CC=$ac_cv_prog_BUILD_CC
3711 if test -n "$BUILD_CC"; then
3712 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3713 echo "${ECHO_T}$BUILD_CC" >&6; }
3715 { echo "$as_me:$LINENO: result: no" >&5
3716 echo "${ECHO_T}no" >&6; }
3720 test -n "$BUILD_CC" && break
3726 ac_cpp='$CPP $CPPFLAGS'
3727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3730 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3731 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3732 # On Suns, sometimes $CPP names a directory.
3733 if test -n "$CPP" && test -d "$CPP"; then
3736 if test -z "$CPP"; then
3737 if test "${ac_cv_prog_CPP+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 # Double quotes because CPP needs to be expanded
3741 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3744 for ac_c_preproc_warn_flag in '' yes
3746 # Use a header file that comes with gcc, so configuring glibc
3747 # with a fresh cross-compiler works.
3748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3749 # <limits.h> exists even on freestanding compilers.
3750 # On the NeXT, cc -E runs the code through the compiler's parser,
3751 # not just through cpp. "Syntax error" is here to catch this case.
3752 cat >conftest.$ac_ext <<_ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3759 # include <limits.h>
3761 # include <assert.h>
3765 if { (ac_try="$ac_cpp conftest.$ac_ext"
3767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3768 *) ac_try_echo
=$ac_try;;
3770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3773 grep -v '^ *+' conftest.er1
>conftest.err
3775 cat conftest.err
>&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); } >/dev
/null
&& {
3778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3779 test ! -s conftest.err
3783 echo "$as_me: failed program was:" >&5
3784 sed 's/^/| /' conftest.
$ac_ext >&5
3786 # Broken: fails on valid input.
3790 rm -f conftest.err conftest.
$ac_ext
3792 # OK, works on sane cases. Now check whether nonexistent headers
3793 # can be detected and how.
3794 cat >conftest.
$ac_ext <<_ACEOF
3797 cat confdefs.h
>>conftest.
$ac_ext
3798 cat >>conftest.
$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3800 #include <ac_nonexistent.h>
3802 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3810 grep -v '^ *+' conftest.er1 >conftest.err
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } >/dev/null && {
3815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3816 test ! -s conftest.err
3818 # Broken: success on invalid input.
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 # Passes both tests.
3829 rm -f conftest.err conftest.$ac_ext
3832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3833 rm -f conftest.err conftest.
$ac_ext
3834 if $ac_preproc_ok; then
3846 { echo "$as_me:$LINENO: result: $CPP" >&5
3847 echo "${ECHO_T}$CPP" >&6; }
3849 for ac_c_preproc_warn_flag
in '' yes
3851 # Use a header file that comes with gcc, so configuring glibc
3852 # with a fresh cross-compiler works.
3853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3854 # <limits.h> exists even on freestanding compilers.
3855 # On the NeXT, cc -E runs the code through the compiler's parser,
3856 # not just through cpp. "Syntax error" is here to catch this case.
3857 cat >conftest.
$ac_ext <<_ACEOF
3860 cat confdefs.h
>>conftest.
$ac_ext
3861 cat >>conftest.
$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3864 # include <limits.h>
3866 # include <assert.h>
3870 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3872 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3878 grep -v '^ *+' conftest.er1 >conftest.err
3880 cat conftest.err >&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); } >/dev/null && {
3883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3884 test ! -s conftest.err
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3891 # Broken: fails on valid input.
3895 rm -f conftest.err conftest.$ac_ext
3897 # OK, works on sane cases. Now check whether nonexistent headers
3898 # can be detected and how.
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3905 #include <ac_nonexistent.h>
3907 if { (ac_try="$ac_cpp conftest.$ac_ext"
3909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3910 *) ac_try_echo
=$ac_try;;
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3915 grep -v '^ *+' conftest.er1
>conftest.err
3917 cat conftest.err
>&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } >/dev
/null
&& {
3920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3921 test ! -s conftest.err
3923 # Broken: success on invalid input.
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.
$ac_ext >&5
3929 # Passes both tests.
3934 rm -f conftest.err conftest.
$ac_ext
3937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3938 rm -f conftest.err conftest.
$ac_ext
3939 if $ac_preproc_ok; then
3942 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3943 See \`config.log' for more details." >&5
3944 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3945 See \`config.log' for more details." >&2;}
3946 { (exit 1); exit 1; }; }
3950 ac_cpp
='$CPP $CPPFLAGS'
3951 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3955 # We need the C++ compiler only for testing.
3957 ac_cpp
='$CXXCPP $CPPFLAGS'
3958 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3961 if test -z "$CXX"; then
3962 if test -n "$CCC"; then
3965 if test -n "$ac_tool_prefix"; then
3966 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3969 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3972 if test "${ac_cv_prog_CXX+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 if test -n "$CXX"; then
3976 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3982 test -z "$as_dir" && as_dir
=.
3983 for ac_exec_ext
in '' $ac_executable_extensions; do
3984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3985 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 if test -n "$CXX"; then
3997 { echo "$as_me:$LINENO: result: $CXX" >&5
3998 echo "${ECHO_T}$CXX" >&6; }
4000 { echo "$as_me:$LINENO: result: no" >&5
4001 echo "${ECHO_T}no" >&6; }
4005 test -n "$CXX" && break
4008 if test -z "$CXX"; then
4010 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4012 # Extract the first word of "$ac_prog", so it can be a program name with args.
4013 set dummy
$ac_prog; ac_word
=$2
4014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4016 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 if test -n "$ac_ct_CXX"; then
4020 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4026 test -z "$as_dir" && as_dir
=.
4027 for ac_exec_ext
in '' $ac_executable_extensions; do
4028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4029 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4040 if test -n "$ac_ct_CXX"; then
4041 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4042 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4044 { echo "$as_me:$LINENO: result: no" >&5
4045 echo "${ECHO_T}no" >&6; }
4049 test -n "$ac_ct_CXX" && break
4052 if test "x$ac_ct_CXX" = x
; then
4055 case $cross_compiling:$ac_tool_warned in
4057 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4058 whose name does not start with the host triplet. If you think this
4059 configuration is useful to you, please write to autoconf@gnu.org." >&5
4060 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4061 whose name does not start with the host triplet. If you think this
4062 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4063 ac_tool_warned
=yes ;;
4071 # Provide some information about the compiler.
4072 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4073 ac_compiler
=`set X $ac_compile; echo $2`
4074 { (ac_try
="$ac_compiler --version >&5"
4076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_compiler --version >&5") 2>&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }
4084 { (ac_try="$ac_compiler -v >&5"
4086 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4087 *) ac_try_echo
=$ac_try;;
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090 (eval "$ac_compiler -v >&5") 2>&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }
4094 { (ac_try
="$ac_compiler -V >&5"
4096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4100 (eval "$ac_compiler -V >&5") 2>&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }
4105 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4106 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4107 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 cat >conftest.$ac_ext <<_ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4128 rm -f conftest.$ac_objext
4129 if { (ac_try="$ac_compile"
4131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4132 *) ac_try_echo
=$ac_try;;
4134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135 (eval "$ac_compile") 2>conftest.er1
4137 grep -v '^ *+' conftest.er1
>conftest.err
4139 cat conftest.err
>&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } && {
4142 test -z "$ac_cxx_werror_flag" ||
4143 test ! -s conftest.err
4144 } && test -s conftest.
$ac_objext; then
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.
$ac_ext >&5
4153 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4154 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4157 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4158 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4159 GXX
=`test $ac_compiler_gnu = yes && echo yes`
4160 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4161 ac_save_CXXFLAGS
=$CXXFLAGS
4162 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4163 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4164 if test "${ac_cv_prog_cxx_g+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4168 ac_cxx_werror_flag
=yes
4171 cat >conftest.
$ac_ext <<_ACEOF
4174 cat confdefs.h
>>conftest.
$ac_ext
4175 cat >>conftest.
$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4186 rm -f conftest.
$ac_objext
4187 if { (ac_try
="$ac_compile"
4189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4193 (eval "$ac_compile") 2>conftest.er1
4195 grep -v '^ *+' conftest.er1 >conftest.err
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } && {
4200 test -z "$ac_cxx_werror_flag" ||
4201 test ! -s conftest.err
4202 } && test -s conftest.$ac_objext; then
4203 ac_cv_prog_cxx_g=yes
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4209 cat >conftest.$ac_ext <<_ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4224 rm -f conftest.$ac_objext
4225 if { (ac_try="$ac_compile"
4227 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4228 *) ac_try_echo
=$ac_try;;
4230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231 (eval "$ac_compile") 2>conftest.er1
4233 grep -v '^ *+' conftest.er1
>conftest.err
4235 cat conftest.err
>&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } && {
4238 test -z "$ac_cxx_werror_flag" ||
4239 test ! -s conftest.err
4240 } && test -s conftest.
$ac_objext; then
4243 echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.
$ac_ext >&5
4246 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4248 cat >conftest.
$ac_ext <<_ACEOF
4251 cat confdefs.h
>>conftest.
$ac_ext
4252 cat >>conftest.
$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4263 rm -f conftest.
$ac_objext
4264 if { (ac_try
="$ac_compile"
4266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270 (eval "$ac_compile") 2>conftest.er1
4272 grep -v '^ *+' conftest.er1 >conftest.err
4274 cat conftest.err >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } && {
4277 test -z "$ac_cxx_werror_flag" ||
4278 test ! -s conftest.err
4279 } && test -s conftest.$ac_objext; then
4280 ac_cv_prog_cxx_g=yes
4282 echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4297 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4298 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4299 if test "$ac_test_CXXFLAGS" = set; then
4300 CXXFLAGS=$ac_save_CXXFLAGS
4301 elif test $ac_cv_prog_cxx_g = yes; then
4302 if test "$GXX" = yes; then
4308 if test "$GXX" = yes; then
4315 ac_cpp='$CPP $CPPFLAGS'
4316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4320 # Was a --with-binutils option given?
4321 if test -n "$path_binutils"; then
4322 # Make absolute; ensure a single trailing slash.
4323 path_binutils=`(cd $path_binutils; pwd) |
sed 's%/*$%/%'`
4324 CC="$CC -B$path_binutils"
4326 AS=`$CC -print-prog-name=as
`
4327 LD=`$CC -print-prog-name=ld
`
4328 AR=`$CC -print-prog-name=ar`
4330 OBJDUMP=`$CC -print-prog-name=objdump
`
4333 # ranlib has to be treated a bit differently since it might not exist at all.
4334 ac_ranlib=`$CC -print-prog-name=ranlib
`
4335 if test "x$ac_ranlib" = xranlib; then
4336 # This extra check has to happen since gcc simply echos the parameter in
4337 # case it cannot find the value in its own directories.
4338 if test -n "$ac_tool_prefix"; then
4339 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4340 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4343 if test "${ac_cv_prog_RANLIB+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 if test -n "$RANLIB"; then
4347 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 test -z "$as_dir" && as_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4356 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 RANLIB=$ac_cv_prog_RANLIB
4367 if test -n "$RANLIB"; then
4368 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4369 echo "${ECHO_T}$RANLIB" >&6; }
4371 { echo "$as_me:$LINENO: result: no" >&5
4372 echo "${ECHO_T}no" >&6; }
4377 if test -z "$ac_cv_prog_RANLIB"; then
4378 ac_ct_RANLIB=$RANLIB
4379 # Extract the first word of "ranlib", so it can be a program name with args.
4380 set dummy ranlib; ac_word=$2
4381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4383 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 if test -n "$ac_ct_RANLIB"; then
4387 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4396 ac_cv_prog_ac_ct_RANLIB="ranlib"
4397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4407 if test -n "$ac_ct_RANLIB"; then
4408 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4409 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4411 { echo "$as_me:$LINENO: result: no" >&5
4412 echo "${ECHO_T}no" >&6; }
4415 if test "x$ac_ct_RANLIB" = x; then
4418 case $cross_compiling:$ac_tool_warned in
4420 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4421 whose name does not start with the host triplet. If you think this
4422 configuration is useful to you, please write to autoconf@gnu.org." >&5
4423 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4424 whose name does not start with the host triplet. If you think this
4425 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4426 ac_tool_warned=yes ;;
4428 RANLIB=$ac_ct_RANLIB
4431 RANLIB="$ac_cv_prog_RANLIB"
4439 # Determine whether we are using GNU binutils.
4440 { echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
4441 echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6; }
4442 if test "${libc_cv_prog_as_gnu+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 # Most GNU programs take a -v and spit out some text including
4446 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4447 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4448 libc_cv_prog_as_gnu=yes
4450 libc_cv_prog_as_gnu=no
4454 { echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
4455 echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6; }
4457 gnu_as=$libc_cv_prog_as_gnu
4459 { echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
4460 echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6; }
4461 if test "${libc_cv_prog_ld_gnu+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 # Most GNU programs take a -v and spit out some text including
4465 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4466 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4467 libc_cv_prog_ld_gnu=yes
4469 libc_cv_prog_ld_gnu=no
4473 { echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
4474 echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6; }
4475 gnu_ld=$libc_cv_prog_ld_gnu
4478 # Accept binutils 2.13 or newer.
4481 # Extract the first word of "$ac_prog", so it can be a program name with args.
4482 set dummy $ac_prog; ac_word=$2
4483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4485 if test "${ac_cv_prog_AS+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 if test -n "$AS"; then
4489 ac_cv_prog_AS="$AS" # Let the user override the test.
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498 ac_cv_prog_AS="$ac_prog"
4499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 if test -n "$AS"; then
4510 { echo "$as_me:$LINENO: result: $AS" >&5
4511 echo "${ECHO_T}$AS" >&6; }
4513 { echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6; }
4518 test -n "$AS" && break
4521 if test -z "$AS"; then
4524 # Found it, now check the version.
4525 { echo "$as_me:$LINENO: checking version of $AS" >&5
4526 echo $ECHO_N "checking version of $AS... $ECHO_C" >&6; }
4527 ac_prog_version=`$AS --version 2>&1 |
sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4528 case $ac_prog_version in
4529 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4531 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4532 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4535 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4536 echo "${ECHO_T}$ac_prog_version" >&6; }
4538 if test $ac_verc_fail = yes; then
4539 AS=: critic_missing="$critic_missing as"
4544 # Extract the first word of "$ac_prog", so it can be a program name with args.
4545 set dummy $ac_prog; ac_word=$2
4546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4548 if test "${ac_cv_prog_LD+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 if test -n "$LD"; then
4552 ac_cv_prog_LD="$LD" # Let the user override the test.
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561 ac_cv_prog_LD="$ac_prog"
4562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 if test -n "$LD"; then
4573 { echo "$as_me:$LINENO: result: $LD" >&5
4574 echo "${ECHO_T}$LD" >&6; }
4576 { echo "$as_me:$LINENO: result: no" >&5
4577 echo "${ECHO_T}no" >&6; }
4581 test -n "$LD" && break
4584 if test -z "$LD"; then
4587 # Found it, now check the version.
4588 { echo "$as_me:$LINENO: checking version of $LD" >&5
4589 echo $ECHO_N "checking version of $LD... $ECHO_C" >&6; }
4590 ac_prog_version=`$LD --version 2>&1 |
sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4591 case $ac_prog_version in
4592 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4594 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4595 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4598 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4599 echo "${ECHO_T}$ac_prog_version" >&6; }
4601 if test $ac_verc_fail = yes; then
4602 LD=: critic_missing="$critic_missing ld"
4606 # We need the physical current working directory. We cannot use the
4607 # "pwd -P" shell builtin since that's not portable. Instead we try to
4608 # find a pwd binary. Note that assigning to the PWD environment
4609 # variable might have some interesting side effects, so we don't do
4611 # Extract the first word of "pwd", so it can be a program name with args.
4612 set dummy pwd; ac_word=$2
4613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4615 if test "${ac_cv_path_PWD_P+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4642 PWD_P=$ac_cv_path_PWD_P
4643 if test -n "$PWD_P"; then
4644 { echo "$as_me:$LINENO: result: $PWD_P" >&5
4645 echo "${ECHO_T}$PWD_P" >&6; }
4647 { echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6; }
4652 if test "$PWD_P" = no; then
4653 { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
4654 echo "$as_me: error: *** A pwd binary could not be found." >&2;}
4655 { (exit 1); exit 1; }; }
4658 # These programs are version sensitive.
4660 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4662 # Extract the first word of "$ac_prog", so it can be a program name with args.
4663 set dummy $ac_prog; ac_word=$2
4664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4666 if test "${ac_cv_prog_CC+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 if test -n "$CC"; then
4670 ac_cv_prog_CC="$CC" # Let the user override the test.
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4679 ac_cv_prog_CC="$ac_prog"
4680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 if test -n "$CC"; then
4691 { echo "$as_me:$LINENO: result: $CC" >&5
4692 echo "${ECHO_T}$CC" >&6; }
4694 { echo "$as_me:$LINENO: result: no" >&5
4695 echo "${ECHO_T}no" >&6; }
4699 test -n "$CC" && break
4702 if test -z "$CC"; then
4705 # Found it, now check the version.
4706 { echo "$as_me:$LINENO: checking version of $CC" >&5
4707 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6; }
4708 ac_prog_version=`$CC -v 2>&1 |
sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
4709 case $ac_prog_version in
4710 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4712 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4713 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4716 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4717 echo "${ECHO_T}$ac_prog_version" >&6; }
4719 if test $ac_verc_fail = yes; then
4720 critic_missing="$critic_missing gcc"
4723 for ac_prog in gnumake gmake make
4725 # Extract the first word of "$ac_prog", so it can be a program name with args.
4726 set dummy $ac_prog; ac_word=$2
4727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4729 if test "${ac_cv_prog_MAKE+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 if test -n "$MAKE"; then
4733 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_MAKE="$ac_prog"
4743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 MAKE=$ac_cv_prog_MAKE
4753 if test -n "$MAKE"; then
4754 { echo "$as_me:$LINENO: result: $MAKE" >&5
4755 echo "${ECHO_T}$MAKE" >&6; }
4757 { echo "$as_me:$LINENO: result: no" >&5
4758 echo "${ECHO_T}no" >&6; }
4762 test -n "$MAKE" && break
4765 if test -z "$MAKE"; then
4768 # Found it, now check the version.
4769 { echo "$as_me:$LINENO: checking version of $MAKE" >&5
4770 echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6; }
4771 ac_prog_version=`$MAKE --version 2>&1 |
sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4772 case $ac_prog_version in
4773 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4775 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4776 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4779 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4780 echo "${ECHO_T}$ac_prog_version" >&6; }
4782 if test $ac_verc_fail = yes; then
4783 critic_missing="$critic_missing make"
4787 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4789 # Extract the first word of "$ac_prog", so it can be a program name with args.
4790 set dummy $ac_prog; ac_word=$2
4791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4793 if test "${ac_cv_prog_MSGFMT+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 if test -n "$MSGFMT"; then
4797 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 test -z "$as_dir" && as_dir=.
4804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4806 ac_cv_prog_MSGFMT="$ac_prog"
4807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 MSGFMT=$ac_cv_prog_MSGFMT
4817 if test -n "$MSGFMT"; then
4818 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4819 echo "${ECHO_T}$MSGFMT" >&6; }
4821 { echo "$as_me:$LINENO: result: no" >&5
4822 echo "${ECHO_T}no" >&6; }
4826 test -n "$MSGFMT" && break
4829 if test -z "$MSGFMT"; then
4832 # Found it, now check the version.
4833 { echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
4834 echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6; }
4835 ac_prog_version=`$MSGFMT --version 2>&1 |
sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4836 case $ac_prog_version in
4837 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4838 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4839 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4840 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4843 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4844 echo "${ECHO_T}$ac_prog_version" >&6; }
4846 if test $ac_verc_fail = yes; then
4847 MSGFMT=: aux_missing="$aux_missing msgfmt"
4850 for ac_prog in makeinfo
4852 # Extract the first word of "$ac_prog", so it can be a program name with args.
4853 set dummy $ac_prog; ac_word=$2
4854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4856 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 if test -n "$MAKEINFO"; then
4860 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_MAKEINFO="$ac_prog"
4870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 MAKEINFO=$ac_cv_prog_MAKEINFO
4880 if test -n "$MAKEINFO"; then
4881 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4882 echo "${ECHO_T}$MAKEINFO" >&6; }
4884 { echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6; }
4889 test -n "$MAKEINFO" && break
4892 if test -z "$MAKEINFO"; then
4895 # Found it, now check the version.
4896 { echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
4897 echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6; }
4898 ac_prog_version=`$MAKEINFO --version 2>&1 |
sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4899 case $ac_prog_version in
4900 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4902 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4903 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4906 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4907 echo "${ECHO_T}$ac_prog_version" >&6; }
4909 if test $ac_verc_fail = yes; then
4910 MAKEINFO=: aux_missing="$aux_missing makeinfo"
4915 # Extract the first word of "$ac_prog", so it can be a program name with args.
4916 set dummy $ac_prog; ac_word=$2
4917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4919 if test "${ac_cv_prog_SED+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 if test -n "$SED"; then
4923 ac_cv_prog_SED="$SED" # Let the user override the test.
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932 ac_cv_prog_SED="$ac_prog"
4933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 if test -n "$SED"; then
4944 { echo "$as_me:$LINENO: result: $SED" >&5
4945 echo "${ECHO_T}$SED" >&6; }
4947 { echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6; }
4952 test -n "$SED" && break
4955 if test -z "$SED"; then
4958 # Found it, now check the version.
4959 { echo "$as_me:$LINENO: checking version of $SED" >&5
4960 echo $ECHO_N "checking version of $SED... $ECHO_C" >&6; }
4961 ac_prog_version=`$SED --version 2>&1 |
sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
4962 case $ac_prog_version in
4963 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4964 3.0[2-9]*|3.[1-9]*|[4-9]*)
4965 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4966 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4969 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4970 echo "${ECHO_T}$ac_prog_version" >&6; }
4972 if test $ac_verc_fail = yes; then
4973 SED=: aux_missing="$aux_missing sed"
4977 for ac_prog in autoconf
4979 # Extract the first word of "$ac_prog", so it can be a program name with args.
4980 set dummy $ac_prog; ac_word=$2
4981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4983 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 if test -n "$AUTOCONF"; then
4987 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996 ac_cv_prog_AUTOCONF="$ac_prog"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 AUTOCONF=$ac_cv_prog_AUTOCONF
5007 if test -n "$AUTOCONF"; then
5008 { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
5009 echo "${ECHO_T}$AUTOCONF" >&6; }
5011 { echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6; }
5016 test -n "$AUTOCONF" && break
5018 test -n "$AUTOCONF" || AUTOCONF="no"
5020 case "x$AUTOCONF" in
5021 xno|x|x:) AUTOCONF=no ;;
5023 { echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5024 echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6; }
5025 if test "${libc_cv_autoconf_works+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5029 libc_cv_autoconf_works=yes
5031 libc_cv_autoconf_works=no
5034 { echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
5035 echo "${ECHO_T}$libc_cv_autoconf_works" >&6; }
5036 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5039 if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
5040 # If --without-cvs they probably won't change configure.in, so no complaints.
5041 aux_missing="$aux_missing autoconf"
5044 test -n "$critic_missing" && { { echo "$as_me:$LINENO: error:
5045 *** These critical programs are missing or too old:$critic_missing
5046 *** Check the INSTALL file for required versions." >&5
5047 echo "$as_me: error:
5048 *** These critical programs are missing or too old:$critic_missing
5049 *** Check the INSTALL file for required versions." >&2;}
5050 { (exit 1); exit 1; }; }
5052 test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
5053 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5054 *** some features will be disabled.
5055 *** Check the INSTALL file for required versions." >&5
5056 echo "$as_me: WARNING:
5057 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5058 *** some features will be disabled.
5059 *** Check the INSTALL file for required versions." >&2;}
5061 # if using special system headers, find out the compiler's sekrit
5062 # header directory and add that to the list. NOTE: Only does the right
5063 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5064 if test -n "$sysheaders"; then
5065 ccheaders=`$CC -print-file-name=include
`
5066 SYSINCLUDES="-nostdinc -isystem $ccheaders \
5067 -isystem `echo $sysheaders |
sed 's/:/ -isystem /g'`"
5068 if test -n "$CXX"; then
5069 cxxversion=`$CXX -dumpversion 2>&5` &&
5070 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5071 cxxheaders=`$CXX -print-file-name=..
/..
/..
/..
/include
/c
++/`"$cxxversion" &&
5072 CXX_SYSINCLUDES="-isystem $cxxheaders \
5073 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5079 # check if ranlib is necessary
5080 { echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
5081 echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6; }
5082 if test "${libc_cv_ranlib_necessary+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 cat > conftest.c <<EOF
5090 $CC $CFLAGS $CPPFLAGS -c conftest.c
5091 $AR cr conftest.a conftest.o
5092 cp conftest.a conftest2.a
5094 if cmp -s conftest.a conftest2.a; then
5095 libc_cv_ranlib_necessary=no
5097 libc_cv_ranlib_necessary=yes
5101 { echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
5102 echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6; }
5103 if test "$libc_cv_ranlib_necessary" = no; then
5107 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5108 # since this would lead to problems installing/building glibc.
5109 # LD_LIBRARY_PATH contains the current directory if one of the following
5111 # - one of the terminals (":" and ";") is the first or last sign
5112 # - two terminals occur directly after each other
5113 # - the path contains an element with a dot in it
5114 { echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
5115 echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6; }
5116 case ${LD_LIBRARY_PATH} in
5117 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5118 ld_library_path_setting="contains current directory"
5121 ld_library_path_setting="ok"
5124 { echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
5125 echo "${ECHO_T}$ld_library_path_setting" >&6; }
5126 if test "$ld_library_path_setting" != "ok"; then
5127 { { echo "$as_me:$LINENO: error:
5128 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5129 *** building glibc. Please change the environment variable
5130 *** and run configure again." >&5
5131 echo "$as_me: error:
5132 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5133 *** building glibc. Please change the environment variable
5134 *** and run configure again." >&2;}
5135 { (exit 1); exit 1; }; }
5138 { echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
5139 echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6; }
5140 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5144 libc_cv_gcc_static_libgcc=
5146 libc_cv_gcc_static_libgcc=-static-libgcc
5149 { echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
5150 echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6; }
5153 # Extract the first word of "bash", so it can be a program name with args.
5154 set dummy bash; ac_word=$2
5155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5157 if test "${ac_cv_path_BASH_SHELL+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5172 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5184 BASH_SHELL=$ac_cv_path_BASH_SHELL
5185 if test -n "$BASH_SHELL"; then
5186 { echo "$as_me:$LINENO: result: $BASH_SHELL" >&5
5187 echo "${ECHO_T}$BASH_SHELL" >&6; }
5189 { echo "$as_me:$LINENO: result: no" >&5
5190 echo "${ECHO_T}no" >&6; }
5194 if test "$BASH_SHELL" != no &&
5195 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5196 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5197 libc_cv_have_bash2=yes
5199 libc_cv_have_bash2=no
5203 if test "$BASH_SHELL" = no; then
5204 # Extract the first word of "ksh", so it can be a program name with args.
5205 set dummy ksh; ac_word=$2
5206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5208 if test "${ac_cv_path_KSH+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5236 if test -n "$KSH"; then
5237 { echo "$as_me:$LINENO: result: $KSH" >&5
5238 echo "${ECHO_T}$KSH" >&6; }
5240 { echo "$as_me:$LINENO: result: no" >&5
5241 echo "${ECHO_T}no" >&6; }
5245 if test "$KSH" = no; then
5248 libc_cv_have_ksh=yes
5253 libc_cv_have_ksh=yes
5257 for ac_prog in gawk mawk nawk awk
5259 # Extract the first word of "$ac_prog", so it can be a program name with args.
5260 set dummy $ac_prog; ac_word=$2
5261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5263 if test "${ac_cv_prog_AWK+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 if test -n "$AWK"; then
5267 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 test -z "$as_dir" && as_dir=.
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5276 ac_cv_prog_AWK="$ac_prog"
5277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 if test -n "$AWK"; then
5288 { echo "$as_me:$LINENO: result: $AWK" >&5
5289 echo "${ECHO_T}$AWK" >&6; }
5291 { echo "$as_me:$LINENO: result: no" >&5
5292 echo "${ECHO_T}no" >&6; }
5296 test -n "$AWK" && break
5299 # Extract the first word of "perl", so it can be a program name with args.
5300 set dummy perl; ac_word=$2
5301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5303 if test "${ac_cv_path_PERL+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 test -z "$as_dir" && as_dir=.
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5318 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5330 PERL=$ac_cv_path_PERL
5331 if test -n "$PERL"; then
5332 { echo "$as_me:$LINENO: result: $PERL" >&5
5333 echo "${ECHO_T}$PERL" >&6; }
5335 { echo "$as_me:$LINENO: result: no" >&5
5336 echo "${ECHO_T}no" >&6; }
5340 if test "$PERL" != no &&
5341 (eval `$PERL -V:apiversion
`; test `expr "$apiversion" \
< 5` -ne 0); then
5344 # Extract the first word of "install-info", so it can be a program name with args.
5345 set dummy install-info; ac_word=$2
5346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5348 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 case $INSTALL_INFO in
5353 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5358 for as_dir in $as_dummy
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5364 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5376 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5377 if test -n "$INSTALL_INFO"; then
5378 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5379 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5381 { echo "$as_me:$LINENO: result: no" >&5
5382 echo "${ECHO_T}no" >&6; }
5386 # Extract the first word of "bison", so it can be a program name with args.
5387 set dummy bison; ac_word=$2
5388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5390 if test "${ac_cv_path_BISON+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5400 for as_dir in $as_dummy
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5406 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5418 BISON=$ac_cv_path_BISON
5419 if test -n "$BISON"; then
5420 { echo "$as_me:$LINENO: result: $BISON" >&5
5421 echo "${ECHO_T}$BISON" >&6; }
5423 { echo "$as_me:$LINENO: result: no" >&5
5424 echo "${ECHO_T}no" >&6; }
5429 { echo "$as_me:$LINENO: checking for signed size_t type" >&5
5430 echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6; }
5431 if test "${libc_cv_signed_size_t+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 echo '#include <stddef.h>
5435 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5436 if eval "$ac_cpp conftest.c 2>/dev/null" \
5437 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5438 libc_cv_signed_size_t=no
5440 libc_cv_signed_size_t=yes
5444 { echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
5445 echo "${ECHO_T}$libc_cv_signed_size_t" >&6; }
5446 if test $libc_cv_signed_size_t = yes; then
5447 cat >> confdefs.h <<\EOF
5448 #undef __SIZE_TYPE__
5449 #define __SIZE_TYPE__ unsigned
5454 { echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
5455 echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6; }
5456 if test "${libc_cv_friendly_stddef+set}" = set; then
5457 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 cat >conftest.$ac_ext <<_ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h. */
5465 #define __need_size_t
5466 #define __need_wchar_t
5473 size_t size; wchar_t wchar;
5475 #error stddef.h ignored __need_*
5477 if (&size == NULL || &wchar == NULL) abort ();
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5485 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5486 *) ac_try_echo
=$ac_try;;
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_compile") 2>conftest.er1
5491 grep -v '^ *+' conftest.er1
>conftest.err
5493 cat conftest.err
>&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } && {
5496 test -z "$ac_c_werror_flag" ||
5497 test ! -s conftest.err
5498 } && test -s conftest.
$ac_objext; then
5499 libc_cv_friendly_stddef
=yes
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.
$ac_ext >&5
5504 libc_cv_friendly_stddef
=no
5507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5509 { echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
5510 echo "${ECHO_T}$libc_cv_friendly_stddef" >&6; }
5511 if test $libc_cv_friendly_stddef = yes; then
5512 config_vars
="$config_vars
5513 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5516 { echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
5517 echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6; }
5518 if test "${libc_cv_need_minus_P+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 cat > conftest.S
<<EOF
5522 #include "confdefs.h"
5523 /* Nothing whatsoever. */
5525 if { ac_try
='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5531 libc_cv_need_minus_P
=no
5533 libc_cv_need_minus_P
=yes
5537 { echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
5538 echo "${ECHO_T}$libc_cv_need_minus_P" >&6; }
5539 if test $libc_cv_need_minus_P = yes; then
5540 config_vars
="$config_vars
5541 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5544 { echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
5545 echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6; }
5546 if test "${libc_cv_dot_text+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 cat > conftest.s
<<EOF
5553 if { ac_try
='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5559 libc_cv_dot_text
=.text
5564 if test -z "$libc_cv_dot_text"; then
5565 { echo "$as_me:$LINENO: result: no" >&5
5566 echo "${ECHO_T}no" >&6; }
5568 { echo "$as_me:$LINENO: result: yes" >&5
5569 echo "${ECHO_T}yes" >&6; }
5572 { echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
5573 echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6; }
5574 if test "${libc_cv_asm_global_directive+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 libc_cv_asm_global_directive
=UNKNOWN
5578 for ac_globl
in .globl .global .EXPORT
; do
5579 cat > conftest.s
<<EOF
5584 if { ac_try
='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; }; then
5590 libc_cv_asm_global_directive
=${ac_globl}
5593 test $libc_cv_asm_global_directive != UNKNOWN
&& break
5596 { echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
5597 echo "${ECHO_T}$libc_cv_asm_global_directive" >&6; }
5598 if test $libc_cv_asm_global_directive = UNKNOWN
; then
5599 { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
5600 echo "$as_me: error: cannot determine asm global directive" >&2;}
5601 { (exit 1); exit 1; }; }
5603 cat >>confdefs.h
<<_ACEOF
5604 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
5609 { echo "$as_me:$LINENO: checking for .set assembler directive" >&5
5610 echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6; }
5611 if test "${libc_cv_asm_set_directive+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 cat > conftest.s
<<EOF
5617 .set glibc_conftest_frobozz,foo
5618 $libc_cv_asm_global_directive glibc_conftest_frobozz
5620 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5621 # (but it doesn't work), so we must do a linking check to be sure.
5622 cat > conftest1.c
<<\EOF
5623 extern int glibc_conftest_frobozz
;
5624 void _start
() { glibc_conftest_frobozz
= 1; }
5626 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5627 -nostartfiles -nostdlib \
5628 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
5629 libc_cv_asm_set_directive
=yes
5631 libc_cv_asm_set_directive
=no
5635 { echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
5636 echo "${ECHO_T}$libc_cv_asm_set_directive" >&6; }
5637 if test $libc_cv_asm_set_directive = yes; then
5638 cat >>confdefs.h
<<\_ACEOF
5639 #define HAVE_ASM_SET_DIRECTIVE 1
5644 { echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
5645 echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6; }
5646 if test "${libc_cv_asm_type_prefix+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 libc_cv_asm_type_prefix
=no
5650 for ac_try_prefix
in '@' '%' '#'; do
5651 cat > conftest.s
<<EOF
5653 ${libc_cv_asm_global_directive} foo
5654 .type foo, ${ac_try_prefix}object
5659 if { ac_try
='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; }; then
5665 libc_cv_asm_type_prefix
=${ac_try_prefix}
5668 test "x$libc_cv_asm_type_prefix" != xno
&& break
5671 { echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
5672 echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6; }
5673 if test "x$libc_cv_asm_type_prefix" != xno
; then
5674 cat >>confdefs.h
<<_ACEOF
5675 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
5680 { echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
5681 echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6; }
5682 if test "${libc_cv_asm_symver_directive+set}" = set; then
5683 echo $ECHO_N "(cached) $ECHO_C" >&6
5685 cat > conftest.s
<<EOF
5688 .symver _sym,sym@VERS
5690 if ${CC-cc} -c $ASFLAGS conftest.s
1>&5 2>&5; then
5691 libc_cv_asm_symver_directive
=yes
5693 libc_cv_asm_symver_directive
=no
5697 { echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
5698 echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6; }
5699 { echo "$as_me:$LINENO: checking for ld --version-script" >&5
5700 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6; }
5701 if test "${libc_cv_ld_version_script_option+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 if test $libc_cv_asm_symver_directive = yes; then
5705 cat > conftest.s
<<EOF
5708 .symver _sym,sym@VERS
5710 cat > conftest.map
<<EOF
5719 if ${CC-cc} -c $ASFLAGS conftest.s
1>&5 2>&5; then
5720 if { ac_try
='${CC-cc} $CFLAGS $LDFLAGS -shared
5721 -o conftest.so conftest.o
5722 -nostartfiles -nostdlib
5723 -Wl,--version-script,conftest.map
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; };
5731 libc_cv_ld_version_script_option
=yes
5733 libc_cv_ld_version_script_option
=no
5736 libc_cv_ld_version_script_option
=no
5739 libc_cv_ld_version_script_option
=no
5743 { echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
5744 echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6; }
5745 if test $shared != no
&&
5746 test $libc_cv_asm_symver_directive = yes &&
5747 test $libc_cv_ld_version_script_option = yes &&
5748 test $enable_versioning = yes; then
5750 cat >>confdefs.h
<<\_ACEOF
5751 #define DO_VERSIONING 1
5759 if test $elf = yes && test $shared != no
&& test $VERSIONING = no
; then
5761 *** WARNING: You should not compile GNU libc without versioning. Not using
5762 *** versioning will introduce incompatibilities so that old binaries
5763 *** will not run anymore.
5764 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
5766 if test $elf = yes; then
5767 { echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
5768 echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6; }
5769 if test "${libc_cv_asm_previous_directive+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 cat > conftest.s
<<EOF
5773 .section foo_section
5776 if { ac_try
='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
5782 libc_cv_asm_previous_directive
=yes
5784 libc_cv_asm_previous_directive
=no
5788 { echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
5789 echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6; }
5790 if test $libc_cv_asm_previous_directive = yes; then
5791 cat >>confdefs.h
<<\_ACEOF
5792 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
5796 { echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
5797 echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6; }
5798 if test "${libc_cv_asm_popsection_directive+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 cat > conftest.s
<<EOF
5802 .pushsection foo_section
5805 if { ac_try
='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; }; then
5811 libc_cv_asm_popsection_directive
=yes
5813 libc_cv_asm_popsection_directive
=no
5817 { echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
5818 echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6; }
5819 if test $libc_cv_asm_popsection_directive = yes; then
5820 cat >>confdefs.h
<<\_ACEOF
5821 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
5826 { echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
5827 echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6; }
5828 if test "${libc_cv_asm_protected_directive+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 cat > conftest.s
<<EOF
5837 if { ac_try
='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; }; then
5843 libc_cv_asm_protected_directive
=yes
5845 { { echo "$as_me:$LINENO: error: assembler support for symbol visibility is required" >&5
5846 echo "$as_me: error: assembler support for symbol visibility is required" >&2;}
5847 { (exit 1); exit 1; }; }
5851 { echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
5852 echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6; }
5854 if test $libc_cv_asm_protected_directive = yes; then
5855 { echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
5856 echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6; }
5857 if test "${libc_cv_visibility_attribute+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 cat > conftest.c
<<EOF
5861 int foo __attribute__ ((visibility ("hidden"))) = 1;
5862 int bar __attribute__ ((visibility ("protected"))) = 1;
5864 libc_cv_visibility_attribute
=no
5865 if { ac_try
='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; }; then
5871 if grep '\.hidden.*foo' conftest.s
>/dev
/null
; then
5872 if grep '\.protected.*bar' conftest.s
>/dev
/null
; then
5873 libc_cv_visibility_attribute
=yes
5880 { echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
5881 echo "${ECHO_T}$libc_cv_visibility_attribute" >&6; }
5882 if test $libc_cv_visibility_attribute != yes; then
5883 { { echo "$as_me:$LINENO: error: compiler support for visibility attribute is required" >&5
5884 echo "$as_me: error: compiler support for visibility attribute is required" >&2;}
5885 { (exit 1); exit 1; }; }
5889 if test $libc_cv_visibility_attribute = yes; then
5890 { echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
5891 echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6; }
5892 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5895 cat > conftest.c
<<EOF
5897 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
5898 int bar (int x) { return x; }
5900 libc_cv_broken_visibility_attribute
=yes
5901 if { ac_try
='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
5902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); }; }; then
5907 if grep '\.hidden[ _]foo' conftest.s
>/dev
/null
; then
5908 libc_cv_broken_visibility_attribute
=no
5911 rm -f conftest.c conftest.s
5914 { echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
5915 echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6; }
5916 if test $libc_cv_broken_visibility_attribute = yes; then
5917 { { echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
5918 echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
5919 { (exit 1); exit 1; }; }
5923 { echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
5924 echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6; }
5925 if test "${libc_cv_broken_alias_attribute+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 cat > conftest.c
<<EOF
5929 extern int foo (int x) __asm ("xyzzy");
5930 int bar (int x) { return x; }
5931 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5933 extern __typeof (dfoo) dfoo __asm ("abccb");
5936 libc_cv_broken_alias_attribute
=yes
5937 if { ac_try
='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 if grep 'xyzzy' conftest.s
>/dev
/null
&&
5944 grep 'abccb' conftest.s
>/dev
/null
; then
5945 libc_cv_broken_alias_attribute
=no
5948 rm -f conftest.c conftest.s
5951 { echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
5952 echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6; }
5953 if test $libc_cv_broken_alias_attribute = yes; then
5954 { { echo "$as_me:$LINENO: error: working alias attribute support required" >&5
5955 echo "$as_me: error: working alias attribute support required" >&2;}
5956 { (exit 1); exit 1; }; }
5959 if test $libc_cv_visibility_attribute = yes; then
5960 { echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
5961 echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6; }
5962 if test "${libc_cv_have_sdata_section+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 echo "int i;" > conftest.c
5966 libc_cv_have_sdata_section
=no
5967 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c
-o conftest.so
2>&1 \
5968 |
grep '\.sdata' >/dev
/null
; then
5969 libc_cv_have_sdata_section
=yes
5971 rm -f conftest.c conftest.so
5974 { echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
5975 echo "${ECHO_T}$libc_cv_have_sdata_section" >&6; }
5976 if test $libc_cv_have_sdata_section = yes; then
5977 cat >>confdefs.h
<<\_ACEOF
5978 #define HAVE_SDATA_SECTION 1
5984 { echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
5985 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6; }
5986 if test "${libc_cv_initfini_array+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 cat > conftest.c
<<EOF
5990 int _start (void) { return 0; }
5991 int __start (void) { return 0; }
5992 int foo (void) { return 1; }
5993 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
5995 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
5996 -static -nostartfiles -nostdlib 1>&5'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }
6003 if readelf
-S conftest | fgrep INIT_ARRAY
> /dev
/null
; then
6004 libc_cv_initfini_array
=yes
6006 libc_cv_initfini_array
=no
6009 libc_cv_initfini_array
=no
6013 { echo "$as_me:$LINENO: result: $libc_cv_initfini_array" >&5
6014 echo "${ECHO_T}$libc_cv_initfini_array" >&6; }
6015 if test $libc_cv_initfini_array != yes; then
6016 { { echo "$as_me:$LINENO: error: Need linker with .init_array/.fini_array support." >&5
6017 echo "$as_me: error: Need linker with .init_array/.fini_array support." >&2;}
6018 { (exit 1); exit 1; }; }
6021 { echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
6022 echo $ECHO_N "checking for libunwind-support in compiler... $ECHO_C" >&6; }
6023 if test "${libc_cv_cc_with_libunwind+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 cat > conftest.c
<<EOF
6028 int main (void) { return 0; }
6030 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6031 conftest.c
-v 2>&1 >/dev
/null |
grep -q " -lunwind "; then
6032 libc_cv_cc_with_libunwind
=yes
6034 libc_cv_cc_with_libunwind
=no
6038 { echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
6039 echo "${ECHO_T}$libc_cv_cc_with_libunwind" >&6; }
6041 if test $libc_cv_cc_with_libunwind = yes; then
6042 cat >>confdefs.h
<<\_ACEOF
6043 #define HAVE_CC_WITH_LIBUNWIND 1
6048 { echo "$as_me:$LINENO: checking for -z nodelete option" >&5
6049 echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6; }
6050 if test "${libc_cv_z_nodelete+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 cat > conftest.c
<<EOF
6054 int _start (void) { return 42; }
6056 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6057 -fPIC -shared -o conftest.so conftest.c
6058 -nostartfiles -nostdlib
6059 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }
6066 libc_cv_z_nodelete
=yes
6068 { { echo "$as_me:$LINENO: error: linker with -z nodelete support required" >&5
6069 echo "$as_me: error: linker with -z nodelete support required" >&2;}
6070 { (exit 1); exit 1; }; }
6074 { echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
6075 echo "${ECHO_T}$libc_cv_z_nodelete" >&6; }
6077 { echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
6078 echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6; }
6079 if test "${libc_cv_z_nodlopen+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 cat > conftest.c
<<EOF
6083 int _start (void) { return 42; }
6085 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6086 -fPIC -shared -o conftest.so conftest.c
6087 -nostartfiles -nostdlib
6088 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }
6095 libc_cv_z_nodlopen
=yes
6097 { { echo "$as_me:$LINENO: error: linker with -z nodlopen support required" >&5
6098 echo "$as_me: error: linker with -z nodlopen support required" >&2;}
6099 { (exit 1); exit 1; }; }
6103 { echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
6104 echo "${ECHO_T}$libc_cv_z_nodlopen" >&6; }
6106 { echo "$as_me:$LINENO: checking for -z initfirst option" >&5
6107 echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6; }
6108 if test "${libc_cv_z_initfirst+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 cat > conftest.c
<<EOF
6112 int _start (void) { return 42; }
6114 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6115 -fPIC -shared -o conftest.so conftest.c
6116 -nostartfiles -nostdlib
6117 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; }
6124 libc_cv_z_initfirst
=yes
6126 { { echo "$as_me:$LINENO: error: linker with -z initfirst support required" >&5
6127 echo "$as_me: error: linker with -z initfirst support required" >&2;}
6128 { (exit 1); exit 1; }; }
6132 { echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
6133 echo "${ECHO_T}$libc_cv_z_initfirst" >&6; }
6135 case "$base_machine" in
6136 i
[34567]86 | x86_64 | powerpc
* | s390
* | sparc
* | alpha
*)
6137 { echo "$as_me:$LINENO: checking for -z relro option" >&5
6138 echo $ECHO_N "checking for -z relro option... $ECHO_C" >&6; }
6139 if test "${libc_cv_z_relro+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 if { ac_try
='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }
6150 if { ac_try
='${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5'
6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; }
6161 { echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
6162 echo "${ECHO_T}$libc_cv_z_relro" >&6; }
6163 if test "$libc_cv_z_relro" = no
; then
6164 { { echo "$as_me:$LINENO: error: linker with -z relro support required" >&5
6165 echo "$as_me: error: linker with -z relro support required" >&2;}
6166 { (exit 1); exit 1; }; }
6172 { echo "$as_me:$LINENO: checking for -Bgroup option" >&5
6173 echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6; }
6174 if test "${libc_cv_Bgroup+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 cat > conftest.c
<<EOF
6178 int _start (void) { return 42; }
6180 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6181 -fPIC -shared -o conftest.so conftest.c
6182 -Wl,-Bgroup -nostdlib 1>&5'
6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; }
6195 { echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
6196 echo "${ECHO_T}$libc_cv_Bgroup" >&6; }
6199 { echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
6200 echo $ECHO_N "checking for libgcc_s suffix... $ECHO_C" >&6; }
6201 if test "${libc_cv_libgcc_s_suffix+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 cat > conftest.c
<<EOF
6205 int main (void) { return 0; }
6207 libc_cv_libgcc_s_suffix
=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6208 -fPIC -shared -shared-libgcc -o conftest.so \
6209 conftest.c -v 2>&1 >/dev/null \
6210 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6213 { echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
6214 echo "${ECHO_T}$libc_cv_libgcc_s_suffix" >&6; }
6217 { echo "$as_me:$LINENO: checking for --as-needed option" >&5
6218 echo $ECHO_N "checking for --as-needed option... $ECHO_C" >&6; }
6219 if test "${libc_cv_as_needed+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 cat > conftest.c
<<EOF
6223 int main (void) { return 0; }
6225 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6226 -fPIC -shared -o conftest.so conftest.c
6227 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; }
6235 libc_cv_as_needed
=yes
6237 libc_cv_as_needed
=no
6241 { echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
6242 echo "${ECHO_T}$libc_cv_as_needed" >&6; }
6246 { echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
6247 echo $ECHO_N "checking whether --noexecstack is desirable for .S files... $ECHO_C" >&6; }
6248 if test "${libc_cv_as_noexecstack+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 cat > conftest.c
<<EOF
6254 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS
6255 -S -o conftest.s conftest.c 1>&5'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; } \
6261 && grep -q .note.GNU-stack conftest.s \
6262 && { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -Wa,--noexecstack
6263 -c -o conftest.o conftest.s 1>&5'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; }
6270 libc_cv_as_noexecstack
=yes
6272 libc_cv_as_noexecstack
=no
6276 { echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
6277 echo "${ECHO_T}$libc_cv_as_noexecstack" >&6; }
6278 if test $libc_cv_as_noexecstack = yes; then
6279 ASFLAGS_config
="$ASFLAGS_config -Wa,--noexecstack"
6283 { echo "$as_me:$LINENO: checking for -z combreloc" >&5
6284 echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6; }
6285 if test "${libc_cv_z_combreloc+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 cat > conftest.c
<<EOF
6289 extern int bar (int);
6291 int foo (void) { return bar (mumble); }
6293 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6294 -fPIC -shared -o conftest.so conftest.c
6295 -nostdlib -nostartfiles
6296 -Wl,-z,combreloc 1>&5'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }
6303 if readelf
-S conftest.so |
grep '\.rel\(a\|\)\.dyn' > /dev
/null
; then
6304 libc_cv_z_combreloc
=yes
6306 libc_cv_z_combreloc
=no
6309 libc_cv_z_combreloc
=no
6313 { echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
6314 echo "${ECHO_T}$libc_cv_z_combreloc" >&6; }
6315 if test "$libc_cv_z_combreloc" = yes; then
6316 cat >>confdefs.h
<<\_ACEOF
6317 #define HAVE_Z_COMBRELOC 1
6323 { echo "$as_me:$LINENO: checking for -z execstack" >&5
6324 echo $ECHO_N "checking for -z execstack... $ECHO_C" >&6; }
6325 if test "${libc_cv_z_execstack+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 cat > conftest.c
<<EOF
6329 int _start (void) { return 42; }
6331 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6332 -fPIC -shared -o conftest.so conftest.c
6333 -Wl,-z,execstack -nostdlib
6335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; }
6341 libc_cv_z_execstack
=yes
6343 libc_cv_z_execstack
=no
6347 { echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
6348 echo "${ECHO_T}$libc_cv_z_execstack" >&6; }
6351 { echo "$as_me:$LINENO: checking for -fpie" >&5
6352 echo $ECHO_N "checking for -fpie... $ECHO_C" >&6; }
6353 if test "${libc_cv_fpie+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 cat > conftest.c
<<EOF
6358 main () { return 0;}
6360 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6361 -o conftest conftest.c 1>&5'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }
6374 { echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
6375 echo "${ECHO_T}$libc_cv_fpie" >&6; }
6379 { echo "$as_me:$LINENO: checking for --hash-style option" >&5
6380 echo $ECHO_N "checking for --hash-style option... $ECHO_C" >&6; }
6381 if test "${libc_cv_hashstyle+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6384 cat > conftest.c
<<EOF
6385 int _start (void) { return 42; }
6387 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6388 -fPIC -shared -o conftest.so conftest.c
6389 -Wl,--hash-style=both -nostdlib 1>&5'
6390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; }
6396 libc_cv_hashstyle
=yes
6398 libc_cv_hashstyle
=no
6402 { echo "$as_me:$LINENO: result: $libc_cv_hashstyle" >&5
6403 echo "${ECHO_T}$libc_cv_hashstyle" >&6; }
6407 { echo "$as_me:$LINENO: checking for -fno-toplevel-reorder" >&5
6408 echo $ECHO_N "checking for -fno-toplevel-reorder... $ECHO_C" >&6; }
6409 if test "${libc_cv_fno_toplevel_reorder+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 cat > conftest.c
<<EOF
6415 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; }
6423 libc_cv_fno_toplevel_reorder
=yes
6425 libc_cv_fno_toplevel_reorder
=no
6429 { echo "$as_me:$LINENO: result: $libc_cv_fno_toplevel_reorder" >&5
6430 echo "${ECHO_T}$libc_cv_fno_toplevel_reorder" >&6; }
6431 if test $libc_cv_fno_toplevel_reorder = yes; then
6432 fno_unit_at_a_time
=-fno-toplevel-reorder
6434 fno_unit_at_a_time
=-fno-unit-at-a-time
6438 { echo "$as_me:$LINENO: checking for -fstack-protector" >&5
6439 echo $ECHO_N "checking for -fstack-protector... $ECHO_C" >&6; }
6440 if test "${libc_cv_ssp+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 cat > conftest.c
<<EOF
6445 main () { return 0;}
6447 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -fstack-protector
6448 -o conftest conftest.c 1>&5'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }
6461 { echo "$as_me:$LINENO: result: $libc_cv_ssp" >&5
6462 echo "${ECHO_T}$libc_cv_ssp" >&6; }
6465 { echo "$as_me:$LINENO: checking for -fgnu89-inline" >&5
6466 echo $ECHO_N "checking for -fgnu89-inline... $ECHO_C" >&6; }
6467 if test "${libc_cv_gnu89_inline+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 cat > conftest.c
<<EOF
6472 #ifdef __GNUC_GNU_INLINE__
6473 main () { return 0;}
6478 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6479 -o conftest.s conftest.c 1>&5'
6480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; }
6486 libc_cv_gnu89_inline
=yes
6488 libc_cv_gnu89_inline
=no
6492 { echo "$as_me:$LINENO: result: $libc_cv_gnu89_inline" >&5
6493 echo "${ECHO_T}$libc_cv_gnu89_inline" >&6; }
6494 if test $libc_cv_gnu89_inline = yes; then
6495 libc_cv_gnu89_inline
=-fgnu89-inline
6497 libc_cv_gnu89_inline
=
6501 if test $elf != yes; then
6502 { echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
6503 echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6; }
6504 if test "${libc_cv_have_initfini+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 cat >conftest.
$ac_ext <<_ACEOF
6510 cat confdefs.h
>>conftest.
$ac_ext
6511 cat >>conftest.
$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6517 asm (".section .init");
6518 asm (".section .fini");
6519 asm ("${libc_cv_dot_text}");
6524 rm -f conftest.
$ac_objext
6525 if { (ac_try
="$ac_compile"
6527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6528 *) ac_try_echo=$ac_try;;
6530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531 (eval "$ac_compile") 2>conftest.er1
6533 grep -v '^ *+' conftest.er1 >conftest.err
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } && {
6538 test -z "$ac_c_werror_flag" ||
6539 test ! -s conftest.err
6540 } && test -s conftest.$ac_objext; then
6541 libc_cv_have_initfini=yes
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6546 libc_cv_have_initfini=no
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551 { echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
6552 echo "${ECHO_T}$libc_cv_have_initfini" >&6; }
6553 if test $libc_cv_have_initfini = yes; then
6554 cat >>confdefs.h <<\_ACEOF
6555 #define HAVE_INITFINI 1
6561 if test $elf = yes; then
6562 { echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
6563 echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6; }
6564 if test "${libc_cv_have_section_quotes+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 cat > conftest.c <<EOF
6568 static const int foo
6569 __attribute__ ((section ("bar"))) = 1;
6571 if ${CC-cc} -S conftest.c -o conftest.s; then
6572 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6573 libc_cv_have_section_quotes=yes
6575 libc_cv_have_section_quotes=no
6578 libc_cv_have_section_quotes=unknown
6583 { echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
6584 echo "${ECHO_T}$libc_cv_have_section_quotes" >&6; }
6585 if test $libc_cv_have_section_quotes = yes; then
6586 cat >>confdefs.h <<\_ACEOF
6587 #define HAVE_SECTION_QUOTES 1
6595 if test $elf = yes; then
6596 libc_cv_asm_underscores=no
6598 if test $ac_cv_prog_cc_works = yes; then
6599 { echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6600 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6; }
6601 if test "${libc_cv_asm_underscores+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 cat >conftest.$ac_ext <<_ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6610 asm ("_glibc_foobar:");
6619 rm -f conftest.$ac_objext conftest$ac_exeext
6620 if { (ac_try="$ac_link"
6622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6623 *) ac_try_echo
=$ac_try;;
6625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6626 (eval "$ac_link") 2>conftest.er1
6628 grep -v '^ *+' conftest.er1
>conftest.err
6630 cat conftest.err
>&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } && {
6633 test -z "$ac_c_werror_flag" ||
6634 test ! -s conftest.err
6635 } && test -s conftest
$ac_exeext &&
6636 $as_test_x conftest
$ac_exeext; then
6637 libc_cv_asm_underscores
=yes
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.
$ac_ext >&5
6642 libc_cv_asm_underscores
=no
6645 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6646 conftest
$ac_exeext conftest.
$ac_ext
6648 { echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
6649 echo "${ECHO_T}$libc_cv_asm_underscores" >&6; }
6651 { echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6652 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6; }
6653 if test "${libc_cv_asm_underscores+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6656 cat > conftest.
$ac_ext <<EOF
6657 #line $LINENO "configure"
6658 #include "confdefs.h"
6659 void underscore_test(void) {
6662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6663 (eval $ac_compile) 2>&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; then
6667 if grep _underscore_test conftest
* >/dev
/null
; then
6669 libc_cv_asm_underscores
=yes
6672 libc_cv_asm_underscores
=no
6675 echo "configure: failed program was:" >&5
6676 cat conftest.
$ac_ext >&5
6678 libc_cv_asm_underscores
=no
6682 { echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
6683 echo "${ECHO_T}$libc_cv_asm_underscores" >&6; }
6686 if test $libc_cv_asm_underscores = no
; then
6687 cat >>confdefs.h
<<\_ACEOF
6688 #define NO_UNDERSCORES 1
6693 if test $elf = yes; then
6694 libc_cv_weak_symbols
=yes
6697 { echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
6698 echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6; }
6699 if test "${libc_cv_asm_weak_directive+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6702 cat > conftest.s
<<EOF
6704 ${libc_cv_asm_global_directive} foo
6707 .weak bar; bar = foo
6709 if { ac_try
='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6715 libc_cv_asm_weak_directive
=yes
6717 libc_cv_asm_weak_directive
=no
6721 { echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
6722 echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6; }
6724 if test $libc_cv_asm_weak_directive = no
; then
6725 { echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
6726 echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6; }
6727 if test "${libc_cv_asm_weakext_directive+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 cat > conftest.s
<<EOF
6732 ${libc_cv_asm_global_directive} foo
6736 ${libc_cv_asm_global_directive} baz
6739 if { ac_try
='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
6745 libc_cv_asm_weakext_directive
=yes
6747 libc_cv_asm_weakext_directive
=no
6751 { echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
6752 echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6; }
6756 if test $libc_cv_asm_weak_directive = yes; then
6757 cat >>confdefs.h
<<\_ACEOF
6758 #define HAVE_ASM_WEAK_DIRECTIVE 1
6761 elif test $libc_cv_asm_weakext_directive = yes; then
6762 cat >>confdefs.h
<<\_ACEOF
6763 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
6768 { echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
6769 echo $ECHO_N "checking whether CFI directives are supported... $ECHO_C" >&6; }
6770 if test "${libc_cv_asm_cfi_directives+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 sparc
/sparc64
*) cfi_offset
=2047;;
6777 cat > conftest.s
<<EOF
6779 .type func,%function
6783 .cfi_rel_offset 1, $cfi_offset
6786 if { ac_try
='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); }; }; then
6792 libc_cv_asm_cfi_directives
=yes
6794 libc_cv_asm_cfi_directives
=no
6798 { echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
6799 echo "${ECHO_T}$libc_cv_asm_cfi_directives" >&6; }
6800 if test $libc_cv_asm_cfi_directives = yes; then
6801 cat >>confdefs.h
<<\_ACEOF
6802 #define HAVE_ASM_CFI_DIRECTIVES 1
6807 { echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
6808 echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6; }
6809 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 cat > conftest.c
<<\EOF
6817 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6818 -nostdlib -nostartfiles -Wl,--no-whole-archive
6819 -o conftest conftest.c 1>&5'
6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; }; then
6825 libc_cv_ld_no_whole_archive
=yes
6827 libc_cv_ld_no_whole_archive
=no
6831 { echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
6832 echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6; }
6833 if test $libc_cv_ld_no_whole_archive = yes; then
6834 no_whole_archive
=-Wl,--no-whole-archive
6837 { echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
6838 echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6; }
6839 if test "${libc_cv_gcc_exceptions+set}" = set; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
6842 cat > conftest.c
<<\EOF
6847 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6848 -nostdlib -nostartfiles -fexceptions
6849 -o conftest conftest.c 1>&5'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6855 libc_cv_gcc_exceptions
=yes
6857 libc_cv_gcc_exceptions
=no
6861 { echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
6862 echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6; }
6863 if test $libc_cv_gcc_exceptions = yes; then
6864 exceptions
=-fexceptions
6867 if test "$host_cpu" = powerpc
; then
6868 # Check for a bug present in at least versions 2.8.x of GCC
6869 # and versions 1.0.x of EGCS.
6870 { echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
6871 echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6; }
6872 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 cat >conftest.
$ac_ext <<_ACEOF
6878 cat confdefs.h
>>conftest.
$ac_ext
6879 cat >>conftest.
$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
6890 rm -f conftest.
$ac_objext
6891 if { (ac_try
="$ac_compile"
6893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6894 *) ac_try_echo=$ac_try;;
6896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6897 (eval "$ac_compile") 2>conftest.er1
6899 grep -v '^ *+' conftest.er1 >conftest.err
6901 cat conftest.err >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } && {
6904 test -z "$ac_c_werror_flag" ||
6905 test ! -s conftest.err
6906 } && test -s conftest.$ac_objext; then
6907 libc_cv_c_asmcr0_bug='no'
6909 echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.$ac_ext >&5
6912 libc_cv_c_asmcr0_bug='yes'
6915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6917 { echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
6918 echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6; }
6919 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
6920 cat >>confdefs.h <<\_ACEOF
6921 #define BROKEN_PPC_ASM_CR0 1
6927 { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
6928 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
6929 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 cat > conftest.c <<EOF
6933 #line $LINENO "configure"
6936 a = __builtin_expect (a, 10);
6937 return a == 10 ? 0 : 1;
6940 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
6941 -o conftest conftest.c -lgcc >&5'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6947 libc_cv_gcc_builtin_expect=yes
6949 libc_cv_gcc_builtin_expect=no
6953 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
6954 echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6; }
6955 if test "$libc_cv_gcc_builtin_expect" = yes; then
6956 cat >>confdefs.h <<\_ACEOF
6957 #define HAVE_BUILTIN_EXPECT 1
6962 { echo "$as_me:$LINENO: checking for __builtin_memset" >&5
6963 echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6; }
6964 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 cat > conftest.c <<\EOF
6970 __builtin_memset (x, 0, 1000);
6973 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
6974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); }; };
6980 libc_cv_gcc_builtin_memset=no
6982 libc_cv_gcc_builtin_memset=yes
6986 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
6987 echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6; }
6988 if test "$libc_cv_gcc_builtin_memset" = yes ; then
6989 cat >>confdefs.h <<\_ACEOF
6990 #define HAVE_BUILTIN_MEMSET 1
6995 { echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
6996 echo $ECHO_N "checking for redirection of built-in functions... $ECHO_C" >&6; }
6997 if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 cat > conftest.c <<\EOF
7001 extern char *strstr (const char *, const char *) __asm ("my_strstr");
7002 char *foo (const char *a, const char *b)
7004 return __builtin_strstr (a, b);
7007 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
7008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); }; };
7014 libc_cv_gcc_builtin_redirection=yes
7016 libc_cv_gcc_builtin_redirection=no
7020 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
7021 echo "${ECHO_T}$libc_cv_gcc_builtin_redirection" >&6; }
7022 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
7023 cat >>confdefs.h <<\_ACEOF
7024 #define HAVE_BUILTIN_REDIRECTION 1
7029 if test "x$use__thread" != xno; then
7030 { echo "$as_me:$LINENO: checking for __thread" >&5
7031 echo $ECHO_N "checking for __thread... $ECHO_C" >&6; }
7032 if test "${libc_cv_gcc___thread+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 cat > conftest.c <<\EOF
7036 __thread int a = 42;
7038 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; }; then
7044 libc_cv_gcc___thread=yes
7046 libc_cv_gcc___thread=no
7050 { echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
7051 echo "${ECHO_T}$libc_cv_gcc___thread" >&6; }
7052 if test "$libc_cv_gcc___thread" = yes; then
7053 cat >>confdefs.h <<\_ACEOF
7054 #define HAVE___THREAD 1
7059 libc_cv_gcc___thread=no
7062 if test "$libc_cv_gcc___thread" = yes; then
7063 { echo "$as_me:$LINENO: checking for tls_model attribute" >&5
7064 echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6; }
7065 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 cat > conftest.c <<\EOF
7069 extern __thread int a __attribute__((tls_model ("initial-exec")));
7071 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7077 libc_cv_gcc_tls_model_attr=yes
7079 libc_cv_gcc_tls_model_attr=no
7083 { echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
7084 echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6; }
7085 if test "$libc_cv_gcc_tls_model_attr" = yes; then
7086 cat >>confdefs.h <<\_ACEOF
7087 #define HAVE_TLS_MODEL_ATTRIBUTE 1
7093 { echo "$as_me:$LINENO: checking for libgd" >&5
7094 echo $ECHO_N "checking for libgd... $ECHO_C" >&6; }
7095 if test "$with_gd" != "no"; then
7096 old_CFLAGS="$CFLAGS"
7097 CFLAGS="$CFLAGS $libgd_include"
7098 old_LDFLAGS="$LDFLAGS"
7099 LDFLAGS="$LDFLAGS $libgd_ldflags"
7101 LIBS="$LIBS -lgd -lpng -lz -lm"
7102 cat >conftest.$ac_ext <<_ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7117 rm -f conftest.$ac_objext conftest$ac_exeext
7118 if { (ac_try="$ac_link"
7120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7121 *) ac_try_echo
=$ac_try;;
7123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7124 (eval "$ac_link") 2>conftest.er1
7126 grep -v '^ *+' conftest.er1
>conftest.err
7128 cat conftest.err
>&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); } && {
7131 test -z "$ac_c_werror_flag" ||
7132 test ! -s conftest.err
7133 } && test -s conftest
$ac_exeext &&
7134 $as_test_x conftest
$ac_exeext; then
7137 echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.
$ac_ext >&5
7143 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7144 conftest
$ac_exeext conftest.
$ac_ext
7145 CFLAGS
="$old_CFLAGS"
7146 LDFLAGS
="$old_LDFLAGS"
7151 { echo "$as_me:$LINENO: result: $LIBGD" >&5
7152 echo "${ECHO_T}$LIBGD" >&6; }
7156 if test x
$with_selinux = xno
; then
7159 # See if we have the SELinux library
7160 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
7161 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
7162 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 ac_check_lib_save_LIBS
=$LIBS
7166 LIBS
="-lselinux $LIBS"
7167 cat >conftest.
$ac_ext <<_ACEOF
7170 cat confdefs.h
>>conftest.
$ac_ext
7171 cat >>conftest.
$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7174 /* Override any GCC internal prototype to avoid an error.
7175 Use char because int might match the return type of a GCC
7176 builtin and then its argument prototype would still apply. */
7180 char is_selinux_enabled ();
7184 return is_selinux_enabled ();
7189 rm -f conftest.
$ac_objext conftest
$ac_exeext
7190 if { (ac_try
="$ac_link"
7192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7193 *) ac_try_echo=$ac_try;;
7195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7196 (eval "$ac_link") 2>conftest.er1
7198 grep -v '^ *+' conftest.er1 >conftest.err
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } && {
7203 test -z "$ac_c_werror_flag" ||
7204 test ! -s conftest.err
7205 } && test -s conftest$ac_exeext &&
7206 $as_test_x conftest$ac_exeext; then
7207 ac_cv_lib_selinux_is_selinux_enabled=yes
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7212 ac_cv_lib_selinux_is_selinux_enabled=no
7215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7216 conftest$ac_exeext conftest.$ac_ext
7217 LIBS=$ac_check_lib_save_LIBS
7219 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7220 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7221 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
7227 # See if we have the SELinux header with the NSCD permissions in it.
7228 if test x$have_selinux = xyes ; then
7229 { echo "$as_me:$LINENO: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7230 echo $ECHO_N "checking for NSCD Flask permissions in selinux/av_permissions.h... $ECHO_C" >&6; }
7231 cat >conftest.$ac_ext <<_ACEOF
7234 cat confdefs.h >>conftest.$ac_ext
7235 cat >>conftest.$ac_ext <<_ACEOF
7236 /* end confdefs.h. */
7237 #include <selinux/av_permissions.h>
7241 #ifdef NSCD__SHMEMHOST
7244 #error NSCD__SHMEMHOST not defined
7250 rm -f conftest.$ac_objext
7251 if { (ac_try="$ac_compile"
7253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7254 *) ac_try_echo
=$ac_try;;
7256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7257 (eval "$ac_compile") 2>conftest.er1
7259 grep -v '^ *+' conftest.er1
>conftest.err
7261 cat conftest.err
>&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } && {
7264 test -z "$ac_c_werror_flag" ||
7265 test ! -s conftest.err
7266 } && test -s conftest.
$ac_objext; then
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.
$ac_ext >&5
7275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7276 { echo "$as_me:$LINENO: result: $have_selinux" >&5
7277 echo "${ECHO_T}$have_selinux" >&6; }
7280 if test x
$with_selinux = xyes
; then
7281 if test x
$have_selinux = xno
; then
7282 { { echo "$as_me:$LINENO: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&5
7283 echo "$as_me: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&2;}
7284 { (exit 1); exit 1; }; }
7288 # Check if we're building with SELinux support.
7289 if test "x$have_selinux" = xyes
; then
7291 cat >>confdefs.h
<<\_ACEOF
7292 #define HAVE_SELINUX 1
7296 # See if we have the libaudit library
7297 { echo "$as_me:$LINENO: checking for audit_log_user_avc_message in -laudit" >&5
7298 echo $ECHO_N "checking for audit_log_user_avc_message in -laudit... $ECHO_C" >&6; }
7299 if test "${ac_cv_lib_audit_audit_log_user_avc_message+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 ac_check_lib_save_LIBS
=$LIBS
7303 LIBS
="-laudit $LIBS"
7304 cat >conftest.
$ac_ext <<_ACEOF
7307 cat confdefs.h
>>conftest.
$ac_ext
7308 cat >>conftest.
$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7311 /* Override any GCC internal prototype to avoid an error.
7312 Use char because int might match the return type of a GCC
7313 builtin and then its argument prototype would still apply. */
7317 char audit_log_user_avc_message ();
7321 return audit_log_user_avc_message ();
7326 rm -f conftest.
$ac_objext conftest
$ac_exeext
7327 if { (ac_try
="$ac_link"
7329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7330 *) ac_try_echo=$ac_try;;
7332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7333 (eval "$ac_link") 2>conftest.er1
7335 grep -v '^ *+' conftest.er1 >conftest.err
7337 cat conftest.err >&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); } && {
7340 test -z "$ac_c_werror_flag" ||
7341 test ! -s conftest.err
7342 } && test -s conftest$ac_exeext &&
7343 $as_test_x conftest$ac_exeext; then
7344 ac_cv_lib_audit_audit_log_user_avc_message=yes
7346 echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7349 ac_cv_lib_audit_audit_log_user_avc_message=no
7352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7353 conftest$ac_exeext conftest.$ac_ext
7354 LIBS=$ac_check_lib_save_LIBS
7356 { echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7357 echo "${ECHO_T}$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7358 if test $ac_cv_lib_audit_audit_log_user_avc_message = yes; then
7364 if test "x$have_libaudit" = xyes; then
7366 cat >>confdefs.h <<\_ACEOF
7367 #define HAVE_LIBAUDIT 1
7373 # See if we have the libcap library
7374 { echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
7375 echo $ECHO_N "checking for cap_init in -lcap... $ECHO_C" >&6; }
7376 if test "${ac_cv_lib_cap_cap_init+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 ac_check_lib_save_LIBS=$LIBS
7381 cat >conftest.$ac_ext <<_ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7388 /* Override any GCC internal prototype to avoid an error.
7389 Use char because int might match the return type of a GCC
7390 builtin and then its argument prototype would still apply. */
7403 rm -f conftest.$ac_objext conftest$ac_exeext
7404 if { (ac_try="$ac_link"
7406 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7407 *) ac_try_echo
=$ac_try;;
7409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7410 (eval "$ac_link") 2>conftest.er1
7412 grep -v '^ *+' conftest.er1
>conftest.err
7414 cat conftest.err
>&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } && {
7417 test -z "$ac_c_werror_flag" ||
7418 test ! -s conftest.err
7419 } && test -s conftest
$ac_exeext &&
7420 $as_test_x conftest
$ac_exeext; then
7421 ac_cv_lib_cap_cap_init
=yes
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.
$ac_ext >&5
7426 ac_cv_lib_cap_cap_init
=no
7429 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7430 conftest
$ac_exeext conftest.
$ac_ext
7431 LIBS
=$ac_check_lib_save_LIBS
7433 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
7434 echo "${ECHO_T}$ac_cv_lib_cap_cap_init" >&6; }
7435 if test $ac_cv_lib_cap_cap_init = yes; then
7441 if test "x$have_libcap" = xyes
; then
7443 cat >>confdefs.h
<<\_ACEOF
7444 #define HAVE_LIBCAP 1
7453 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7454 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7455 if test "${ac_cv_path_GREP+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 # Extract the first word of "grep ggrep" to use in msg output
7459 if test -z "$GREP"; then
7460 set dummy
grep ggrep
; ac_prog_name
=$2
7461 if test "${ac_cv_path_GREP+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 ac_path_GREP_found
=false
7465 # Loop through the user's path and test for each of PROGNAME-LIST
7466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7467 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
7470 test -z "$as_dir" && as_dir
=.
7471 for ac_prog
in grep ggrep
; do
7472 for ac_exec_ext
in '' $ac_executable_extensions; do
7473 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
7474 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
7475 # Check for GNU ac_path_GREP and select it if it is found.
7476 # Check for GNU $ac_path_GREP
7477 case `"$ac_path_GREP" --version 2>&1` in
7479 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
7482 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7485 cat "conftest.in" "conftest.in" >"conftest.tmp"
7486 mv "conftest.tmp" "conftest.in"
7487 cp "conftest.in" "conftest.nl"
7488 echo 'GREP' >> "conftest.nl"
7489 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
7490 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
7491 ac_count
=`expr $ac_count + 1`
7492 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7493 # Best one so far, save it but keep looking for a better one
7494 ac_cv_path_GREP
="$ac_path_GREP"
7495 ac_path_GREP_max
=$ac_count
7497 # 10*(2^10) chars as input seems more than enough
7498 test $ac_count -gt 10 && break
7500 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
7504 $ac_path_GREP_found && break 3
7514 GREP
="$ac_cv_path_GREP"
7515 if test -z "$GREP"; then
7516 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7517 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7518 { (exit 1); exit 1; }; }
7522 ac_cv_path_GREP
=$GREP
7527 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7528 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7529 GREP
="$ac_cv_path_GREP"
7532 { echo "$as_me:$LINENO: checking for egrep" >&5
7533 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7534 if test "${ac_cv_path_EGREP+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
7538 then ac_cv_path_EGREP
="$GREP -E"
7540 # Extract the first word of "egrep" to use in msg output
7541 if test -z "$EGREP"; then
7542 set dummy
egrep; ac_prog_name
=$2
7543 if test "${ac_cv_path_EGREP+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 ac_path_EGREP_found
=false
7547 # Loop through the user's path and test for each of PROGNAME-LIST
7548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7549 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
7552 test -z "$as_dir" && as_dir
=.
7553 for ac_prog
in egrep; do
7554 for ac_exec_ext
in '' $ac_executable_extensions; do
7555 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
7556 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
7557 # Check for GNU ac_path_EGREP and select it if it is found.
7558 # Check for GNU $ac_path_EGREP
7559 case `"$ac_path_EGREP" --version 2>&1` in
7561 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
7564 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7567 cat "conftest.in" "conftest.in" >"conftest.tmp"
7568 mv "conftest.tmp" "conftest.in"
7569 cp "conftest.in" "conftest.nl"
7570 echo 'EGREP' >> "conftest.nl"
7571 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
7572 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
7573 ac_count
=`expr $ac_count + 1`
7574 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7575 # Best one so far, save it but keep looking for a better one
7576 ac_cv_path_EGREP
="$ac_path_EGREP"
7577 ac_path_EGREP_max
=$ac_count
7579 # 10*(2^10) chars as input seems more than enough
7580 test $ac_count -gt 10 && break
7582 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
7586 $ac_path_EGREP_found && break 3
7596 EGREP
="$ac_cv_path_EGREP"
7597 if test -z "$EGREP"; then
7598 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7599 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7600 { (exit 1); exit 1; }; }
7604 ac_cv_path_EGREP
=$EGREP
7610 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7611 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7612 EGREP
="$ac_cv_path_EGREP"
7615 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7616 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7617 if test "${ac_cv_header_stdc+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 cat >conftest.
$ac_ext <<_ACEOF
7623 cat confdefs.h
>>conftest.
$ac_ext
7624 cat >>conftest.
$ac_ext <<_ACEOF
7625 /* end confdefs.h. */
7639 rm -f conftest.
$ac_objext
7640 if { (ac_try
="$ac_compile"
7642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7643 *) ac_try_echo=$ac_try;;
7645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7646 (eval "$ac_compile") 2>conftest.er1
7648 grep -v '^ *+' conftest.er1 >conftest.err
7650 cat conftest.err >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); } && {
7653 test -z "$ac_c_werror_flag" ||
7654 test ! -s conftest.err
7655 } && test -s conftest.$ac_objext; then
7656 ac_cv_header_stdc=yes
7658 echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7661 ac_cv_header_stdc=no
7664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7666 if test $ac_cv_header_stdc = yes; then
7667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7668 cat >conftest.$ac_ext <<_ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7678 $EGREP "memchr" >/dev/null 2>&1; then
7681 ac_cv_header_stdc=no
7687 if test $ac_cv_header_stdc = yes; then
7688 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7689 cat >conftest.$ac_ext <<_ACEOF
7692 cat confdefs.h >>conftest.$ac_ext
7693 cat >>conftest.$ac_ext <<_ACEOF
7694 /* end confdefs.h. */
7698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7699 $EGREP "free" >/dev/null 2>&1; then
7702 ac_cv_header_stdc=no
7708 if test $ac_cv_header_stdc = yes; then
7709 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7710 if test "$cross_compiling" = yes; then
7713 cat >conftest.$ac_ext <<_ACEOF
7716 cat confdefs.h >>conftest.$ac_ext
7717 cat >>conftest.$ac_ext <<_ACEOF
7718 /* end confdefs.h. */
7721 #if ((' ' & 0x0FF) == 0x020)
7722 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7723 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7725 # define ISLOWER(c) \
7726 (('a' <= (c) && (c) <= 'i') \
7727 || ('j' <= (c) && (c) <= 'r') \
7728 || ('s' <= (c) && (c) <= 'z'))
7729 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7732 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7737 for (i = 0; i < 256; i++)
7738 if (XOR (islower (i), ISLOWER (i))
7739 || toupper (i) != TOUPPER (i))
7744 rm -f conftest$ac_exeext
7745 if { (ac_try="$ac_link"
7747 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7748 *) ac_try_echo
=$ac_try;;
7750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751 (eval "$ac_link") 2>&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7755 { (case "(($ac_try" in
7756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760 (eval "$ac_try") 2>&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; }; then
7766 echo "$as_me: program exited with status $ac_status" >&5
7767 echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.$ac_ext >&5
7771 ac_cv_header_stdc=no
7773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7779 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7780 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7781 if test $ac_cv_header_stdc = yes; then
7783 cat >>confdefs.h <<\_ACEOF
7784 #define STDC_HEADERS 1
7789 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7799 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7800 inttypes.h stdint.h unistd.h
7802 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7803 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 cat >conftest.$ac_ext <<_ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h. */
7814 $ac_includes_default
7816 #include <$ac_header>
7818 rm -f conftest.$ac_objext
7819 if { (ac_try="$ac_compile"
7821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7822 *) ac_try_echo
=$ac_try;;
7824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7825 (eval "$ac_compile") 2>conftest.er1
7827 grep -v '^ *+' conftest.er1
>conftest.err
7829 cat conftest.err
>&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } && {
7832 test -z "$ac_c_werror_flag" ||
7833 test ! -s conftest.err
7834 } && test -s conftest.
$ac_objext; then
7835 eval "$as_ac_Header=yes"
7837 echo "$as_me: failed program was:" >&5
7838 sed 's/^/| /' conftest.
$ac_ext >&5
7840 eval "$as_ac_Header=no"
7843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7845 ac_res
=`eval echo '${'$as_ac_Header'}'`
7846 { echo "$as_me:$LINENO: result: $ac_res" >&5
7847 echo "${ECHO_T}$ac_res" >&6; }
7848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7849 cat >>confdefs.h
<<_ACEOF
7850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7858 { echo "$as_me:$LINENO: checking for long double" >&5
7859 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
7860 if test "${ac_cv_type_long_double+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
7863 cat >conftest.
$ac_ext <<_ACEOF
7866 cat confdefs.h
>>conftest.
$ac_ext
7867 cat >>conftest.
$ac_ext <<_ACEOF
7868 /* end confdefs.h. */
7869 $ac_includes_default
7870 typedef long double ac__type_new_;
7874 if ((ac__type_new_ *) 0)
7876 if (sizeof (ac__type_new_))
7882 rm -f conftest.
$ac_objext
7883 if { (ac_try
="$ac_compile"
7885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889 (eval "$ac_compile") 2>conftest.er1
7891 grep -v '^ *+' conftest.er1 >conftest.err
7893 cat conftest.err >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } && {
7896 test -z "$ac_c_werror_flag" ||
7897 test ! -s conftest.err
7898 } && test -s conftest.$ac_objext; then
7899 ac_cv_type_long_double=yes
7901 echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7904 ac_cv_type_long_double=no
7907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7909 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
7910 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
7912 # The cast to long int works around a bug in the HP C Compiler
7913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7914 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7915 # This bug is HP SR number 8606223364.
7916 { echo "$as_me:$LINENO: checking size of long double" >&5
7917 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
7918 if test "${ac_cv_sizeof_long_double+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 if test "$cross_compiling" = yes; then
7922 # Depending upon the size, compute the lo and hi bounds.
7923 cat >conftest.$ac_ext <<_ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7929 $ac_includes_default
7930 typedef long double ac__type_sizeof_;
7934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7941 rm -f conftest.$ac_objext
7942 if { (ac_try="$ac_compile"
7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948 (eval "$ac_compile") 2>conftest.er1
7950 grep -v '^
*+' conftest.er1 >conftest.err
7952 cat conftest.err >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } && {
7955 test -z "$ac_c_werror_flag" ||
7956 test ! -s conftest.err
7957 } && test -s conftest.$ac_objext; then
7960 cat >conftest.$ac_ext <<_ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7966 $ac_includes_default
7967 typedef long double ac__type_sizeof_;
7971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7978 rm -f conftest.$ac_objext
7979 if { (ac_try="$ac_compile"
7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_compile") 2>conftest.er1
7987 grep -v '^
*+' conftest.er1 >conftest.err
7989 cat conftest.err >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } && {
7992 test -z "$ac_c_werror_flag" ||
7993 test ! -s conftest.err
7994 } && test -s conftest.$ac_objext; then
7995 ac_hi=$ac_mid; break
7997 echo "$as_me: failed program was:" >&5
7998 sed 's
/^
/|
/' conftest.$ac_ext >&5
8000 ac_lo=`expr $ac_mid + 1`
8001 if test $ac_lo -le $ac_mid; then
8005 ac_mid=`expr 2 '*' $ac_mid + 1`
8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011 echo "$as_me: failed program was:" >&5
8012 sed 's
/^
/|
/' conftest.$ac_ext >&5
8014 cat >conftest.$ac_ext <<_ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8020 $ac_includes_default
8021 typedef long double ac__type_sizeof_;
8025 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8032 rm -f conftest.$ac_objext
8033 if { (ac_try="$ac_compile"
8035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036 *) ac_try_echo=$ac_try;;
8038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039 (eval "$ac_compile") 2>conftest.er1
8041 grep -v '^
*+' conftest.er1 >conftest.err
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } && {
8046 test -z "$ac_c_werror_flag" ||
8047 test ! -s conftest.err
8048 } && test -s conftest.$ac_objext; then
8051 cat >conftest.$ac_ext <<_ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8057 $ac_includes_default
8058 typedef long double ac__type_sizeof_;
8062 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8069 rm -f conftest.$ac_objext
8070 if { (ac_try="$ac_compile"
8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076 (eval "$ac_compile") 2>conftest.er1
8078 grep -v '^
*+' conftest.er1 >conftest.err
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } && {
8083 test -z "$ac_c_werror_flag" ||
8084 test ! -s conftest.err
8085 } && test -s conftest.$ac_objext; then
8086 ac_lo=$ac_mid; break
8088 echo "$as_me: failed program was:" >&5
8089 sed 's
/^
/|
/' conftest.$ac_ext >&5
8091 ac_hi=`expr '(' $ac_mid ')' - 1`
8092 if test $ac_mid -le $ac_hi; then
8096 ac_mid=`expr 2 '*' $ac_mid`
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 echo "$as_me: failed program was:" >&5
8103 sed 's
/^
/|
/' conftest.$ac_ext >&5
8108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8112 # Binary search between lo and hi bounds.
8113 while test "x$ac_lo" != "x$ac_hi"; do
8114 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8115 cat >conftest.$ac_ext <<_ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8121 $ac_includes_default
8122 typedef long double ac__type_sizeof_;
8126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8133 rm -f conftest.$ac_objext
8134 if { (ac_try="$ac_compile"
8136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137 *) ac_try_echo=$ac_try;;
8139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140 (eval "$ac_compile") 2>conftest.er1
8142 grep -v '^
*+' conftest.er1 >conftest.err
8144 cat conftest.err >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); } && {
8147 test -z "$ac_c_werror_flag" ||
8148 test ! -s conftest.err
8149 } && test -s conftest.$ac_objext; then
8152 echo "$as_me: failed program was:" >&5
8153 sed 's
/^
/|
/' conftest.$ac_ext >&5
8155 ac_lo=`expr '(' $ac_mid ')' + 1`
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8161 ?*) ac_cv_sizeof_long_double=$ac_lo;;
8162 '') if test "$ac_cv_type_long_double" = yes; then
8163 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8164 See \`config.log' for more details.
" >&5
8165 echo "$as_me: error
: cannot compute sizeof
(long double
)
8166 See \
`config.log' for more details." >&2;}
8167 { (exit 77); exit 77; }; }
8169 ac_cv_sizeof_long_double=0
8173 cat >conftest.$ac_ext <<_ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8179 $ac_includes_default
8180 typedef long double ac__type_sizeof_;
8181 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8182 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8189 FILE *f = fopen ("conftest.val", "w");
8192 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8194 long int i = longval ();
8195 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8197 fprintf (f, "%ld\n", i);
8201 unsigned long int i = ulongval ();
8202 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8204 fprintf (f, "%lu\n", i);
8206 return ferror (f) || fclose (f) != 0;
8212 rm -f conftest$ac_exeext
8213 if { (ac_try="$ac_link"
8215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8216 *) ac_try_echo
=$ac_try;;
8218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8219 (eval "$ac_link") 2>&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8223 { (case "(($ac_try" in
8224 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228 (eval "$ac_try") 2>&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; }; then
8232 ac_cv_sizeof_long_double=`cat conftest.val
`
8234 echo "$as_me: program exited with status $ac_status" >&5
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8239 if test "$ac_cv_type_long_double" = yes; then
8240 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8241 See \`config.log
' for more details." >&5
8242 echo "$as_me: error: cannot compute sizeof (long double)
8243 See \`config.log' for more details.
" >&2;}
8244 { (exit 77); exit 77; }; }
8246 ac_cv_sizeof_long_double=0
8249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8253 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_long_double" >&5
8254 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
8258 cat >>confdefs.h <<_ACEOF
8259 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8263 sizeof_long_double=$ac_cv_sizeof_long_double
8266 ### End of automated tests.
8267 ### Now run sysdeps configure fragments.
8269 # They also can set these variables.
8271 ldd_rewrite_script=no
8272 libc_cv_sysconfdir=$sysconfdir
8273 libc_cv_gcc_unwind_find_fde=no
8276 # Iterate over all the sysdep directories we will use, running their
8277 # configure fragments, and looking for a uname implementation.
8279 for dir in $sysnames; do
8282 *) dest=$srcdir/$dir ;;
8284 if test -r $dest/configure; then
8285 { echo "$as_me:$LINENO: result
: running configure fragment
for $dir" >&5
8286 echo "${ECHO_T}running configure fragment
for $dir" >&6; }
8290 if test -z "$uname"; then
8291 if test -r $dest/uname.c ||
8292 test -r $dest/uname.S ||
8293 { test -r $dest/syscalls.list &&
8294 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
8300 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
8301 cat >>confdefs.h <<\_ACEOF
8302 #define EXPORT_UNWIND_FIND_FDE 1
8308 # If we will use the generic uname implementation, we must figure out what
8309 # it will say by examining the system, and write the results in config-name.h.
8310 if test "$uname" = "sysdeps
/generic
"; then
8312 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
8313 if test $uname_sysname != $config_os; then
8314 config_release=`echo $config_os | sed s/$uname_sysname//`
8317 { echo "$as_me:$LINENO: checking OS release
for uname
" >&5
8318 echo $ECHO_N "checking OS release
for uname...
$ECHO_C" >&6; }
8319 if test "${libc_cv_uname_release+set}" = set; then
8320 echo $ECHO_N "(cached
) $ECHO_C" >&6
8322 if test -r /vmunix; then
8323 kernel_id=`strings /vmunix | grep UNIX`
8324 elif test -r /dynix; then
8325 kernel_id=`strings /dynix | grep DYNIX`
8330 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
8331 if test x`echo "$config_release" | sed "s
/^
$kernel_release//"` \
8332 != x$config_release; then
8333 # The configuration release is a substring of the kernel release.
8334 libc_cv_uname_release=$kernel_release
8335 elif test x$config_release != x; then
8336 libc_cv_uname_release=$config_release
8337 elif test x$kernel_release != x; then
8338 libc_cv_uname_release=$kernel_release
8340 libc_cv_uname_release=unknown
8343 { echo "$as_me:$LINENO: result
: $libc_cv_uname_release" >&5
8344 echo "${ECHO_T}$libc_cv_uname_release" >&6; }
8345 uname_release="$libc_cv_uname_release"
8347 { echo "$as_me:$LINENO: checking OS version
for uname
" >&5
8348 echo $ECHO_N "checking OS version
for uname...
$ECHO_C" >&6; }
8349 if test "${libc_cv_uname_version+set}" = set; then
8350 echo $ECHO_N "(cached
) $ECHO_C" >&6
8352 if test -r /vmunix; then
8353 kernel_id=`strings /vmunix | grep UNIX`
8354 elif test -r /dynix; then
8355 kernel_id=`strings /dynix | grep DYNIX`
8360 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
8361 if test -n "$kernel_version"; then
8362 libc_cv_uname_version="$kernel_version"
8364 libc_cv_uname_version=unknown
8367 { echo "$as_me:$LINENO: result
: $libc_cv_uname_version" >&5
8368 echo "${ECHO_T}$libc_cv_uname_version" >&6; }
8369 uname_version="$libc_cv_uname_version"
8371 config_uname=config-name.h:config-name.in
8373 # For non-generic uname, we don't need to create config-name.h at all.
8377 cat >>confdefs.h <<\_ACEOF
8378 #define USE_IN_LIBIO 1
8382 # Test for old glibc 2.0.x headers so that they can be removed properly
8383 # Search only in includedir.
8384 { echo "$as_me:$LINENO: checking
for old glibc
2.0.x headers
" >&5
8385 echo $ECHO_N "checking
for old glibc
2.0.x headers...
$ECHO_C" >&6; }
8386 if eval test -f "${includedir}/elfclass.h
" -a -f "${includedir}/fcntlbits.h
"
8388 old_glibc_headers=yes
8390 old_glibc_headers=no
8392 { echo "$as_me:$LINENO: result
: $old_glibc_headers" >&5
8393 echo "${ECHO_T}$old_glibc_headers" >&6; }
8394 if test ${old_glibc_headers} = yes; then
8395 { echo "$as_me:$LINENO: WARNING
: *** During
\"make install\" old headers from glibc
2.0.x will
" >&5
8396 echo "$as_me: WARNING
: *** During
\"make install\" old headers from glibc
2.0.x will
" >&2;}
8397 { echo "$as_me:$LINENO: WARNING
: *** be removed.
" >&5
8398 echo "$as_me: WARNING
: *** be removed.
" >&2;}
8412 if test $elf = yes; then
8413 cat >>confdefs.h <<\_ACEOF
8418 if test $xcoff = yes; then
8419 cat >>confdefs.h <<\_ACEOF
8420 #define HAVE_XCOFF 1
8427 if test $shared = default; then
8431 { echo "$as_me:$LINENO: checking whether
-fPIC is default
" >&5
8432 echo $ECHO_N "checking whether
-fPIC is default...
$ECHO_C" >&6; }
8433 if test "${pic_default+set}" = set; then
8434 echo $ECHO_N "(cached
) $ECHO_C" >&6
8437 cat > conftest.c <<EOF
8438 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
8439 # error PIC is default.
8442 if eval "${CC-cc} -S conftest.c
2>&5 1>&5"; then
8447 { echo "$as_me:$LINENO: result
: $pic_default" >&5
8448 echo "${ECHO_T}$pic_default" >&6; }
8461 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
8464 config_makefile=Makefile
8467 VERSION=`sed -n -e 's/^#define VERSION "\
([^
"]*\)"/\
1/p
' < $srcdir/version.h`
8468 RELEASE=`sed -n -e 's
/^
#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8472 ac_config_files
="$ac_config_files config.make ${config_makefile} ${config_uname}"
8474 ac_config_commands
="$ac_config_commands default"
8476 cat >confcache
<<\_ACEOF
8477 # This file is a shell script that caches the results of configure
8478 # tests run on this system so they can be shared between configure
8479 # scripts and configure runs, see configure's option --config-cache.
8480 # It is not useful on other systems. If it contains results you don't
8481 # want to keep, you may remove or edit it.
8483 # config.status only pays attention to the cache file if you give it
8484 # the --recheck option to rerun configure.
8486 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8487 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8492 # The following way of writing the cache mishandles newlines in values,
8493 # but we know of no workaround that is simple, portable, and efficient.
8494 # So, we kill variables containing newlines.
8495 # Ultrix sh set writes to stderr and can't be redirected directly,
8496 # and sets the high bit in the cache file unless we assign to the vars.
8498 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8499 eval ac_val
=\$
$ac_var
8503 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8504 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8507 _ | IFS | as_nl
) ;; #(
8508 *) $as_unset $ac_var ;;
8514 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8515 *${as_nl}ac_space
=\
*)
8516 # `set' does not quote correctly, so add quotes (double-quote
8517 # substitution turns \\\\ into \\, and sed turns \\ into \).
8520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8523 # `set' quotes correctly as required by POSIX, so do not add quotes.
8524 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8533 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8535 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8537 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8538 if test -w "$cache_file"; then
8539 test "x$cache_file" != "x/dev/null" &&
8540 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8541 echo "$as_me: updating cache $cache_file" >&6;}
8542 cat confcache
>$cache_file
8544 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8545 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8550 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8551 # Let make expand exec_prefix.
8552 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8554 DEFS
=-DHAVE_CONFIG_H
8558 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8559 # 1. Remove the extension, and $U if already installed.
8560 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8561 ac_i
=`echo "$ac_i" | sed "$ac_script"`
8562 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8563 # will be set to the directory where LIBOBJS objects are built.
8564 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8565 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8569 LTLIBOBJS
=$ac_ltlibobjs
8573 : ${CONFIG_STATUS=./config.status}
8574 ac_clean_files_save
=$ac_clean_files
8575 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8576 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8577 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8578 cat >$CONFIG_STATUS <<_ACEOF
8580 # Generated by $as_me.
8581 # Run this file to recreate the current configuration.
8582 # Compiler output produced by configure, useful for debugging
8583 # configure, is in config.log if it exists.
8588 SHELL=\${CONFIG_SHELL-$SHELL}
8591 cat >>$CONFIG_STATUS <<\_ACEOF
8592 ## --------------------- ##
8593 ## M4sh Initialization. ##
8594 ## --------------------- ##
8596 # Be more Bourne compatible
8597 DUALCASE
=1; export DUALCASE
# for MKS sh
8598 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8601 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8602 # is contrary to our usage. Disable this feature.
8603 alias -g '${1+"$@"}'='"$@"'
8604 setopt NO_GLOB_SUBST
8606 case `(set -o) 2>/dev/null` in
8607 *posix
*) set -o posix
;;
8616 # Avoid depending upon Character Ranges.
8617 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8618 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8619 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8620 as_cr_digits
='0123456789'
8621 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8623 # The user is always right.
8624 if test "${PATH_SEPARATOR+set}" != set; then
8625 echo "#! /bin/sh" >conf$$.sh
8626 echo "exit 0" >>conf$$.sh
8628 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8636 # Support unset when possible.
8637 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
8645 # We need space, tab and new line, in precisely that order. Quoting is
8646 # there to prevent editors from complaining about space-tab.
8647 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8648 # splitting by setting IFS to empty value.)
8653 # Find who we are. Look in the path if we contain no directory separator.
8655 *[\\/]* ) as_myself
=$0 ;;
8656 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8660 test -z "$as_dir" && as_dir
=.
8661 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8667 # We did not find ourselves, most probably we were run as `sh COMMAND'
8668 # in which case we are not to be found in the path.
8669 if test "x$as_myself" = x
; then
8672 if test ! -f "$as_myself"; then
8673 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8674 { (exit 1); exit 1; }
8677 # Work around bugs in pre-3.0 UWIN ksh.
8678 for as_var
in ENV MAIL MAILPATH
8679 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8687 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8688 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8689 LC_TELEPHONE LC_TIME
8691 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8692 eval $as_var=C
; export $as_var
8694 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8698 # Required to use basename.
8699 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8700 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8706 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8707 as_basename
=basename
8713 # Name of the executable.
8714 as_me
=`$as_basename -- "$0" ||
8715 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8716 X"$0" : 'X\(//\)$' \| \
8717 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8719 sed '/^.*\/\([^/][^/]*\)\/*$/{
8740 test "x$as_lineno_1" != "x$as_lineno_2" &&
8741 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
8743 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8744 # uniformly replaced by the line number. The first 'sed' inserts a
8745 # line-number line after each line using $LINENO; the second 'sed'
8746 # does the real work. The second script uses 'N' to pair each
8747 # line-number line with the line containing $LINENO, and appends
8748 # trailing '-' during substitution so that $LINENO is not a special
8750 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8751 # scripts with optimization help from Paolo Bonzini. Blame Lee
8752 # E. McMahon (1931-1989) for sed's syntax. :-)
8764 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8768 chmod +x
"$as_me.lineno" ||
8769 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8770 { (exit 1); exit 1; }; }
8772 # Don't try to exec as it changes $[0], causing all sort of problems
8773 # (the dirname of $[0] is not the place where we might find the
8774 # original and so on. Autoconf is especially sensitive to this).
8776 # Exit status is that of the last command.
8781 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8787 ECHO_C
= ECHO_N
= ECHO_T
=
8790 case `echo 'x\c'` in
8791 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8798 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8799 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8805 rm -f conf$$ conf$$.exe conf$$.
file
8806 if test -d conf$$.dir
; then
8807 rm -f conf$$.dir
/conf$$.
file
8813 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8815 # ... but there are two gotchas:
8816 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8817 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8818 # In both cases, we have to default to `cp -p'.
8819 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8821 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8826 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8827 rmdir conf$$.dir
2>/dev
/null
8829 if mkdir
-p .
2>/dev
/null
; then
8832 test -d .
/-p && rmdir .
/-p
8836 if test -x / >/dev
/null
2>&1; then
8839 if ls -dL / >/dev
/null
2>&1; then
8846 if test -d "$1"; then
8852 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8853 ???[sx]*):;;*)false;;esac;fi
8857 as_executable_p
=$as_test_x
8859 # Sed expression to map a string onto a valid CPP name.
8860 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8862 # Sed expression to map a string onto a valid variable name.
8863 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8868 # Save the log message, to keep $[0] and so on meaningful, and to
8869 # report actual input values of CONFIG_FILES etc. instead of their
8870 # values after options handling.
8872 This file was extended by GNU C Library $as_me (see version.h), which was
8873 generated by GNU Autoconf 2.61. Invocation command line was
8875 CONFIG_FILES = $CONFIG_FILES
8876 CONFIG_HEADERS = $CONFIG_HEADERS
8877 CONFIG_LINKS = $CONFIG_LINKS
8878 CONFIG_COMMANDS = $CONFIG_COMMANDS
8881 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8886 cat >>$CONFIG_STATUS <<_ACEOF
8887 # Files that config.status was made for.
8888 config_files="$ac_config_files"
8889 config_headers="$ac_config_headers"
8890 config_commands="$ac_config_commands"
8894 cat >>$CONFIG_STATUS <<\_ACEOF
8896 \`$as_me' instantiates files from templates according to the
8897 current configuration.
8899 Usage: $0 [OPTIONS] [FILE]...
8901 -h, --help print this help, then exit
8902 -V, --version print version number and configuration settings, then exit
8903 -q, --quiet do not print progress messages
8904 -d, --debug don't remove temporary files
8905 --recheck update $as_me by reconfiguring in the same conditions
8906 --file=FILE[:TEMPLATE]
8907 instantiate the configuration file FILE
8908 --header=FILE[:TEMPLATE]
8909 instantiate the configuration header FILE
8911 Configuration files:
8914 Configuration headers:
8917 Configuration commands:
8920 Report bugs to <bug-autoconf@gnu.org>."
8923 cat >>$CONFIG_STATUS <<_ACEOF
8925 GNU C Library config.status (see version.h)
8926 configured by $0, generated by GNU Autoconf 2.61,
8927 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8929 Copyright (C) 2006 Free Software Foundation, Inc.
8930 This config.status script is free software; the Free Software Foundation
8931 gives unlimited permission to copy, distribute and modify it."
8938 cat >>$CONFIG_STATUS <<\_ACEOF
8939 # If no file are specified by the user, then we need to provide default
8940 # value. By we need to know if files were specified by the user.
8946 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8947 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8958 # Handling of the options.
8959 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8961 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8962 echo "$ac_cs_version"; exit ;;
8963 --debug |
--debu |
--deb |
--de |
--d |
-d )
8965 --file |
--fil |
--fi |
--f )
8967 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8968 ac_need_defaults
=false
;;
8969 --header |
--heade |
--head |
--hea )
8971 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8972 ac_need_defaults
=false
;;
8974 # Conflict between --help and --header
8975 { echo "$as_me: error: ambiguous option: $1
8976 Try \`$0 --help' for more information." >&2
8977 { (exit 1); exit 1; }; };;
8978 --help |
--hel |
-h )
8979 echo "$ac_cs_usage"; exit ;;
8980 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8981 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8985 -*) { echo "$as_me: error: unrecognized option: $1
8986 Try \`$0 --help' for more information." >&2
8987 { (exit 1); exit 1; }; } ;;
8989 *) ac_config_targets
="$ac_config_targets $1"
8990 ac_need_defaults
=false
;;
8996 ac_configure_extra_args
=
8998 if $ac_cs_silent; then
9000 ac_configure_extra_args
="$ac_configure_extra_args --silent"
9004 cat >>$CONFIG_STATUS <<_ACEOF
9005 if \$ac_cs_recheck; then
9006 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9009 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9013 cat >>$CONFIG_STATUS <<\_ACEOF
9017 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9018 ## Running $as_me. ##
9024 cat >>$CONFIG_STATUS <<_ACEOF
9028 config_vars='$config_vars'
9032 cat >>$CONFIG_STATUS <<\_ACEOF
9034 # Handling of arguments.
9035 for ac_config_target
in $ac_config_targets
9037 case $ac_config_target in
9038 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
9039 "config.make") CONFIG_FILES
="$CONFIG_FILES config.make" ;;
9040 "${config_makefile}") CONFIG_FILES
="$CONFIG_FILES ${config_makefile}" ;;
9041 "${config_uname}") CONFIG_FILES
="$CONFIG_FILES ${config_uname}" ;;
9042 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
9044 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9045 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9046 { (exit 1); exit 1; }; };;
9051 # If the user did not use the arguments to specify the items to instantiate,
9052 # then the envvar interface is used. Set only those that are not.
9053 # We use the long form for the default assignment because of an extremely
9054 # bizarre bug on SunOS 4.1.3.
9055 if $ac_need_defaults; then
9056 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
9057 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
9058 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
9061 # Have a temporary directory for convenience. Make it in the build tree
9062 # simply because there is no reason against having it here, and in addition,
9063 # creating and moving files from /tmp can sometimes cause problems.
9064 # Hook for its removal unless debugging.
9065 # Note that there is a small window in which the directory will not be cleaned:
9066 # after its creation but before its name has been assigned to `$tmp'.
9070 trap 'exit_status=$?
9071 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9073 trap '{ (exit 1); exit 1; }' 1 2 13 15
9075 # Create a (secure) tmp directory for tmp files.
9078 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9079 test -n "$tmp" && test -d "$tmp"
9082 tmp
=.
/conf$$
-$RANDOM
9083 (umask 077 && mkdir
"$tmp")
9086 echo "$me: cannot create a temporary directory in ." >&2
9087 { (exit 1); exit 1; }
9091 # Set up the sed scripts for CONFIG_FILES section.
9094 # No need to generate the scripts if there are no CONFIG_FILES.
9095 # This happens for instance when ./config.status config.h
9096 if test -n "$CONFIG_FILES"; then
9103 for ac_last_try
in false false false false false
:; do
9104 cat >conf$
$subs.
sed <<_ACEOF
9105 SHELL!$SHELL$ac_delim
9106 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9107 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9108 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9109 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9110 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9111 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9112 exec_prefix!$exec_prefix$ac_delim
9113 prefix!$prefix$ac_delim
9114 program_transform_name!$program_transform_name$ac_delim
9115 bindir!$bindir$ac_delim
9116 sbindir!$sbindir$ac_delim
9117 libexecdir!$libexecdir$ac_delim
9118 datarootdir!$datarootdir$ac_delim
9119 datadir!$datadir$ac_delim
9120 sysconfdir!$sysconfdir$ac_delim
9121 sharedstatedir!$sharedstatedir$ac_delim
9122 localstatedir!$localstatedir$ac_delim
9123 includedir!$includedir$ac_delim
9124 oldincludedir!$oldincludedir$ac_delim
9125 docdir!$docdir$ac_delim
9126 infodir!$infodir$ac_delim
9127 htmldir!$htmldir$ac_delim
9128 dvidir!$dvidir$ac_delim
9129 pdfdir!$pdfdir$ac_delim
9130 psdir!$psdir$ac_delim
9131 libdir!$libdir$ac_delim
9132 localedir!$localedir$ac_delim
9133 mandir!$mandir$ac_delim
9135 ECHO_C!$ECHO_C$ac_delim
9136 ECHO_N!$ECHO_N$ac_delim
9137 ECHO_T!$ECHO_T$ac_delim
9139 build_alias!$build_alias$ac_delim
9140 host_alias!$host_alias$ac_delim
9141 target_alias!$target_alias$ac_delim
9142 with_fp!$with_fp$ac_delim
9143 with_cvs!$with_cvs$ac_delim
9144 enable_check_abi!$enable_check_abi$ac_delim
9145 oldest_abi!$oldest_abi$ac_delim
9146 bindnow!$bindnow$ac_delim
9147 force_install!$force_install$ac_delim
9148 all_warnings!$all_warnings$ac_delim
9149 build!$build$ac_delim
9150 build_cpu!$build_cpu$ac_delim
9151 build_vendor!$build_vendor$ac_delim
9152 build_os!$build_os$ac_delim
9154 host_cpu!$host_cpu$ac_delim
9155 host_vendor!$host_vendor$ac_delim
9156 host_os!$host_os$ac_delim
9157 subdirs!$subdirs$ac_delim
9158 add_ons!$add_ons$ac_delim
9159 add_on_subdirs!$add_on_subdirs$ac_delim
9160 base_machine!$base_machine$ac_delim
9161 submachine!$submachine$ac_delim
9162 sysnames!$sysnames$ac_delim
9163 sysdeps_add_ons!$sysdeps_add_ons$ac_delim
9164 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9165 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9166 INSTALL_DATA!$INSTALL_DATA$ac_delim
9169 CFLAGS!$CFLAGS$ac_delim
9170 LDFLAGS!$LDFLAGS$ac_delim
9171 CPPFLAGS!$CPPFLAGS$ac_delim
9172 ac_ct_CC!$ac_ct_CC$ac_delim
9173 OBJEXT!$OBJEXT$ac_delim
9174 BUILD_CC!$BUILD_CC$ac_delim
9175 cross_compiling!$cross_compiling$ac_delim
9178 CXXFLAGS!$CXXFLAGS$ac_delim
9179 ac_ct_CXX!$ac_ct_CXX$ac_delim
9181 OBJDUMP!$OBJDUMP$ac_delim
9182 RANLIB!$RANLIB$ac_delim
9186 PWD_P!$PWD_P$ac_delim
9188 MSGFMT!$MSGFMT$ac_delim
9189 MAKEINFO!$MAKEINFO$ac_delim
9191 AUTOCONF!$AUTOCONF$ac_delim
9192 SYSINCLUDES!$SYSINCLUDES$ac_delim
9193 CXX_SYSINCLUDES!$CXX_SYSINCLUDES$ac_delim
9194 libc_cv_gcc_static_libgcc!$libc_cv_gcc_static_libgcc$ac_delim
9195 BASH_SHELL!$BASH_SHELL$ac_delim
9196 libc_cv_have_bash2!$libc_cv_have_bash2$ac_delim
9198 libc_cv_have_ksh!$libc_cv_have_ksh$ac_delim
9201 INSTALL_INFO!$INSTALL_INFO$ac_delim
9204 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
9206 elif $ac_last_try; then
9207 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9208 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9209 { (exit 1); exit 1; }; }
9211 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
9215 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9216 if test -n "$ac_eof"; then
9217 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
9218 ac_eof
=`expr $ac_eof + 1`
9221 cat >>$CONFIG_STATUS <<_ACEOF
9222 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9223 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9226 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9227 s/^/s,@/; s/!/@,|#_!!_#|/
9230 s/'"$ac_delim"'$/,g/; t
9232 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9233 ' >>$CONFIG_STATUS <conf$
$subs.
sed
9234 rm -f conf$
$subs.
sed
9235 cat >>$CONFIG_STATUS <<_ACEOF
9241 for ac_last_try
in false false false false false
:; do
9242 cat >conf$
$subs.
sed <<_ACEOF
9243 BISON!$BISON$ac_delim
9244 VERSIONING!$VERSIONING$ac_delim
9245 libc_cv_cc_with_libunwind!$libc_cv_cc_with_libunwind$ac_delim
9246 libc_cv_Bgroup!$libc_cv_Bgroup$ac_delim
9247 libc_cv_libgcc_s_suffix!$libc_cv_libgcc_s_suffix$ac_delim
9248 libc_cv_as_needed!$libc_cv_as_needed$ac_delim
9249 ASFLAGS_config!$ASFLAGS_config$ac_delim
9250 libc_cv_z_combreloc!$libc_cv_z_combreloc$ac_delim
9251 libc_cv_z_execstack!$libc_cv_z_execstack$ac_delim
9252 libc_cv_fpie!$libc_cv_fpie$ac_delim
9253 libc_cv_hashstyle!$libc_cv_hashstyle$ac_delim
9254 fno_unit_at_a_time!$fno_unit_at_a_time$ac_delim
9255 libc_cv_ssp!$libc_cv_ssp$ac_delim
9256 libc_cv_gnu89_inline!$libc_cv_gnu89_inline$ac_delim
9257 libc_cv_have_initfini!$libc_cv_have_initfini$ac_delim
9258 no_whole_archive!$no_whole_archive$ac_delim
9259 exceptions!$exceptions$ac_delim
9260 LIBGD!$LIBGD$ac_delim
9261 have_libaudit!$have_libaudit$ac_delim
9262 have_libcap!$have_libcap$ac_delim
9263 have_selinux!$have_selinux$ac_delim
9265 EGREP!$EGREP$ac_delim
9266 sizeof_long_double!$sizeof_long_double$ac_delim
9267 libc_cv_gcc_unwind_find_fde!$libc_cv_gcc_unwind_find_fde$ac_delim
9268 uname_sysname!$uname_sysname$ac_delim
9269 uname_release!$uname_release$ac_delim
9270 uname_version!$uname_version$ac_delim
9271 old_glibc_headers!$old_glibc_headers$ac_delim
9272 libc_cv_slibdir!$libc_cv_slibdir$ac_delim
9273 libc_cv_localedir!$libc_cv_localedir$ac_delim
9274 libc_cv_sysconfdir!$libc_cv_sysconfdir$ac_delim
9275 libc_cv_rootsbindir!$libc_cv_rootsbindir$ac_delim
9276 libc_cv_forced_unwind!$libc_cv_forced_unwind$ac_delim
9277 use_ldconfig!$use_ldconfig$ac_delim
9278 ldd_rewrite_script!$ldd_rewrite_script$ac_delim
9280 xcoff!$xcoff$ac_delim
9281 static!$static$ac_delim
9282 shared!$shared$ac_delim
9283 pic_default!$pic_default$ac_delim
9284 profile!$profile$ac_delim
9285 omitfp!$omitfp$ac_delim
9286 bounded!$bounded$ac_delim
9287 static_nss!$static_nss$ac_delim
9288 nopic_initfini!$nopic_initfini$ac_delim
9289 DEFINES!$DEFINES$ac_delim
9290 mach_interface_list!$mach_interface_list$ac_delim
9291 VERSION!$VERSION$ac_delim
9292 RELEASE!$RELEASE$ac_delim
9293 LIBOBJS!$LIBOBJS$ac_delim
9294 LTLIBOBJS!$LTLIBOBJS$ac_delim
9297 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then
9299 elif $ac_last_try; then
9300 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9301 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9302 { (exit 1); exit 1; }; }
9304 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
9308 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9309 if test -n "$ac_eof"; then
9310 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
9311 ac_eof
=`expr $ac_eof + 1`
9314 cat >>$CONFIG_STATUS <<_ACEOF
9315 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
9316 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9319 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9320 s/^/s,@/; s/!/@,|#_!!_#|/
9323 s/'"$ac_delim"'$/,g/; t
9325 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9326 ' >>$CONFIG_STATUS <conf$
$subs.
sed
9327 rm -f conf$
$subs.
sed
9328 cat >>$CONFIG_STATUS <<_ACEOF
9335 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9336 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9337 # trailing colons and then remove the whole line if VPATH becomes empty
9338 # (actually we leave an empty line to preserve line numbers).
9339 if test "x$srcdir" = x.
; then
9340 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
9344 s/^\([^=]*=[ ]*\):*/\1/
9350 cat >>$CONFIG_STATUS <<\_ACEOF
9351 fi # test -n "$CONFIG_FILES"
9354 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
9357 :[FHLC
]) ac_mode
=$ac_tag; continue;;
9359 case $ac_mode$ac_tag in
9361 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9362 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9363 { (exit 1); exit 1; }; };;
9364 :[FH
]-) ac_tag
=-:-;;
9365 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
9382 -) ac_f
="$tmp/stdin";;
9383 *) # Look for the file first in the build tree, then in the source tree
9384 # (if the path is not absolute). The absolute path cannot be DOS-style,
9385 # because $ac_f cannot contain `:'.
9389 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
9391 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9392 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9393 { (exit 1); exit 1; }; };;
9395 ac_file_inputs
="$ac_file_inputs $ac_f"
9398 # Let's still pretend it is `configure' which instantiates (i.e., don't
9399 # use $as_me), people would be surprised to read:
9400 # /* config.h. Generated by config.status. */
9401 configure_input
="Generated from "`IFS=:
9402 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9403 if test x
"$ac_file" != x-
; then
9404 configure_input
="$ac_file. $configure_input"
9405 { echo "$as_me:$LINENO: creating $ac_file" >&5
9406 echo "$as_me: creating $ac_file" >&6;}
9410 *:-:* |
*:-) cat >"$tmp/stdin";;
9415 ac_dir
=`$as_dirname -- "$ac_file" ||
9416 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9417 X"$ac_file" : 'X\(//\)[^/]' \| \
9418 X"$ac_file" : 'X\(//\)$' \| \
9419 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9440 -*) as_dir
=.
/$as_dir;;
9442 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
9446 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9447 *) as_qdir
=$as_dir;;
9449 as_dirs
="'$as_qdir' $as_dirs"
9450 as_dir
=`$as_dirname -- "$as_dir" ||
9451 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9452 X"$as_dir" : 'X\(//\)[^/]' \| \
9453 X"$as_dir" : 'X\(//\)$' \| \
9454 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9473 test -d "$as_dir" && break
9475 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9476 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9477 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9478 { (exit 1); exit 1; }; }; }
9482 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9484 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9485 # A ".." for each directory in $ac_dir_suffix.
9486 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9487 case $ac_top_builddir_sub in
9488 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9489 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9492 ac_abs_top_builddir
=$ac_pwd
9493 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9494 # for backward compatibility:
9495 ac_top_builddir
=$ac_top_build_prefix
9498 .
) # We are building in place.
9500 ac_top_srcdir
=$ac_top_builddir_sub
9501 ac_abs_top_srcdir
=$ac_pwd ;;
9502 [\\/]* | ?
:[\\/]* ) # Absolute name.
9503 ac_srcdir
=$srcdir$ac_dir_suffix;
9504 ac_top_srcdir
=$srcdir
9505 ac_abs_top_srcdir
=$srcdir ;;
9507 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9508 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9509 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9511 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9521 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9522 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9526 cat >>$CONFIG_STATUS <<\_ACEOF
9527 # If the template does not know about datarootdir, expand it.
9528 # FIXME: This hack should be removed a few years after 2.60.
9529 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9531 case `sed -n '/datarootdir/ {
9540 ' $ac_file_inputs` in
9541 *datarootdir
*) ac_datarootdir_seen
=yes;;
9542 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9543 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9544 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9546 cat >>$CONFIG_STATUS <<_ACEOF
9547 ac_datarootdir_hack='
9548 s&@datadir@&$datadir&g
9549 s&@docdir@&$docdir&g
9550 s&@infodir@&$infodir&g
9551 s&@localedir@&$localedir&g
9552 s&@mandir@&$mandir&g
9553 s&\\\${datarootdir}&$datarootdir&g' ;;
9557 # Neutralize VPATH when `$srcdir' = `.'.
9558 # Shell code in configure.ac might set extrasub.
9559 # FIXME: do we really want to maintain this feature?
9560 cat >>$CONFIG_STATUS <<_ACEOF
9564 cat >>$CONFIG_STATUS <<\_ACEOF
9566 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9567 s
&@configure_input@
&$configure_input&;t t
9568 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9569 s
&@srcdir@
&$ac_srcdir&;t t
9570 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9571 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9572 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9573 s
&@builddir@
&$ac_builddir&;t t
9574 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9575 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9576 s
&@INSTALL@
&$ac_INSTALL&;t t
9577 $ac_datarootdir_hack
9578 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
9580 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9581 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
9582 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
9583 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9584 which seems to be undefined. Please make sure it is defined." >&5
9585 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9586 which seems to be undefined. Please make sure it is defined." >&2;}
9590 -) cat "$tmp/out"; rm -f "$tmp/out";;
9591 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9600 # Transform confdefs.h into a sed script `conftest.defines', that
9601 # substitutes the proper values into config.h.in to produce config.h.
9602 rm -f conftest.defines conftest.
tail
9603 # First, append a space to every undef/define line, to ease matching.
9604 echo 's/$/ /' >conftest.defines
9605 # Then, protect against being on the right side of a sed subst, or in
9606 # an unquoted here document, in config.status. If some macros were
9607 # called several times there might be several #defines for the same
9608 # symbol, which is useless. But do not sort them, since the last
9609 # AC_DEFINE must be honored.
9610 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
9611 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9612 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9613 # PARAMS is the parameter list in the macro definition--in most cases, it's
9614 # just an empty string.
9615 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9616 ac_dB
='\\)[ (].*,\\1define\\2'
9624 s/^[ ]*#[ ]*define[ ][ ]*//
9629 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9630 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9631 ' >>conftest.defines
9633 # Remove the space that was appended to ease matching.
9634 # Then replace #undef with comments. This is necessary, for
9635 # example, in the case of _POSIX_SOURCE, which is predefined and required
9636 # on some systems where configure will not decide to define it.
9637 # (The regexp can be short, since the line contains either #define or #undef.)
9639 s,^[ #]*u.*,/* & */,' >>conftest.defines
9641 # Break up conftest.defines:
9644 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9645 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9646 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9648 ac_in
='$ac_file_inputs'
9649 ac_out
='"$tmp/out1"'
9650 ac_nxt
='"$tmp/out2"'
9654 # Write a here document:
9655 cat >>$CONFIG_STATUS <<_ACEOF
9656 # First, check the format of the line:
9657 cat >"\$tmp/defines.sed" <<\\CEOF
9658 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9659 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9663 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
9665 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9666 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
9667 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
9668 grep . conftest.
tail >/dev
/null ||
break
9669 rm -f conftest.defines
9670 mv conftest.
tail conftest.defines
9672 rm -f conftest.defines conftest.
tail
9674 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9675 cat >>$CONFIG_STATUS <<\_ACEOF
9676 if test x
"$ac_file" != x-
; then
9677 echo "/* $configure_input */" >"$tmp/config.h"
9678 cat "$ac_result" >>"$tmp/config.h"
9679 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
9680 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9681 echo "$as_me: $ac_file is unchanged" >&6;}
9684 mv "$tmp/config.h" $ac_file
9687 echo "/* $configure_input */"
9693 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9694 echo "$as_me: executing $ac_file commands" >&6;}
9699 case $ac_file$ac_mode in
9701 case $CONFIG_FILES in *config.
make*)
9702 echo "$config_vars" >> config.
make;;
9704 test -d bits || mkdir bits
;;
9710 { (exit 0); exit 0; }
9712 chmod +x
$CONFIG_STATUS
9713 ac_clean_files
=$ac_clean_files_save
9716 # configure is writing to config.log, and then calls config.status.
9717 # config.status does its own redirection, appending to config.log.
9718 # Unfortunately, on DOS this fails, as config.log is still kept open
9719 # by configure, so config.status won't be able to write to it; its
9720 # output is simply discarded. So we exec the FD to /dev/null,
9721 # effectively closing config.log, so it can be properly (re)opened and
9722 # appended to by config.status. When coming back to configure, we
9723 # need to make the FD available again.
9724 if test "$no_create" != yes; then
9726 ac_config_status_args
=
9727 test "$silent" = yes &&
9728 ac_config_status_args
="$ac_config_status_args --quiet"
9730 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9732 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9733 # would make configure fail if this is the last instruction.
9734 $ac_cs_success ||
{ (exit 1); exit 1; }
9738 # CONFIG_SUBDIRS section.
9740 if test "$no_recursion" != yes; then
9742 # Remove --cache-file and --srcdir arguments so they do not pile up.
9743 ac_sub_configure_args
=
9745 eval "set x $ac_configure_args"
9749 if test -n "$ac_prev"; then
9754 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
9755 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
9756 ac_prev
=cache_file
;;
9757 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
9758 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
9761 --config-cache |
-C)
9763 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
9765 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
9767 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
9769 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
9773 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9775 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
9779 # Always prepend --prefix to ensure using the same prefix
9780 # in subdir configurations.
9781 ac_arg
="--prefix=$prefix"
9783 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9785 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
9788 if test "$silent" = yes; then
9789 ac_sub_configure_args
="--silent $ac_sub_configure_args"
9793 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
9795 # Do not complain, so a configure script can configure whichever
9796 # parts of a large source tree are present.
9797 test -d "$srcdir/$ac_dir" ||
continue
9799 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9800 echo "$as_me:$LINENO: $ac_msg" >&5
9804 -*) as_dir
=.
/$as_dir;;
9806 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
9810 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9811 *) as_qdir
=$as_dir;;
9813 as_dirs
="'$as_qdir' $as_dirs"
9814 as_dir
=`$as_dirname -- "$as_dir" ||
9815 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9816 X"$as_dir" : 'X\(//\)[^/]' \| \
9817 X"$as_dir" : 'X\(//\)$' \| \
9818 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9837 test -d "$as_dir" && break
9839 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
9840 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9841 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9842 { (exit 1); exit 1; }; }; }
9846 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9848 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9849 # A ".." for each directory in $ac_dir_suffix.
9850 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9851 case $ac_top_builddir_sub in
9852 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9853 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9856 ac_abs_top_builddir
=$ac_pwd
9857 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9858 # for backward compatibility:
9859 ac_top_builddir
=$ac_top_build_prefix
9862 .
) # We are building in place.
9864 ac_top_srcdir
=$ac_top_builddir_sub
9865 ac_abs_top_srcdir
=$ac_pwd ;;
9866 [\\/]* | ?
:[\\/]* ) # Absolute name.
9867 ac_srcdir
=$srcdir$ac_dir_suffix;
9868 ac_top_srcdir
=$srcdir
9869 ac_abs_top_srcdir
=$srcdir ;;
9871 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9872 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9873 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9875 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9880 # Check for guested configure; otherwise get Cygnus style configure.
9881 if test -f "$ac_srcdir/configure.gnu"; then
9882 ac_sub_configure
=$ac_srcdir/configure.gnu
9883 elif test -f "$ac_srcdir/configure"; then
9884 ac_sub_configure
=$ac_srcdir/configure
9885 elif test -f "$ac_srcdir/configure.in"; then
9886 # This should be Cygnus configure.
9887 ac_sub_configure
=$ac_aux_dir/configure
9889 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
9890 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9894 # The recursion is here.
9895 if test -n "$ac_sub_configure"; then
9896 # Make the cache file name correct relative to the subdirectory.
9898 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
9900 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
9903 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9904 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9905 # The eval makes quoting arguments work.
9906 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9907 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9908 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
9909 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9910 { (exit 1); exit 1; }; }