* resolv/resolv.h (RES_SNGLKUP): Define.
[glibc.git] / configure
blobfe08e232e91db20c83e84aa0ba8eb0ecd2da6cdf
1 #! /bin/sh
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
19 emulate sh
20 NULLCMD=:
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+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28 esac
35 # PATH needs CR
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
47 chmod +x conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 PATH_SEPARATOR=';'
50 else
51 PATH_SEPARATOR=:
53 rm -f conf$$.sh
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 as_unset=unset
59 else
60 as_unset=false
64 # IFS
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.)
69 as_nl='
71 IFS=" "" $as_nl"
73 # Find who we are. Look in the path if we contain no directory separator.
74 case $0 in
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
79 IFS=$as_save_IFS
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
86 esac
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
90 as_myself=$0
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 { (exit 1); exit 1; }
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
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
105 # NLS nuisances.
106 for as_var in \
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 \
109 LC_TELEPHONE LC_TIME
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
113 else
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 done
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
121 as_expr=expr
122 else
123 as_expr=false
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127 as_basename=basename
128 else
129 as_basename=false
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 ||
138 echo X/"$0" |
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
140 s//\1/
143 /^X\/\(\/\/\)$/{
144 s//\1/
147 /^X\/\(\/\).*/{
148 s//\1/
151 s/.*/./; q'`
153 # CDPATH.
154 $as_unset CDPATH
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
159 as_have_required=yes
160 else
161 as_have_required=no
164 if test $as_have_required = yes && (eval ":
165 (as_func_return () {
166 (exit \$1)
168 as_func_success () {
169 as_func_return 0
171 as_func_failure () {
172 as_func_return 1
174 as_func_ret_success () {
175 return 0
177 as_func_ret_failure () {
178 return 1
181 exitcode=0
182 if as_func_success; then
184 else
185 exitcode=1
186 echo as_func_success failed.
189 if as_func_failure; then
190 exitcode=1
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
196 else
197 exitcode=1
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
202 exitcode=1
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 else
209 exitcode=1
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
216 as_lineno_1=\$LINENO
217 as_lineno_2=\$LINENO
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
222 else
223 as_candidate_shells=
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 IFS=$as_save_IFS
228 test -z "$as_dir" && as_dir=.
229 case $as_dir in
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233 done;;
234 esac
235 done
236 IFS=$as_save_IFS
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
244 emulate sh
245 NULLCMD=:
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+"$@"}'='"$@"'
249 setopt NO_GLOB_SUBST
250 else
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
253 esac
259 _ASEOF
260 }; then
261 CONFIG_SHELL=$as_shell
262 as_have_required=yes
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 emulate sh
266 NULLCMD=:
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+"$@"}'='"$@"'
270 setopt NO_GLOB_SUBST
271 else
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
274 esac
280 (as_func_return () {
281 (exit $1)
283 as_func_success () {
284 as_func_return 0
286 as_func_failure () {
287 as_func_return 1
289 as_func_ret_success () {
290 return 0
292 as_func_ret_failure () {
293 return 1
296 exitcode=0
297 if as_func_success; then
299 else
300 exitcode=1
301 echo as_func_success failed.
304 if as_func_failure; then
305 exitcode=1
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
311 else
312 exitcode=1
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
317 exitcode=1
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 else
324 exitcode=1
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
331 as_lineno_1=$LINENO
332 as_lineno_2=$LINENO
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; }
336 _ASEOF
337 }; then
338 break
343 done
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
348 done
349 export CONFIG_SHELL
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 () {
370 (exit \$1)
372 as_func_success () {
373 as_func_return 0
375 as_func_failure () {
376 as_func_return 1
378 as_func_ret_success () {
379 return 0
381 as_func_ret_failure () {
382 return 1
385 exitcode=0
386 if as_func_success; then
388 else
389 exitcode=1
390 echo as_func_success failed.
393 if as_func_failure; then
394 exitcode=1
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
400 else
401 exitcode=1
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
406 exitcode=1
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 else
413 exitcode=1
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
421 echo message
426 as_lineno_1=$LINENO
427 as_lineno_2=$LINENO
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
437 # case at line end.
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. :-)
441 sed -n '
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
449 :lineno
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
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).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_dirname=dirname
471 else
472 as_dirname=false
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478 case `echo 'x\c'` in
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 *) ECHO_C='\c';;
481 esac;;
483 ECHO_N='-n';;
484 esac
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 as_expr=expr
489 else
490 as_expr=false
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
496 else
497 rm -f conf$$.dir
498 mkdir conf$$.dir
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s='ln -s'
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 ||
508 as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510 as_ln_s=ln
511 else
512 as_ln_s='cp -p'
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
518 as_mkdir_p=:
519 else
520 test -d ./-p && rmdir ./-p
521 as_mkdir_p=false
524 if test -x / >/dev/null 2>&1; then
525 as_test_x='test -x'
526 else
527 if ls -dL / >/dev/null 2>&1; then
528 as_ls_L_option=L
529 else
530 as_ls_L_option=
532 as_test_x='
533 eval sh -c '\''
534 if test -d "$1"; then
535 test -d "$1/.";
536 else
537 case $1 in
538 -*)set "./$1";;
539 esac;
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
542 '\'' sh
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
557 # Name of the host.
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`
563 # Initializations.
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
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="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 # include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 # include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
657 CFLAGS
658 LDFLAGS
659 CPPFLAGS
660 ac_ct_CC
661 OBJEXT
662 BUILD_CC
663 cross_compiling
666 CXXFLAGS
667 ac_ct_CXX
668 with_fp
669 with_cvs
670 enable_check_abi
671 oldest_abi
672 bindnow
673 force_install
674 all_warnings
675 multi_arch
676 experimental_malloc
677 libc_cv_nss_crypt
678 build
679 build_cpu
680 build_vendor
681 build_os
682 host
683 host_cpu
684 host_vendor
685 host_os
686 subdirs
687 add_ons
688 add_on_subdirs
689 base_machine
690 submachine
691 sysnames
692 sysdeps_add_ons
693 INSTALL_PROGRAM
694 INSTALL_SCRIPT
695 INSTALL_DATA
696 LN_S
698 OBJDUMP
699 RANLIB
703 PWD_P
704 MAKE
705 MSGFMT
706 MAKEINFO
708 AUTOCONF
709 SYSINCLUDES
710 CXX_SYSINCLUDES
711 libc_cv_gcc_static_libgcc
712 BASH_SHELL
713 libc_cv_have_bash2
715 libc_cv_have_ksh
717 PERL
718 INSTALL_INFO
719 BISON
720 VERSIONING
721 libc_cv_cc_with_libunwind
722 libc_cv_Bgroup
723 libc_cv_libgcc_s_suffix
724 libc_cv_as_needed
725 ASFLAGS_config
726 libc_cv_z_combreloc
727 libc_cv_z_execstack
728 libc_cv_fpie
729 libc_cv_hashstyle
730 fno_unit_at_a_time
731 libc_cv_ssp
732 libc_cv_gnu89_inline
733 libc_cv_have_initfini
734 no_whole_archive
735 exceptions
736 libc_cv_cc_submachine
737 LIBGD
738 have_libaudit
739 have_libcap
740 have_selinux
741 GREP
742 EGREP
743 sizeof_long_double
744 libc_cv_gcc_unwind_find_fde
745 uname_sysname
746 uname_release
747 uname_version
748 old_glibc_headers
749 libc_cv_slibdir
750 libc_cv_localedir
751 libc_cv_sysconfdir
752 libc_cv_rootsbindir
753 libc_cv_forced_unwind
754 libc_cv_cpp_asm_debuginfo
755 use_ldconfig
756 ldd_rewrite_script
758 xcoff
759 static
760 shared
761 libc_cv_pic_default
762 profile
763 omitfp
764 bounded
765 static_nss
766 nopic_initfini
767 DEFINES
768 mach_interface_list
769 VERSION
770 RELEASE
771 LIBOBJS
772 LTLIBOBJS'
773 ac_subst_files=''
774 ac_precious_vars='build_alias
775 host_alias
776 target_alias
778 CFLAGS
779 LDFLAGS
780 LIBS
781 CPPFLAGS
784 CXXFLAGS
785 CCC'
786 ac_subdirs_all=''
788 # Initialize some variables set by options.
789 ac_init_help=
790 ac_init_version=false
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
793 cache_file=/dev/null
794 exec_prefix=NONE
795 no_create=
796 no_recursion=
797 prefix=NONE
798 program_prefix=NONE
799 program_suffix=NONE
800 program_transform_name=s,x,x,
801 silent=
802 site=
803 srcdir=
804 verbose=
805 x_includes=NONE
806 x_libraries=NONE
808 # Installation directory options.
809 # These are left unexpanded so users can "make install exec_prefix=/foo"
810 # and all the variables that are supposed to be based on exec_prefix
811 # by default will actually change.
812 # Use braces instead of parens because sh, perl, etc. also accept them.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir='${exec_prefix}/bin'
815 sbindir='${exec_prefix}/sbin'
816 libexecdir='${exec_prefix}/libexec'
817 datarootdir='${prefix}/share'
818 datadir='${datarootdir}'
819 sysconfdir='${prefix}/etc'
820 sharedstatedir='${prefix}/com'
821 localstatedir='${prefix}/var'
822 includedir='${prefix}/include'
823 oldincludedir='/usr/include'
824 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825 infodir='${datarootdir}/info'
826 htmldir='${docdir}'
827 dvidir='${docdir}'
828 pdfdir='${docdir}'
829 psdir='${docdir}'
830 libdir='${exec_prefix}/lib'
831 localedir='${datarootdir}/locale'
832 mandir='${datarootdir}/man'
834 ac_prev=
835 ac_dashdash=
836 for ac_option
838 # If the previous option needs an argument, assign it.
839 if test -n "$ac_prev"; then
840 eval $ac_prev=\$ac_option
841 ac_prev=
842 continue
845 case $ac_option in
846 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 *) ac_optarg=yes ;;
848 esac
850 # Accept the important Cygnus configure options, so we can diagnose typos.
852 case $ac_dashdash$ac_option in
854 ac_dashdash=yes ;;
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 ac_prev=bindir ;;
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 bindir=$ac_optarg ;;
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
873 --config-cache | -C)
874 cache_file=config.cache ;;
876 -datadir | --datadir | --datadi | --datad)
877 ac_prev=datadir ;;
878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
879 datadir=$ac_optarg ;;
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
888 -disable-* | --disable-*)
889 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
892 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
893 { (exit 1); exit 1; }; }
894 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
895 eval enable_$ac_feature=no ;;
897 -docdir | --docdir | --docdi | --doc | --do)
898 ac_prev=docdir ;;
899 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900 docdir=$ac_optarg ;;
902 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
903 ac_prev=dvidir ;;
904 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905 dvidir=$ac_optarg ;;
907 -enable-* | --enable-*)
908 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
911 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
912 { (exit 1); exit 1; }; }
913 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
914 eval enable_$ac_feature=\$ac_optarg ;;
916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918 | --exec | --exe | --ex)
919 ac_prev=exec_prefix ;;
920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922 | --exec=* | --exe=* | --ex=*)
923 exec_prefix=$ac_optarg ;;
925 -gas | --gas | --ga | --g)
926 # Obsolete; use --with-gas.
927 with_gas=yes ;;
929 -help | --help | --hel | --he | -h)
930 ac_init_help=long ;;
931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932 ac_init_help=recursive ;;
933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934 ac_init_help=short ;;
936 -host | --host | --hos | --ho)
937 ac_prev=host_alias ;;
938 -host=* | --host=* | --hos=* | --ho=*)
939 host_alias=$ac_optarg ;;
941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942 ac_prev=htmldir ;;
943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944 | --ht=*)
945 htmldir=$ac_optarg ;;
947 -includedir | --includedir | --includedi | --included | --include \
948 | --includ | --inclu | --incl | --inc)
949 ac_prev=includedir ;;
950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951 | --includ=* | --inclu=* | --incl=* | --inc=*)
952 includedir=$ac_optarg ;;
954 -infodir | --infodir | --infodi | --infod | --info | --inf)
955 ac_prev=infodir ;;
956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957 infodir=$ac_optarg ;;
959 -libdir | --libdir | --libdi | --libd)
960 ac_prev=libdir ;;
961 -libdir=* | --libdir=* | --libdi=* | --libd=*)
962 libdir=$ac_optarg ;;
964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965 | --libexe | --libex | --libe)
966 ac_prev=libexecdir ;;
967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968 | --libexe=* | --libex=* | --libe=*)
969 libexecdir=$ac_optarg ;;
971 -localedir | --localedir | --localedi | --localed | --locale)
972 ac_prev=localedir ;;
973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974 localedir=$ac_optarg ;;
976 -localstatedir | --localstatedir | --localstatedi | --localstated \
977 | --localstate | --localstat | --localsta | --localst | --locals)
978 ac_prev=localstatedir ;;
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981 localstatedir=$ac_optarg ;;
983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984 ac_prev=mandir ;;
985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986 mandir=$ac_optarg ;;
988 -nfp | --nfp | --nf)
989 # Obsolete; use --without-fp.
990 with_fp=no ;;
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993 | --no-cr | --no-c | -n)
994 no_create=yes ;;
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998 no_recursion=yes ;;
1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002 | --oldin | --oldi | --old | --ol | --o)
1003 ac_prev=oldincludedir ;;
1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007 oldincludedir=$ac_optarg ;;
1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010 ac_prev=prefix ;;
1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012 prefix=$ac_optarg ;;
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019 program_prefix=$ac_optarg ;;
1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022 | --program-suf | --program-su | --program-s)
1023 ac_prev=program_suffix ;;
1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026 program_suffix=$ac_optarg ;;
1028 -program-transform-name | --program-transform-name \
1029 | --program-transform-nam | --program-transform-na \
1030 | --program-transform-n | --program-transform- \
1031 | --program-transform | --program-transfor \
1032 | --program-transfo | --program-transf \
1033 | --program-trans | --program-tran \
1034 | --progr-tra | --program-tr | --program-t)
1035 ac_prev=program_transform_name ;;
1036 -program-transform-name=* | --program-transform-name=* \
1037 | --program-transform-nam=* | --program-transform-na=* \
1038 | --program-transform-n=* | --program-transform-=* \
1039 | --program-transform=* | --program-transfor=* \
1040 | --program-transfo=* | --program-transf=* \
1041 | --program-trans=* | --program-tran=* \
1042 | --progr-tra=* | --program-tr=* | --program-t=*)
1043 program_transform_name=$ac_optarg ;;
1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046 ac_prev=pdfdir ;;
1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048 pdfdir=$ac_optarg ;;
1050 -psdir | --psdir | --psdi | --psd | --ps)
1051 ac_prev=psdir ;;
1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053 psdir=$ac_optarg ;;
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1057 silent=yes ;;
1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060 ac_prev=sbindir ;;
1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062 | --sbi=* | --sb=*)
1063 sbindir=$ac_optarg ;;
1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067 | --sharedst | --shareds | --shared | --share | --shar \
1068 | --sha | --sh)
1069 ac_prev=sharedstatedir ;;
1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073 | --sha=* | --sh=*)
1074 sharedstatedir=$ac_optarg ;;
1076 -site | --site | --sit)
1077 ac_prev=site ;;
1078 -site=* | --site=* | --sit=*)
1079 site=$ac_optarg ;;
1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082 ac_prev=srcdir ;;
1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084 srcdir=$ac_optarg ;;
1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087 | --syscon | --sysco | --sysc | --sys | --sy)
1088 ac_prev=sysconfdir ;;
1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091 sysconfdir=$ac_optarg ;;
1093 -target | --target | --targe | --targ | --tar | --ta | --t)
1094 ac_prev=target_alias ;;
1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096 target_alias=$ac_optarg ;;
1098 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099 verbose=yes ;;
1101 -version | --version | --versio | --versi | --vers | -V)
1102 ac_init_version=: ;;
1104 -with-* | --with-*)
1105 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108 { echo "$as_me: error: invalid package name: $ac_package" >&2
1109 { (exit 1); exit 1; }; }
1110 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1111 eval with_$ac_package=\$ac_optarg ;;
1113 -without-* | --without-*)
1114 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1117 { echo "$as_me: error: invalid package name: $ac_package" >&2
1118 { (exit 1); exit 1; }; }
1119 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1120 eval with_$ac_package=no ;;
1122 --x)
1123 # Obsolete; use --with-x.
1124 with_x=yes ;;
1126 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1127 | --x-incl | --x-inc | --x-in | --x-i)
1128 ac_prev=x_includes ;;
1129 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1130 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1131 x_includes=$ac_optarg ;;
1133 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1134 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1135 ac_prev=x_libraries ;;
1136 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1137 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1138 x_libraries=$ac_optarg ;;
1140 -*) { echo "$as_me: error: unrecognized option: $ac_option
1141 Try \`$0 --help' for more information." >&2
1142 { (exit 1); exit 1; }; }
1145 *=*)
1146 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1150 { (exit 1); exit 1; }; }
1151 eval $ac_envvar=\$ac_optarg
1152 export $ac_envvar ;;
1155 # FIXME: should be removed in autoconf 3.0.
1156 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1157 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1158 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1159 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1162 esac
1163 done
1165 if test -n "$ac_prev"; then
1166 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1167 { echo "$as_me: error: missing argument to $ac_option" >&2
1168 { (exit 1); exit 1; }; }
1171 # Be sure to have absolute directory names.
1172 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1173 datadir sysconfdir sharedstatedir localstatedir includedir \
1174 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1175 libdir localedir mandir
1177 eval ac_val=\$$ac_var
1178 case $ac_val in
1179 [\\/$]* | ?:[\\/]* ) continue;;
1180 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1181 esac
1182 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1183 { (exit 1); exit 1; }; }
1184 done
1186 # There might be people who depend on the old broken behavior: `$host'
1187 # used to hold the argument of --host etc.
1188 # FIXME: To remove some day.
1189 build=$build_alias
1190 host=$host_alias
1191 target=$target_alias
1193 # FIXME: To remove some day.
1194 if test "x$host_alias" != x; then
1195 if test "x$build_alias" = x; then
1196 cross_compiling=maybe
1197 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1198 If a cross compiler is detected then cross compile mode will be used." >&2
1199 elif test "x$build_alias" != "x$host_alias"; then
1200 cross_compiling=yes
1204 ac_tool_prefix=
1205 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1207 test "$silent" = yes && exec 6>/dev/null
1210 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1211 ac_ls_di=`ls -di .` &&
1212 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1213 { echo "$as_me: error: Working directory cannot be determined" >&2
1214 { (exit 1); exit 1; }; }
1215 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1216 { echo "$as_me: error: pwd does not report name of working directory" >&2
1217 { (exit 1); exit 1; }; }
1220 # Find the source files, if location was not specified.
1221 if test -z "$srcdir"; then
1222 ac_srcdir_defaulted=yes
1223 # Try the directory containing this script, then the parent directory.
1224 ac_confdir=`$as_dirname -- "$0" ||
1225 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1226 X"$0" : 'X\(//\)[^/]' \| \
1227 X"$0" : 'X\(//\)$' \| \
1228 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1229 echo X"$0" |
1230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1231 s//\1/
1234 /^X\(\/\/\)[^/].*/{
1235 s//\1/
1238 /^X\(\/\/\)$/{
1239 s//\1/
1242 /^X\(\/\).*/{
1243 s//\1/
1246 s/.*/./; q'`
1247 srcdir=$ac_confdir
1248 if test ! -r "$srcdir/$ac_unique_file"; then
1249 srcdir=..
1251 else
1252 ac_srcdir_defaulted=no
1254 if test ! -r "$srcdir/$ac_unique_file"; then
1255 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1256 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1257 { (exit 1); exit 1; }; }
1259 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1260 ac_abs_confdir=`(
1261 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1262 { (exit 1); exit 1; }; }
1263 pwd)`
1264 # When building in place, set srcdir=.
1265 if test "$ac_abs_confdir" = "$ac_pwd"; then
1266 srcdir=.
1268 # Remove unnecessary trailing slashes from srcdir.
1269 # Double slashes in file names in object file debugging info
1270 # mess up M-x gdb in Emacs.
1271 case $srcdir in
1272 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1273 esac
1274 for ac_var in $ac_precious_vars; do
1275 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1276 eval ac_env_${ac_var}_value=\$${ac_var}
1277 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1279 done
1282 # Report the --help message.
1284 if test "$ac_init_help" = "long"; then
1285 # Omit some internal or obsolete options to make the list less imposing.
1286 # This message is too long to be a string in the A/UX 3.1 sh.
1287 cat <<_ACEOF
1288 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1290 Usage: $0 [OPTION]... [VAR=VALUE]...
1292 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1293 VAR=VALUE. See below for descriptions of some of the useful variables.
1295 Defaults for the options are specified in brackets.
1297 Configuration:
1298 -h, --help display this help and exit
1299 --help=short display options specific to this package
1300 --help=recursive display the short help of all the included packages
1301 -V, --version display version information and exit
1302 -q, --quiet, --silent do not print \`checking...' messages
1303 --cache-file=FILE cache test results in FILE [disabled]
1304 -C, --config-cache alias for \`--cache-file=config.cache'
1305 -n, --no-create do not create output files
1306 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1308 Installation directories:
1309 --prefix=PREFIX install architecture-independent files in PREFIX
1310 [$ac_default_prefix]
1311 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1312 [PREFIX]
1314 By default, \`make install' will install all the files in
1315 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1316 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1317 for instance \`--prefix=\$HOME'.
1319 For better control, use the options below.
1321 Fine tuning of the installation directories:
1322 --bindir=DIR user executables [EPREFIX/bin]
1323 --sbindir=DIR system admin executables [EPREFIX/sbin]
1324 --libexecdir=DIR program executables [EPREFIX/libexec]
1325 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1326 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1327 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1328 --libdir=DIR object code libraries [EPREFIX/lib]
1329 --includedir=DIR C header files [PREFIX/include]
1330 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1331 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1332 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1333 --infodir=DIR info documentation [DATAROOTDIR/info]
1334 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1335 --mandir=DIR man documentation [DATAROOTDIR/man]
1336 --docdir=DIR documentation root [DATAROOTDIR/doc/c-library]
1337 --htmldir=DIR html documentation [DOCDIR]
1338 --dvidir=DIR dvi documentation [DOCDIR]
1339 --pdfdir=DIR pdf documentation [DOCDIR]
1340 --psdir=DIR ps documentation [DOCDIR]
1341 _ACEOF
1343 cat <<\_ACEOF
1345 System types:
1346 --build=BUILD configure for building on BUILD [guessed]
1347 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1348 _ACEOF
1351 if test -n "$ac_init_help"; then
1352 case $ac_init_help in
1353 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1354 esac
1355 cat <<\_ACEOF
1357 Optional Features:
1358 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1359 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1360 --disable-sanity-checks really do not use threads (should not be used except
1361 in special situations) [default=yes]
1362 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1363 [default=no]
1364 --enable-shared build shared library [default=yes if GNU ld & ELF]
1365 --enable-profile build profiled library [default=no]
1366 --enable-omitfp build undebuggable optimized library [default=no]
1367 --enable-bounded build with runtime bounds checking [default=no]
1368 --disable-versioning do not include versioning information in the library
1369 objects [default=yes if supported]
1370 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1371 [default=glibc default]
1372 --enable-stackguard-randomization
1373 initialize __stack_chk_guard canary with a random
1374 number at program start
1375 --enable-add-ons[=DIRS...]
1376 configure and build add-ons in DIR1,DIR2,... search
1377 for add-ons if no parameter given
1378 --disable-hidden-plt do not hide internal function calls to avoid PLT
1379 --enable-bind-now disable lazy relocations in DSOs
1380 --enable-static-nss build static NSS modules [default=no]
1381 --disable-force-install don't force installation of files from this package,
1382 even if they are older than the installed files
1383 --enable-kernel=VERSION compile for compatibility with kernel not older than
1384 VERSION
1385 --enable-all-warnings enable all useful warnings gcc can issue
1386 --enable-multi-arch enable single DSO with optimizations for multiple
1387 architectures
1388 --enable-experimental-malloc
1389 enable experimental malloc features
1390 --enable-nss-crypt enable libcrypt to use nss
1392 Optional Packages:
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395 --with-gd=DIR find libgd include dir and library with prefix DIR
1396 --with-gd-include=DIR find libgd include files in DIR
1397 --with-gd-lib=DIR find libgd library files in DIR
1398 --with-fp if using floating-point hardware [default=yes]
1399 --with-binutils=PATH specify location of binutils (as and ld)
1400 --with-elf if using the ELF object format
1401 --with-selinux if building with SELinux support
1402 --with-xcoff if using the XCOFF object format
1403 --without-cvs if CVS should not be used
1404 --with-headers=PATH location of system headers to use (for example
1405 /usr/src/linux/include) [default=compiler default]
1406 --with-tls enable support for TLS
1407 --without-__thread do not use TLS features even when supporting them
1408 --with-cpu=CPU select code for CPU variant
1410 Some influential environment variables:
1411 CC C compiler command
1412 CFLAGS C compiler flags
1413 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1414 nonstandard directory <lib dir>
1415 LIBS libraries to pass to the linker, e.g. -l<library>
1416 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1417 you have headers in a nonstandard directory <include dir>
1418 CPP C preprocessor
1419 CXX C++ compiler command
1420 CXXFLAGS C++ compiler flags
1422 Use these variables to override the choices made by `configure' or to help
1423 it to find libraries and programs with nonstandard names/locations.
1425 Report bugs to <glibc>.
1426 _ACEOF
1427 ac_status=$?
1430 if test "$ac_init_help" = "recursive"; then
1431 # If there are subdirs, report their specific --help.
1432 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1433 test -d "$ac_dir" || continue
1434 ac_builddir=.
1436 case "$ac_dir" in
1437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1440 # A ".." for each directory in $ac_dir_suffix.
1441 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1442 case $ac_top_builddir_sub in
1443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1445 esac ;;
1446 esac
1447 ac_abs_top_builddir=$ac_pwd
1448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1449 # for backward compatibility:
1450 ac_top_builddir=$ac_top_build_prefix
1452 case $srcdir in
1453 .) # We are building in place.
1454 ac_srcdir=.
1455 ac_top_srcdir=$ac_top_builddir_sub
1456 ac_abs_top_srcdir=$ac_pwd ;;
1457 [\\/]* | ?:[\\/]* ) # Absolute name.
1458 ac_srcdir=$srcdir$ac_dir_suffix;
1459 ac_top_srcdir=$srcdir
1460 ac_abs_top_srcdir=$srcdir ;;
1461 *) # Relative name.
1462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1463 ac_top_srcdir=$ac_top_build_prefix$srcdir
1464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465 esac
1466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1468 cd "$ac_dir" || { ac_status=$?; continue; }
1469 # Check for guested configure.
1470 if test -f "$ac_srcdir/configure.gnu"; then
1471 echo &&
1472 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1473 elif test -f "$ac_srcdir/configure"; then
1474 echo &&
1475 $SHELL "$ac_srcdir/configure" --help=recursive
1476 else
1477 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478 fi || ac_status=$?
1479 cd "$ac_pwd" || { ac_status=$?; break; }
1480 done
1483 test -n "$ac_init_help" && exit $ac_status
1484 if $ac_init_version; then
1485 cat <<\_ACEOF
1486 GNU C Library configure (see version.h)
1487 generated by GNU Autoconf 2.61
1489 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1490 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1491 This configure script is free software; the Free Software Foundation
1492 gives unlimited permission to copy, distribute and modify it.
1493 _ACEOF
1494 exit
1496 cat >config.log <<_ACEOF
1497 This file contains any messages produced by compilers while
1498 running configure, to aid debugging if configure makes a mistake.
1500 It was created by GNU C Library $as_me (see version.h), which was
1501 generated by GNU Autoconf 2.61. Invocation command line was
1503 $ $0 $@
1505 _ACEOF
1506 exec 5>>config.log
1508 cat <<_ASUNAME
1509 ## --------- ##
1510 ## Platform. ##
1511 ## --------- ##
1513 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1514 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1515 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1516 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1517 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1519 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1520 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1522 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1523 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1524 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1525 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1526 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1527 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1528 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1530 _ASUNAME
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533 for as_dir in $PATH
1535 IFS=$as_save_IFS
1536 test -z "$as_dir" && as_dir=.
1537 echo "PATH: $as_dir"
1538 done
1539 IFS=$as_save_IFS
1541 } >&5
1543 cat >&5 <<_ACEOF
1546 ## ----------- ##
1547 ## Core tests. ##
1548 ## ----------- ##
1550 _ACEOF
1553 # Keep a trace of the command line.
1554 # Strip out --no-create and --no-recursion so they do not pile up.
1555 # Strip out --silent because we don't want to record it for future runs.
1556 # Also quote any args containing shell meta-characters.
1557 # Make two passes to allow for proper duplicate-argument suppression.
1558 ac_configure_args=
1559 ac_configure_args0=
1560 ac_configure_args1=
1561 ac_must_keep_next=false
1562 for ac_pass in 1 2
1564 for ac_arg
1566 case $ac_arg in
1567 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1568 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1569 | -silent | --silent | --silen | --sile | --sil)
1570 continue ;;
1571 *\'*)
1572 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1573 esac
1574 case $ac_pass in
1575 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1577 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1578 if test $ac_must_keep_next = true; then
1579 ac_must_keep_next=false # Got value, back to normal.
1580 else
1581 case $ac_arg in
1582 *=* | --config-cache | -C | -disable-* | --disable-* \
1583 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1584 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1585 | -with-* | --with-* | -without-* | --without-* | --x)
1586 case "$ac_configure_args0 " in
1587 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1588 esac
1590 -* ) ac_must_keep_next=true ;;
1591 esac
1593 ac_configure_args="$ac_configure_args '$ac_arg'"
1595 esac
1596 done
1597 done
1598 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1599 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1601 # When interrupted or exit'd, cleanup temporary files, and complete
1602 # config.log. We remove comments because anyway the quotes in there
1603 # would cause problems or look ugly.
1604 # WARNING: Use '\'' to represent an apostrophe within the trap.
1605 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1606 trap 'exit_status=$?
1607 # Save into config.log some information that might help in debugging.
1609 echo
1611 cat <<\_ASBOX
1612 ## ---------------- ##
1613 ## Cache variables. ##
1614 ## ---------------- ##
1615 _ASBOX
1616 echo
1617 # The following way of writing the cache mishandles newlines in values,
1619 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1620 eval ac_val=\$$ac_var
1621 case $ac_val in #(
1622 *${as_nl}*)
1623 case $ac_var in #(
1624 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1625 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1626 esac
1627 case $ac_var in #(
1628 _ | IFS | as_nl) ;; #(
1629 *) $as_unset $ac_var ;;
1630 esac ;;
1631 esac
1632 done
1633 (set) 2>&1 |
1634 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1635 *${as_nl}ac_space=\ *)
1636 sed -n \
1637 "s/'\''/'\''\\\\'\'''\''/g;
1638 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1639 ;; #(
1641 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1643 esac |
1644 sort
1646 echo
1648 cat <<\_ASBOX
1649 ## ----------------- ##
1650 ## Output variables. ##
1651 ## ----------------- ##
1652 _ASBOX
1653 echo
1654 for ac_var in $ac_subst_vars
1656 eval ac_val=\$$ac_var
1657 case $ac_val in
1658 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1659 esac
1660 echo "$ac_var='\''$ac_val'\''"
1661 done | sort
1662 echo
1664 if test -n "$ac_subst_files"; then
1665 cat <<\_ASBOX
1666 ## ------------------- ##
1667 ## File substitutions. ##
1668 ## ------------------- ##
1669 _ASBOX
1670 echo
1671 for ac_var in $ac_subst_files
1673 eval ac_val=\$$ac_var
1674 case $ac_val in
1675 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1676 esac
1677 echo "$ac_var='\''$ac_val'\''"
1678 done | sort
1679 echo
1682 if test -s confdefs.h; then
1683 cat <<\_ASBOX
1684 ## ----------- ##
1685 ## confdefs.h. ##
1686 ## ----------- ##
1687 _ASBOX
1688 echo
1689 cat confdefs.h
1690 echo
1692 test "$ac_signal" != 0 &&
1693 echo "$as_me: caught signal $ac_signal"
1694 echo "$as_me: exit $exit_status"
1695 } >&5
1696 rm -f core *.core core.conftest.* &&
1697 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1698 exit $exit_status
1700 for ac_signal in 1 2 13 15; do
1701 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1702 done
1703 ac_signal=0
1705 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1706 rm -f -r conftest* confdefs.h
1708 # Predefined preprocessor variables.
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_NAME "$PACKAGE_NAME"
1712 _ACEOF
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1717 _ACEOF
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1722 _ACEOF
1725 cat >>confdefs.h <<_ACEOF
1726 #define PACKAGE_STRING "$PACKAGE_STRING"
1727 _ACEOF
1730 cat >>confdefs.h <<_ACEOF
1731 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1732 _ACEOF
1735 # Let the site file select an alternate cache file if it wants to.
1736 # Prefer explicitly selected file to automatically selected ones.
1737 if test -n "$CONFIG_SITE"; then
1738 set x "$CONFIG_SITE"
1739 elif test "x$prefix" != xNONE; then
1740 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1741 else
1742 set x "$ac_default_prefix/share/config.site" \
1743 "$ac_default_prefix/etc/config.site"
1745 shift
1746 for ac_site_file
1748 if test -r "$ac_site_file"; then
1749 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1750 echo "$as_me: loading site script $ac_site_file" >&6;}
1751 sed 's/^/| /' "$ac_site_file" >&5
1752 . "$ac_site_file"
1754 done
1756 if test -r "$cache_file"; then
1757 # Some versions of bash will fail to source /dev/null (special
1758 # files actually), so we avoid doing that.
1759 if test -f "$cache_file"; then
1760 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1761 echo "$as_me: loading cache $cache_file" >&6;}
1762 case $cache_file in
1763 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1764 *) . "./$cache_file";;
1765 esac
1767 else
1768 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1769 echo "$as_me: creating cache $cache_file" >&6;}
1770 >$cache_file
1773 # Check that the precious variables saved in the cache have kept the same
1774 # value.
1775 ac_cache_corrupted=false
1776 for ac_var in $ac_precious_vars; do
1777 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1778 eval ac_new_set=\$ac_env_${ac_var}_set
1779 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1780 eval ac_new_val=\$ac_env_${ac_var}_value
1781 case $ac_old_set,$ac_new_set in
1782 set,)
1783 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1784 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1785 ac_cache_corrupted=: ;;
1786 ,set)
1787 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1788 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1789 ac_cache_corrupted=: ;;
1790 ,);;
1792 if test "x$ac_old_val" != "x$ac_new_val"; then
1793 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1794 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1795 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1796 echo "$as_me: former value: $ac_old_val" >&2;}
1797 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1798 echo "$as_me: current value: $ac_new_val" >&2;}
1799 ac_cache_corrupted=:
1800 fi;;
1801 esac
1802 # Pass precious variables to config.status.
1803 if test "$ac_new_set" = set; then
1804 case $ac_new_val in
1805 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1806 *) ac_arg=$ac_var=$ac_new_val ;;
1807 esac
1808 case " $ac_configure_args " in
1809 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1810 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1811 esac
1813 done
1814 if $ac_cache_corrupted; then
1815 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1816 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1817 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1818 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1819 { (exit 1); exit 1; }; }
1846 ac_ext=c
1847 ac_cpp='$CPP $CPPFLAGS'
1848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1854 ac_config_headers="$ac_config_headers config.h"
1856 ac_aux_dir=
1857 for ac_dir in scripts "$srcdir"/scripts; do
1858 if test -f "$ac_dir/install-sh"; then
1859 ac_aux_dir=$ac_dir
1860 ac_install_sh="$ac_aux_dir/install-sh -c"
1861 break
1862 elif test -f "$ac_dir/install.sh"; then
1863 ac_aux_dir=$ac_dir
1864 ac_install_sh="$ac_aux_dir/install.sh -c"
1865 break
1866 elif test -f "$ac_dir/shtool"; then
1867 ac_aux_dir=$ac_dir
1868 ac_install_sh="$ac_aux_dir/shtool install -c"
1869 break
1871 done
1872 if test -z "$ac_aux_dir"; then
1873 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&5
1874 echo "$as_me: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&2;}
1875 { (exit 1); exit 1; }; }
1878 # These three variables are undocumented and unsupported,
1879 # and are intended to be withdrawn in a future Autoconf release.
1880 # They can cause serious problems if a builder's source tree is in a directory
1881 # whose full name contains unusual characters.
1882 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1883 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1884 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1888 ac_ext=c
1889 ac_cpp='$CPP $CPPFLAGS'
1890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1893 if test -n "$ac_tool_prefix"; then
1894 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1895 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1898 if test "${ac_cv_prog_CC+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1900 else
1901 if test -n "$CC"; then
1902 ac_cv_prog_CC="$CC" # Let the user override the test.
1903 else
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1907 IFS=$as_save_IFS
1908 test -z "$as_dir" && as_dir=.
1909 for ac_exec_ext in '' $ac_executable_extensions; do
1910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1911 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913 break 2
1915 done
1916 done
1917 IFS=$as_save_IFS
1921 CC=$ac_cv_prog_CC
1922 if test -n "$CC"; then
1923 { echo "$as_me:$LINENO: result: $CC" >&5
1924 echo "${ECHO_T}$CC" >&6; }
1925 else
1926 { echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6; }
1932 if test -z "$ac_cv_prog_CC"; then
1933 ac_ct_CC=$CC
1934 # Extract the first word of "gcc", so it can be a program name with args.
1935 set dummy gcc; ac_word=$2
1936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1938 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 else
1941 if test -n "$ac_ct_CC"; then
1942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1943 else
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 for as_dir in $PATH
1947 IFS=$as_save_IFS
1948 test -z "$as_dir" && as_dir=.
1949 for ac_exec_ext in '' $ac_executable_extensions; do
1950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1951 ac_cv_prog_ac_ct_CC="gcc"
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953 break 2
1955 done
1956 done
1957 IFS=$as_save_IFS
1961 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1962 if test -n "$ac_ct_CC"; then
1963 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1964 echo "${ECHO_T}$ac_ct_CC" >&6; }
1965 else
1966 { echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6; }
1970 if test "x$ac_ct_CC" = x; then
1971 CC=""
1972 else
1973 case $cross_compiling:$ac_tool_warned in
1974 yes:)
1975 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1976 whose name does not start with the host triplet. If you think this
1977 configuration is useful to you, please write to autoconf@gnu.org." >&5
1978 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1979 whose name does not start with the host triplet. If you think this
1980 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1981 ac_tool_warned=yes ;;
1982 esac
1983 CC=$ac_ct_CC
1985 else
1986 CC="$ac_cv_prog_CC"
1989 if test -z "$CC"; then
1990 if test -n "$ac_tool_prefix"; then
1991 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1992 set dummy ${ac_tool_prefix}cc; ac_word=$2
1993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1995 if test "${ac_cv_prog_CC+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1997 else
1998 if test -n "$CC"; then
1999 ac_cv_prog_CC="$CC" # Let the user override the test.
2000 else
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002 for as_dir in $PATH
2004 IFS=$as_save_IFS
2005 test -z "$as_dir" && as_dir=.
2006 for ac_exec_ext in '' $ac_executable_extensions; do
2007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2008 ac_cv_prog_CC="${ac_tool_prefix}cc"
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010 break 2
2012 done
2013 done
2014 IFS=$as_save_IFS
2018 CC=$ac_cv_prog_CC
2019 if test -n "$CC"; then
2020 { echo "$as_me:$LINENO: result: $CC" >&5
2021 echo "${ECHO_T}$CC" >&6; }
2022 else
2023 { echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6; }
2030 if test -z "$CC"; then
2031 # Extract the first word of "cc", so it can be a program name with args.
2032 set dummy cc; ac_word=$2
2033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2035 if test "${ac_cv_prog_CC+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038 if test -n "$CC"; then
2039 ac_cv_prog_CC="$CC" # Let the user override the test.
2040 else
2041 ac_prog_rejected=no
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2045 IFS=$as_save_IFS
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2049 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2050 ac_prog_rejected=yes
2051 continue
2053 ac_cv_prog_CC="cc"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 break 2
2057 done
2058 done
2059 IFS=$as_save_IFS
2061 if test $ac_prog_rejected = yes; then
2062 # We found a bogon in the path, so make sure we never use it.
2063 set dummy $ac_cv_prog_CC
2064 shift
2065 if test $# != 0; then
2066 # We chose a different compiler from the bogus one.
2067 # However, it has the same basename, so the bogon will be chosen
2068 # first if we set CC to just the basename; use the full file name.
2069 shift
2070 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2075 CC=$ac_cv_prog_CC
2076 if test -n "$CC"; then
2077 { echo "$as_me:$LINENO: result: $CC" >&5
2078 echo "${ECHO_T}$CC" >&6; }
2079 else
2080 { echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6; }
2086 if test -z "$CC"; then
2087 if test -n "$ac_tool_prefix"; then
2088 for ac_prog in cl.exe
2090 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2091 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2094 if test "${ac_cv_prog_CC+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097 if test -n "$CC"; then
2098 ac_cv_prog_CC="$CC" # Let the user override the test.
2099 else
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 for as_dir in $PATH
2103 IFS=$as_save_IFS
2104 test -z "$as_dir" && as_dir=.
2105 for ac_exec_ext in '' $ac_executable_extensions; do
2106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2107 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109 break 2
2111 done
2112 done
2113 IFS=$as_save_IFS
2117 CC=$ac_cv_prog_CC
2118 if test -n "$CC"; then
2119 { echo "$as_me:$LINENO: result: $CC" >&5
2120 echo "${ECHO_T}$CC" >&6; }
2121 else
2122 { echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6; }
2127 test -n "$CC" && break
2128 done
2130 if test -z "$CC"; then
2131 ac_ct_CC=$CC
2132 for ac_prog in cl.exe
2134 # Extract the first word of "$ac_prog", so it can be a program name with args.
2135 set dummy $ac_prog; ac_word=$2
2136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2138 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141 if test -n "$ac_ct_CC"; then
2142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2143 else
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2151 ac_cv_prog_ac_ct_CC="$ac_prog"
2152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153 break 2
2155 done
2156 done
2157 IFS=$as_save_IFS
2161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2162 if test -n "$ac_ct_CC"; then
2163 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2164 echo "${ECHO_T}$ac_ct_CC" >&6; }
2165 else
2166 { echo "$as_me:$LINENO: result: no" >&5
2167 echo "${ECHO_T}no" >&6; }
2171 test -n "$ac_ct_CC" && break
2172 done
2174 if test "x$ac_ct_CC" = x; then
2175 CC=""
2176 else
2177 case $cross_compiling:$ac_tool_warned in
2178 yes:)
2179 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2180 whose name does not start with the host triplet. If you think this
2181 configuration is useful to you, please write to autoconf@gnu.org." >&5
2182 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2183 whose name does not start with the host triplet. If you think this
2184 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2185 ac_tool_warned=yes ;;
2186 esac
2187 CC=$ac_ct_CC
2194 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2195 See \`config.log' for more details." >&5
2196 echo "$as_me: error: no acceptable C compiler found in \$PATH
2197 See \`config.log' for more details." >&2;}
2198 { (exit 1); exit 1; }; }
2200 # Provide some information about the compiler.
2201 echo "$as_me:$LINENO: checking for C compiler version" >&5
2202 ac_compiler=`set X $ac_compile; echo $2`
2203 { (ac_try="$ac_compiler --version >&5"
2204 case "(($ac_try" in
2205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2206 *) ac_try_echo=$ac_try;;
2207 esac
2208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2209 (eval "$ac_compiler --version >&5") 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }
2213 { (ac_try="$ac_compiler -v >&5"
2214 case "(($ac_try" in
2215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2217 esac
2218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2219 (eval "$ac_compiler -v >&5") 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }
2223 { (ac_try="$ac_compiler -V >&5"
2224 case "(($ac_try" in
2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2227 esac
2228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2229 (eval "$ac_compiler -V >&5") 2>&5
2230 ac_status=$?
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }
2234 EXEEXT=
2235 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2236 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2237 if test "${ac_cv_objext+set}" = set; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 else
2240 cat >conftest.$ac_ext <<_ACEOF
2241 /* confdefs.h. */
2242 _ACEOF
2243 cat confdefs.h >>conftest.$ac_ext
2244 cat >>conftest.$ac_ext <<_ACEOF
2245 /* end confdefs.h. */
2248 main ()
2252 return 0;
2254 _ACEOF
2255 rm -f conftest.o conftest.obj
2256 if { (ac_try="$ac_compile"
2257 case "(($ac_try" in
2258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259 *) ac_try_echo=$ac_try;;
2260 esac
2261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2262 (eval "$ac_compile") 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; then
2266 for ac_file in conftest.o conftest.obj conftest.*; do
2267 test -f "$ac_file" || continue;
2268 case $ac_file in
2269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2270 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2271 break;;
2272 esac
2273 done
2274 else
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2278 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2279 See \`config.log' for more details." >&5
2280 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2281 See \`config.log' for more details." >&2;}
2282 { (exit 1); exit 1; }; }
2285 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2287 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2288 echo "${ECHO_T}$ac_cv_objext" >&6; }
2289 OBJEXT=$ac_cv_objext
2290 ac_objext=$OBJEXT
2291 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2292 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2293 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 else
2296 cat >conftest.$ac_ext <<_ACEOF
2297 /* confdefs.h. */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2304 main ()
2306 #ifndef __GNUC__
2307 choke me
2308 #endif
2311 return 0;
2313 _ACEOF
2314 rm -f conftest.$ac_objext
2315 if { (ac_try="$ac_compile"
2316 case "(($ac_try" in
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2319 esac
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321 (eval "$ac_compile") 2>conftest.er1
2322 ac_status=$?
2323 grep -v '^ *+' conftest.er1 >conftest.err
2324 rm -f conftest.er1
2325 cat conftest.err >&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); } && {
2328 test -z "$ac_c_werror_flag" ||
2329 test ! -s conftest.err
2330 } && test -s conftest.$ac_objext; then
2331 ac_compiler_gnu=yes
2332 else
2333 echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2336 ac_compiler_gnu=no
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2343 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2344 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2345 GCC=`test $ac_compiler_gnu = yes && echo yes`
2346 ac_test_CFLAGS=${CFLAGS+set}
2347 ac_save_CFLAGS=$CFLAGS
2348 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2349 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2350 if test "${ac_cv_prog_cc_g+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353 ac_save_c_werror_flag=$ac_c_werror_flag
2354 ac_c_werror_flag=yes
2355 ac_cv_prog_cc_g=no
2356 CFLAGS="-g"
2357 cat >conftest.$ac_ext <<_ACEOF
2358 /* confdefs.h. */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2365 main ()
2369 return 0;
2371 _ACEOF
2372 rm -f conftest.$ac_objext
2373 if { (ac_try="$ac_compile"
2374 case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2377 esac
2378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2379 (eval "$ac_compile") 2>conftest.er1
2380 ac_status=$?
2381 grep -v '^ *+' conftest.er1 >conftest.err
2382 rm -f conftest.er1
2383 cat conftest.err >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); } && {
2386 test -z "$ac_c_werror_flag" ||
2387 test ! -s conftest.err
2388 } && test -s conftest.$ac_objext; then
2389 ac_cv_prog_cc_g=yes
2390 else
2391 echo "$as_me: failed program was:" >&5
2392 sed 's/^/| /' conftest.$ac_ext >&5
2394 CFLAGS=""
2395 cat >conftest.$ac_ext <<_ACEOF
2396 /* confdefs.h. */
2397 _ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h. */
2403 main ()
2407 return 0;
2409 _ACEOF
2410 rm -f conftest.$ac_objext
2411 if { (ac_try="$ac_compile"
2412 case "(($ac_try" in
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2415 esac
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417 (eval "$ac_compile") 2>conftest.er1
2418 ac_status=$?
2419 grep -v '^ *+' conftest.er1 >conftest.err
2420 rm -f conftest.er1
2421 cat conftest.err >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } && {
2424 test -z "$ac_c_werror_flag" ||
2425 test ! -s conftest.err
2426 } && test -s conftest.$ac_objext; then
2428 else
2429 echo "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2432 ac_c_werror_flag=$ac_save_c_werror_flag
2433 CFLAGS="-g"
2434 cat >conftest.$ac_ext <<_ACEOF
2435 /* confdefs.h. */
2436 _ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h. */
2442 main ()
2446 return 0;
2448 _ACEOF
2449 rm -f conftest.$ac_objext
2450 if { (ac_try="$ac_compile"
2451 case "(($ac_try" in
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2454 esac
2455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2456 (eval "$ac_compile") 2>conftest.er1
2457 ac_status=$?
2458 grep -v '^ *+' conftest.er1 >conftest.err
2459 rm -f conftest.er1
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } && {
2463 test -z "$ac_c_werror_flag" ||
2464 test ! -s conftest.err
2465 } && test -s conftest.$ac_objext; then
2466 ac_cv_prog_cc_g=yes
2467 else
2468 echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2481 ac_c_werror_flag=$ac_save_c_werror_flag
2483 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2484 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2485 if test "$ac_test_CFLAGS" = set; then
2486 CFLAGS=$ac_save_CFLAGS
2487 elif test $ac_cv_prog_cc_g = yes; then
2488 if test "$GCC" = yes; then
2489 CFLAGS="-g -O2"
2490 else
2491 CFLAGS="-g"
2493 else
2494 if test "$GCC" = yes; then
2495 CFLAGS="-O2"
2496 else
2497 CFLAGS=
2500 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2501 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2502 if test "${ac_cv_prog_cc_c89+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505 ac_cv_prog_cc_c89=no
2506 ac_save_CC=$CC
2507 cat >conftest.$ac_ext <<_ACEOF
2508 /* confdefs.h. */
2509 _ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2513 #include <stdarg.h>
2514 #include <stdio.h>
2515 #include <sys/types.h>
2516 #include <sys/stat.h>
2517 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2518 struct buf { int x; };
2519 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2520 static char *e (p, i)
2521 char **p;
2522 int i;
2524 return p[i];
2526 static char *f (char * (*g) (char **, int), char **p, ...)
2528 char *s;
2529 va_list v;
2530 va_start (v,p);
2531 s = g (p, va_arg (v,int));
2532 va_end (v);
2533 return s;
2536 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2537 function prototypes and stuff, but not '\xHH' hex character constants.
2538 These don't provoke an error unfortunately, instead are silently treated
2539 as 'x'. The following induces an error, until -std is added to get
2540 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2541 array size at least. It's necessary to write '\x00'==0 to get something
2542 that's true only with -std. */
2543 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2545 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2546 inside strings and character constants. */
2547 #define FOO(x) 'x'
2548 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2550 int test (int i, double x);
2551 struct s1 {int (*f) (int a);};
2552 struct s2 {int (*f) (double a);};
2553 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2554 int argc;
2555 char **argv;
2557 main ()
2559 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2561 return 0;
2563 _ACEOF
2564 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2565 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2567 CC="$ac_save_CC $ac_arg"
2568 rm -f conftest.$ac_objext
2569 if { (ac_try="$ac_compile"
2570 case "(($ac_try" in
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2573 esac
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_compile") 2>conftest.er1
2576 ac_status=$?
2577 grep -v '^ *+' conftest.er1 >conftest.err
2578 rm -f conftest.er1
2579 cat conftest.err >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } && {
2582 test -z "$ac_c_werror_flag" ||
2583 test ! -s conftest.err
2584 } && test -s conftest.$ac_objext; then
2585 ac_cv_prog_cc_c89=$ac_arg
2586 else
2587 echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2593 rm -f core conftest.err conftest.$ac_objext
2594 test "x$ac_cv_prog_cc_c89" != "xno" && break
2595 done
2596 rm -f conftest.$ac_ext
2597 CC=$ac_save_CC
2600 # AC_CACHE_VAL
2601 case "x$ac_cv_prog_cc_c89" in
2603 { echo "$as_me:$LINENO: result: none needed" >&5
2604 echo "${ECHO_T}none needed" >&6; } ;;
2605 xno)
2606 { echo "$as_me:$LINENO: result: unsupported" >&5
2607 echo "${ECHO_T}unsupported" >&6; } ;;
2609 CC="$CC $ac_cv_prog_cc_c89"
2610 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2611 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2612 esac
2615 ac_ext=c
2616 ac_cpp='$CPP $CPPFLAGS'
2617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2621 if test $host != $build; then
2622 for ac_prog in gcc cc
2624 # Extract the first word of "$ac_prog", so it can be a program name with args.
2625 set dummy $ac_prog; ac_word=$2
2626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2628 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631 if test -n "$BUILD_CC"; then
2632 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641 ac_cv_prog_BUILD_CC="$ac_prog"
2642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 break 2
2645 done
2646 done
2647 IFS=$as_save_IFS
2651 BUILD_CC=$ac_cv_prog_BUILD_CC
2652 if test -n "$BUILD_CC"; then
2653 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
2654 echo "${ECHO_T}$BUILD_CC" >&6; }
2655 else
2656 { echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6; }
2661 test -n "$BUILD_CC" && break
2662 done
2666 ac_ext=c
2667 ac_cpp='$CPP $CPPFLAGS'
2668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2671 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2672 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2673 # On Suns, sometimes $CPP names a directory.
2674 if test -n "$CPP" && test -d "$CPP"; then
2675 CPP=
2677 if test -z "$CPP"; then
2678 if test "${ac_cv_prog_CPP+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 else
2681 # Double quotes because CPP needs to be expanded
2682 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2684 ac_preproc_ok=false
2685 for ac_c_preproc_warn_flag in '' yes
2687 # Use a header file that comes with gcc, so configuring glibc
2688 # with a fresh cross-compiler works.
2689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2690 # <limits.h> exists even on freestanding compilers.
2691 # On the NeXT, cc -E runs the code through the compiler's parser,
2692 # not just through cpp. "Syntax error" is here to catch this case.
2693 cat >conftest.$ac_ext <<_ACEOF
2694 /* confdefs.h. */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2699 #ifdef __STDC__
2700 # include <limits.h>
2701 #else
2702 # include <assert.h>
2703 #endif
2704 Syntax error
2705 _ACEOF
2706 if { (ac_try="$ac_cpp conftest.$ac_ext"
2707 case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710 esac
2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2713 ac_status=$?
2714 grep -v '^ *+' conftest.er1 >conftest.err
2715 rm -f conftest.er1
2716 cat conftest.err >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); } >/dev/null && {
2719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2720 test ! -s conftest.err
2721 }; then
2723 else
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2727 # Broken: fails on valid input.
2728 continue
2731 rm -f conftest.err conftest.$ac_ext
2733 # OK, works on sane cases. Now check whether nonexistent headers
2734 # can be detected and how.
2735 cat >conftest.$ac_ext <<_ACEOF
2736 /* confdefs.h. */
2737 _ACEOF
2738 cat confdefs.h >>conftest.$ac_ext
2739 cat >>conftest.$ac_ext <<_ACEOF
2740 /* end confdefs.h. */
2741 #include <ac_nonexistent.h>
2742 _ACEOF
2743 if { (ac_try="$ac_cpp conftest.$ac_ext"
2744 case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747 esac
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2750 ac_status=$?
2751 grep -v '^ *+' conftest.er1 >conftest.err
2752 rm -f conftest.er1
2753 cat conftest.err >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } >/dev/null && {
2756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2757 test ! -s conftest.err
2758 }; then
2759 # Broken: success on invalid input.
2760 continue
2761 else
2762 echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2765 # Passes both tests.
2766 ac_preproc_ok=:
2767 break
2770 rm -f conftest.err conftest.$ac_ext
2772 done
2773 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2774 rm -f conftest.err conftest.$ac_ext
2775 if $ac_preproc_ok; then
2776 break
2779 done
2780 ac_cv_prog_CPP=$CPP
2783 CPP=$ac_cv_prog_CPP
2784 else
2785 ac_cv_prog_CPP=$CPP
2787 { echo "$as_me:$LINENO: result: $CPP" >&5
2788 echo "${ECHO_T}$CPP" >&6; }
2789 ac_preproc_ok=false
2790 for ac_c_preproc_warn_flag in '' yes
2792 # Use a header file that comes with gcc, so configuring glibc
2793 # with a fresh cross-compiler works.
2794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2795 # <limits.h> exists even on freestanding compilers.
2796 # On the NeXT, cc -E runs the code through the compiler's parser,
2797 # not just through cpp. "Syntax error" is here to catch this case.
2798 cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h. */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2804 #ifdef __STDC__
2805 # include <limits.h>
2806 #else
2807 # include <assert.h>
2808 #endif
2809 Syntax error
2810 _ACEOF
2811 if { (ac_try="$ac_cpp conftest.$ac_ext"
2812 case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815 esac
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2818 ac_status=$?
2819 grep -v '^ *+' conftest.er1 >conftest.err
2820 rm -f conftest.er1
2821 cat conftest.err >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } >/dev/null && {
2824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2825 test ! -s conftest.err
2826 }; then
2828 else
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2832 # Broken: fails on valid input.
2833 continue
2836 rm -f conftest.err conftest.$ac_ext
2838 # OK, works on sane cases. Now check whether nonexistent headers
2839 # can be detected and how.
2840 cat >conftest.$ac_ext <<_ACEOF
2841 /* confdefs.h. */
2842 _ACEOF
2843 cat confdefs.h >>conftest.$ac_ext
2844 cat >>conftest.$ac_ext <<_ACEOF
2845 /* end confdefs.h. */
2846 #include <ac_nonexistent.h>
2847 _ACEOF
2848 if { (ac_try="$ac_cpp conftest.$ac_ext"
2849 case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2852 esac
2853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2855 ac_status=$?
2856 grep -v '^ *+' conftest.er1 >conftest.err
2857 rm -f conftest.er1
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } >/dev/null && {
2861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2862 test ! -s conftest.err
2863 }; then
2864 # Broken: success on invalid input.
2865 continue
2866 else
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2870 # Passes both tests.
2871 ac_preproc_ok=:
2872 break
2875 rm -f conftest.err conftest.$ac_ext
2877 done
2878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2879 rm -f conftest.err conftest.$ac_ext
2880 if $ac_preproc_ok; then
2882 else
2883 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2884 See \`config.log' for more details." >&5
2885 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2886 See \`config.log' for more details." >&2;}
2887 { (exit 1); exit 1; }; }
2890 ac_ext=c
2891 ac_cpp='$CPP $CPPFLAGS'
2892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2896 # We need the C++ compiler only for testing.
2897 ac_ext=cpp
2898 ac_cpp='$CXXCPP $CPPFLAGS'
2899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2902 if test -z "$CXX"; then
2903 if test -n "$CCC"; then
2904 CXX=$CCC
2905 else
2906 if test -n "$ac_tool_prefix"; then
2907 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2913 if test "${ac_cv_prog_CXX+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916 if test -n "$CXX"; then
2917 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2930 done
2931 done
2932 IFS=$as_save_IFS
2936 CXX=$ac_cv_prog_CXX
2937 if test -n "$CXX"; then
2938 { echo "$as_me:$LINENO: result: $CXX" >&5
2939 echo "${ECHO_T}$CXX" >&6; }
2940 else
2941 { echo "$as_me:$LINENO: result: no" >&5
2942 echo "${ECHO_T}no" >&6; }
2946 test -n "$CXX" && break
2947 done
2949 if test -z "$CXX"; then
2950 ac_ct_CXX=$CXX
2951 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2953 # Extract the first word of "$ac_prog", so it can be a program name with args.
2954 set dummy $ac_prog; 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_ac_ct_CXX+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960 if test -n "$ac_ct_CXX"; then
2961 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2966 IFS=$as_save_IFS
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_ac_ct_CXX="$ac_prog"
2971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2974 done
2975 done
2976 IFS=$as_save_IFS
2980 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2981 if test -n "$ac_ct_CXX"; then
2982 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2983 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2984 else
2985 { echo "$as_me:$LINENO: result: no" >&5
2986 echo "${ECHO_T}no" >&6; }
2990 test -n "$ac_ct_CXX" && break
2991 done
2993 if test "x$ac_ct_CXX" = x; then
2994 CXX="g++"
2995 else
2996 case $cross_compiling:$ac_tool_warned in
2997 yes:)
2998 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2999 whose name does not start with the host triplet. If you think this
3000 configuration is useful to you, please write to autoconf@gnu.org." >&5
3001 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3002 whose name does not start with the host triplet. If you think this
3003 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3004 ac_tool_warned=yes ;;
3005 esac
3006 CXX=$ac_ct_CXX
3012 # Provide some information about the compiler.
3013 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3014 ac_compiler=`set X $ac_compile; echo $2`
3015 { (ac_try="$ac_compiler --version >&5"
3016 case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019 esac
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_compiler --version >&5") 2>&5
3022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }
3025 { (ac_try="$ac_compiler -v >&5"
3026 case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compiler -v >&5") 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }
3035 { (ac_try="$ac_compiler -V >&5"
3036 case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_compiler -V >&5") 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }
3046 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3047 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3048 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 else
3051 cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h. */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3059 main ()
3061 #ifndef __GNUC__
3062 choke me
3063 #endif
3066 return 0;
3068 _ACEOF
3069 rm -f conftest.$ac_objext
3070 if { (ac_try="$ac_compile"
3071 case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compile") 2>conftest.er1
3077 ac_status=$?
3078 grep -v '^ *+' conftest.er1 >conftest.err
3079 rm -f conftest.er1
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } && {
3083 test -z "$ac_cxx_werror_flag" ||
3084 test ! -s conftest.err
3085 } && test -s conftest.$ac_objext; then
3086 ac_compiler_gnu=yes
3087 else
3088 echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3091 ac_compiler_gnu=no
3094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3098 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3099 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3100 GXX=`test $ac_compiler_gnu = yes && echo yes`
3101 ac_test_CXXFLAGS=${CXXFLAGS+set}
3102 ac_save_CXXFLAGS=$CXXFLAGS
3103 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3104 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3105 if test "${ac_cv_prog_cxx_g+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3109 ac_cxx_werror_flag=yes
3110 ac_cv_prog_cxx_g=no
3111 CXXFLAGS="-g"
3112 cat >conftest.$ac_ext <<_ACEOF
3113 /* confdefs.h. */
3114 _ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3120 main ()
3124 return 0;
3126 _ACEOF
3127 rm -f conftest.$ac_objext
3128 if { (ac_try="$ac_compile"
3129 case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_compile") 2>conftest.er1
3135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } && {
3141 test -z "$ac_cxx_werror_flag" ||
3142 test ! -s conftest.err
3143 } && test -s conftest.$ac_objext; then
3144 ac_cv_prog_cxx_g=yes
3145 else
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3149 CXXFLAGS=""
3150 cat >conftest.$ac_ext <<_ACEOF
3151 /* confdefs.h. */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3158 main ()
3162 return 0;
3164 _ACEOF
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3167 case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3173 ac_status=$?
3174 grep -v '^ *+' conftest.er1 >conftest.err
3175 rm -f conftest.er1
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } && {
3179 test -z "$ac_cxx_werror_flag" ||
3180 test ! -s conftest.err
3181 } && test -s conftest.$ac_objext; then
3183 else
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3187 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3188 CXXFLAGS="-g"
3189 cat >conftest.$ac_ext <<_ACEOF
3190 /* confdefs.h. */
3191 _ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3197 main ()
3201 return 0;
3203 _ACEOF
3204 rm -f conftest.$ac_objext
3205 if { (ac_try="$ac_compile"
3206 case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_compile") 2>conftest.er1
3212 ac_status=$?
3213 grep -v '^ *+' conftest.er1 >conftest.err
3214 rm -f conftest.er1
3215 cat conftest.err >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); } && {
3218 test -z "$ac_cxx_werror_flag" ||
3219 test ! -s conftest.err
3220 } && test -s conftest.$ac_objext; then
3221 ac_cv_prog_cxx_g=yes
3222 else
3223 echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3238 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3239 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3240 if test "$ac_test_CXXFLAGS" = set; then
3241 CXXFLAGS=$ac_save_CXXFLAGS
3242 elif test $ac_cv_prog_cxx_g = yes; then
3243 if test "$GXX" = yes; then
3244 CXXFLAGS="-g -O2"
3245 else
3246 CXXFLAGS="-g"
3248 else
3249 if test "$GXX" = yes; then
3250 CXXFLAGS="-O2"
3251 else
3252 CXXFLAGS=
3255 ac_ext=c
3256 ac_cpp='$CPP $CPPFLAGS'
3257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
3263 { { echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
3264 echo "$as_me: error: you must configure in a separate build directory" >&2;}
3265 { (exit 1); exit 1; }; }
3268 # This will get text that should go into config.make.
3269 config_vars=
3271 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3273 # Check whether --with-gd was given.
3274 if test "${with_gd+set}" = set; then
3275 withval=$with_gd; case "$with_gd" in
3276 yes|''|no) ;;
3277 *) libgd_include="-I$withval/include"
3278 libgd_ldflags="-L$withval/lib" ;;
3279 esac
3284 # Check whether --with-gd-include was given.
3285 if test "${with_gd_include+set}" = set; then
3286 withval=$with_gd_include; case "$with_gd_include" in
3287 ''|no) ;;
3288 *) libgd_include="-I$withval" ;;
3289 esac
3294 # Check whether --with-gd-lib was given.
3295 if test "${with_gd_lib+set}" = set; then
3296 withval=$with_gd_lib; case "$with_gd_lib" in
3297 ''|no) ;;
3298 *) libgd_ldflags="-L$withval" ;;
3299 esac
3304 if test -n "$libgd_include"; then
3305 config_vars="$config_vars
3306 CFLAGS-memusagestat.c = $libgd_include"
3308 if test -n "$libgd_ldflags"; then
3309 config_vars="$config_vars
3310 libgd-LDFLAGS = $libgd_ldflags"
3314 # Check whether --with-fp was given.
3315 if test "${with_fp+set}" = set; then
3316 withval=$with_fp; with_fp=$withval
3317 else
3318 with_fp=yes
3323 # Check whether --with-binutils was given.
3324 if test "${with_binutils+set}" = set; then
3325 withval=$with_binutils; path_binutils=$withval
3326 else
3327 path_binutils=''
3331 # Check whether --with-elf was given.
3332 if test "${with_elf+set}" = set; then
3333 withval=$with_elf; elf=$withval
3334 else
3335 elf=no
3339 # Check whether --with-selinux was given.
3340 if test "${with_selinux+set}" = set; then
3341 withval=$with_selinux; with_selinux=$withval
3342 else
3343 with_selinux=auto
3347 # Check whether --with-xcoff was given.
3348 if test "${with_xcoff+set}" = set; then
3349 withval=$with_xcoff; xcoff=$withval
3350 else
3351 xcoff=no
3355 # Check whether --with-cvs was given.
3356 if test "${with_cvs+set}" = set; then
3357 withval=$with_cvs; with_cvs=$withval
3358 else
3359 with_cvs=yes
3362 if test "$with_cvs" = yes; then
3363 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
3364 then
3365 with_cvs=no
3371 # Check whether --with-headers was given.
3372 if test "${with_headers+set}" = set; then
3373 withval=$with_headers; sysheaders=$withval
3374 else
3375 sysheaders=''
3379 # Check whether --enable-sanity-checks was given.
3380 if test "${enable_sanity_checks+set}" = set; then
3381 enableval=$enable_sanity_checks; enable_sanity=$enableval
3382 else
3383 enable_sanity=yes
3388 # Check whether --enable-check-abi was given.
3389 if test "${enable_check_abi+set}" = set; then
3390 enableval=$enable_check_abi; enable_check_abi=$enableval
3391 else
3392 enable_check_abi=no
3396 static=yes
3397 # Check whether --enable-shared was given.
3398 if test "${enable_shared+set}" = set; then
3399 enableval=$enable_shared; shared=$enableval
3400 else
3401 shared=default
3404 # Check whether --enable-profile was given.
3405 if test "${enable_profile+set}" = set; then
3406 enableval=$enable_profile; profile=$enableval
3407 else
3408 profile=no
3411 # Check whether --enable-omitfp was given.
3412 if test "${enable_omitfp+set}" = set; then
3413 enableval=$enable_omitfp; omitfp=$enableval
3414 else
3415 omitfp=no
3418 # Check whether --enable-bounded was given.
3419 if test "${enable_bounded+set}" = set; then
3420 enableval=$enable_bounded; bounded=$enableval
3421 else
3422 bounded=no
3425 # Check whether --enable-versioning was given.
3426 if test "${enable_versioning+set}" = set; then
3427 enableval=$enable_versioning; enable_versioning=$enableval
3428 else
3429 enable_versioning=yes
3433 # Check whether --enable-oldest-abi was given.
3434 if test "${enable_oldest_abi+set}" = set; then
3435 enableval=$enable_oldest_abi; oldest_abi=$enableval
3436 else
3437 oldest_abi=no
3440 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
3441 oldest_abi=default
3442 else
3443 cat >>confdefs.h <<_ACEOF
3444 #define GLIBC_OLDEST_ABI "$oldest_abi"
3445 _ACEOF
3450 # Check whether --enable-stackguard-randomization was given.
3451 if test "${enable_stackguard_randomization+set}" = set; then
3452 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3453 else
3454 enable_stackguard_randomize=no
3457 if test "$enable_stackguard_randomize" = yes; then
3458 cat >>confdefs.h <<\_ACEOF
3459 #define ENABLE_STACKGUARD_RANDOMIZE 1
3460 _ACEOF
3464 # Check whether --enable-add-ons was given.
3465 if test "${enable_add_ons+set}" = set; then
3466 enableval=$enable_add_ons;
3467 else
3468 enable_add_ons=yes
3473 # Check whether --with-tls was given.
3474 if test "${with_tls+set}" = set; then
3475 withval=$with_tls; usetls=$withval
3476 else
3477 usetls=yes
3482 # Check whether --with-__thread was given.
3483 if test "${with___thread+set}" = set; then
3484 withval=$with___thread; use__thread=$withval
3485 else
3486 use__thread=yes
3490 # Check whether --enable-hidden-plt was given.
3491 if test "${enable_hidden_plt+set}" = set; then
3492 enableval=$enable_hidden_plt; hidden=$enableval
3493 else
3494 hidden=yes
3497 if test "x$hidden" = xno; then
3498 cat >>confdefs.h <<\_ACEOF
3499 #define NO_HIDDEN 1
3500 _ACEOF
3504 # Check whether --enable-bind-now was given.
3505 if test "${enable_bind_now+set}" = set; then
3506 enableval=$enable_bind_now; bindnow=$enableval
3507 else
3508 bindnow=no
3513 # Check whether --enable-static-nss was given.
3514 if test "${enable_static_nss+set}" = set; then
3515 enableval=$enable_static_nss; static_nss=$enableval
3516 else
3517 static_nss=no
3520 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3521 static_nss=yes
3522 cat >>confdefs.h <<\_ACEOF
3523 #define DO_STATIC_NSS 1
3524 _ACEOF
3528 # Check whether --enable-force-install was given.
3529 if test "${enable_force_install+set}" = set; then
3530 enableval=$enable_force_install; force_install=$enableval
3531 else
3532 force_install=yes
3537 # Check whether --enable-kernel was given.
3538 if test "${enable_kernel+set}" = set; then
3539 enableval=$enable_kernel; minimum_kernel=$enableval
3542 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3543 # Better nothing than this.
3544 minimum_kernel=""
3545 else
3546 if test "$minimum_kernel" = current; then
3547 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3551 # Check whether --enable-all-warnings was given.
3552 if test "${enable_all_warnings+set}" = set; then
3553 enableval=$enable_all_warnings; all_warnings=$enableval
3558 # Check whether --enable-multi-arch was given.
3559 if test "${enable_multi_arch+set}" = set; then
3560 enableval=$enable_multi_arch; multi_arch=$enableval
3561 else
3562 multi_arch=no
3565 if test x"$multi_arch" = xyes; then
3566 cat >>confdefs.h <<\_ACEOF
3567 #define USE_MULTIARCH 1
3568 _ACEOF
3570 multi_arch_d=/multiarch
3574 # Check whether --enable-experimental-malloc was given.
3575 if test "${enable_experimental_malloc+set}" = set; then
3576 enableval=$enable_experimental_malloc; experimental_malloc=$enableval
3581 # Check whether --enable-nss-crypt was given.
3582 if test "${enable_nss_crypt+set}" = set; then
3583 enableval=$enable_nss_crypt; nss_crypt=$enableval
3584 else
3585 nss_crypt=no
3588 if test x$nss_crypt = xyes; then
3589 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3590 if test $? -ne 0; then
3591 { { echo "$as_me:$LINENO: error: cannot find include directory with nss-config" >&5
3592 echo "$as_me: error: cannot find include directory with nss-config" >&2;}
3593 { (exit 1); exit 1; }; }
3595 old_CFLAGS="$CFLAGS"
3596 CFLAGS="$CFLAGS $nss_includes"
3598 cat >conftest.$ac_ext <<_ACEOF
3599 typedef int PRBool;
3600 #include <hasht.h>
3601 #include <nsslowhash.h>
3602 void f (void) { NSSLOW_Init (); }
3603 _ACEOF
3604 rm -f conftest.$ac_objext
3605 if { (ac_try="$ac_compile"
3606 case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3609 esac
3610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611 (eval "$ac_compile") 2>conftest.er1
3612 ac_status=$?
3613 grep -v '^ *+' conftest.er1 >conftest.err
3614 rm -f conftest.er1
3615 cat conftest.err >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } && {
3618 test -z "$ac_c_werror_flag" ||
3619 test ! -s conftest.err
3620 } && test -s conftest.$ac_objext; then
3621 libc_cv_nss_crypt=yes
3622 else
3623 echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3626 { { echo "$as_me:$LINENO: error:
3627 cannot find NSS headers with lowlevel hash function interfaces" >&5
3628 echo "$as_me: error:
3629 cannot find NSS headers with lowlevel hash function interfaces" >&2;}
3630 { (exit 1); exit 1; }; }
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 old_LIBS="$LIBS"
3635 LIBS="$LIBS -lfreebl3"
3636 cat >conftest.$ac_ext <<_ACEOF
3637 /* confdefs.h. */
3638 _ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h. */
3642 typedef int PRBool;
3643 #include <hasht.h>
3644 #include <nsslowhash.h>
3646 main ()
3648 NSSLOW_Init();
3650 return 0;
3652 _ACEOF
3653 rm -f conftest.$ac_objext conftest$ac_exeext
3654 if { (ac_try="$ac_link"
3655 case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3658 esac
3659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3660 (eval "$ac_link") 2>conftest.er1
3661 ac_status=$?
3662 grep -v '^ *+' conftest.er1 >conftest.err
3663 rm -f conftest.er1
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } && {
3667 test -z "$ac_c_werror_flag" ||
3668 test ! -s conftest.err
3669 } && test -s conftest$ac_exeext &&
3670 $as_test_x conftest$ac_exeext; then
3671 libc_cv_nss_crypt=yes
3672 else
3673 echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 { { echo "$as_me:$LINENO: error:
3677 cannot link program using lowlevel NSS hash functions" >&5
3678 echo "$as_me: error:
3679 cannot link program using lowlevel NSS hash functions" >&2;}
3680 { (exit 1); exit 1; }; }
3683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3684 conftest$ac_exeext conftest.$ac_ext
3685 CFLAGS="$old_CFLAGS"
3686 LIBS="$old_LIBS"
3687 else
3688 libc_cv_nss_crypt=no
3692 # Make sure we can run config.sub.
3693 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3694 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3695 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3696 { (exit 1); exit 1; }; }
3698 { echo "$as_me:$LINENO: checking build system type" >&5
3699 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3700 if test "${ac_cv_build+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703 ac_build_alias=$build_alias
3704 test "x$ac_build_alias" = x &&
3705 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3706 test "x$ac_build_alias" = x &&
3707 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3708 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3709 { (exit 1); exit 1; }; }
3710 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3711 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3712 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3713 { (exit 1); exit 1; }; }
3716 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3717 echo "${ECHO_T}$ac_cv_build" >&6; }
3718 case $ac_cv_build in
3719 *-*-*) ;;
3720 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3721 echo "$as_me: error: invalid value of canonical build" >&2;}
3722 { (exit 1); exit 1; }; };;
3723 esac
3724 build=$ac_cv_build
3725 ac_save_IFS=$IFS; IFS='-'
3726 set x $ac_cv_build
3727 shift
3728 build_cpu=$1
3729 build_vendor=$2
3730 shift; shift
3731 # Remember, the first character of IFS is used to create $*,
3732 # except with old shells:
3733 build_os=$*
3734 IFS=$ac_save_IFS
3735 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3738 { echo "$as_me:$LINENO: checking host system type" >&5
3739 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3740 if test "${ac_cv_host+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743 if test "x$host_alias" = x; then
3744 ac_cv_host=$ac_cv_build
3745 else
3746 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3747 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3748 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3749 { (exit 1); exit 1; }; }
3753 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3754 echo "${ECHO_T}$ac_cv_host" >&6; }
3755 case $ac_cv_host in
3756 *-*-*) ;;
3757 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3758 echo "$as_me: error: invalid value of canonical host" >&2;}
3759 { (exit 1); exit 1; }; };;
3760 esac
3761 host=$ac_cv_host
3762 ac_save_IFS=$IFS; IFS='-'
3763 set x $ac_cv_host
3764 shift
3765 host_cpu=$1
3766 host_vendor=$2
3767 shift; shift
3768 # Remember, the first character of IFS is used to create $*,
3769 # except with old shells:
3770 host_os=$*
3771 IFS=$ac_save_IFS
3772 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3776 # The way shlib-versions is used to generate soversions.mk uses a
3777 # fairly simplistic model for name recognition that can't distinguish
3778 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
3779 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
3780 # tell. This doesn't get used much beyond that, so it's fairly safe.
3781 case "$host_os" in
3782 linux*)
3784 gnu*)
3785 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3787 esac
3789 # We keep the original values in `$config_*' and never modify them, so we
3790 # can write them unchanged into config.make. Everything else uses
3791 # $machine, $vendor, and $os, and changes them whenever convenient.
3792 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3794 # Don't allow vendor == "unknown"
3795 test "$config_vendor" = unknown && config_vendor=
3796 config_os="`echo $config_os | sed 's/^unknown-//'`"
3798 # Some configurations imply other options.
3799 case "$host_os" in
3800 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
3801 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
3803 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
3804 # These systems (almost) always use the ELF format.
3805 elf=yes
3807 aix*)
3808 # These systems are always xcoff
3809 xcoff=yes
3810 elf=no
3812 esac
3814 # The configure fragment of an add-on port can modify these to supplement
3815 # or override the table in the case statement below. No fragment should
3816 # ever change the config_* variables, however.
3817 machine=$config_machine
3818 vendor=$config_vendor
3819 os=$config_os
3820 base_os=''
3822 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
3823 # Unify this here.
3824 if test "$machine" = rs6000; then
3825 machine="powerpc"
3828 # Braindead PowerPC box with absolutely no FPU.
3829 case "$machine-$host_os" in
3830 powerpc*-*soft)
3831 with_fp=no
3833 esac
3835 submachine=
3837 # Check whether --with-cpu was given.
3838 if test "${with_cpu+set}" = set; then
3839 withval=$with_cpu; case "$withval" in
3840 yes|'') { { echo "$as_me:$LINENO: error: --with-cpu requires an argument" >&5
3841 echo "$as_me: error: --with-cpu requires an argument" >&2;}
3842 { (exit 1); exit 1; }; } ;;
3843 no) ;;
3844 *) submachine="$withval" ;;
3845 esac
3850 # An add-on can set this when it wants to disable the sanity check below.
3851 libc_config_ok=no
3853 subdirs="$subdirs "
3856 case "$enable_add_ons" in
3857 ''|no) add_ons= ;;
3858 yes|'*')
3859 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
3860 sed 's@/[^/]*$@@' | sort | uniq`
3861 add_ons_automatic=yes
3863 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
3864 add_ons_automatic=no ;;
3865 esac
3867 configured_add_ons=
3868 add_ons_sfx=
3869 add_ons_pfx=
3870 if test x"$add_ons" != x; then
3871 for f in $add_ons; do
3872 # Some sanity checks
3873 case "$f" in
3874 crypt)
3875 { { echo "$as_me:$LINENO: error:
3876 *** It seems that you're using an old \`crypt' add-on. crypt is now
3877 *** part of glibc and using the old add-on will not work with this
3878 *** release. Start again with fresh sources and without the old
3879 *** \`crypt' add-on." >&5
3880 echo "$as_me: error:
3881 *** It seems that you're using an old \`crypt' add-on. crypt is now
3882 *** part of glibc and using the old add-on will not work with this
3883 *** release. Start again with fresh sources and without the old
3884 *** \`crypt' add-on." >&2;}
3885 { (exit 1); exit 1; }; }
3887 localedata)
3888 { { echo "$as_me:$LINENO: error:
3889 *** It seems that you're using an old \`localedata' add-on. localedata
3890 *** is now part of glibc and using the old add-on will not work with
3891 *** this release. Start again with fresh sources and without the old
3892 *** \`localedata' add-on." >&5
3893 echo "$as_me: error:
3894 *** It seems that you're using an old \`localedata' add-on. localedata
3895 *** is now part of glibc and using the old add-on will not work with
3896 *** this release. Start again with fresh sources and without the old
3897 *** \`localedata' add-on." >&2;}
3898 { (exit 1); exit 1; }; }
3900 esac
3901 done
3903 # Now source each add-on's configure fragment.
3904 # The fragments can use $srcdir/$libc_add_on to find themselves,
3905 # and test $add_ons_automatic to see if they were explicitly requested.
3906 # A fragment can clear (or even change) $libc_add_on to affect
3907 # whether it goes into the list to be actually used in the build.
3908 use_add_ons=
3909 for libc_add_on in $add_ons; do
3910 # Test whether such a directory really exists.
3911 # It can be absolute, or relative to $srcdir, or relative to the build dir.
3912 case "$libc_add_on" in
3914 libc_add_on_srcdir=$libc_add_on
3917 test -d "$srcdir/$libc_add_on" || {
3918 if test -d "$libc_add_on"; then
3919 libc_add_on="`pwd`/$libc_add_on"
3920 else
3921 { { echo "$as_me:$LINENO: error: add-on directory \"$libc_add_on\" does not exist" >&5
3922 echo "$as_me: error: add-on directory \"$libc_add_on\" does not exist" >&2;}
3923 { (exit 1); exit 1; }; }
3926 libc_add_on_srcdir=$srcdir/$libc_add_on
3928 esac
3930 libc_add_on_frag=$libc_add_on_srcdir/configure
3931 libc_add_on_canonical=
3932 if test -r "$libc_add_on_frag"; then
3933 { echo "$as_me:$LINENO: running configure fragment for add-on $libc_add_on" >&5
3934 echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
3935 libc_add_on_canonical=unknown
3936 libc_add_on_subdirs=
3937 . "$libc_add_on_frag"
3938 test -z "$libc_add_on" || {
3939 configured_add_ons="$configured_add_ons $libc_add_on"
3940 if test "x$libc_add_on_canonical" = xunknown; then
3941 { { echo "$as_me:$LINENO: error: fragment must set \$libc_add_on_canonical" >&5
3942 echo "$as_me: error: fragment must set \$libc_add_on_canonical" >&2;}
3943 { (exit 1); exit 1; }; }
3945 for d in $libc_add_on_subdirs; do
3946 case "$libc_add_on" in
3947 /*) subdir_srcdir="$libc_add_on" ;;
3948 *) subdir_srcdir="\$(..)$libc_add_on" ;;
3949 esac
3950 case "$d" in
3952 d="${libc_add_on_canonical:-$libc_add_on}"
3955 subdir_srcdir="$d"
3958 subdir_srcdir="$subdir_srcdir/$d"
3960 esac
3961 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
3962 add_on_subdirs="$add_on_subdirs $d"
3963 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
3964 $d-srcdir = $subdir_srcdir"
3965 done
3968 if test -n "$libc_add_on"; then
3969 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
3970 then
3971 { echo "$as_me:$LINENO: checking add-on $libc_add_on for preconfigure fragments" >&5
3972 echo $ECHO_N "checking add-on $libc_add_on for preconfigure fragments... $ECHO_C" >&6; }
3973 for frag in $frags; do
3974 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
3975 echo $ECHO_N "$name $ECHO_C" >&6
3976 . "$frag"
3977 done
3978 { echo "$as_me:$LINENO: result: " >&5
3979 echo "${ECHO_T}" >&6; }
3981 use_add_ons="$use_add_ons $libc_add_on"
3982 add_ons_pfx="$add_ons_pfx $libc_add_on/"
3983 test -z "$libc_add_on_canonical" ||
3984 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
3986 done
3987 # Use echo to strip excess whitespace.
3988 add_ons="`echo $use_add_ons`"
3995 ### I put this here to prevent those annoying emails from people who cannot
3996 ### read and try to compile glibc on unsupported platforms. --drepper
3998 ### By using the undocumented --enable-hacker-mode option for configure
3999 ### one can skip this test to make the configuration not fail for unsupported
4000 ### platforms.
4002 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
4003 case "$machine-$host_os" in
4004 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
4007 echo "*** The GNU C library is currently not available for this platform."
4008 echo "*** So far nobody cared to port it and if there is no volunteer it"
4009 echo "*** might never happen. So, if you have interest to see glibc on"
4010 echo "*** this platform visit"
4011 echo "*** http://www.gnu.org/software/libc/porting.html"
4012 echo "*** and join the group of porters"
4013 exit 1
4015 esac
4018 # Expand the configuration machine name into a subdirectory by architecture
4019 # type and particular chip. If an add-on configure fragment already set
4020 # base_machine, we don't change it.
4021 test -n "$base_machine" || case "$machine" in
4022 a29k | am29000) base_machine=a29k machine=a29k ;;
4023 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
4024 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
4025 i[34567]86) base_machine=i386 machine=i386/$machine ;;
4026 ia64) base_machine=ia64 machine=ia64 ;;
4027 m88???) base_machine=m88k machine=m88k/$machine ;;
4028 m88k) base_machine=m88k machine=m88k/m88100 ;;
4029 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
4030 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
4031 s390) base_machine=s390 machine=s390/s390-32 ;;
4032 s390x) base_machine=s390 machine=s390/s390-64 ;;
4033 sh3*) base_machine=sh machine=sh/sh3 ;;
4034 sh4*) base_machine=sh machine=sh/sh4 ;;
4035 sparc | sparcv[67])
4036 base_machine=sparc machine=sparc/sparc32 ;;
4037 sparcv8 | supersparc | hypersparc)
4038 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
4039 sparcv8plus | sparcv8plusa | sparcv9)
4040 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
4041 sparcv8plusb | sparcv9b)
4042 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
4043 sparcv9v)
4044 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
4045 sparcv9v2)
4046 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
4047 sparc64)
4048 base_machine=sparc machine=sparc/sparc64 ;;
4049 sparc64b)
4050 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
4051 sparc64v)
4052 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
4053 sparc64v2)
4054 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
4055 *) base_machine=$machine ;;
4056 esac
4059 if test "$base_machine" = "i386"; then
4060 cat >>confdefs.h <<\_ACEOF
4061 #define USE_REGPARMS 1
4062 _ACEOF
4066 # Compute the list of sysdep directories for this configuration.
4067 # This can take a while to compute.
4068 sysdep_dir=$srcdir/sysdeps
4069 { echo "$as_me:$LINENO: checking sysdep dirs" >&5
4070 echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6; }
4071 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
4072 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
4074 test "x$base_os" != x || case "$os" in
4075 gnu*)
4076 base_os=mach/hurd ;;
4077 netbsd* | 386bsd* | freebsd* | bsdi*)
4078 base_os=unix/bsd/bsd4.4 ;;
4079 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
4080 base_os=unix/bsd ;;
4081 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
4082 base_os=unix/sysv ;;
4083 irix6*)
4084 base_os=unix/sysv/irix6/$os ;;
4085 solaris[2-9]*)
4086 base_os=unix/sysv/sysv4 ;;
4087 hpux*)
4088 base_os=unix/sysv/hpux/$os ;;
4089 aix4.3*)
4090 base_os=unix/sysv/aix/aix4.3 ;;
4091 none)
4092 base_os=standalone ;;
4093 esac
4095 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
4096 tail=$os
4097 ostry=$os
4098 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
4099 ostry="$ostry /$o"
4100 tail=$o
4101 done
4102 o=`echo $tail | sed 's/[0-9]*$//'`
4103 if test $o != $tail; then
4104 ostry="$ostry /$o"
4106 # For linux-gnu, try linux-gnu, then linux.
4107 o=`echo $tail | sed 's/-.*$//'`
4108 if test $o != $tail; then
4109 ostry="$ostry /$o"
4112 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
4113 base=
4114 tail=$base_os
4115 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
4116 set $b
4117 base="$base /$1"
4118 tail="$2"
4119 done
4121 # For sparc/sparc32, try sparc/sparc32 and then sparc.
4122 mach=
4123 tail=$machine${submachine:+/$submachine}
4124 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
4125 set $m
4126 # Prepend the machine's FPU directory unless --without-fp.
4127 if test "$with_fp" = yes; then
4128 mach="$mach /$1/fpu"
4129 else
4130 mach="$mach /$1/nofpu"
4132 mach="$mach /$1"
4133 tail="$2"
4134 done
4137 # Find what sysdep directories exist.
4138 sysnames_add_ons=
4139 sysnames=
4140 for b in $base ''; do
4141 for m0 in $mach ''; do
4142 for v in /$vendor ''; do
4143 test "$v" = / && continue
4144 for o in /$ostry ''; do
4145 test "$o" = / && continue
4146 for m in $multi_arch_d $mach ''; do
4147 for d in $add_ons_pfx ''; do
4148 for a in $add_ons_sfx ''; do
4149 if test -n "$m0$m0sub$b$v$o$m$msub"; then
4150 try_srcdir="${srcdir}/"
4151 case "$d" in
4152 /*) try_srcdir= ;;
4153 esac
4154 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
4155 test -n "$enable_debug_configure" &&
4156 echo "$0 DEBUG: try $try" >&2
4157 if test -d "$try_srcdir$try"; then
4158 sysnames="$sysnames $try"
4159 { test -n "$o" || test -n "$b"; } && os_used=t
4160 { test -n "$m" || test -n "$m0"; } && machine_used=t
4161 case x${m0:-$m} in
4162 x*/$submachine) submachine_used=t ;;
4163 esac
4164 if test -n "$d"; then
4165 case "$sysnames_add_ons" in
4166 *" $d "*) ;;
4167 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4168 esac
4172 done
4173 done
4174 done
4175 done
4176 done
4177 done
4178 done
4180 if test -z "$os_used" && test "$os" != none; then
4181 { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
4182 echo "$as_me: error: Operating system $os is not supported." >&2;}
4183 { (exit 1); exit 1; }; }
4185 if test -z "$machine_used" && test "$machine" != none; then
4186 { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
4187 echo "$as_me: error: The $machine is not supported." >&2;}
4188 { (exit 1); exit 1; }; }
4190 if test -z "$submachine_used" && test -n "$submachine"; then
4191 { { echo "$as_me:$LINENO: error: The $submachine subspecies of $host_cpu is not supported." >&5
4192 echo "$as_me: error: The $submachine subspecies of $host_cpu is not supported." >&2;}
4193 { (exit 1); exit 1; }; }
4197 # We have now validated the configuration.
4200 # If using ELF, look for an `elf' subdirectory of each machine directory.
4201 # We prepend these rather than inserting them whereever the machine appears
4202 # because things specified by the machine's ELF ABI should override
4203 # OS-specific things, and should always be the same for any OS on the
4204 # machine (otherwise what's the point of an ABI?).
4205 if test "$elf" = yes; then
4206 elf_dirs=
4207 for d in $add_ons_pfx ''; do
4208 for m in $mach; do
4209 if test -d $srcdir/${d}sysdeps$m/elf; then
4210 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
4212 done
4213 done
4214 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
4218 # Expand the list of system names into a full list of directories
4219 # from each element's parent name and Implies file (if present).
4220 set $sysnames
4221 names=
4222 while test $# -gt 0; do
4223 name=$1
4224 shift
4226 case " $names " in *" $name "*)
4227 # Already in the list.
4228 continue
4229 esac
4231 # Report each name as we discover it, so there is no long pause in output.
4232 echo $ECHO_N "$name $ECHO_C" >&6
4234 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4236 case $name in
4237 /*) xsrcdir= ;;
4238 *) xsrcdir=$srcdir/ ;;
4239 esac
4240 test -n "$enable_debug_configure" &&
4241 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4243 if test -f $xsrcdir$name/Implies; then
4244 # Collect more names from the `Implies' file (removing comments).
4245 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
4246 implied=
4247 for x in $implied_candidate; do
4248 found=no
4249 if test -d $xsrcdir$name_base/$x; then
4250 implied="$implied $name_base/$x";
4251 found=yes
4253 for d in $add_ons_pfx ''; do
4254 try="${d}sysdeps/$x"
4255 case $d in
4256 /*) try_srcdir= ;;
4257 *) try_srcdir=$srcdir/ ;;
4258 esac
4259 test -n "$enable_debug_configure" &&
4260 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
4261 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4262 then
4263 implied="$implied $try"
4264 found=yes
4265 case "$sysnames_add_ons" in
4266 *" $d "*) ;;
4267 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4268 esac
4270 done
4271 if test $found = no; then
4272 { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
4273 echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
4275 done
4276 else
4277 implied=
4280 # Add NAME to the list of names.
4281 names="$names $name"
4283 # Find the parent of NAME, using the empty string if it has none.
4284 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
4286 # Add the names implied by NAME, and NAME's parent (if it has one), to
4287 # the list of names to be processed (the argument list). We prepend the
4288 # implied names to the list and append the parent. We want implied
4289 # directories to come before further directories inferred from the
4290 # configuration components; this ensures that for sysv4, unix/common
4291 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4292 # after sysv4).
4293 sysnames="`echo $implied $* $parent`"
4294 test -n "$sysnames" && set $sysnames
4295 done
4297 # Add the default directories.
4298 default_sysnames=sysdeps/generic
4299 if test "$elf" = yes; then
4300 default_sysnames="sysdeps/generic/elf $default_sysnames"
4302 sysnames="$names $default_sysnames"
4304 # The other names were emitted during the scan.
4305 { echo "$as_me:$LINENO: result: $default_sysnames" >&5
4306 echo "${ECHO_T}$default_sysnames" >&6; }
4308 # Collect the list of add-ons that supply partial sysdeps trees.
4309 sysdeps_add_ons=
4310 for add_on in $add_ons; do
4311 case "$add_on" in
4312 /*) xsrcdir= ;;
4313 *) xsrcdir="$srcdir/" ;;
4314 esac
4316 test -d "$xsrcdir$add_on/sysdeps" || {
4317 case "$configured_add_ons " in
4318 *" $add_on "*) ;;
4319 *|'')
4320 { { echo "$as_me:$LINENO: error: add-on $add_on has no configure fragment or sysdeps tree" >&5
4321 echo "$as_me: error: add-on $add_on has no configure fragment or sysdeps tree" >&2;}
4322 { (exit 1); exit 1; }; }
4324 esac
4325 continue
4328 sysdeps_add_ons="$sysdeps_add_ons $add_on"
4329 case "$sysnames_add_ons" in
4330 *" $add_on/ "*) ;;
4331 *|'')
4332 { echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no sysdeps directories" >&5
4333 echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
4334 continue ;;
4335 esac
4337 found=no
4338 for d in $sysnames; do
4339 case "$d" in
4340 $add_on/sysdeps/*) ;;
4341 *) continue ;;
4342 esac
4343 (cd "$xsrcdir$d" && for f in *[!~]; do
4344 case "$f" in
4345 sys|bits)
4346 for ff in $f/*.h; do
4347 test -d "$ff" || { test -e "$ff" && exit 88; }
4348 done
4351 test -d "$f" || { test -e "$f" && exit 88; }
4353 esac
4354 done)
4355 if test $? -eq 88; then
4356 found=yes
4357 break
4359 done
4360 if test $found = no; then
4361 { echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
4362 echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
4364 done
4368 ### Locate tools.
4370 # Find a good install program. We prefer a C program (faster),
4371 # so one script is as good as another. But avoid the broken or
4372 # incompatible versions:
4373 # SysV /etc/install, /usr/sbin/install
4374 # SunOS /usr/etc/install
4375 # IRIX /sbin/install
4376 # AIX /bin/install
4377 # AmigaOS /C/install, which installs bootblocks on floppy discs
4378 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4379 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4380 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4381 # OS/2's system install, which has a completely different semantic
4382 # ./install, which can be erroneously created by make from ./install.sh.
4383 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4384 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4385 if test -z "$INSTALL"; then
4386 if test "${ac_cv_path_install+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 else
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
4394 # Account for people who put trailing slashes in PATH elements.
4395 case $as_dir/ in
4396 ./ | .// | /cC/* | \
4397 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4398 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4399 /usr/ucb/* ) ;;
4401 # OSF1 and SCO ODT 3.0 have their own names for install.
4402 # Don't use installbsd from OSF since it installs stuff as root
4403 # by default.
4404 for ac_prog in ginstall scoinst install; do
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4407 if test $ac_prog = install &&
4408 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4409 # AIX install. It has an incompatible calling convention.
4411 elif test $ac_prog = install &&
4412 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4413 # program-specific install script used by HP pwplus--don't use.
4415 else
4416 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4417 break 3
4420 done
4421 done
4423 esac
4424 done
4425 IFS=$as_save_IFS
4429 if test "${ac_cv_path_install+set}" = set; then
4430 INSTALL=$ac_cv_path_install
4431 else
4432 # As a last resort, use the slow shell script. Don't cache a
4433 # value for INSTALL within a source directory, because that will
4434 # break other packages using the cache if that directory is
4435 # removed, or if the value is a relative name.
4436 INSTALL=$ac_install_sh
4439 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4440 echo "${ECHO_T}$INSTALL" >&6; }
4442 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4443 # It thinks the first close brace ends the variable substitution.
4444 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4446 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4448 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4450 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4451 # The makefiles need to use a different form to find it in $srcdir.
4452 INSTALL='\$(..)./scripts/install-sh -c'
4454 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4455 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4456 LN_S=$as_ln_s
4457 if test "$LN_S" = "ln -s"; then
4458 { echo "$as_me:$LINENO: result: yes" >&5
4459 echo "${ECHO_T}yes" >&6; }
4460 else
4461 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4462 echo "${ECHO_T}no, using $LN_S" >&6; }
4466 # Was a --with-binutils option given?
4467 if test -n "$path_binutils"; then
4468 # Make absolute; ensure a single trailing slash.
4469 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4470 CC="$CC -B$path_binutils"
4472 AS=`$CC -print-prog-name=as`
4473 LD=`$CC -print-prog-name=ld`
4474 AR=`$CC -print-prog-name=ar`
4476 OBJDUMP=`$CC -print-prog-name=objdump`
4479 # ranlib has to be treated a bit differently since it might not exist at all.
4480 ac_ranlib=`$CC -print-prog-name=ranlib`
4481 if test "x$ac_ranlib" = xranlib; then
4482 # This extra check has to happen since gcc simply echos the parameter in
4483 # case it cannot find the value in its own directories.
4484 if test -n "$ac_tool_prefix"; then
4485 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4486 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4489 if test "${ac_cv_prog_RANLIB+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492 if test -n "$RANLIB"; then
4493 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4494 else
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4498 IFS=$as_save_IFS
4499 test -z "$as_dir" && as_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4504 break 2
4506 done
4507 done
4508 IFS=$as_save_IFS
4512 RANLIB=$ac_cv_prog_RANLIB
4513 if test -n "$RANLIB"; then
4514 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4515 echo "${ECHO_T}$RANLIB" >&6; }
4516 else
4517 { echo "$as_me:$LINENO: result: no" >&5
4518 echo "${ECHO_T}no" >&6; }
4523 if test -z "$ac_cv_prog_RANLIB"; then
4524 ac_ct_RANLIB=$RANLIB
4525 # Extract the first word of "ranlib", so it can be a program name with args.
4526 set dummy ranlib; ac_word=$2
4527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4529 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 else
4532 if test -n "$ac_ct_RANLIB"; then
4533 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_prog_ac_ct_RANLIB="ranlib"
4543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4546 done
4547 done
4548 IFS=$as_save_IFS
4552 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4553 if test -n "$ac_ct_RANLIB"; then
4554 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4555 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4556 else
4557 { echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6; }
4561 if test "x$ac_ct_RANLIB" = x; then
4562 RANLIB=":"
4563 else
4564 case $cross_compiling:$ac_tool_warned in
4565 yes:)
4566 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4567 whose name does not start with the host triplet. If you think this
4568 configuration is useful to you, please write to autoconf@gnu.org." >&5
4569 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4570 whose name does not start with the host triplet. If you think this
4571 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4572 ac_tool_warned=yes ;;
4573 esac
4574 RANLIB=$ac_ct_RANLIB
4576 else
4577 RANLIB="$ac_cv_prog_RANLIB"
4580 else
4581 RANLIB=$ac_ranlib
4585 # Determine whether we are using GNU binutils.
4586 { echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
4587 echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6; }
4588 if test "${libc_cv_prog_as_gnu+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591 # Most GNU programs take a -v and spit out some text including
4592 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4593 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4594 libc_cv_prog_as_gnu=yes
4595 else
4596 libc_cv_prog_as_gnu=no
4598 rm -fr contest*
4600 { echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
4601 echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6; }
4602 rm -f a.out
4603 gnu_as=$libc_cv_prog_as_gnu
4605 { echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
4606 echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6; }
4607 if test "${libc_cv_prog_ld_gnu+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610 # Most GNU programs take a -v and spit out some text including
4611 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4612 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4613 libc_cv_prog_ld_gnu=yes
4614 else
4615 libc_cv_prog_ld_gnu=no
4617 rm -fr contest*
4619 { echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
4620 echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6; }
4621 gnu_ld=$libc_cv_prog_ld_gnu
4624 # Accept binutils 2.13 or newer.
4625 for ac_prog in $AS
4627 # Extract the first word of "$ac_prog", so it can be a program name with args.
4628 set dummy $ac_prog; ac_word=$2
4629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4631 if test "${ac_cv_prog_AS+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634 if test -n "$AS"; then
4635 ac_cv_prog_AS="$AS" # Let the user override the test.
4636 else
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4644 ac_cv_prog_AS="$ac_prog"
4645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 break 2
4648 done
4649 done
4650 IFS=$as_save_IFS
4654 AS=$ac_cv_prog_AS
4655 if test -n "$AS"; then
4656 { echo "$as_me:$LINENO: result: $AS" >&5
4657 echo "${ECHO_T}$AS" >&6; }
4658 else
4659 { echo "$as_me:$LINENO: result: no" >&5
4660 echo "${ECHO_T}no" >&6; }
4664 test -n "$AS" && break
4665 done
4667 if test -z "$AS"; then
4668 ac_verc_fail=yes
4669 else
4670 # Found it, now check the version.
4671 { echo "$as_me:$LINENO: checking version of $AS" >&5
4672 echo $ECHO_N "checking version of $AS... $ECHO_C" >&6; }
4673 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4674 case $ac_prog_version in
4675 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4676 2.1[3-9]*)
4677 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4678 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4680 esac
4681 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4682 echo "${ECHO_T}$ac_prog_version" >&6; }
4684 if test $ac_verc_fail = yes; then
4685 AS=: critic_missing="$critic_missing as"
4688 for ac_prog in $LD
4690 # Extract the first word of "$ac_prog", so it can be a program name with args.
4691 set dummy $ac_prog; ac_word=$2
4692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4694 if test "${ac_cv_prog_LD+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697 if test -n "$LD"; then
4698 ac_cv_prog_LD="$LD" # Let the user override the test.
4699 else
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707 ac_cv_prog_LD="$ac_prog"
4708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4711 done
4712 done
4713 IFS=$as_save_IFS
4717 LD=$ac_cv_prog_LD
4718 if test -n "$LD"; then
4719 { echo "$as_me:$LINENO: result: $LD" >&5
4720 echo "${ECHO_T}$LD" >&6; }
4721 else
4722 { echo "$as_me:$LINENO: result: no" >&5
4723 echo "${ECHO_T}no" >&6; }
4727 test -n "$LD" && break
4728 done
4730 if test -z "$LD"; then
4731 ac_verc_fail=yes
4732 else
4733 # Found it, now check the version.
4734 { echo "$as_me:$LINENO: checking version of $LD" >&5
4735 echo $ECHO_N "checking version of $LD... $ECHO_C" >&6; }
4736 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4737 case $ac_prog_version in
4738 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4739 2.1[3-9]*)
4740 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4741 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4743 esac
4744 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4745 echo "${ECHO_T}$ac_prog_version" >&6; }
4747 if test $ac_verc_fail = yes; then
4748 LD=: critic_missing="$critic_missing ld"
4752 # We need the physical current working directory. We cannot use the
4753 # "pwd -P" shell builtin since that's not portable. Instead we try to
4754 # find a pwd binary. Note that assigning to the PWD environment
4755 # variable might have some interesting side effects, so we don't do
4756 # that.
4757 # Extract the first word of "pwd", so it can be a program name with args.
4758 set dummy pwd; ac_word=$2
4759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4761 if test "${ac_cv_path_PWD_P+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764 case $PWD_P in
4765 [\\/]* | ?:[\\/]*)
4766 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH
4772 IFS=$as_save_IFS
4773 test -z "$as_dir" && as_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4776 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 break 2
4780 done
4781 done
4782 IFS=$as_save_IFS
4784 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4786 esac
4788 PWD_P=$ac_cv_path_PWD_P
4789 if test -n "$PWD_P"; then
4790 { echo "$as_me:$LINENO: result: $PWD_P" >&5
4791 echo "${ECHO_T}$PWD_P" >&6; }
4792 else
4793 { echo "$as_me:$LINENO: result: no" >&5
4794 echo "${ECHO_T}no" >&6; }
4798 if test "$PWD_P" = no; then
4799 { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
4800 echo "$as_me: error: *** A pwd binary could not be found." >&2;}
4801 { (exit 1); exit 1; }; }
4804 # These programs are version sensitive.
4806 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4808 # Extract the first word of "$ac_prog", so it can be a program name with args.
4809 set dummy $ac_prog; ac_word=$2
4810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4812 if test "${ac_cv_prog_CC+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815 if test -n "$CC"; then
4816 ac_cv_prog_CC="$CC" # Let the user override the test.
4817 else
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4825 ac_cv_prog_CC="$ac_prog"
4826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4829 done
4830 done
4831 IFS=$as_save_IFS
4835 CC=$ac_cv_prog_CC
4836 if test -n "$CC"; then
4837 { echo "$as_me:$LINENO: result: $CC" >&5
4838 echo "${ECHO_T}$CC" >&6; }
4839 else
4840 { echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6; }
4845 test -n "$CC" && break
4846 done
4848 if test -z "$CC"; then
4849 ac_verc_fail=yes
4850 else
4851 # Found it, now check the version.
4852 { echo "$as_me:$LINENO: checking version of $CC" >&5
4853 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6; }
4854 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
4855 case $ac_prog_version in
4856 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4857 3.4* | 4.[0-9]* )
4858 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4859 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4861 esac
4862 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4863 echo "${ECHO_T}$ac_prog_version" >&6; }
4865 if test $ac_verc_fail = yes; then
4866 critic_missing="$critic_missing gcc"
4869 for ac_prog in gnumake gmake make
4871 # Extract the first word of "$ac_prog", so it can be a program name with args.
4872 set dummy $ac_prog; ac_word=$2
4873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4875 if test "${ac_cv_prog_MAKE+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878 if test -n "$MAKE"; then
4879 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4880 else
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 for as_dir in $PATH
4884 IFS=$as_save_IFS
4885 test -z "$as_dir" && as_dir=.
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4888 ac_cv_prog_MAKE="$ac_prog"
4889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 break 2
4892 done
4893 done
4894 IFS=$as_save_IFS
4898 MAKE=$ac_cv_prog_MAKE
4899 if test -n "$MAKE"; then
4900 { echo "$as_me:$LINENO: result: $MAKE" >&5
4901 echo "${ECHO_T}$MAKE" >&6; }
4902 else
4903 { echo "$as_me:$LINENO: result: no" >&5
4904 echo "${ECHO_T}no" >&6; }
4908 test -n "$MAKE" && break
4909 done
4911 if test -z "$MAKE"; then
4912 ac_verc_fail=yes
4913 else
4914 # Found it, now check the version.
4915 { echo "$as_me:$LINENO: checking version of $MAKE" >&5
4916 echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6; }
4917 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4918 case $ac_prog_version in
4919 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4920 3.79* | 3.[89]*)
4921 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4922 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4924 esac
4925 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4926 echo "${ECHO_T}$ac_prog_version" >&6; }
4928 if test $ac_verc_fail = yes; then
4929 critic_missing="$critic_missing make"
4933 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4935 # Extract the first word of "$ac_prog", so it can be a program name with args.
4936 set dummy $ac_prog; ac_word=$2
4937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4939 if test "${ac_cv_prog_MSGFMT+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942 if test -n "$MSGFMT"; then
4943 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4944 else
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4948 IFS=$as_save_IFS
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952 ac_cv_prog_MSGFMT="$ac_prog"
4953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4954 break 2
4956 done
4957 done
4958 IFS=$as_save_IFS
4962 MSGFMT=$ac_cv_prog_MSGFMT
4963 if test -n "$MSGFMT"; then
4964 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4965 echo "${ECHO_T}$MSGFMT" >&6; }
4966 else
4967 { echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6; }
4972 test -n "$MSGFMT" && break
4973 done
4975 if test -z "$MSGFMT"; then
4976 ac_verc_fail=yes
4977 else
4978 # Found it, now check the version.
4979 { echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
4980 echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6; }
4981 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4982 case $ac_prog_version in
4983 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4984 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4985 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4986 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4988 esac
4989 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4990 echo "${ECHO_T}$ac_prog_version" >&6; }
4992 if test $ac_verc_fail = yes; then
4993 MSGFMT=: aux_missing="$aux_missing msgfmt"
4996 for ac_prog in makeinfo
4998 # Extract the first word of "$ac_prog", so it can be a program name with args.
4999 set dummy $ac_prog; ac_word=$2
5000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5002 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005 if test -n "$MAKEINFO"; then
5006 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015 ac_cv_prog_MAKEINFO="$ac_prog"
5016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 break 2
5019 done
5020 done
5021 IFS=$as_save_IFS
5025 MAKEINFO=$ac_cv_prog_MAKEINFO
5026 if test -n "$MAKEINFO"; then
5027 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5028 echo "${ECHO_T}$MAKEINFO" >&6; }
5029 else
5030 { echo "$as_me:$LINENO: result: no" >&5
5031 echo "${ECHO_T}no" >&6; }
5035 test -n "$MAKEINFO" && break
5036 done
5038 if test -z "$MAKEINFO"; then
5039 ac_verc_fail=yes
5040 else
5041 # Found it, now check the version.
5042 { echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
5043 echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6; }
5044 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5045 case $ac_prog_version in
5046 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5047 4.*)
5048 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5049 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5051 esac
5052 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5053 echo "${ECHO_T}$ac_prog_version" >&6; }
5055 if test $ac_verc_fail = yes; then
5056 MAKEINFO=: aux_missing="$aux_missing makeinfo"
5059 for ac_prog in sed
5061 # Extract the first word of "$ac_prog", so it can be a program name with args.
5062 set dummy $ac_prog; ac_word=$2
5063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5065 if test "${ac_cv_prog_SED+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068 if test -n "$SED"; then
5069 ac_cv_prog_SED="$SED" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078 ac_cv_prog_SED="$ac_prog"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5082 done
5083 done
5084 IFS=$as_save_IFS
5088 SED=$ac_cv_prog_SED
5089 if test -n "$SED"; then
5090 { echo "$as_me:$LINENO: result: $SED" >&5
5091 echo "${ECHO_T}$SED" >&6; }
5092 else
5093 { echo "$as_me:$LINENO: result: no" >&5
5094 echo "${ECHO_T}no" >&6; }
5098 test -n "$SED" && break
5099 done
5101 if test -z "$SED"; then
5102 ac_verc_fail=yes
5103 else
5104 # Found it, now check the version.
5105 { echo "$as_me:$LINENO: checking version of $SED" >&5
5106 echo $ECHO_N "checking version of $SED... $ECHO_C" >&6; }
5107 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
5108 case $ac_prog_version in
5109 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5110 3.0[2-9]*|3.[1-9]*|[4-9]*)
5111 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5112 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5114 esac
5115 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5116 echo "${ECHO_T}$ac_prog_version" >&6; }
5118 if test $ac_verc_fail = yes; then
5119 SED=: aux_missing="$aux_missing sed"
5123 for ac_prog in autoconf
5125 # Extract the first word of "$ac_prog", so it can be a program name with args.
5126 set dummy $ac_prog; ac_word=$2
5127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5129 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132 if test -n "$AUTOCONF"; then
5133 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5134 else
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142 ac_cv_prog_AUTOCONF="$ac_prog"
5143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 break 2
5146 done
5147 done
5148 IFS=$as_save_IFS
5152 AUTOCONF=$ac_cv_prog_AUTOCONF
5153 if test -n "$AUTOCONF"; then
5154 { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
5155 echo "${ECHO_T}$AUTOCONF" >&6; }
5156 else
5157 { echo "$as_me:$LINENO: result: no" >&5
5158 echo "${ECHO_T}no" >&6; }
5162 test -n "$AUTOCONF" && break
5163 done
5164 test -n "$AUTOCONF" || AUTOCONF="no"
5166 case "x$AUTOCONF" in
5167 xno|x|x:) AUTOCONF=no ;;
5169 { echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5170 echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6; }
5171 if test "${libc_cv_autoconf_works+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5175 libc_cv_autoconf_works=yes
5176 else
5177 libc_cv_autoconf_works=no
5180 { echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
5181 echo "${ECHO_T}$libc_cv_autoconf_works" >&6; }
5182 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5184 esac
5185 if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
5186 # If --without-cvs they probably won't change configure.in, so no complaints.
5187 aux_missing="$aux_missing autoconf"
5190 test -n "$critic_missing" && { { echo "$as_me:$LINENO: error:
5191 *** These critical programs are missing or too old:$critic_missing
5192 *** Check the INSTALL file for required versions." >&5
5193 echo "$as_me: error:
5194 *** These critical programs are missing or too old:$critic_missing
5195 *** Check the INSTALL file for required versions." >&2;}
5196 { (exit 1); exit 1; }; }
5198 test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
5199 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5200 *** some features will be disabled.
5201 *** Check the INSTALL file for required versions." >&5
5202 echo "$as_me: WARNING:
5203 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5204 *** some features will be disabled.
5205 *** Check the INSTALL file for required versions." >&2;}
5207 # if using special system headers, find out the compiler's sekrit
5208 # header directory and add that to the list. NOTE: Only does the right
5209 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5210 if test -n "$sysheaders"; then
5211 SYSINCLUDES=-nostdinc
5212 for d in include include-fixed; do
5213 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5214 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5215 done
5216 SYSINCLUDES="$SYSINCLUDES \
5217 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5218 if test -n "$CXX"; then
5219 cxxversion=`$CXX -dumpversion 2>&5` &&
5220 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5221 cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" &&
5222 CXX_SYSINCLUDES="-isystem $cxxheaders \
5223 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5229 # check if ranlib is necessary
5230 { echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
5231 echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6; }
5232 if test "${libc_cv_ranlib_necessary+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235 cat > conftest.c <<EOF
5236 int a;
5237 char b;
5238 void c(void) {}
5240 $CC $CFLAGS $CPPFLAGS -c conftest.c
5241 $AR cr conftest.a conftest.o
5242 cp conftest.a conftest2.a
5243 $RANLIB conftest.a
5244 if cmp -s conftest.a conftest2.a; then
5245 libc_cv_ranlib_necessary=no
5246 else
5247 libc_cv_ranlib_necessary=yes
5249 rm -rf conftest*
5251 { echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
5252 echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6; }
5253 if test "$libc_cv_ranlib_necessary" = no; then
5254 RANLIB=:
5257 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5258 # since this would lead to problems installing/building glibc.
5259 # LD_LIBRARY_PATH contains the current directory if one of the following
5260 # is true:
5261 # - one of the terminals (":" and ";") is the first or last sign
5262 # - two terminals occur directly after each other
5263 # - the path contains an element with a dot in it
5264 { echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
5265 echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6; }
5266 case ${LD_LIBRARY_PATH} in
5267 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5268 ld_library_path_setting="contains current directory"
5271 ld_library_path_setting="ok"
5273 esac
5274 { echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
5275 echo "${ECHO_T}$ld_library_path_setting" >&6; }
5276 if test "$ld_library_path_setting" != "ok"; then
5277 { { echo "$as_me:$LINENO: error:
5278 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5279 *** building glibc. Please change the environment variable
5280 *** and run configure again." >&5
5281 echo "$as_me: error:
5282 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5283 *** building glibc. Please change the environment variable
5284 *** and run configure again." >&2;}
5285 { (exit 1); exit 1; }; }
5288 { echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
5289 echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6; }
5290 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5294 libc_cv_gcc_static_libgcc=
5295 else
5296 libc_cv_gcc_static_libgcc=-static-libgcc
5299 { echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
5300 echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6; }
5303 # Extract the first word of "bash", so it can be a program name with args.
5304 set dummy bash; ac_word=$2
5305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5307 if test "${ac_cv_path_BASH_SHELL+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5310 case $BASH_SHELL in
5311 [\\/]* | ?:[\\/]*)
5312 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 break 2
5326 done
5327 done
5328 IFS=$as_save_IFS
5330 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5332 esac
5334 BASH_SHELL=$ac_cv_path_BASH_SHELL
5335 if test -n "$BASH_SHELL"; then
5336 { echo "$as_me:$LINENO: result: $BASH_SHELL" >&5
5337 echo "${ECHO_T}$BASH_SHELL" >&6; }
5338 else
5339 { echo "$as_me:$LINENO: result: no" >&5
5340 echo "${ECHO_T}no" >&6; }
5344 if test "$BASH_SHELL" != no &&
5345 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5346 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5347 libc_cv_have_bash2=yes
5348 else
5349 libc_cv_have_bash2=no
5353 if test "$BASH_SHELL" = no; then
5354 # Extract the first word of "ksh", so it can be a program name with args.
5355 set dummy ksh; ac_word=$2
5356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5358 if test "${ac_cv_path_KSH+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 else
5361 case $KSH in
5362 [\\/]* | ?:[\\/]*)
5363 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5377 done
5378 done
5379 IFS=$as_save_IFS
5381 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5383 esac
5385 KSH=$ac_cv_path_KSH
5386 if test -n "$KSH"; then
5387 { echo "$as_me:$LINENO: result: $KSH" >&5
5388 echo "${ECHO_T}$KSH" >&6; }
5389 else
5390 { echo "$as_me:$LINENO: result: no" >&5
5391 echo "${ECHO_T}no" >&6; }
5395 if test "$KSH" = no; then
5396 libc_cv_have_ksh=no
5397 else
5398 libc_cv_have_ksh=yes
5400 else
5401 KSH="$BASH_SHELL"
5403 libc_cv_have_ksh=yes
5407 for ac_prog in gawk mawk nawk awk
5409 # Extract the first word of "$ac_prog", so it can be a program name with args.
5410 set dummy $ac_prog; ac_word=$2
5411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5413 if test "${ac_cv_prog_AWK+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 else
5416 if test -n "$AWK"; then
5417 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5418 else
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5426 ac_cv_prog_AWK="$ac_prog"
5427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5430 done
5431 done
5432 IFS=$as_save_IFS
5436 AWK=$ac_cv_prog_AWK
5437 if test -n "$AWK"; then
5438 { echo "$as_me:$LINENO: result: $AWK" >&5
5439 echo "${ECHO_T}$AWK" >&6; }
5440 else
5441 { echo "$as_me:$LINENO: result: no" >&5
5442 echo "${ECHO_T}no" >&6; }
5446 test -n "$AWK" && break
5447 done
5449 # Extract the first word of "perl", so it can be a program name with args.
5450 set dummy perl; ac_word=$2
5451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5453 if test "${ac_cv_path_PERL+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5455 else
5456 case $PERL in
5457 [\\/]* | ?:[\\/]*)
5458 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5468 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 break 2
5472 done
5473 done
5474 IFS=$as_save_IFS
5476 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5478 esac
5480 PERL=$ac_cv_path_PERL
5481 if test -n "$PERL"; then
5482 { echo "$as_me:$LINENO: result: $PERL" >&5
5483 echo "${ECHO_T}$PERL" >&6; }
5484 else
5485 { echo "$as_me:$LINENO: result: no" >&5
5486 echo "${ECHO_T}no" >&6; }
5490 if test "$PERL" != no &&
5491 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5492 PERL=no
5494 # Extract the first word of "install-info", so it can be a program name with args.
5495 set dummy install-info; ac_word=$2
5496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5498 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 else
5501 case $INSTALL_INFO in
5502 [\\/]* | ?:[\\/]*)
5503 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5508 for as_dir in $as_dummy
5510 IFS=$as_save_IFS
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 break 2
5518 done
5519 done
5520 IFS=$as_save_IFS
5522 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5524 esac
5526 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5527 if test -n "$INSTALL_INFO"; then
5528 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5529 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5530 else
5531 { echo "$as_me:$LINENO: result: no" >&5
5532 echo "${ECHO_T}no" >&6; }
5536 # Extract the first word of "bison", so it can be a program name with args.
5537 set dummy bison; ac_word=$2
5538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5540 if test "${ac_cv_path_BISON+set}" = set; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 else
5543 case $BISON in
5544 [\\/]* | ?:[\\/]*)
5545 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5550 for as_dir in $as_dummy
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5560 done
5561 done
5562 IFS=$as_save_IFS
5564 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5566 esac
5568 BISON=$ac_cv_path_BISON
5569 if test -n "$BISON"; then
5570 { echo "$as_me:$LINENO: result: $BISON" >&5
5571 echo "${ECHO_T}$BISON" >&6; }
5572 else
5573 { echo "$as_me:$LINENO: result: no" >&5
5574 echo "${ECHO_T}no" >&6; }
5579 { echo "$as_me:$LINENO: checking for signed size_t type" >&5
5580 echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6; }
5581 if test "${libc_cv_signed_size_t+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5583 else
5584 echo '#include <stddef.h>
5585 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5586 if eval "$ac_cpp conftest.c 2>/dev/null" \
5587 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5588 libc_cv_signed_size_t=no
5589 else
5590 libc_cv_signed_size_t=yes
5592 rm -f conftest*
5594 { echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
5595 echo "${ECHO_T}$libc_cv_signed_size_t" >&6; }
5596 if test $libc_cv_signed_size_t = yes; then
5597 cat >> confdefs.h <<\EOF
5598 #undef __SIZE_TYPE__
5599 #define __SIZE_TYPE__ unsigned
5603 { echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
5604 echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6; }
5605 if test "${libc_cv_friendly_stddef+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 else
5608 cat >conftest.$ac_ext <<_ACEOF
5609 /* confdefs.h. */
5610 _ACEOF
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h. */
5614 #define __need_size_t
5615 #define __need_wchar_t
5616 #include <stddef.h>
5617 #define __need_NULL
5618 #include <stddef.h>
5620 main ()
5622 size_t size; wchar_t wchar;
5623 #ifdef offsetof
5624 #error stddef.h ignored __need_*
5625 #endif
5626 if (&size == NULL || &wchar == NULL) abort ();
5628 return 0;
5630 _ACEOF
5631 rm -f conftest.$ac_objext
5632 if { (ac_try="$ac_compile"
5633 case "(($ac_try" in
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5636 esac
5637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_compile") 2>conftest.er1
5639 ac_status=$?
5640 grep -v '^ *+' conftest.er1 >conftest.err
5641 rm -f conftest.er1
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } && {
5645 test -z "$ac_c_werror_flag" ||
5646 test ! -s conftest.err
5647 } && test -s conftest.$ac_objext; then
5648 libc_cv_friendly_stddef=yes
5649 else
5650 echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5653 libc_cv_friendly_stddef=no
5656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5658 { echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
5659 echo "${ECHO_T}$libc_cv_friendly_stddef" >&6; }
5660 if test $libc_cv_friendly_stddef = yes; then
5661 config_vars="$config_vars
5662 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5665 { echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
5666 echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6; }
5667 if test "${libc_cv_need_minus_P+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670 cat > conftest.S <<EOF
5671 #include "confdefs.h"
5672 /* Nothing whatsoever. */
5674 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676 (eval $ac_try) 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; }; then
5680 libc_cv_need_minus_P=no
5681 else
5682 libc_cv_need_minus_P=yes
5684 rm -f conftest*
5686 { echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
5687 echo "${ECHO_T}$libc_cv_need_minus_P" >&6; }
5688 if test $libc_cv_need_minus_P = yes; then
5689 config_vars="$config_vars
5690 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5693 { echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
5694 echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6; }
5695 if test "${libc_cv_dot_text+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 else
5698 cat > conftest.s <<EOF
5699 .text
5701 libc_cv_dot_text=
5702 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 (eval $ac_try) 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; }; then
5708 libc_cv_dot_text=.text
5710 rm -f conftest*
5713 if test -z "$libc_cv_dot_text"; then
5714 { echo "$as_me:$LINENO: result: no" >&5
5715 echo "${ECHO_T}no" >&6; }
5716 else
5717 { echo "$as_me:$LINENO: result: yes" >&5
5718 echo "${ECHO_T}yes" >&6; }
5721 { echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
5722 echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6; }
5723 if test "${libc_cv_asm_global_directive+set}" = set; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 else
5726 libc_cv_asm_global_directive=UNKNOWN
5727 for ac_globl in .globl .global .EXPORT; do
5728 cat > conftest.s <<EOF
5729 ${libc_cv_dot_text}
5730 ${ac_globl} foo
5731 foo:
5733 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 (eval $ac_try) 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; }; then
5739 libc_cv_asm_global_directive=${ac_globl}
5741 rm -f conftest*
5742 test $libc_cv_asm_global_directive != UNKNOWN && break
5743 done
5745 { echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
5746 echo "${ECHO_T}$libc_cv_asm_global_directive" >&6; }
5747 if test $libc_cv_asm_global_directive = UNKNOWN; then
5748 { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
5749 echo "$as_me: error: cannot determine asm global directive" >&2;}
5750 { (exit 1); exit 1; }; }
5751 else
5752 cat >>confdefs.h <<_ACEOF
5753 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
5754 _ACEOF
5758 { echo "$as_me:$LINENO: checking for .set assembler directive" >&5
5759 echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6; }
5760 if test "${libc_cv_asm_set_directive+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 else
5763 cat > conftest.s <<EOF
5764 ${libc_cv_dot_text}
5765 foo:
5766 .set glibc_conftest_frobozz,foo
5767 $libc_cv_asm_global_directive glibc_conftest_frobozz
5769 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5770 # (but it doesn't work), so we must do a linking check to be sure.
5771 cat > conftest1.c <<\EOF
5772 extern int glibc_conftest_frobozz;
5773 void _start() { glibc_conftest_frobozz = 1; }
5775 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5776 -nostartfiles -nostdlib \
5777 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5778 libc_cv_asm_set_directive=yes
5779 else
5780 libc_cv_asm_set_directive=no
5782 rm -f conftest*
5784 { echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
5785 echo "${ECHO_T}$libc_cv_asm_set_directive" >&6; }
5786 if test $libc_cv_asm_set_directive = yes; then
5787 cat >>confdefs.h <<\_ACEOF
5788 #define HAVE_ASM_SET_DIRECTIVE 1
5789 _ACEOF
5793 { echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
5794 echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6; }
5795 if test "${libc_cv_asm_type_prefix+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798 libc_cv_asm_type_prefix=no
5799 for ac_try_prefix in '@' '%' '#'; do
5800 cat > conftest.s <<EOF
5801 ${libc_cv_dot_text}
5802 ${libc_cv_asm_global_directive} foo
5803 .type foo, ${ac_try_prefix}object
5804 .size foo, 1
5805 foo:
5806 .byte 1
5808 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 (eval $ac_try) 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; }; then
5814 libc_cv_asm_type_prefix=${ac_try_prefix}
5816 rm -f conftest*
5817 test "x$libc_cv_asm_type_prefix" != xno && break
5818 done
5820 { echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
5821 echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6; }
5822 if test "x$libc_cv_asm_type_prefix" != xno; then
5823 cat >>confdefs.h <<_ACEOF
5824 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
5825 _ACEOF
5829 # For the multi-arch option we need support in the assembler.
5830 if test "$multi_arch" = yes; then
5831 if test "x$libc_cv_asm_type_prefix" != xno; then
5832 { echo "$as_me:$LINENO: checking for assembler gnu_indirect_function symbol type support" >&5
5833 echo $ECHO_N "checking for assembler gnu_indirect_function symbol type support... $ECHO_C" >&6; }
5834 if test "${libc_cv_asm_gnu_indirect_function+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837 cat > conftest.s <<EOF
5838 .type foo,%gnu_indirect_function
5840 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
5841 then
5842 libc_cv_asm_gnu_indirect_function=yes
5843 else
5844 libc_cv_asm_gnu_indirect_function=no
5846 rm -f conftest*
5848 { echo "$as_me:$LINENO: result: $libc_cv_asm_gnu_indirect_function" >&5
5849 echo "${ECHO_T}$libc_cv_asm_gnu_indirect_function" >&6; }
5850 else
5851 libc_cv_asm_gnu_indirect_function=no
5853 if test x"$libc_cv_asm_gnu_indirect_function" != xyes; then
5854 { { echo "$as_me:$LINENO: error: --enable-multi-arch support requires assembler and linker support" >&5
5855 echo "$as_me: error: --enable-multi-arch support requires assembler and linker support" >&2;}
5856 { (exit 1); exit 1; }; }
5860 { echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
5861 echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6; }
5862 if test "${libc_cv_asm_symver_directive+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5864 else
5865 cat > conftest.s <<EOF
5866 ${libc_cv_dot_text}
5867 _sym:
5868 .symver _sym,sym@VERS
5870 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5871 libc_cv_asm_symver_directive=yes
5872 else
5873 libc_cv_asm_symver_directive=no
5875 rm -f conftest*
5877 { echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
5878 echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6; }
5879 { echo "$as_me:$LINENO: checking for ld --version-script" >&5
5880 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6; }
5881 if test "${libc_cv_ld_version_script_option+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884 if test $libc_cv_asm_symver_directive = yes; then
5885 cat > conftest.s <<EOF
5886 ${libc_cv_dot_text}
5887 _sym:
5888 .symver _sym,sym@VERS
5890 cat > conftest.map <<EOF
5891 VERS_1 {
5892 global: sym;
5895 VERS_2 {
5896 global: sym;
5897 } VERS_1;
5899 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5900 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
5901 -o conftest.so conftest.o
5902 -nostartfiles -nostdlib
5903 -Wl,--version-script,conftest.map
5904 1>&5'
5905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906 (eval $ac_try) 2>&5
5907 ac_status=$?
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }; };
5910 then
5911 libc_cv_ld_version_script_option=yes
5912 else
5913 libc_cv_ld_version_script_option=no
5915 else
5916 libc_cv_ld_version_script_option=no
5918 else
5919 libc_cv_ld_version_script_option=no
5921 rm -f conftest*
5923 { echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
5924 echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6; }
5925 if test $shared != no &&
5926 test $libc_cv_asm_symver_directive = yes &&
5927 test $libc_cv_ld_version_script_option = yes &&
5928 test $enable_versioning = yes; then
5929 VERSIONING=yes
5930 cat >>confdefs.h <<\_ACEOF
5931 #define DO_VERSIONING 1
5932 _ACEOF
5934 else
5935 VERSIONING=no
5939 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
5940 echo "\
5941 *** WARNING: You should not compile GNU libc without versioning. Not using
5942 *** versioning will introduce incompatibilities so that old binaries
5943 *** will not run anymore.
5944 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
5946 if test $elf = yes; then
5947 { echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
5948 echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6; }
5949 if test "${libc_cv_asm_previous_directive+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5952 cat > conftest.s <<EOF
5953 .section foo_section
5954 .previous
5956 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 (eval $ac_try) 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; }; then
5962 libc_cv_asm_previous_directive=yes
5963 else
5964 libc_cv_asm_previous_directive=no
5966 rm -f conftest*
5968 { echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
5969 echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6; }
5970 if test $libc_cv_asm_previous_directive = yes; then
5971 cat >>confdefs.h <<\_ACEOF
5972 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
5973 _ACEOF
5975 else
5976 { echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
5977 echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6; }
5978 if test "${libc_cv_asm_popsection_directive+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981 cat > conftest.s <<EOF
5982 .pushsection foo_section
5983 .popsection
5985 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987 (eval $ac_try) 2>&5
5988 ac_status=$?
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); }; }; then
5991 libc_cv_asm_popsection_directive=yes
5992 else
5993 libc_cv_asm_popsection_directive=no
5995 rm -f conftest*
5997 { echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
5998 echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6; }
5999 if test $libc_cv_asm_popsection_directive = yes; then
6000 cat >>confdefs.h <<\_ACEOF
6001 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
6002 _ACEOF
6006 { echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
6007 echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6; }
6008 if test "${libc_cv_asm_protected_directive+set}" = set; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6010 else
6011 cat > conftest.s <<EOF
6012 .protected foo
6013 foo:
6014 .hidden bar
6015 bar:
6017 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019 (eval $ac_try) 2>&5
6020 ac_status=$?
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; }; then
6023 libc_cv_asm_protected_directive=yes
6024 else
6025 { { echo "$as_me:$LINENO: error: assembler support for symbol visibility is required" >&5
6026 echo "$as_me: error: assembler support for symbol visibility is required" >&2;}
6027 { (exit 1); exit 1; }; }
6029 rm -f conftest*
6031 { echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
6032 echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6; }
6034 if test $libc_cv_asm_protected_directive = yes; then
6035 { echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
6036 echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6; }
6037 if test "${libc_cv_visibility_attribute+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040 cat > conftest.c <<EOF
6041 int foo __attribute__ ((visibility ("hidden"))) = 1;
6042 int bar __attribute__ ((visibility ("protected"))) = 1;
6044 libc_cv_visibility_attribute=no
6045 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 (eval $ac_try) 2>&5
6048 ac_status=$?
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }; }; then
6051 if grep '\.hidden.*foo' conftest.s >/dev/null; then
6052 if grep '\.protected.*bar' conftest.s >/dev/null; then
6053 libc_cv_visibility_attribute=yes
6057 rm -f conftest.cs
6060 { echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
6061 echo "${ECHO_T}$libc_cv_visibility_attribute" >&6; }
6062 if test $libc_cv_visibility_attribute != yes; then
6063 { { echo "$as_me:$LINENO: error: compiler support for visibility attribute is required" >&5
6064 echo "$as_me: error: compiler support for visibility attribute is required" >&2;}
6065 { (exit 1); exit 1; }; }
6069 if test $libc_cv_visibility_attribute = yes; then
6070 { echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
6071 echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6; }
6072 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 else
6075 cat > conftest.c <<EOF
6076 int foo (int x);
6077 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
6078 int bar (int x) { return x; }
6080 libc_cv_broken_visibility_attribute=yes
6081 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 (eval $ac_try) 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
6088 libc_cv_broken_visibility_attribute=no
6091 rm -f conftest.c conftest.s
6094 { echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
6095 echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6; }
6096 if test $libc_cv_broken_visibility_attribute = yes; then
6097 { { echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
6098 echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
6099 { (exit 1); exit 1; }; }
6103 { echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
6104 echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6; }
6105 if test "${libc_cv_broken_alias_attribute+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108 cat > conftest.c <<EOF
6109 extern int foo (int x) __asm ("xyzzy");
6110 int bar (int x) { return x; }
6111 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
6112 extern int dfoo;
6113 extern __typeof (dfoo) dfoo __asm ("abccb");
6114 int dfoo = 1;
6116 libc_cv_broken_alias_attribute=yes
6117 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119 (eval $ac_try) 2>&5
6120 ac_status=$?
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; }; then
6123 if grep 'xyzzy' conftest.s >/dev/null &&
6124 grep 'abccb' conftest.s >/dev/null; then
6125 libc_cv_broken_alias_attribute=no
6128 rm -f conftest.c conftest.s
6131 { echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
6132 echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6; }
6133 if test $libc_cv_broken_alias_attribute = yes; then
6134 { { echo "$as_me:$LINENO: error: working alias attribute support required" >&5
6135 echo "$as_me: error: working alias attribute support required" >&2;}
6136 { (exit 1); exit 1; }; }
6139 if test $libc_cv_visibility_attribute = yes; then
6140 { echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
6141 echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6; }
6142 if test "${libc_cv_have_sdata_section+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 else
6145 echo "int i;" > conftest.c
6146 libc_cv_have_sdata_section=no
6147 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
6148 | grep '\.sdata' >/dev/null; then
6149 libc_cv_have_sdata_section=yes
6151 rm -f conftest.c conftest.so
6154 { echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
6155 echo "${ECHO_T}$libc_cv_have_sdata_section" >&6; }
6156 if test $libc_cv_have_sdata_section = yes; then
6157 cat >>confdefs.h <<\_ACEOF
6158 #define HAVE_SDATA_SECTION 1
6159 _ACEOF
6164 { echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
6165 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6; }
6166 if test "${libc_cv_initfini_array+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169 cat > conftest.c <<EOF
6170 int _start (void) { return 0; }
6171 int __start (void) { return 0; }
6172 int foo (void) { return 1; }
6173 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
6175 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
6176 -static -nostartfiles -nostdlib 1>&5'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 (eval $ac_try) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }
6182 then
6183 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
6184 libc_cv_initfini_array=yes
6185 else
6186 libc_cv_initfini_array=no
6188 else
6189 libc_cv_initfini_array=no
6191 rm -f conftest*
6193 { echo "$as_me:$LINENO: result: $libc_cv_initfini_array" >&5
6194 echo "${ECHO_T}$libc_cv_initfini_array" >&6; }
6195 if test $libc_cv_initfini_array != yes; then
6196 { { echo "$as_me:$LINENO: error: Need linker with .init_array/.fini_array support." >&5
6197 echo "$as_me: error: Need linker with .init_array/.fini_array support." >&2;}
6198 { (exit 1); exit 1; }; }
6201 { echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
6202 echo $ECHO_N "checking for libunwind-support in compiler... $ECHO_C" >&6; }
6203 if test "${libc_cv_cc_with_libunwind+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6207 cat > conftest.c <<EOF
6208 int main (void) { return 0; }
6210 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6211 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6212 libc_cv_cc_with_libunwind=yes
6213 else
6214 libc_cv_cc_with_libunwind=no
6216 rm -f conftest*
6218 { echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
6219 echo "${ECHO_T}$libc_cv_cc_with_libunwind" >&6; }
6221 if test $libc_cv_cc_with_libunwind = yes; then
6222 cat >>confdefs.h <<\_ACEOF
6223 #define HAVE_CC_WITH_LIBUNWIND 1
6224 _ACEOF
6228 { echo "$as_me:$LINENO: checking for -z nodelete option" >&5
6229 echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6; }
6230 if test "${libc_cv_z_nodelete+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233 cat > conftest.c <<EOF
6234 int _start (void) { return 42; }
6236 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6237 -fPIC -shared -o conftest.so conftest.c
6238 -nostartfiles -nostdlib
6239 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 (eval $ac_try) 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; }
6245 then
6246 libc_cv_z_nodelete=yes
6247 else
6248 { { echo "$as_me:$LINENO: error: linker with -z nodelete support required" >&5
6249 echo "$as_me: error: linker with -z nodelete support required" >&2;}
6250 { (exit 1); exit 1; }; }
6252 rm -f conftest*
6254 { echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
6255 echo "${ECHO_T}$libc_cv_z_nodelete" >&6; }
6257 { echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
6258 echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6; }
6259 if test "${libc_cv_z_nodlopen+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262 cat > conftest.c <<EOF
6263 int _start (void) { return 42; }
6265 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6266 -fPIC -shared -o conftest.so conftest.c
6267 -nostartfiles -nostdlib
6268 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 (eval $ac_try) 2>&5
6271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }
6274 then
6275 libc_cv_z_nodlopen=yes
6276 else
6277 { { echo "$as_me:$LINENO: error: linker with -z nodlopen support required" >&5
6278 echo "$as_me: error: linker with -z nodlopen support required" >&2;}
6279 { (exit 1); exit 1; }; }
6281 rm -f conftest*
6283 { echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
6284 echo "${ECHO_T}$libc_cv_z_nodlopen" >&6; }
6286 { echo "$as_me:$LINENO: checking for -z initfirst option" >&5
6287 echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6; }
6288 if test "${libc_cv_z_initfirst+set}" = set; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
6290 else
6291 cat > conftest.c <<EOF
6292 int _start (void) { return 42; }
6294 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6295 -fPIC -shared -o conftest.so conftest.c
6296 -nostartfiles -nostdlib
6297 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 (eval $ac_try) 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }
6303 then
6304 libc_cv_z_initfirst=yes
6305 else
6306 { { echo "$as_me:$LINENO: error: linker with -z initfirst support required" >&5
6307 echo "$as_me: error: linker with -z initfirst support required" >&2;}
6308 { (exit 1); exit 1; }; }
6310 rm -f conftest*
6312 { echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
6313 echo "${ECHO_T}$libc_cv_z_initfirst" >&6; }
6315 case "$base_machine" in
6316 i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*)
6317 { echo "$as_me:$LINENO: checking for -z relro option" >&5
6318 echo $ECHO_N "checking for -z relro option... $ECHO_C" >&6; }
6319 if test "${libc_cv_z_relro+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 else
6322 libc_cv_z_relro=no
6323 if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 (eval $ac_try) 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; }
6329 then
6330 if { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5'
6331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 (eval $ac_try) 2>&5
6333 ac_status=$?
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; }
6336 then
6337 libc_cv_z_relro=yes
6341 { echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
6342 echo "${ECHO_T}$libc_cv_z_relro" >&6; }
6343 if test "$libc_cv_z_relro" = no; then
6344 { { echo "$as_me:$LINENO: error: linker with -z relro support required" >&5
6345 echo "$as_me: error: linker with -z relro support required" >&2;}
6346 { (exit 1); exit 1; }; }
6349 *) ;;
6350 esac
6352 { echo "$as_me:$LINENO: checking for -Bgroup option" >&5
6353 echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6; }
6354 if test "${libc_cv_Bgroup+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 else
6357 cat > conftest.c <<EOF
6358 int _start (void) { return 42; }
6360 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6361 -fPIC -shared -o conftest.so conftest.c
6362 -Wl,-Bgroup -nostdlib 1>&5'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364 (eval $ac_try) 2>&5
6365 ac_status=$?
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; }
6368 then
6369 libc_cv_Bgroup=yes
6370 else
6371 libc_cv_Bgroup=no
6373 rm -f conftest*
6375 { echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
6376 echo "${ECHO_T}$libc_cv_Bgroup" >&6; }
6379 { echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
6380 echo $ECHO_N "checking for libgcc_s suffix... $ECHO_C" >&6; }
6381 if test "${libc_cv_libgcc_s_suffix+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 else
6384 cat > conftest.c <<EOF
6385 int main (void) { return 0; }
6387 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6388 -fPIC -shared -shared-libgcc -o conftest.so \
6389 conftest.c -v 2>&1 >/dev/null \
6390 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6391 rm -f conftest*
6393 { echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
6394 echo "${ECHO_T}$libc_cv_libgcc_s_suffix" >&6; }
6397 { echo "$as_me:$LINENO: checking for --as-needed option" >&5
6398 echo $ECHO_N "checking for --as-needed option... $ECHO_C" >&6; }
6399 if test "${libc_cv_as_needed+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402 cat > conftest.c <<EOF
6403 int main (void) { return 0; }
6405 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6406 -fPIC -shared -o conftest.so conftest.c
6407 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6408 -nostdlib 1>&5'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 (eval $ac_try) 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }
6414 then
6415 libc_cv_as_needed=yes
6416 else
6417 libc_cv_as_needed=no
6419 rm -f conftest*
6421 { echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
6422 echo "${ECHO_T}$libc_cv_as_needed" >&6; }
6425 ASFLAGS_config=
6426 { echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
6427 echo $ECHO_N "checking whether --noexecstack is desirable for .S files... $ECHO_C" >&6; }
6428 if test "${libc_cv_as_noexecstack+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431 cat > conftest.c <<EOF
6432 void foo (void) { }
6434 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6435 -S -o conftest.s conftest.c 1>&5'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 (eval $ac_try) 2>&5
6438 ac_status=$?
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; } \
6441 && grep -q .note.GNU-stack conftest.s \
6442 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6443 -c -o conftest.o conftest.s 1>&5'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 (eval $ac_try) 2>&5
6446 ac_status=$?
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; }
6449 then
6450 libc_cv_as_noexecstack=yes
6451 else
6452 libc_cv_as_noexecstack=no
6454 rm -f conftest*
6456 { echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
6457 echo "${ECHO_T}$libc_cv_as_noexecstack" >&6; }
6458 if test $libc_cv_as_noexecstack = yes; then
6459 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6463 { echo "$as_me:$LINENO: checking for -z combreloc" >&5
6464 echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6; }
6465 if test "${libc_cv_z_combreloc+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 else
6468 cat > conftest.c <<EOF
6469 extern int bar (int);
6470 extern int mumble;
6471 int foo (void) { return bar (mumble); }
6473 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6474 -fPIC -shared -o conftest.so conftest.c
6475 -nostdlib -nostartfiles
6476 -Wl,-z,combreloc 1>&5'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 (eval $ac_try) 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }
6482 then
6483 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6484 libc_cv_z_combreloc=yes
6485 else
6486 libc_cv_z_combreloc=no
6488 else
6489 libc_cv_z_combreloc=no
6491 rm -f conftest*
6493 { echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
6494 echo "${ECHO_T}$libc_cv_z_combreloc" >&6; }
6495 if test "$libc_cv_z_combreloc" = yes; then
6496 cat >>confdefs.h <<\_ACEOF
6497 #define HAVE_Z_COMBRELOC 1
6498 _ACEOF
6503 { echo "$as_me:$LINENO: checking for -z execstack" >&5
6504 echo $ECHO_N "checking for -z execstack... $ECHO_C" >&6; }
6505 if test "${libc_cv_z_execstack+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 else
6508 cat > conftest.c <<EOF
6509 int _start (void) { return 42; }
6511 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6512 -fPIC -shared -o conftest.so conftest.c
6513 -Wl,-z,execstack -nostdlib
6514 1>&5'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 (eval $ac_try) 2>&5
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; }
6520 then
6521 libc_cv_z_execstack=yes
6522 else
6523 libc_cv_z_execstack=no
6525 rm -f conftest*
6527 { echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
6528 echo "${ECHO_T}$libc_cv_z_execstack" >&6; }
6531 { echo "$as_me:$LINENO: checking for -fpie" >&5
6532 echo $ECHO_N "checking for -fpie... $ECHO_C" >&6; }
6533 if test "${libc_cv_fpie+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 else
6536 cat > conftest.c <<EOF
6537 int foo;
6538 main () { return 0;}
6540 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6541 -o conftest conftest.c 1>&5'
6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543 (eval $ac_try) 2>&5
6544 ac_status=$?
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; }
6547 then
6548 libc_cv_fpie=yes
6549 else
6550 libc_cv_fpie=no
6552 rm -f conftest*
6554 { echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
6555 echo "${ECHO_T}$libc_cv_fpie" >&6; }
6559 { echo "$as_me:$LINENO: checking for --hash-style option" >&5
6560 echo $ECHO_N "checking for --hash-style option... $ECHO_C" >&6; }
6561 if test "${libc_cv_hashstyle+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 else
6564 cat > conftest.c <<EOF
6565 int _start (void) { return 42; }
6567 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6568 -fPIC -shared -o conftest.so conftest.c
6569 -Wl,--hash-style=both -nostdlib 1>&5'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 (eval $ac_try) 2>&5
6572 ac_status=$?
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; }
6575 then
6576 libc_cv_hashstyle=yes
6577 else
6578 libc_cv_hashstyle=no
6580 rm -f conftest*
6582 { echo "$as_me:$LINENO: result: $libc_cv_hashstyle" >&5
6583 echo "${ECHO_T}$libc_cv_hashstyle" >&6; }
6587 { echo "$as_me:$LINENO: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6588 echo $ECHO_N "checking for -fno-toplevel-reorder -fno-section-anchors... $ECHO_C" >&6; }
6589 if test "${libc_cv_fno_toplevel_reorder+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 else
6592 cat > conftest.c <<EOF
6593 int foo;
6595 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6596 conftest.c 1>&5'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 (eval $ac_try) 2>&5
6599 ac_status=$?
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; }
6602 then
6603 libc_cv_fno_toplevel_reorder=yes
6604 else
6605 libc_cv_fno_toplevel_reorder=no
6607 rm -f conftest*
6609 { echo "$as_me:$LINENO: result: $libc_cv_fno_toplevel_reorder" >&5
6610 echo "${ECHO_T}$libc_cv_fno_toplevel_reorder" >&6; }
6611 if test $libc_cv_fno_toplevel_reorder = yes; then
6612 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6613 else
6614 fno_unit_at_a_time=-fno-unit-at-a-time
6618 { echo "$as_me:$LINENO: checking for -fstack-protector" >&5
6619 echo $ECHO_N "checking for -fstack-protector... $ECHO_C" >&6; }
6620 if test "${libc_cv_ssp+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623 cat > conftest.c <<EOF
6624 int foo;
6625 main () { return 0;}
6627 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
6628 -o conftest conftest.c 1>&5'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 (eval $ac_try) 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }
6634 then
6635 libc_cv_ssp=yes
6636 else
6637 libc_cv_ssp=no
6639 rm -f conftest*
6641 { echo "$as_me:$LINENO: result: $libc_cv_ssp" >&5
6642 echo "${ECHO_T}$libc_cv_ssp" >&6; }
6645 { echo "$as_me:$LINENO: checking for -fgnu89-inline" >&5
6646 echo $ECHO_N "checking for -fgnu89-inline... $ECHO_C" >&6; }
6647 if test "${libc_cv_gnu89_inline+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650 cat > conftest.c <<EOF
6651 int foo;
6652 #ifdef __GNUC_GNU_INLINE__
6653 main () { return 0;}
6654 #else
6655 #error
6656 #endif
6658 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6659 -o conftest.s conftest.c 1>&5'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 (eval $ac_try) 2>&5
6662 ac_status=$?
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; }
6665 then
6666 libc_cv_gnu89_inline=yes
6667 else
6668 libc_cv_gnu89_inline=no
6670 rm -f conftest*
6672 { echo "$as_me:$LINENO: result: $libc_cv_gnu89_inline" >&5
6673 echo "${ECHO_T}$libc_cv_gnu89_inline" >&6; }
6674 if test $libc_cv_gnu89_inline = yes; then
6675 libc_cv_gnu89_inline=-fgnu89-inline
6676 else
6677 libc_cv_gnu89_inline=
6681 if test $elf != yes; then
6682 { echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
6683 echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6; }
6684 if test "${libc_cv_have_initfini+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 else
6687 cat >conftest.$ac_ext <<_ACEOF
6688 /* confdefs.h. */
6689 _ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6695 main ()
6697 asm (".section .init");
6698 asm (".section .fini");
6699 asm ("${libc_cv_dot_text}");
6701 return 0;
6703 _ACEOF
6704 rm -f conftest.$ac_objext
6705 if { (ac_try="$ac_compile"
6706 case "(($ac_try" in
6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708 *) ac_try_echo=$ac_try;;
6709 esac
6710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6711 (eval "$ac_compile") 2>conftest.er1
6712 ac_status=$?
6713 grep -v '^ *+' conftest.er1 >conftest.err
6714 rm -f conftest.er1
6715 cat conftest.err >&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } && {
6718 test -z "$ac_c_werror_flag" ||
6719 test ! -s conftest.err
6720 } && test -s conftest.$ac_objext; then
6721 libc_cv_have_initfini=yes
6722 else
6723 echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6726 libc_cv_have_initfini=no
6729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 { echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
6732 echo "${ECHO_T}$libc_cv_have_initfini" >&6; }
6733 if test $libc_cv_have_initfini = yes; then
6734 cat >>confdefs.h <<\_ACEOF
6735 #define HAVE_INITFINI 1
6736 _ACEOF
6741 if test $elf = yes; then
6742 { echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
6743 echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6; }
6744 if test "${libc_cv_have_section_quotes+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747 cat > conftest.c <<EOF
6748 static const int foo
6749 __attribute__ ((section ("bar"))) = 1;
6751 if ${CC-cc} -S conftest.c -o conftest.s; then
6752 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6753 libc_cv_have_section_quotes=yes
6754 else
6755 libc_cv_have_section_quotes=no
6757 else
6758 libc_cv_have_section_quotes=unknown
6760 rm -f conftest.cs
6763 { echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
6764 echo "${ECHO_T}$libc_cv_have_section_quotes" >&6; }
6765 if test $libc_cv_have_section_quotes = yes; then
6766 cat >>confdefs.h <<\_ACEOF
6767 #define HAVE_SECTION_QUOTES 1
6768 _ACEOF
6775 if test $elf = yes; then
6776 libc_cv_asm_underscores=no
6777 else
6778 if test $ac_cv_prog_cc_works = yes; then
6779 { echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6780 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6; }
6781 if test "${libc_cv_asm_underscores+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784 cat >conftest.$ac_ext <<_ACEOF
6785 /* confdefs.h. */
6786 _ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6790 asm ("_glibc_foobar:");
6792 main ()
6794 glibc_foobar ();
6796 return 0;
6798 _ACEOF
6799 rm -f conftest.$ac_objext conftest$ac_exeext
6800 if { (ac_try="$ac_link"
6801 case "(($ac_try" in
6802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6803 *) ac_try_echo=$ac_try;;
6804 esac
6805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6806 (eval "$ac_link") 2>conftest.er1
6807 ac_status=$?
6808 grep -v '^ *+' conftest.er1 >conftest.err
6809 rm -f conftest.er1
6810 cat conftest.err >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } && {
6813 test -z "$ac_c_werror_flag" ||
6814 test ! -s conftest.err
6815 } && test -s conftest$ac_exeext &&
6816 $as_test_x conftest$ac_exeext; then
6817 libc_cv_asm_underscores=yes
6818 else
6819 echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6822 libc_cv_asm_underscores=no
6825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6826 conftest$ac_exeext conftest.$ac_ext
6828 { echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
6829 echo "${ECHO_T}$libc_cv_asm_underscores" >&6; }
6830 else
6831 { echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6832 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6; }
6833 if test "${libc_cv_asm_underscores+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6835 else
6836 cat > conftest.$ac_ext <<EOF
6837 #line $LINENO "configure"
6838 #include "confdefs.h"
6839 void underscore_test(void) {
6840 return; }
6842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6843 (eval $ac_compile) 2>&5
6844 ac_status=$?
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); }; then
6847 if grep _underscore_test conftest* >/dev/null; then
6848 rm -f conftest*
6849 libc_cv_asm_underscores=yes
6850 else
6851 rm -f conftest*
6852 libc_cv_asm_underscores=no
6854 else
6855 echo "configure: failed program was:" >&5
6856 cat conftest.$ac_ext >&5
6857 rm -f conftest*
6858 libc_cv_asm_underscores=no
6860 rm -f conftest*
6862 { echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
6863 echo "${ECHO_T}$libc_cv_asm_underscores" >&6; }
6866 if test $libc_cv_asm_underscores = no; then
6867 cat >>confdefs.h <<\_ACEOF
6868 #define NO_UNDERSCORES 1
6869 _ACEOF
6873 if test $elf = yes; then
6874 libc_cv_weak_symbols=yes
6877 { echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
6878 echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6; }
6879 if test "${libc_cv_asm_weak_directive+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882 cat > conftest.s <<EOF
6883 ${libc_cv_dot_text}
6884 ${libc_cv_asm_global_directive} foo
6885 foo:
6886 .weak foo
6887 .weak bar; bar = foo
6889 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 (eval $ac_try) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 libc_cv_asm_weak_directive=yes
6896 else
6897 libc_cv_asm_weak_directive=no
6899 rm -f conftest*
6901 { echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
6902 echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6; }
6904 if test $libc_cv_asm_weak_directive = no; then
6905 { echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
6906 echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6; }
6907 if test "${libc_cv_asm_weakext_directive+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 else
6910 cat > conftest.s <<EOF
6911 ${libc_cv_dot_text}
6912 ${libc_cv_asm_global_directive} foo
6913 foo:
6914 .weakext bar foo
6915 .weakext baz
6916 ${libc_cv_asm_global_directive} baz
6917 baz:
6919 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921 (eval $ac_try) 2>&5
6922 ac_status=$?
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; }; then
6925 libc_cv_asm_weakext_directive=yes
6926 else
6927 libc_cv_asm_weakext_directive=no
6929 rm -f conftest*
6931 { echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
6932 echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6; }
6934 fi # no .weak
6936 if test $libc_cv_asm_weak_directive = yes; then
6937 cat >>confdefs.h <<\_ACEOF
6938 #define HAVE_ASM_WEAK_DIRECTIVE 1
6939 _ACEOF
6941 elif test $libc_cv_asm_weakext_directive = yes; then
6942 cat >>confdefs.h <<\_ACEOF
6943 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
6944 _ACEOF
6948 { echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
6949 echo $ECHO_N "checking whether CFI directives are supported... $ECHO_C" >&6; }
6950 if test "${libc_cv_asm_cfi_directives+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 else
6953 case $machine in
6954 sparc/sparc64*) cfi_offset=2047;;
6955 *) cfi_offset=0;;
6956 esac
6957 cat > conftest.s <<EOF
6958 .text
6959 .type func,%function
6960 func:
6961 .cfi_startproc
6962 .cfi_remember_state
6963 .cfi_rel_offset 1, $cfi_offset
6964 .cfi_endproc
6966 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968 (eval $ac_try) 2>&5
6969 ac_status=$?
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; }; then
6972 libc_cv_asm_cfi_directives=yes
6973 else
6974 libc_cv_asm_cfi_directives=no
6976 rm -f conftest*
6978 { echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
6979 echo "${ECHO_T}$libc_cv_asm_cfi_directives" >&6; }
6980 if test $libc_cv_asm_cfi_directives = yes; then
6981 cat >>confdefs.h <<\_ACEOF
6982 #define HAVE_ASM_CFI_DIRECTIVES 1
6983 _ACEOF
6987 { echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
6988 echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6; }
6989 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 else
6992 cat > conftest.c <<\EOF
6993 _start () {}
6994 int __eh_pc;
6995 __throw () {}
6997 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6998 -nostdlib -nostartfiles -Wl,--no-whole-archive
6999 -o conftest conftest.c 1>&5'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 (eval $ac_try) 2>&5
7002 ac_status=$?
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; }; then
7005 libc_cv_ld_no_whole_archive=yes
7006 else
7007 libc_cv_ld_no_whole_archive=no
7009 rm -f conftest*
7011 { echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
7012 echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6; }
7013 if test $libc_cv_ld_no_whole_archive = yes; then
7014 no_whole_archive=-Wl,--no-whole-archive
7017 { echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
7018 echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6; }
7019 if test "${libc_cv_gcc_exceptions+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022 cat > conftest.c <<\EOF
7023 _start () {}
7024 int __eh_pc;
7025 __throw () {}
7027 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7028 -nostdlib -nostartfiles -fexceptions
7029 -o conftest conftest.c 1>&5'
7030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031 (eval $ac_try) 2>&5
7032 ac_status=$?
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); }; }; then
7035 libc_cv_gcc_exceptions=yes
7036 else
7037 libc_cv_gcc_exceptions=no
7039 rm -f conftest*
7041 { echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
7042 echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6; }
7043 if test $libc_cv_gcc_exceptions = yes; then
7044 exceptions=-fexceptions
7047 if test "$host_cpu" = powerpc ; then
7048 # Check for a bug present in at least versions 2.8.x of GCC
7049 # and versions 1.0.x of EGCS.
7050 { echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
7051 echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6; }
7052 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 else
7055 cat >conftest.$ac_ext <<_ACEOF
7056 /* confdefs.h. */
7057 _ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7061 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
7063 main ()
7067 return 0;
7069 _ACEOF
7070 rm -f conftest.$ac_objext
7071 if { (ac_try="$ac_compile"
7072 case "(($ac_try" in
7073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074 *) ac_try_echo=$ac_try;;
7075 esac
7076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7077 (eval "$ac_compile") 2>conftest.er1
7078 ac_status=$?
7079 grep -v '^ *+' conftest.er1 >conftest.err
7080 rm -f conftest.er1
7081 cat conftest.err >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } && {
7084 test -z "$ac_c_werror_flag" ||
7085 test ! -s conftest.err
7086 } && test -s conftest.$ac_objext; then
7087 libc_cv_c_asmcr0_bug='no'
7088 else
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7092 libc_cv_c_asmcr0_bug='yes'
7095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097 { echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
7098 echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6; }
7099 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
7100 cat >>confdefs.h <<\_ACEOF
7101 #define BROKEN_PPC_ASM_CR0 1
7102 _ACEOF
7107 { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
7108 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
7109 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112 cat > conftest.c <<EOF
7113 #line $LINENO "configure"
7114 int foo (int a)
7116 a = __builtin_expect (a, 10);
7117 return a == 10 ? 0 : 1;
7120 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
7121 -o conftest conftest.c -lgcc >&5'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 (eval $ac_try) 2>&5
7124 ac_status=$?
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7127 libc_cv_gcc_builtin_expect=yes
7128 else
7129 libc_cv_gcc_builtin_expect=no
7131 rm -f conftest*
7133 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
7134 echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6; }
7135 if test "$libc_cv_gcc_builtin_expect" = yes; then
7136 cat >>confdefs.h <<\_ACEOF
7137 #define HAVE_BUILTIN_EXPECT 1
7138 _ACEOF
7142 { echo "$as_me:$LINENO: checking for __builtin_memset" >&5
7143 echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6; }
7144 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 else
7147 cat > conftest.c <<\EOF
7148 void zero (void *x)
7150 __builtin_memset (x, 0, 1000);
7153 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 (eval $ac_try) 2>&5
7156 ac_status=$?
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; };
7159 then
7160 libc_cv_gcc_builtin_memset=no
7161 else
7162 libc_cv_gcc_builtin_memset=yes
7164 rm -f conftest*
7166 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
7167 echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6; }
7168 if test "$libc_cv_gcc_builtin_memset" = yes ; then
7169 cat >>confdefs.h <<\_ACEOF
7170 #define HAVE_BUILTIN_MEMSET 1
7171 _ACEOF
7175 { echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
7176 echo $ECHO_N "checking for redirection of built-in functions... $ECHO_C" >&6; }
7177 if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 else
7180 cat > conftest.c <<\EOF
7181 extern char *strstr (const char *, const char *) __asm ("my_strstr");
7182 char *foo (const char *a, const char *b)
7184 return __builtin_strstr (a, b);
7187 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 (eval $ac_try) 2>&5
7190 ac_status=$?
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; };
7193 then
7194 libc_cv_gcc_builtin_redirection=yes
7195 else
7196 libc_cv_gcc_builtin_redirection=no
7198 rm -f conftest*
7200 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
7201 echo "${ECHO_T}$libc_cv_gcc_builtin_redirection" >&6; }
7202 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
7203 cat >>confdefs.h <<\_ACEOF
7204 #define HAVE_BUILTIN_REDIRECTION 1
7205 _ACEOF
7209 if test "x$use__thread" != xno; then
7210 { echo "$as_me:$LINENO: checking for __thread" >&5
7211 echo $ECHO_N "checking for __thread... $ECHO_C" >&6; }
7212 if test "${libc_cv_gcc___thread+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 else
7215 cat > conftest.c <<\EOF
7216 __thread int a = 42;
7218 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
7219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220 (eval $ac_try) 2>&5
7221 ac_status=$?
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); }; }; then
7224 libc_cv_gcc___thread=yes
7225 else
7226 libc_cv_gcc___thread=no
7228 rm -f conftest*
7230 { echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
7231 echo "${ECHO_T}$libc_cv_gcc___thread" >&6; }
7232 if test "$libc_cv_gcc___thread" = yes; then
7233 cat >>confdefs.h <<\_ACEOF
7234 #define HAVE___THREAD 1
7235 _ACEOF
7238 else
7239 libc_cv_gcc___thread=no
7242 if test "$libc_cv_gcc___thread" = yes; then
7243 { echo "$as_me:$LINENO: checking for tls_model attribute" >&5
7244 echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6; }
7245 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248 cat > conftest.c <<\EOF
7249 extern __thread int a __attribute__((tls_model ("initial-exec")));
7251 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253 (eval $ac_try) 2>&5
7254 ac_status=$?
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; }; then
7257 libc_cv_gcc_tls_model_attr=yes
7258 else
7259 libc_cv_gcc_tls_model_attr=no
7261 rm -f conftest*
7263 { echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
7264 echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6; }
7265 if test "$libc_cv_gcc_tls_model_attr" = yes; then
7266 cat >>confdefs.h <<\_ACEOF
7267 #define HAVE_TLS_MODEL_ATTRIBUTE 1
7268 _ACEOF
7273 if test -n "$submachine"; then
7274 { echo "$as_me:$LINENO: checking for compiler option for CPU variant" >&5
7275 echo $ECHO_N "checking for compiler option for CPU variant... $ECHO_C" >&6; }
7276 if test "${libc_cv_cc_submachine+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279 libc_cv_cc_submachine=no
7280 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7281 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283 (eval $ac_try) 2>&5
7284 ac_status=$?
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); }; }; then
7287 libc_cv_cc_submachine="$opt"
7288 break
7290 done
7292 { echo "$as_me:$LINENO: result: $libc_cv_cc_submachine" >&5
7293 echo "${ECHO_T}$libc_cv_cc_submachine" >&6; }
7294 if test "x$libc_cv_cc_submachine" = xno; then
7295 { { echo "$as_me:$LINENO: error: ${CC-cc} does not support $submachine" >&5
7296 echo "$as_me: error: ${CC-cc} does not support $submachine" >&2;}
7297 { (exit 1); exit 1; }; }
7302 { echo "$as_me:$LINENO: checking for libgd" >&5
7303 echo $ECHO_N "checking for libgd... $ECHO_C" >&6; }
7304 if test "$with_gd" != "no"; then
7305 old_CFLAGS="$CFLAGS"
7306 CFLAGS="$CFLAGS $libgd_include"
7307 old_LDFLAGS="$LDFLAGS"
7308 LDFLAGS="$LDFLAGS $libgd_ldflags"
7309 old_LIBS="$LIBS"
7310 LIBS="$LIBS -lgd -lpng -lz -lm"
7311 cat >conftest.$ac_ext <<_ACEOF
7312 /* confdefs.h. */
7313 _ACEOF
7314 cat confdefs.h >>conftest.$ac_ext
7315 cat >>conftest.$ac_ext <<_ACEOF
7316 /* end confdefs.h. */
7317 #include <gd.h>
7319 main ()
7321 gdImagePng (0, 0)
7323 return 0;
7325 _ACEOF
7326 rm -f conftest.$ac_objext conftest$ac_exeext
7327 if { (ac_try="$ac_link"
7328 case "(($ac_try" in
7329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330 *) ac_try_echo=$ac_try;;
7331 esac
7332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7333 (eval "$ac_link") 2>conftest.er1
7334 ac_status=$?
7335 grep -v '^ *+' conftest.er1 >conftest.err
7336 rm -f conftest.er1
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 LIBGD=yes
7345 else
7346 echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7349 LIBGD=no
7352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7353 conftest$ac_exeext conftest.$ac_ext
7354 CFLAGS="$old_CFLAGS"
7355 LDFLAGS="$old_LDFLAGS"
7356 LIBS="$old_LIBS"
7357 else
7358 LIBGD=no
7360 { echo "$as_me:$LINENO: result: $LIBGD" >&5
7361 echo "${ECHO_T}$LIBGD" >&6; }
7364 # SELinux detection
7365 if test x$with_selinux = xno ; then
7366 have_selinux=no;
7367 else
7368 # See if we have the SELinux library
7369 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
7370 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
7371 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374 ac_check_lib_save_LIBS=$LIBS
7375 LIBS="-lselinux $LIBS"
7376 cat >conftest.$ac_ext <<_ACEOF
7377 /* confdefs.h. */
7378 _ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h. */
7383 /* Override any GCC internal prototype to avoid an error.
7384 Use char because int might match the return type of a GCC
7385 builtin and then its argument prototype would still apply. */
7386 #ifdef __cplusplus
7387 extern "C"
7388 #endif
7389 char is_selinux_enabled ();
7391 main ()
7393 return is_selinux_enabled ();
7395 return 0;
7397 _ACEOF
7398 rm -f conftest.$ac_objext conftest$ac_exeext
7399 if { (ac_try="$ac_link"
7400 case "(($ac_try" in
7401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7402 *) ac_try_echo=$ac_try;;
7403 esac
7404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7405 (eval "$ac_link") 2>conftest.er1
7406 ac_status=$?
7407 grep -v '^ *+' conftest.er1 >conftest.err
7408 rm -f conftest.er1
7409 cat conftest.err >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } && {
7412 test -z "$ac_c_werror_flag" ||
7413 test ! -s conftest.err
7414 } && test -s conftest$ac_exeext &&
7415 $as_test_x conftest$ac_exeext; then
7416 ac_cv_lib_selinux_is_selinux_enabled=yes
7417 else
7418 echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7421 ac_cv_lib_selinux_is_selinux_enabled=no
7424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7425 conftest$ac_exeext conftest.$ac_ext
7426 LIBS=$ac_check_lib_save_LIBS
7428 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7429 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7430 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
7431 have_selinux=yes
7432 else
7433 have_selinux=no
7436 # See if we have the SELinux header with the NSCD permissions in it.
7437 if test x$have_selinux = xyes ; then
7438 { echo "$as_me:$LINENO: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7439 echo $ECHO_N "checking for NSCD Flask permissions in selinux/av_permissions.h... $ECHO_C" >&6; }
7440 cat >conftest.$ac_ext <<_ACEOF
7441 /* confdefs.h. */
7442 _ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h. */
7446 #include <selinux/av_permissions.h>
7448 main ()
7450 #ifdef NSCD__SHMEMHOST
7451 return 0;
7452 #else
7453 #error NSCD__SHMEMHOST not defined
7454 #endif
7456 return 0;
7458 _ACEOF
7459 rm -f conftest.$ac_objext
7460 if { (ac_try="$ac_compile"
7461 case "(($ac_try" in
7462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7463 *) ac_try_echo=$ac_try;;
7464 esac
7465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7466 (eval "$ac_compile") 2>conftest.er1
7467 ac_status=$?
7468 grep -v '^ *+' conftest.er1 >conftest.err
7469 rm -f conftest.er1
7470 cat conftest.err >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } && {
7473 test -z "$ac_c_werror_flag" ||
7474 test ! -s conftest.err
7475 } && test -s conftest.$ac_objext; then
7476 have_selinux=yes
7477 else
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7481 have_selinux=no
7484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485 { echo "$as_me:$LINENO: result: $have_selinux" >&5
7486 echo "${ECHO_T}$have_selinux" >&6; }
7489 if test x$with_selinux = xyes ; then
7490 if test x$have_selinux = xno ; then
7491 { { echo "$as_me:$LINENO: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&5
7492 echo "$as_me: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&2;}
7493 { (exit 1); exit 1; }; }
7497 # Check if we're building with SELinux support.
7498 if test "x$have_selinux" = xyes; then
7500 cat >>confdefs.h <<\_ACEOF
7501 #define HAVE_SELINUX 1
7502 _ACEOF
7505 # See if we have the libaudit library
7506 { echo "$as_me:$LINENO: checking for audit_log_user_avc_message in -laudit" >&5
7507 echo $ECHO_N "checking for audit_log_user_avc_message in -laudit... $ECHO_C" >&6; }
7508 if test "${ac_cv_lib_audit_audit_log_user_avc_message+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511 ac_check_lib_save_LIBS=$LIBS
7512 LIBS="-laudit $LIBS"
7513 cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h. */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7520 /* Override any GCC internal prototype to avoid an error.
7521 Use char because int might match the return type of a GCC
7522 builtin and then its argument prototype would still apply. */
7523 #ifdef __cplusplus
7524 extern "C"
7525 #endif
7526 char audit_log_user_avc_message ();
7528 main ()
7530 return audit_log_user_avc_message ();
7532 return 0;
7534 _ACEOF
7535 rm -f conftest.$ac_objext conftest$ac_exeext
7536 if { (ac_try="$ac_link"
7537 case "(($ac_try" in
7538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7540 esac
7541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7542 (eval "$ac_link") 2>conftest.er1
7543 ac_status=$?
7544 grep -v '^ *+' conftest.er1 >conftest.err
7545 rm -f conftest.er1
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } && {
7549 test -z "$ac_c_werror_flag" ||
7550 test ! -s conftest.err
7551 } && test -s conftest$ac_exeext &&
7552 $as_test_x conftest$ac_exeext; then
7553 ac_cv_lib_audit_audit_log_user_avc_message=yes
7554 else
7555 echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7558 ac_cv_lib_audit_audit_log_user_avc_message=no
7561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7562 conftest$ac_exeext conftest.$ac_ext
7563 LIBS=$ac_check_lib_save_LIBS
7565 { echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7566 echo "${ECHO_T}$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7567 if test $ac_cv_lib_audit_audit_log_user_avc_message = yes; then
7568 have_libaudit=yes
7569 else
7570 have_libaudit=no
7573 if test "x$have_libaudit" = xyes; then
7575 cat >>confdefs.h <<\_ACEOF
7576 #define HAVE_LIBAUDIT 1
7577 _ACEOF
7582 # See if we have the libcap library
7583 { echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
7584 echo $ECHO_N "checking for cap_init in -lcap... $ECHO_C" >&6; }
7585 if test "${ac_cv_lib_cap_cap_init+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588 ac_check_lib_save_LIBS=$LIBS
7589 LIBS="-lcap $LIBS"
7590 cat >conftest.$ac_ext <<_ACEOF
7591 /* confdefs.h. */
7592 _ACEOF
7593 cat confdefs.h >>conftest.$ac_ext
7594 cat >>conftest.$ac_ext <<_ACEOF
7595 /* end confdefs.h. */
7597 /* Override any GCC internal prototype to avoid an error.
7598 Use char because int might match the return type of a GCC
7599 builtin and then its argument prototype would still apply. */
7600 #ifdef __cplusplus
7601 extern "C"
7602 #endif
7603 char cap_init ();
7605 main ()
7607 return cap_init ();
7609 return 0;
7611 _ACEOF
7612 rm -f conftest.$ac_objext conftest$ac_exeext
7613 if { (ac_try="$ac_link"
7614 case "(($ac_try" in
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7617 esac
7618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619 (eval "$ac_link") 2>conftest.er1
7620 ac_status=$?
7621 grep -v '^ *+' conftest.er1 >conftest.err
7622 rm -f conftest.er1
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } && {
7626 test -z "$ac_c_werror_flag" ||
7627 test ! -s conftest.err
7628 } && test -s conftest$ac_exeext &&
7629 $as_test_x conftest$ac_exeext; then
7630 ac_cv_lib_cap_cap_init=yes
7631 else
7632 echo "$as_me: failed program was:" >&5
7633 sed 's/^/| /' conftest.$ac_ext >&5
7635 ac_cv_lib_cap_cap_init=no
7638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7639 conftest$ac_exeext conftest.$ac_ext
7640 LIBS=$ac_check_lib_save_LIBS
7642 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
7643 echo "${ECHO_T}$ac_cv_lib_cap_cap_init" >&6; }
7644 if test $ac_cv_lib_cap_cap_init = yes; then
7645 have_libcap=yes
7646 else
7647 have_libcap=no
7650 if test "x$have_libcap" = xyes; then
7652 cat >>confdefs.h <<\_ACEOF
7653 #define HAVE_LIBCAP 1
7654 _ACEOF
7662 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7663 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7664 if test "${ac_cv_path_GREP+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 else
7667 # Extract the first word of "grep ggrep" to use in msg output
7668 if test -z "$GREP"; then
7669 set dummy grep ggrep; ac_prog_name=$2
7670 if test "${ac_cv_path_GREP+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 else
7673 ac_path_GREP_found=false
7674 # Loop through the user's path and test for each of PROGNAME-LIST
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7678 IFS=$as_save_IFS
7679 test -z "$as_dir" && as_dir=.
7680 for ac_prog in grep ggrep; do
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7683 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7684 # Check for GNU ac_path_GREP and select it if it is found.
7685 # Check for GNU $ac_path_GREP
7686 case `"$ac_path_GREP" --version 2>&1` in
7687 *GNU*)
7688 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7690 ac_count=0
7691 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7692 while :
7694 cat "conftest.in" "conftest.in" >"conftest.tmp"
7695 mv "conftest.tmp" "conftest.in"
7696 cp "conftest.in" "conftest.nl"
7697 echo 'GREP' >> "conftest.nl"
7698 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7699 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7700 ac_count=`expr $ac_count + 1`
7701 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7702 # Best one so far, save it but keep looking for a better one
7703 ac_cv_path_GREP="$ac_path_GREP"
7704 ac_path_GREP_max=$ac_count
7706 # 10*(2^10) chars as input seems more than enough
7707 test $ac_count -gt 10 && break
7708 done
7709 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7710 esac
7713 $ac_path_GREP_found && break 3
7714 done
7715 done
7717 done
7718 IFS=$as_save_IFS
7723 GREP="$ac_cv_path_GREP"
7724 if test -z "$GREP"; then
7725 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7726 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7727 { (exit 1); exit 1; }; }
7730 else
7731 ac_cv_path_GREP=$GREP
7736 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7737 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7738 GREP="$ac_cv_path_GREP"
7741 { echo "$as_me:$LINENO: checking for egrep" >&5
7742 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7743 if test "${ac_cv_path_EGREP+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 else
7746 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7747 then ac_cv_path_EGREP="$GREP -E"
7748 else
7749 # Extract the first word of "egrep" to use in msg output
7750 if test -z "$EGREP"; then
7751 set dummy egrep; ac_prog_name=$2
7752 if test "${ac_cv_path_EGREP+set}" = set; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 else
7755 ac_path_EGREP_found=false
7756 # Loop through the user's path and test for each of PROGNAME-LIST
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7760 IFS=$as_save_IFS
7761 test -z "$as_dir" && as_dir=.
7762 for ac_prog in egrep; do
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7765 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7766 # Check for GNU ac_path_EGREP and select it if it is found.
7767 # Check for GNU $ac_path_EGREP
7768 case `"$ac_path_EGREP" --version 2>&1` in
7769 *GNU*)
7770 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7772 ac_count=0
7773 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7774 while :
7776 cat "conftest.in" "conftest.in" >"conftest.tmp"
7777 mv "conftest.tmp" "conftest.in"
7778 cp "conftest.in" "conftest.nl"
7779 echo 'EGREP' >> "conftest.nl"
7780 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7782 ac_count=`expr $ac_count + 1`
7783 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7784 # Best one so far, save it but keep looking for a better one
7785 ac_cv_path_EGREP="$ac_path_EGREP"
7786 ac_path_EGREP_max=$ac_count
7788 # 10*(2^10) chars as input seems more than enough
7789 test $ac_count -gt 10 && break
7790 done
7791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7792 esac
7795 $ac_path_EGREP_found && break 3
7796 done
7797 done
7799 done
7800 IFS=$as_save_IFS
7805 EGREP="$ac_cv_path_EGREP"
7806 if test -z "$EGREP"; then
7807 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7808 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7809 { (exit 1); exit 1; }; }
7812 else
7813 ac_cv_path_EGREP=$EGREP
7819 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7820 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7821 EGREP="$ac_cv_path_EGREP"
7824 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7825 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7826 if test "${ac_cv_header_stdc+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829 cat >conftest.$ac_ext <<_ACEOF
7830 /* confdefs.h. */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835 #include <stdlib.h>
7836 #include <stdarg.h>
7837 #include <string.h>
7838 #include <float.h>
7841 main ()
7845 return 0;
7847 _ACEOF
7848 rm -f conftest.$ac_objext
7849 if { (ac_try="$ac_compile"
7850 case "(($ac_try" in
7851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852 *) ac_try_echo=$ac_try;;
7853 esac
7854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7855 (eval "$ac_compile") 2>conftest.er1
7856 ac_status=$?
7857 grep -v '^ *+' conftest.er1 >conftest.err
7858 rm -f conftest.er1
7859 cat conftest.err >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } && {
7862 test -z "$ac_c_werror_flag" ||
7863 test ! -s conftest.err
7864 } && test -s conftest.$ac_objext; then
7865 ac_cv_header_stdc=yes
7866 else
7867 echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.$ac_ext >&5
7870 ac_cv_header_stdc=no
7873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7875 if test $ac_cv_header_stdc = yes; then
7876 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7877 cat >conftest.$ac_ext <<_ACEOF
7878 /* confdefs.h. */
7879 _ACEOF
7880 cat confdefs.h >>conftest.$ac_ext
7881 cat >>conftest.$ac_ext <<_ACEOF
7882 /* end confdefs.h. */
7883 #include <string.h>
7885 _ACEOF
7886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7887 $EGREP "memchr" >/dev/null 2>&1; then
7889 else
7890 ac_cv_header_stdc=no
7892 rm -f conftest*
7896 if test $ac_cv_header_stdc = yes; then
7897 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7898 cat >conftest.$ac_ext <<_ACEOF
7899 /* confdefs.h. */
7900 _ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h. */
7904 #include <stdlib.h>
7906 _ACEOF
7907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7908 $EGREP "free" >/dev/null 2>&1; then
7910 else
7911 ac_cv_header_stdc=no
7913 rm -f conftest*
7917 if test $ac_cv_header_stdc = yes; then
7918 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7919 if test "$cross_compiling" = yes; then
7921 else
7922 cat >conftest.$ac_ext <<_ACEOF
7923 /* confdefs.h. */
7924 _ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7928 #include <ctype.h>
7929 #include <stdlib.h>
7930 #if ((' ' & 0x0FF) == 0x020)
7931 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7932 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7933 #else
7934 # define ISLOWER(c) \
7935 (('a' <= (c) && (c) <= 'i') \
7936 || ('j' <= (c) && (c) <= 'r') \
7937 || ('s' <= (c) && (c) <= 'z'))
7938 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7939 #endif
7941 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7943 main ()
7945 int i;
7946 for (i = 0; i < 256; i++)
7947 if (XOR (islower (i), ISLOWER (i))
7948 || toupper (i) != TOUPPER (i))
7949 return 2;
7950 return 0;
7952 _ACEOF
7953 rm -f conftest$ac_exeext
7954 if { (ac_try="$ac_link"
7955 case "(($ac_try" in
7956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7957 *) ac_try_echo=$ac_try;;
7958 esac
7959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7960 (eval "$ac_link") 2>&5
7961 ac_status=$?
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7964 { (case "(($ac_try" in
7965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966 *) ac_try_echo=$ac_try;;
7967 esac
7968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969 (eval "$ac_try") 2>&5
7970 ac_status=$?
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; }; then
7974 else
7975 echo "$as_me: program exited with status $ac_status" >&5
7976 echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7979 ( exit $ac_status )
7980 ac_cv_header_stdc=no
7982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7988 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7989 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7990 if test $ac_cv_header_stdc = yes; then
7992 cat >>confdefs.h <<\_ACEOF
7993 #define STDC_HEADERS 1
7994 _ACEOF
7998 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8008 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8009 inttypes.h stdint.h unistd.h
8011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 else
8017 cat >conftest.$ac_ext <<_ACEOF
8018 /* confdefs.h. */
8019 _ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8023 $ac_includes_default
8025 #include <$ac_header>
8026 _ACEOF
8027 rm -f conftest.$ac_objext
8028 if { (ac_try="$ac_compile"
8029 case "(($ac_try" in
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8032 esac
8033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034 (eval "$ac_compile") 2>conftest.er1
8035 ac_status=$?
8036 grep -v '^ *+' conftest.er1 >conftest.err
8037 rm -f conftest.er1
8038 cat conftest.err >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } && {
8041 test -z "$ac_c_werror_flag" ||
8042 test ! -s conftest.err
8043 } && test -s conftest.$ac_objext; then
8044 eval "$as_ac_Header=yes"
8045 else
8046 echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8049 eval "$as_ac_Header=no"
8052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054 ac_res=`eval echo '${'$as_ac_Header'}'`
8055 { echo "$as_me:$LINENO: result: $ac_res" >&5
8056 echo "${ECHO_T}$ac_res" >&6; }
8057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8058 cat >>confdefs.h <<_ACEOF
8059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8060 _ACEOF
8064 done
8067 { echo "$as_me:$LINENO: checking for long double" >&5
8068 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8069 if test "${ac_cv_type_long_double+set}" = set; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8071 else
8072 cat >conftest.$ac_ext <<_ACEOF
8073 /* confdefs.h. */
8074 _ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8078 $ac_includes_default
8079 typedef long double ac__type_new_;
8081 main ()
8083 if ((ac__type_new_ *) 0)
8084 return 0;
8085 if (sizeof (ac__type_new_))
8086 return 0;
8088 return 0;
8090 _ACEOF
8091 rm -f conftest.$ac_objext
8092 if { (ac_try="$ac_compile"
8093 case "(($ac_try" in
8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095 *) ac_try_echo=$ac_try;;
8096 esac
8097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098 (eval "$ac_compile") 2>conftest.er1
8099 ac_status=$?
8100 grep -v '^ *+' conftest.er1 >conftest.err
8101 rm -f conftest.er1
8102 cat conftest.err >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); } && {
8105 test -z "$ac_c_werror_flag" ||
8106 test ! -s conftest.err
8107 } && test -s conftest.$ac_objext; then
8108 ac_cv_type_long_double=yes
8109 else
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8113 ac_cv_type_long_double=no
8116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8118 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
8119 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
8121 # The cast to long int works around a bug in the HP C Compiler
8122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8124 # This bug is HP SR number 8606223364.
8125 { echo "$as_me:$LINENO: checking size of long double" >&5
8126 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
8127 if test "${ac_cv_sizeof_long_double+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8129 else
8130 if test "$cross_compiling" = yes; then
8131 # Depending upon the size, compute the lo and hi bounds.
8132 cat >conftest.$ac_ext <<_ACEOF
8133 /* confdefs.h. */
8134 _ACEOF
8135 cat confdefs.h >>conftest.$ac_ext
8136 cat >>conftest.$ac_ext <<_ACEOF
8137 /* end confdefs.h. */
8138 $ac_includes_default
8139 typedef long double ac__type_sizeof_;
8141 main ()
8143 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8144 test_array [0] = 0
8147 return 0;
8149 _ACEOF
8150 rm -f conftest.$ac_objext
8151 if { (ac_try="$ac_compile"
8152 case "(($ac_try" in
8153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8154 *) ac_try_echo=$ac_try;;
8155 esac
8156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8157 (eval "$ac_compile") 2>conftest.er1
8158 ac_status=$?
8159 grep -v '^ *+' conftest.er1 >conftest.err
8160 rm -f conftest.er1
8161 cat conftest.err >&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } && {
8164 test -z "$ac_c_werror_flag" ||
8165 test ! -s conftest.err
8166 } && test -s conftest.$ac_objext; then
8167 ac_lo=0 ac_mid=0
8168 while :; do
8169 cat >conftest.$ac_ext <<_ACEOF
8170 /* confdefs.h. */
8171 _ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8175 $ac_includes_default
8176 typedef long double ac__type_sizeof_;
8178 main ()
8180 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8181 test_array [0] = 0
8184 return 0;
8186 _ACEOF
8187 rm -f conftest.$ac_objext
8188 if { (ac_try="$ac_compile"
8189 case "(($ac_try" in
8190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191 *) ac_try_echo=$ac_try;;
8192 esac
8193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194 (eval "$ac_compile") 2>conftest.er1
8195 ac_status=$?
8196 grep -v '^ *+' conftest.er1 >conftest.err
8197 rm -f conftest.er1
8198 cat conftest.err >&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); } && {
8201 test -z "$ac_c_werror_flag" ||
8202 test ! -s conftest.err
8203 } && test -s conftest.$ac_objext; then
8204 ac_hi=$ac_mid; break
8205 else
8206 echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.$ac_ext >&5
8209 ac_lo=`expr $ac_mid + 1`
8210 if test $ac_lo -le $ac_mid; then
8211 ac_lo= ac_hi=
8212 break
8214 ac_mid=`expr 2 '*' $ac_mid + 1`
8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218 done
8219 else
8220 echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8223 cat >conftest.$ac_ext <<_ACEOF
8224 /* confdefs.h. */
8225 _ACEOF
8226 cat confdefs.h >>conftest.$ac_ext
8227 cat >>conftest.$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8229 $ac_includes_default
8230 typedef long double ac__type_sizeof_;
8232 main ()
8234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8235 test_array [0] = 0
8238 return 0;
8240 _ACEOF
8241 rm -f conftest.$ac_objext
8242 if { (ac_try="$ac_compile"
8243 case "(($ac_try" in
8244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245 *) ac_try_echo=$ac_try;;
8246 esac
8247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8248 (eval "$ac_compile") 2>conftest.er1
8249 ac_status=$?
8250 grep -v '^ *+' conftest.er1 >conftest.err
8251 rm -f conftest.er1
8252 cat conftest.err >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } && {
8255 test -z "$ac_c_werror_flag" ||
8256 test ! -s conftest.err
8257 } && test -s conftest.$ac_objext; then
8258 ac_hi=-1 ac_mid=-1
8259 while :; do
8260 cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h. */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8266 $ac_includes_default
8267 typedef long double ac__type_sizeof_;
8269 main ()
8271 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8272 test_array [0] = 0
8275 return 0;
8277 _ACEOF
8278 rm -f conftest.$ac_objext
8279 if { (ac_try="$ac_compile"
8280 case "(($ac_try" in
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8283 esac
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_compile") 2>conftest.er1
8286 ac_status=$?
8287 grep -v '^ *+' conftest.er1 >conftest.err
8288 rm -f conftest.er1
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } && {
8292 test -z "$ac_c_werror_flag" ||
8293 test ! -s conftest.err
8294 } && test -s conftest.$ac_objext; then
8295 ac_lo=$ac_mid; break
8296 else
8297 echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.$ac_ext >&5
8300 ac_hi=`expr '(' $ac_mid ')' - 1`
8301 if test $ac_mid -le $ac_hi; then
8302 ac_lo= ac_hi=
8303 break
8305 ac_mid=`expr 2 '*' $ac_mid`
8308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309 done
8310 else
8311 echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8314 ac_lo= ac_hi=
8317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321 # Binary search between lo and hi bounds.
8322 while test "x$ac_lo" != "x$ac_hi"; do
8323 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8324 cat >conftest.$ac_ext <<_ACEOF
8325 /* confdefs.h. */
8326 _ACEOF
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h. */
8330 $ac_includes_default
8331 typedef long double ac__type_sizeof_;
8333 main ()
8335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8336 test_array [0] = 0
8339 return 0;
8341 _ACEOF
8342 rm -f conftest.$ac_objext
8343 if { (ac_try="$ac_compile"
8344 case "(($ac_try" in
8345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8346 *) ac_try_echo=$ac_try;;
8347 esac
8348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8349 (eval "$ac_compile") 2>conftest.er1
8350 ac_status=$?
8351 grep -v '^ *+' conftest.er1 >conftest.err
8352 rm -f conftest.er1
8353 cat conftest.err >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } && {
8356 test -z "$ac_c_werror_flag" ||
8357 test ! -s conftest.err
8358 } && test -s conftest.$ac_objext; then
8359 ac_hi=$ac_mid
8360 else
8361 echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8364 ac_lo=`expr '(' $ac_mid ')' + 1`
8367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368 done
8369 case $ac_lo in
8370 ?*) ac_cv_sizeof_long_double=$ac_lo;;
8371 '') if test "$ac_cv_type_long_double" = yes; then
8372 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8373 See \`config.log' for more details." >&5
8374 echo "$as_me: error: cannot compute sizeof (long double)
8375 See \`config.log' for more details." >&2;}
8376 { (exit 77); exit 77; }; }
8377 else
8378 ac_cv_sizeof_long_double=0
8379 fi ;;
8380 esac
8381 else
8382 cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h. */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8388 $ac_includes_default
8389 typedef long double ac__type_sizeof_;
8390 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8391 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8392 #include <stdio.h>
8393 #include <stdlib.h>
8395 main ()
8398 FILE *f = fopen ("conftest.val", "w");
8399 if (! f)
8400 return 1;
8401 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8403 long int i = longval ();
8404 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8405 return 1;
8406 fprintf (f, "%ld\n", i);
8408 else
8410 unsigned long int i = ulongval ();
8411 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8412 return 1;
8413 fprintf (f, "%lu\n", i);
8415 return ferror (f) || fclose (f) != 0;
8418 return 0;
8420 _ACEOF
8421 rm -f conftest$ac_exeext
8422 if { (ac_try="$ac_link"
8423 case "(($ac_try" in
8424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425 *) ac_try_echo=$ac_try;;
8426 esac
8427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428 (eval "$ac_link") 2>&5
8429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8432 { (case "(($ac_try" in
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8435 esac
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_try") 2>&5
8438 ac_status=$?
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); }; }; then
8441 ac_cv_sizeof_long_double=`cat conftest.val`
8442 else
8443 echo "$as_me: program exited with status $ac_status" >&5
8444 echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.$ac_ext >&5
8447 ( exit $ac_status )
8448 if test "$ac_cv_type_long_double" = yes; then
8449 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8450 See \`config.log' for more details." >&5
8451 echo "$as_me: error: cannot compute sizeof (long double)
8452 See \`config.log' for more details." >&2;}
8453 { (exit 77); exit 77; }; }
8454 else
8455 ac_cv_sizeof_long_double=0
8458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8460 rm -f conftest.val
8462 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
8463 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
8467 cat >>confdefs.h <<_ACEOF
8468 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8469 _ACEOF
8472 sizeof_long_double=$ac_cv_sizeof_long_double
8475 ### End of automated tests.
8476 ### Now run sysdeps configure fragments.
8478 # They also can set these variables.
8479 use_ldconfig=no
8480 ldd_rewrite_script=no
8481 libc_cv_sysconfdir=$sysconfdir
8482 libc_cv_gcc_unwind_find_fde=no
8483 libc_cv_idn=no
8485 # Iterate over all the sysdep directories we will use, running their
8486 # configure fragments, and looking for a uname implementation.
8487 uname=
8488 for dir in $sysnames; do
8489 case $dir in
8490 /*) dest=$dir ;;
8491 *) dest=$srcdir/$dir ;;
8492 esac
8493 if test -r $dest/configure; then
8494 { echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
8495 echo "${ECHO_T}running configure fragment for $dir" >&6; }
8496 . $dest/configure
8499 if test -z "$uname"; then
8500 if test -r $dest/uname.c ||
8501 test -r $dest/uname.S ||
8502 { test -r $dest/syscalls.list &&
8503 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
8504 uname=$dir
8507 done
8509 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
8510 cat >>confdefs.h <<\_ACEOF
8511 #define EXPORT_UNWIND_FIND_FDE 1
8512 _ACEOF
8517 # If we will use the generic uname implementation, we must figure out what
8518 # it will say by examining the system, and write the results in config-name.h.
8519 if test "$uname" = "sysdeps/generic"; then
8521 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
8522 if test $uname_sysname != $config_os; then
8523 config_release=`echo $config_os | sed s/$uname_sysname//`
8526 { echo "$as_me:$LINENO: checking OS release for uname" >&5
8527 echo $ECHO_N "checking OS release for uname... $ECHO_C" >&6; }
8528 if test "${libc_cv_uname_release+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8530 else
8531 if test -r /vmunix; then
8532 kernel_id=`strings /vmunix | grep UNIX`
8533 elif test -r /dynix; then
8534 kernel_id=`strings /dynix | grep DYNIX`
8535 else
8536 kernel_id=
8539 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
8540 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
8541 != x$config_release; then
8542 # The configuration release is a substring of the kernel release.
8543 libc_cv_uname_release=$kernel_release
8544 elif test x$config_release != x; then
8545 libc_cv_uname_release=$config_release
8546 elif test x$kernel_release != x; then
8547 libc_cv_uname_release=$kernel_release
8548 else
8549 libc_cv_uname_release=unknown
8552 { echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
8553 echo "${ECHO_T}$libc_cv_uname_release" >&6; }
8554 uname_release="$libc_cv_uname_release"
8556 { echo "$as_me:$LINENO: checking OS version for uname" >&5
8557 echo $ECHO_N "checking OS version for uname... $ECHO_C" >&6; }
8558 if test "${libc_cv_uname_version+set}" = set; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8560 else
8561 if test -r /vmunix; then
8562 kernel_id=`strings /vmunix | grep UNIX`
8563 elif test -r /dynix; then
8564 kernel_id=`strings /dynix | grep DYNIX`
8565 else
8566 kernel_id=
8569 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
8570 if test -n "$kernel_version"; then
8571 libc_cv_uname_version="$kernel_version"
8572 else
8573 libc_cv_uname_version=unknown
8576 { echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
8577 echo "${ECHO_T}$libc_cv_uname_version" >&6; }
8578 uname_version="$libc_cv_uname_version"
8580 config_uname=config-name.h:config-name.in
8581 else
8582 # For non-generic uname, we don't need to create config-name.h at all.
8583 config_uname=
8586 cat >>confdefs.h <<\_ACEOF
8587 #define USE_IN_LIBIO 1
8588 _ACEOF
8591 # Test for old glibc 2.0.x headers so that they can be removed properly
8592 # Search only in includedir.
8593 { echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
8594 echo $ECHO_N "checking for old glibc 2.0.x headers... $ECHO_C" >&6; }
8595 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
8596 then
8597 old_glibc_headers=yes
8598 else
8599 old_glibc_headers=no
8601 { echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
8602 echo "${ECHO_T}$old_glibc_headers" >&6; }
8603 if test ${old_glibc_headers} = yes; then
8604 { echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
8605 echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
8606 { echo "$as_me:$LINENO: WARNING: *** be removed." >&5
8607 echo "$as_me: WARNING: *** be removed." >&2;}
8623 if test $elf = yes; then
8624 cat >>confdefs.h <<\_ACEOF
8625 #define HAVE_ELF 1
8626 _ACEOF
8629 if test $xcoff = yes; then
8630 cat >>confdefs.h <<\_ACEOF
8631 #define HAVE_XCOFF 1
8632 _ACEOF
8638 if test $shared = default; then
8639 shared=$elf
8642 { echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
8643 echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6; }
8644 if test "${libc_cv_pic_default+set}" = set; then
8645 echo $ECHO_N "(cached) $ECHO_C" >&6
8646 else
8647 libc_cv_pic_default=yes
8648 cat > conftest.c <<EOF
8649 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
8650 # error PIC is default.
8651 #endif
8653 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
8654 libc_cv_pic_default=no
8656 rm -f conftest.*
8658 { echo "$as_me:$LINENO: result: $libc_cv_pic_default" >&5
8659 echo "${ECHO_T}$libc_cv_pic_default" >&6; }
8672 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
8673 config_makefile=
8674 else
8675 config_makefile=Makefile
8678 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
8679 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8683 ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
8685 ac_config_commands="$ac_config_commands default"
8687 cat >confcache <<\_ACEOF
8688 # This file is a shell script that caches the results of configure
8689 # tests run on this system so they can be shared between configure
8690 # scripts and configure runs, see configure's option --config-cache.
8691 # It is not useful on other systems. If it contains results you don't
8692 # want to keep, you may remove or edit it.
8694 # config.status only pays attention to the cache file if you give it
8695 # the --recheck option to rerun configure.
8697 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8698 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8699 # following values.
8701 _ACEOF
8703 # The following way of writing the cache mishandles newlines in values,
8704 # but we know of no workaround that is simple, portable, and efficient.
8705 # So, we kill variables containing newlines.
8706 # Ultrix sh set writes to stderr and can't be redirected directly,
8707 # and sets the high bit in the cache file unless we assign to the vars.
8709 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8710 eval ac_val=\$$ac_var
8711 case $ac_val in #(
8712 *${as_nl}*)
8713 case $ac_var in #(
8714 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8715 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8716 esac
8717 case $ac_var in #(
8718 _ | IFS | as_nl) ;; #(
8719 *) $as_unset $ac_var ;;
8720 esac ;;
8721 esac
8722 done
8724 (set) 2>&1 |
8725 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8726 *${as_nl}ac_space=\ *)
8727 # `set' does not quote correctly, so add quotes (double-quote
8728 # substitution turns \\\\ into \\, and sed turns \\ into \).
8729 sed -n \
8730 "s/'/'\\\\''/g;
8731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8732 ;; #(
8734 # `set' quotes correctly as required by POSIX, so do not add quotes.
8735 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8737 esac |
8738 sort
8740 sed '
8741 /^ac_cv_env_/b end
8742 t clear
8743 :clear
8744 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8745 t end
8746 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8747 :end' >>confcache
8748 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8749 if test -w "$cache_file"; then
8750 test "x$cache_file" != "x/dev/null" &&
8751 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8752 echo "$as_me: updating cache $cache_file" >&6;}
8753 cat confcache >$cache_file
8754 else
8755 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8756 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8759 rm -f confcache
8761 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8762 # Let make expand exec_prefix.
8763 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8765 DEFS=-DHAVE_CONFIG_H
8767 ac_libobjs=
8768 ac_ltlibobjs=
8769 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8770 # 1. Remove the extension, and $U if already installed.
8771 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8772 ac_i=`echo "$ac_i" | sed "$ac_script"`
8773 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8774 # will be set to the directory where LIBOBJS objects are built.
8775 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8776 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8777 done
8778 LIBOBJS=$ac_libobjs
8780 LTLIBOBJS=$ac_ltlibobjs
8784 : ${CONFIG_STATUS=./config.status}
8785 ac_clean_files_save=$ac_clean_files
8786 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8787 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8788 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8789 cat >$CONFIG_STATUS <<_ACEOF
8790 #! $SHELL
8791 # Generated by $as_me.
8792 # Run this file to recreate the current configuration.
8793 # Compiler output produced by configure, useful for debugging
8794 # configure, is in config.log if it exists.
8796 debug=false
8797 ac_cs_recheck=false
8798 ac_cs_silent=false
8799 SHELL=\${CONFIG_SHELL-$SHELL}
8800 _ACEOF
8802 cat >>$CONFIG_STATUS <<\_ACEOF
8803 ## --------------------- ##
8804 ## M4sh Initialization. ##
8805 ## --------------------- ##
8807 # Be more Bourne compatible
8808 DUALCASE=1; export DUALCASE # for MKS sh
8809 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8810 emulate sh
8811 NULLCMD=:
8812 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8813 # is contrary to our usage. Disable this feature.
8814 alias -g '${1+"$@"}'='"$@"'
8815 setopt NO_GLOB_SUBST
8816 else
8817 case `(set -o) 2>/dev/null` in
8818 *posix*) set -o posix ;;
8819 esac
8826 # PATH needs CR
8827 # Avoid depending upon Character Ranges.
8828 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8829 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8830 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8831 as_cr_digits='0123456789'
8832 as_cr_alnum=$as_cr_Letters$as_cr_digits
8834 # The user is always right.
8835 if test "${PATH_SEPARATOR+set}" != set; then
8836 echo "#! /bin/sh" >conf$$.sh
8837 echo "exit 0" >>conf$$.sh
8838 chmod +x conf$$.sh
8839 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8840 PATH_SEPARATOR=';'
8841 else
8842 PATH_SEPARATOR=:
8844 rm -f conf$$.sh
8847 # Support unset when possible.
8848 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8849 as_unset=unset
8850 else
8851 as_unset=false
8855 # IFS
8856 # We need space, tab and new line, in precisely that order. Quoting is
8857 # there to prevent editors from complaining about space-tab.
8858 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8859 # splitting by setting IFS to empty value.)
8860 as_nl='
8862 IFS=" "" $as_nl"
8864 # Find who we are. Look in the path if we contain no directory separator.
8865 case $0 in
8866 *[\\/]* ) as_myself=$0 ;;
8867 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8868 for as_dir in $PATH
8870 IFS=$as_save_IFS
8871 test -z "$as_dir" && as_dir=.
8872 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8873 done
8874 IFS=$as_save_IFS
8877 esac
8878 # We did not find ourselves, most probably we were run as `sh COMMAND'
8879 # in which case we are not to be found in the path.
8880 if test "x$as_myself" = x; then
8881 as_myself=$0
8883 if test ! -f "$as_myself"; then
8884 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8885 { (exit 1); exit 1; }
8888 # Work around bugs in pre-3.0 UWIN ksh.
8889 for as_var in ENV MAIL MAILPATH
8890 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8891 done
8892 PS1='$ '
8893 PS2='> '
8894 PS4='+ '
8896 # NLS nuisances.
8897 for as_var in \
8898 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8899 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8900 LC_TELEPHONE LC_TIME
8902 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8903 eval $as_var=C; export $as_var
8904 else
8905 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8907 done
8909 # Required to use basename.
8910 if expr a : '\(a\)' >/dev/null 2>&1 &&
8911 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8912 as_expr=expr
8913 else
8914 as_expr=false
8917 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8918 as_basename=basename
8919 else
8920 as_basename=false
8924 # Name of the executable.
8925 as_me=`$as_basename -- "$0" ||
8926 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8927 X"$0" : 'X\(//\)$' \| \
8928 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8929 echo X/"$0" |
8930 sed '/^.*\/\([^/][^/]*\)\/*$/{
8931 s//\1/
8934 /^X\/\(\/\/\)$/{
8935 s//\1/
8938 /^X\/\(\/\).*/{
8939 s//\1/
8942 s/.*/./; q'`
8944 # CDPATH.
8945 $as_unset CDPATH
8949 as_lineno_1=$LINENO
8950 as_lineno_2=$LINENO
8951 test "x$as_lineno_1" != "x$as_lineno_2" &&
8952 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8954 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8955 # uniformly replaced by the line number. The first 'sed' inserts a
8956 # line-number line after each line using $LINENO; the second 'sed'
8957 # does the real work. The second script uses 'N' to pair each
8958 # line-number line with the line containing $LINENO, and appends
8959 # trailing '-' during substitution so that $LINENO is not a special
8960 # case at line end.
8961 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8962 # scripts with optimization help from Paolo Bonzini. Blame Lee
8963 # E. McMahon (1931-1989) for sed's syntax. :-)
8964 sed -n '
8966 /[$]LINENO/=
8967 ' <$as_myself |
8968 sed '
8969 s/[$]LINENO.*/&-/
8970 t lineno
8972 :lineno
8974 :loop
8975 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8976 t loop
8977 s/-\n.*//
8978 ' >$as_me.lineno &&
8979 chmod +x "$as_me.lineno" ||
8980 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8981 { (exit 1); exit 1; }; }
8983 # Don't try to exec as it changes $[0], causing all sort of problems
8984 # (the dirname of $[0] is not the place where we might find the
8985 # original and so on. Autoconf is especially sensitive to this).
8986 . "./$as_me.lineno"
8987 # Exit status is that of the last command.
8988 exit
8992 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8993 as_dirname=dirname
8994 else
8995 as_dirname=false
8998 ECHO_C= ECHO_N= ECHO_T=
8999 case `echo -n x` in
9000 -n*)
9001 case `echo 'x\c'` in
9002 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9003 *) ECHO_C='\c';;
9004 esac;;
9006 ECHO_N='-n';;
9007 esac
9009 if expr a : '\(a\)' >/dev/null 2>&1 &&
9010 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9011 as_expr=expr
9012 else
9013 as_expr=false
9016 rm -f conf$$ conf$$.exe conf$$.file
9017 if test -d conf$$.dir; then
9018 rm -f conf$$.dir/conf$$.file
9019 else
9020 rm -f conf$$.dir
9021 mkdir conf$$.dir
9023 echo >conf$$.file
9024 if ln -s conf$$.file conf$$ 2>/dev/null; then
9025 as_ln_s='ln -s'
9026 # ... but there are two gotchas:
9027 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9028 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9029 # In both cases, we have to default to `cp -p'.
9030 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9031 as_ln_s='cp -p'
9032 elif ln conf$$.file conf$$ 2>/dev/null; then
9033 as_ln_s=ln
9034 else
9035 as_ln_s='cp -p'
9037 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9038 rmdir conf$$.dir 2>/dev/null
9040 if mkdir -p . 2>/dev/null; then
9041 as_mkdir_p=:
9042 else
9043 test -d ./-p && rmdir ./-p
9044 as_mkdir_p=false
9047 if test -x / >/dev/null 2>&1; then
9048 as_test_x='test -x'
9049 else
9050 if ls -dL / >/dev/null 2>&1; then
9051 as_ls_L_option=L
9052 else
9053 as_ls_L_option=
9055 as_test_x='
9056 eval sh -c '\''
9057 if test -d "$1"; then
9058 test -d "$1/.";
9059 else
9060 case $1 in
9061 -*)set "./$1";;
9062 esac;
9063 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9064 ???[sx]*):;;*)false;;esac;fi
9065 '\'' sh
9068 as_executable_p=$as_test_x
9070 # Sed expression to map a string onto a valid CPP name.
9071 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9073 # Sed expression to map a string onto a valid variable name.
9074 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9077 exec 6>&1
9079 # Save the log message, to keep $[0] and so on meaningful, and to
9080 # report actual input values of CONFIG_FILES etc. instead of their
9081 # values after options handling.
9082 ac_log="
9083 This file was extended by GNU C Library $as_me (see version.h), which was
9084 generated by GNU Autoconf 2.61. Invocation command line was
9086 CONFIG_FILES = $CONFIG_FILES
9087 CONFIG_HEADERS = $CONFIG_HEADERS
9088 CONFIG_LINKS = $CONFIG_LINKS
9089 CONFIG_COMMANDS = $CONFIG_COMMANDS
9090 $ $0 $@
9092 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9095 _ACEOF
9097 cat >>$CONFIG_STATUS <<_ACEOF
9098 # Files that config.status was made for.
9099 config_files="$ac_config_files"
9100 config_headers="$ac_config_headers"
9101 config_commands="$ac_config_commands"
9103 _ACEOF
9105 cat >>$CONFIG_STATUS <<\_ACEOF
9106 ac_cs_usage="\
9107 \`$as_me' instantiates files from templates according to the
9108 current configuration.
9110 Usage: $0 [OPTIONS] [FILE]...
9112 -h, --help print this help, then exit
9113 -V, --version print version number and configuration settings, then exit
9114 -q, --quiet do not print progress messages
9115 -d, --debug don't remove temporary files
9116 --recheck update $as_me by reconfiguring in the same conditions
9117 --file=FILE[:TEMPLATE]
9118 instantiate the configuration file FILE
9119 --header=FILE[:TEMPLATE]
9120 instantiate the configuration header FILE
9122 Configuration files:
9123 $config_files
9125 Configuration headers:
9126 $config_headers
9128 Configuration commands:
9129 $config_commands
9131 Report bugs to <bug-autoconf@gnu.org>."
9133 _ACEOF
9134 cat >>$CONFIG_STATUS <<_ACEOF
9135 ac_cs_version="\\
9136 GNU C Library config.status (see version.h)
9137 configured by $0, generated by GNU Autoconf 2.61,
9138 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9140 Copyright (C) 2006 Free Software Foundation, Inc.
9141 This config.status script is free software; the Free Software Foundation
9142 gives unlimited permission to copy, distribute and modify it."
9144 ac_pwd='$ac_pwd'
9145 srcdir='$srcdir'
9146 INSTALL='$INSTALL'
9147 _ACEOF
9149 cat >>$CONFIG_STATUS <<\_ACEOF
9150 # If no file are specified by the user, then we need to provide default
9151 # value. By we need to know if files were specified by the user.
9152 ac_need_defaults=:
9153 while test $# != 0
9155 case $1 in
9156 --*=*)
9157 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9158 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9159 ac_shift=:
9162 ac_option=$1
9163 ac_optarg=$2
9164 ac_shift=shift
9166 esac
9168 case $ac_option in
9169 # Handling of the options.
9170 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9171 ac_cs_recheck=: ;;
9172 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9173 echo "$ac_cs_version"; exit ;;
9174 --debug | --debu | --deb | --de | --d | -d )
9175 debug=: ;;
9176 --file | --fil | --fi | --f )
9177 $ac_shift
9178 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9179 ac_need_defaults=false;;
9180 --header | --heade | --head | --hea )
9181 $ac_shift
9182 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9183 ac_need_defaults=false;;
9184 --he | --h)
9185 # Conflict between --help and --header
9186 { echo "$as_me: error: ambiguous option: $1
9187 Try \`$0 --help' for more information." >&2
9188 { (exit 1); exit 1; }; };;
9189 --help | --hel | -h )
9190 echo "$ac_cs_usage"; exit ;;
9191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9192 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9193 ac_cs_silent=: ;;
9195 # This is an error.
9196 -*) { echo "$as_me: error: unrecognized option: $1
9197 Try \`$0 --help' for more information." >&2
9198 { (exit 1); exit 1; }; } ;;
9200 *) ac_config_targets="$ac_config_targets $1"
9201 ac_need_defaults=false ;;
9203 esac
9204 shift
9205 done
9207 ac_configure_extra_args=
9209 if $ac_cs_silent; then
9210 exec 6>/dev/null
9211 ac_configure_extra_args="$ac_configure_extra_args --silent"
9214 _ACEOF
9215 cat >>$CONFIG_STATUS <<_ACEOF
9216 if \$ac_cs_recheck; then
9217 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9218 CONFIG_SHELL=$SHELL
9219 export CONFIG_SHELL
9220 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9223 _ACEOF
9224 cat >>$CONFIG_STATUS <<\_ACEOF
9225 exec 5>>config.log
9227 echo
9228 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9229 ## Running $as_me. ##
9230 _ASBOX
9231 echo "$ac_log"
9232 } >&5
9234 _ACEOF
9235 cat >>$CONFIG_STATUS <<_ACEOF
9237 # INIT-COMMANDS
9239 config_vars='$config_vars'
9241 _ACEOF
9243 cat >>$CONFIG_STATUS <<\_ACEOF
9245 # Handling of arguments.
9246 for ac_config_target in $ac_config_targets
9248 case $ac_config_target in
9249 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9250 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
9251 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
9252 "${config_uname}") CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
9253 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9255 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9256 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9257 { (exit 1); exit 1; }; };;
9258 esac
9259 done
9262 # If the user did not use the arguments to specify the items to instantiate,
9263 # then the envvar interface is used. Set only those that are not.
9264 # We use the long form for the default assignment because of an extremely
9265 # bizarre bug on SunOS 4.1.3.
9266 if $ac_need_defaults; then
9267 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9268 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9269 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9272 # Have a temporary directory for convenience. Make it in the build tree
9273 # simply because there is no reason against having it here, and in addition,
9274 # creating and moving files from /tmp can sometimes cause problems.
9275 # Hook for its removal unless debugging.
9276 # Note that there is a small window in which the directory will not be cleaned:
9277 # after its creation but before its name has been assigned to `$tmp'.
9278 $debug ||
9280 tmp=
9281 trap 'exit_status=$?
9282 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9284 trap '{ (exit 1); exit 1; }' 1 2 13 15
9286 # Create a (secure) tmp directory for tmp files.
9289 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9290 test -n "$tmp" && test -d "$tmp"
9291 } ||
9293 tmp=./conf$$-$RANDOM
9294 (umask 077 && mkdir "$tmp")
9295 } ||
9297 echo "$me: cannot create a temporary directory in ." >&2
9298 { (exit 1); exit 1; }
9302 # Set up the sed scripts for CONFIG_FILES section.
9305 # No need to generate the scripts if there are no CONFIG_FILES.
9306 # This happens for instance when ./config.status config.h
9307 if test -n "$CONFIG_FILES"; then
9309 _ACEOF
9313 ac_delim='%!_!# '
9314 for ac_last_try in false false false false false :; do
9315 cat >conf$$subs.sed <<_ACEOF
9316 SHELL!$SHELL$ac_delim
9317 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9318 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9319 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9320 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9321 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9322 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9323 exec_prefix!$exec_prefix$ac_delim
9324 prefix!$prefix$ac_delim
9325 program_transform_name!$program_transform_name$ac_delim
9326 bindir!$bindir$ac_delim
9327 sbindir!$sbindir$ac_delim
9328 libexecdir!$libexecdir$ac_delim
9329 datarootdir!$datarootdir$ac_delim
9330 datadir!$datadir$ac_delim
9331 sysconfdir!$sysconfdir$ac_delim
9332 sharedstatedir!$sharedstatedir$ac_delim
9333 localstatedir!$localstatedir$ac_delim
9334 includedir!$includedir$ac_delim
9335 oldincludedir!$oldincludedir$ac_delim
9336 docdir!$docdir$ac_delim
9337 infodir!$infodir$ac_delim
9338 htmldir!$htmldir$ac_delim
9339 dvidir!$dvidir$ac_delim
9340 pdfdir!$pdfdir$ac_delim
9341 psdir!$psdir$ac_delim
9342 libdir!$libdir$ac_delim
9343 localedir!$localedir$ac_delim
9344 mandir!$mandir$ac_delim
9345 DEFS!$DEFS$ac_delim
9346 ECHO_C!$ECHO_C$ac_delim
9347 ECHO_N!$ECHO_N$ac_delim
9348 ECHO_T!$ECHO_T$ac_delim
9349 LIBS!$LIBS$ac_delim
9350 build_alias!$build_alias$ac_delim
9351 host_alias!$host_alias$ac_delim
9352 target_alias!$target_alias$ac_delim
9353 CC!$CC$ac_delim
9354 CFLAGS!$CFLAGS$ac_delim
9355 LDFLAGS!$LDFLAGS$ac_delim
9356 CPPFLAGS!$CPPFLAGS$ac_delim
9357 ac_ct_CC!$ac_ct_CC$ac_delim
9358 OBJEXT!$OBJEXT$ac_delim
9359 BUILD_CC!$BUILD_CC$ac_delim
9360 cross_compiling!$cross_compiling$ac_delim
9361 CPP!$CPP$ac_delim
9362 CXX!$CXX$ac_delim
9363 CXXFLAGS!$CXXFLAGS$ac_delim
9364 ac_ct_CXX!$ac_ct_CXX$ac_delim
9365 with_fp!$with_fp$ac_delim
9366 with_cvs!$with_cvs$ac_delim
9367 enable_check_abi!$enable_check_abi$ac_delim
9368 oldest_abi!$oldest_abi$ac_delim
9369 bindnow!$bindnow$ac_delim
9370 force_install!$force_install$ac_delim
9371 all_warnings!$all_warnings$ac_delim
9372 multi_arch!$multi_arch$ac_delim
9373 experimental_malloc!$experimental_malloc$ac_delim
9374 libc_cv_nss_crypt!$libc_cv_nss_crypt$ac_delim
9375 build!$build$ac_delim
9376 build_cpu!$build_cpu$ac_delim
9377 build_vendor!$build_vendor$ac_delim
9378 build_os!$build_os$ac_delim
9379 host!$host$ac_delim
9380 host_cpu!$host_cpu$ac_delim
9381 host_vendor!$host_vendor$ac_delim
9382 host_os!$host_os$ac_delim
9383 subdirs!$subdirs$ac_delim
9384 add_ons!$add_ons$ac_delim
9385 add_on_subdirs!$add_on_subdirs$ac_delim
9386 base_machine!$base_machine$ac_delim
9387 submachine!$submachine$ac_delim
9388 sysnames!$sysnames$ac_delim
9389 sysdeps_add_ons!$sysdeps_add_ons$ac_delim
9390 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9391 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9392 INSTALL_DATA!$INSTALL_DATA$ac_delim
9393 LN_S!$LN_S$ac_delim
9394 AR!$AR$ac_delim
9395 OBJDUMP!$OBJDUMP$ac_delim
9396 RANLIB!$RANLIB$ac_delim
9397 MIG!$MIG$ac_delim
9398 AS!$AS$ac_delim
9399 LD!$LD$ac_delim
9400 PWD_P!$PWD_P$ac_delim
9401 MAKE!$MAKE$ac_delim
9402 MSGFMT!$MSGFMT$ac_delim
9403 MAKEINFO!$MAKEINFO$ac_delim
9404 SED!$SED$ac_delim
9405 AUTOCONF!$AUTOCONF$ac_delim
9406 SYSINCLUDES!$SYSINCLUDES$ac_delim
9407 CXX_SYSINCLUDES!$CXX_SYSINCLUDES$ac_delim
9408 libc_cv_gcc_static_libgcc!$libc_cv_gcc_static_libgcc$ac_delim
9409 BASH_SHELL!$BASH_SHELL$ac_delim
9410 libc_cv_have_bash2!$libc_cv_have_bash2$ac_delim
9411 KSH!$KSH$ac_delim
9412 libc_cv_have_ksh!$libc_cv_have_ksh$ac_delim
9413 _ACEOF
9415 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
9416 break
9417 elif $ac_last_try; then
9418 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9419 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9420 { (exit 1); exit 1; }; }
9421 else
9422 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9424 done
9426 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9427 if test -n "$ac_eof"; then
9428 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9429 ac_eof=`expr $ac_eof + 1`
9432 cat >>$CONFIG_STATUS <<_ACEOF
9433 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9435 _ACEOF
9436 sed '
9437 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9438 s/^/s,@/; s/!/@,|#_!!_#|/
9441 s/'"$ac_delim"'$/,g/; t
9442 s/$/\\/; p
9443 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9444 ' >>$CONFIG_STATUS <conf$$subs.sed
9445 rm -f conf$$subs.sed
9446 cat >>$CONFIG_STATUS <<_ACEOF
9447 CEOF$ac_eof
9448 _ACEOF
9451 ac_delim='%!_!# '
9452 for ac_last_try in false false false false false :; do
9453 cat >conf$$subs.sed <<_ACEOF
9454 AWK!$AWK$ac_delim
9455 PERL!$PERL$ac_delim
9456 INSTALL_INFO!$INSTALL_INFO$ac_delim
9457 BISON!$BISON$ac_delim
9458 VERSIONING!$VERSIONING$ac_delim
9459 libc_cv_cc_with_libunwind!$libc_cv_cc_with_libunwind$ac_delim
9460 libc_cv_Bgroup!$libc_cv_Bgroup$ac_delim
9461 libc_cv_libgcc_s_suffix!$libc_cv_libgcc_s_suffix$ac_delim
9462 libc_cv_as_needed!$libc_cv_as_needed$ac_delim
9463 ASFLAGS_config!$ASFLAGS_config$ac_delim
9464 libc_cv_z_combreloc!$libc_cv_z_combreloc$ac_delim
9465 libc_cv_z_execstack!$libc_cv_z_execstack$ac_delim
9466 libc_cv_fpie!$libc_cv_fpie$ac_delim
9467 libc_cv_hashstyle!$libc_cv_hashstyle$ac_delim
9468 fno_unit_at_a_time!$fno_unit_at_a_time$ac_delim
9469 libc_cv_ssp!$libc_cv_ssp$ac_delim
9470 libc_cv_gnu89_inline!$libc_cv_gnu89_inline$ac_delim
9471 libc_cv_have_initfini!$libc_cv_have_initfini$ac_delim
9472 no_whole_archive!$no_whole_archive$ac_delim
9473 exceptions!$exceptions$ac_delim
9474 libc_cv_cc_submachine!$libc_cv_cc_submachine$ac_delim
9475 LIBGD!$LIBGD$ac_delim
9476 have_libaudit!$have_libaudit$ac_delim
9477 have_libcap!$have_libcap$ac_delim
9478 have_selinux!$have_selinux$ac_delim
9479 GREP!$GREP$ac_delim
9480 EGREP!$EGREP$ac_delim
9481 sizeof_long_double!$sizeof_long_double$ac_delim
9482 libc_cv_gcc_unwind_find_fde!$libc_cv_gcc_unwind_find_fde$ac_delim
9483 uname_sysname!$uname_sysname$ac_delim
9484 uname_release!$uname_release$ac_delim
9485 uname_version!$uname_version$ac_delim
9486 old_glibc_headers!$old_glibc_headers$ac_delim
9487 libc_cv_slibdir!$libc_cv_slibdir$ac_delim
9488 libc_cv_localedir!$libc_cv_localedir$ac_delim
9489 libc_cv_sysconfdir!$libc_cv_sysconfdir$ac_delim
9490 libc_cv_rootsbindir!$libc_cv_rootsbindir$ac_delim
9491 libc_cv_forced_unwind!$libc_cv_forced_unwind$ac_delim
9492 libc_cv_cpp_asm_debuginfo!$libc_cv_cpp_asm_debuginfo$ac_delim
9493 use_ldconfig!$use_ldconfig$ac_delim
9494 ldd_rewrite_script!$ldd_rewrite_script$ac_delim
9495 elf!$elf$ac_delim
9496 xcoff!$xcoff$ac_delim
9497 static!$static$ac_delim
9498 shared!$shared$ac_delim
9499 libc_cv_pic_default!$libc_cv_pic_default$ac_delim
9500 profile!$profile$ac_delim
9501 omitfp!$omitfp$ac_delim
9502 bounded!$bounded$ac_delim
9503 static_nss!$static_nss$ac_delim
9504 nopic_initfini!$nopic_initfini$ac_delim
9505 DEFINES!$DEFINES$ac_delim
9506 mach_interface_list!$mach_interface_list$ac_delim
9507 VERSION!$VERSION$ac_delim
9508 RELEASE!$RELEASE$ac_delim
9509 LIBOBJS!$LIBOBJS$ac_delim
9510 LTLIBOBJS!$LTLIBOBJS$ac_delim
9511 _ACEOF
9513 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 57; then
9514 break
9515 elif $ac_last_try; then
9516 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9517 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9518 { (exit 1); exit 1; }; }
9519 else
9520 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9522 done
9524 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9525 if test -n "$ac_eof"; then
9526 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9527 ac_eof=`expr $ac_eof + 1`
9530 cat >>$CONFIG_STATUS <<_ACEOF
9531 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
9532 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9533 _ACEOF
9534 sed '
9535 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9536 s/^/s,@/; s/!/@,|#_!!_#|/
9539 s/'"$ac_delim"'$/,g/; t
9540 s/$/\\/; p
9541 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9542 ' >>$CONFIG_STATUS <conf$$subs.sed
9543 rm -f conf$$subs.sed
9544 cat >>$CONFIG_STATUS <<_ACEOF
9545 :end
9546 s/|#_!!_#|//g
9547 CEOF$ac_eof
9548 _ACEOF
9551 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9552 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9553 # trailing colons and then remove the whole line if VPATH becomes empty
9554 # (actually we leave an empty line to preserve line numbers).
9555 if test "x$srcdir" = x.; then
9556 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9557 s/:*\$(srcdir):*/:/
9558 s/:*\${srcdir}:*/:/
9559 s/:*@srcdir@:*/:/
9560 s/^\([^=]*=[ ]*\):*/\1/
9561 s/:*$//
9562 s/^[^=]*=[ ]*$//
9566 cat >>$CONFIG_STATUS <<\_ACEOF
9567 fi # test -n "$CONFIG_FILES"
9570 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
9572 case $ac_tag in
9573 :[FHLC]) ac_mode=$ac_tag; continue;;
9574 esac
9575 case $ac_mode$ac_tag in
9576 :[FHL]*:*);;
9577 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9578 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9579 { (exit 1); exit 1; }; };;
9580 :[FH]-) ac_tag=-:-;;
9581 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9582 esac
9583 ac_save_IFS=$IFS
9584 IFS=:
9585 set x $ac_tag
9586 IFS=$ac_save_IFS
9587 shift
9588 ac_file=$1
9589 shift
9591 case $ac_mode in
9592 :L) ac_source=$1;;
9593 :[FH])
9594 ac_file_inputs=
9595 for ac_f
9597 case $ac_f in
9598 -) ac_f="$tmp/stdin";;
9599 *) # Look for the file first in the build tree, then in the source tree
9600 # (if the path is not absolute). The absolute path cannot be DOS-style,
9601 # because $ac_f cannot contain `:'.
9602 test -f "$ac_f" ||
9603 case $ac_f in
9604 [\\/$]*) false;;
9605 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9606 esac ||
9607 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9608 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9609 { (exit 1); exit 1; }; };;
9610 esac
9611 ac_file_inputs="$ac_file_inputs $ac_f"
9612 done
9614 # Let's still pretend it is `configure' which instantiates (i.e., don't
9615 # use $as_me), people would be surprised to read:
9616 # /* config.h. Generated by config.status. */
9617 configure_input="Generated from "`IFS=:
9618 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9619 if test x"$ac_file" != x-; then
9620 configure_input="$ac_file. $configure_input"
9621 { echo "$as_me:$LINENO: creating $ac_file" >&5
9622 echo "$as_me: creating $ac_file" >&6;}
9625 case $ac_tag in
9626 *:-:* | *:-) cat >"$tmp/stdin";;
9627 esac
9629 esac
9631 ac_dir=`$as_dirname -- "$ac_file" ||
9632 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9633 X"$ac_file" : 'X\(//\)[^/]' \| \
9634 X"$ac_file" : 'X\(//\)$' \| \
9635 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9636 echo X"$ac_file" |
9637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9638 s//\1/
9641 /^X\(\/\/\)[^/].*/{
9642 s//\1/
9645 /^X\(\/\/\)$/{
9646 s//\1/
9649 /^X\(\/\).*/{
9650 s//\1/
9653 s/.*/./; q'`
9654 { as_dir="$ac_dir"
9655 case $as_dir in #(
9656 -*) as_dir=./$as_dir;;
9657 esac
9658 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9659 as_dirs=
9660 while :; do
9661 case $as_dir in #(
9662 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9663 *) as_qdir=$as_dir;;
9664 esac
9665 as_dirs="'$as_qdir' $as_dirs"
9666 as_dir=`$as_dirname -- "$as_dir" ||
9667 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9668 X"$as_dir" : 'X\(//\)[^/]' \| \
9669 X"$as_dir" : 'X\(//\)$' \| \
9670 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9671 echo X"$as_dir" |
9672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9673 s//\1/
9676 /^X\(\/\/\)[^/].*/{
9677 s//\1/
9680 /^X\(\/\/\)$/{
9681 s//\1/
9684 /^X\(\/\).*/{
9685 s//\1/
9688 s/.*/./; q'`
9689 test -d "$as_dir" && break
9690 done
9691 test -z "$as_dirs" || eval "mkdir $as_dirs"
9692 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9693 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9694 { (exit 1); exit 1; }; }; }
9695 ac_builddir=.
9697 case "$ac_dir" in
9698 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9700 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9701 # A ".." for each directory in $ac_dir_suffix.
9702 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9703 case $ac_top_builddir_sub in
9704 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9705 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9706 esac ;;
9707 esac
9708 ac_abs_top_builddir=$ac_pwd
9709 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9710 # for backward compatibility:
9711 ac_top_builddir=$ac_top_build_prefix
9713 case $srcdir in
9714 .) # We are building in place.
9715 ac_srcdir=.
9716 ac_top_srcdir=$ac_top_builddir_sub
9717 ac_abs_top_srcdir=$ac_pwd ;;
9718 [\\/]* | ?:[\\/]* ) # Absolute name.
9719 ac_srcdir=$srcdir$ac_dir_suffix;
9720 ac_top_srcdir=$srcdir
9721 ac_abs_top_srcdir=$srcdir ;;
9722 *) # Relative name.
9723 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9724 ac_top_srcdir=$ac_top_build_prefix$srcdir
9725 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9726 esac
9727 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9730 case $ac_mode in
9733 # CONFIG_FILE
9736 case $INSTALL in
9737 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9738 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9739 esac
9740 _ACEOF
9742 cat >>$CONFIG_STATUS <<\_ACEOF
9743 # If the template does not know about datarootdir, expand it.
9744 # FIXME: This hack should be removed a few years after 2.60.
9745 ac_datarootdir_hack=; ac_datarootdir_seen=
9747 case `sed -n '/datarootdir/ {
9751 /@datadir@/p
9752 /@docdir@/p
9753 /@infodir@/p
9754 /@localedir@/p
9755 /@mandir@/p
9756 ' $ac_file_inputs` in
9757 *datarootdir*) ac_datarootdir_seen=yes;;
9758 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9759 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9760 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9761 _ACEOF
9762 cat >>$CONFIG_STATUS <<_ACEOF
9763 ac_datarootdir_hack='
9764 s&@datadir@&$datadir&g
9765 s&@docdir@&$docdir&g
9766 s&@infodir@&$infodir&g
9767 s&@localedir@&$localedir&g
9768 s&@mandir@&$mandir&g
9769 s&\\\${datarootdir}&$datarootdir&g' ;;
9770 esac
9771 _ACEOF
9773 # Neutralize VPATH when `$srcdir' = `.'.
9774 # Shell code in configure.ac might set extrasub.
9775 # FIXME: do we really want to maintain this feature?
9776 cat >>$CONFIG_STATUS <<_ACEOF
9777 sed "$ac_vpsub
9778 $extrasub
9779 _ACEOF
9780 cat >>$CONFIG_STATUS <<\_ACEOF
9782 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9783 s&@configure_input@&$configure_input&;t t
9784 s&@top_builddir@&$ac_top_builddir_sub&;t t
9785 s&@srcdir@&$ac_srcdir&;t t
9786 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9787 s&@top_srcdir@&$ac_top_srcdir&;t t
9788 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9789 s&@builddir@&$ac_builddir&;t t
9790 s&@abs_builddir@&$ac_abs_builddir&;t t
9791 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9792 s&@INSTALL@&$ac_INSTALL&;t t
9793 $ac_datarootdir_hack
9794 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
9796 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9797 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9798 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9799 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9800 which seems to be undefined. Please make sure it is defined." >&5
9801 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9802 which seems to be undefined. Please make sure it is defined." >&2;}
9804 rm -f "$tmp/stdin"
9805 case $ac_file in
9806 -) cat "$tmp/out"; rm -f "$tmp/out";;
9807 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9808 esac
9812 # CONFIG_HEADER
9814 _ACEOF
9816 # Transform confdefs.h into a sed script `conftest.defines', that
9817 # substitutes the proper values into config.h.in to produce config.h.
9818 rm -f conftest.defines conftest.tail
9819 # First, append a space to every undef/define line, to ease matching.
9820 echo 's/$/ /' >conftest.defines
9821 # Then, protect against being on the right side of a sed subst, or in
9822 # an unquoted here document, in config.status. If some macros were
9823 # called several times there might be several #defines for the same
9824 # symbol, which is useless. But do not sort them, since the last
9825 # AC_DEFINE must be honored.
9826 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9827 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9828 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9829 # PARAMS is the parameter list in the macro definition--in most cases, it's
9830 # just an empty string.
9831 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9832 ac_dB='\\)[ (].*,\\1define\\2'
9833 ac_dC=' '
9834 ac_dD=' ,'
9836 uniq confdefs.h |
9837 sed -n '
9838 t rset
9839 :rset
9840 s/^[ ]*#[ ]*define[ ][ ]*//
9841 t ok
9844 s/[\\&,]/\\&/g
9845 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9846 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9847 ' >>conftest.defines
9849 # Remove the space that was appended to ease matching.
9850 # Then replace #undef with comments. This is necessary, for
9851 # example, in the case of _POSIX_SOURCE, which is predefined and required
9852 # on some systems where configure will not decide to define it.
9853 # (The regexp can be short, since the line contains either #define or #undef.)
9854 echo 's/ $//
9855 s,^[ #]*u.*,/* & */,' >>conftest.defines
9857 # Break up conftest.defines:
9858 ac_max_sed_lines=50
9860 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9861 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9862 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9863 # et cetera.
9864 ac_in='$ac_file_inputs'
9865 ac_out='"$tmp/out1"'
9866 ac_nxt='"$tmp/out2"'
9868 while :
9870 # Write a here document:
9871 cat >>$CONFIG_STATUS <<_ACEOF
9872 # First, check the format of the line:
9873 cat >"\$tmp/defines.sed" <<\\CEOF
9874 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9875 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9877 :def
9878 _ACEOF
9879 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9880 echo 'CEOF
9881 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9882 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9883 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9884 grep . conftest.tail >/dev/null || break
9885 rm -f conftest.defines
9886 mv conftest.tail conftest.defines
9887 done
9888 rm -f conftest.defines conftest.tail
9890 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9891 cat >>$CONFIG_STATUS <<\_ACEOF
9892 if test x"$ac_file" != x-; then
9893 echo "/* $configure_input */" >"$tmp/config.h"
9894 cat "$ac_result" >>"$tmp/config.h"
9895 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9896 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9897 echo "$as_me: $ac_file is unchanged" >&6;}
9898 else
9899 rm -f $ac_file
9900 mv "$tmp/config.h" $ac_file
9902 else
9903 echo "/* $configure_input */"
9904 cat "$ac_result"
9906 rm -f "$tmp/out12"
9909 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9910 echo "$as_me: executing $ac_file commands" >&6;}
9912 esac
9915 case $ac_file$ac_mode in
9916 "default":C)
9917 case $CONFIG_FILES in *config.make*)
9918 echo "$config_vars" >> config.make;;
9919 esac
9920 test -d bits || mkdir bits ;;
9922 esac
9923 done # for ac_tag
9926 { (exit 0); exit 0; }
9927 _ACEOF
9928 chmod +x $CONFIG_STATUS
9929 ac_clean_files=$ac_clean_files_save
9932 # configure is writing to config.log, and then calls config.status.
9933 # config.status does its own redirection, appending to config.log.
9934 # Unfortunately, on DOS this fails, as config.log is still kept open
9935 # by configure, so config.status won't be able to write to it; its
9936 # output is simply discarded. So we exec the FD to /dev/null,
9937 # effectively closing config.log, so it can be properly (re)opened and
9938 # appended to by config.status. When coming back to configure, we
9939 # need to make the FD available again.
9940 if test "$no_create" != yes; then
9941 ac_cs_success=:
9942 ac_config_status_args=
9943 test "$silent" = yes &&
9944 ac_config_status_args="$ac_config_status_args --quiet"
9945 exec 5>/dev/null
9946 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9947 exec 5>>config.log
9948 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9949 # would make configure fail if this is the last instruction.
9950 $ac_cs_success || { (exit 1); exit 1; }
9954 # CONFIG_SUBDIRS section.
9956 if test "$no_recursion" != yes; then
9958 # Remove --cache-file and --srcdir arguments so they do not pile up.
9959 ac_sub_configure_args=
9960 ac_prev=
9961 eval "set x $ac_configure_args"
9962 shift
9963 for ac_arg
9965 if test -n "$ac_prev"; then
9966 ac_prev=
9967 continue
9969 case $ac_arg in
9970 -cache-file | --cache-file | --cache-fil | --cache-fi \
9971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9972 ac_prev=cache_file ;;
9973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9975 | --c=*)
9977 --config-cache | -C)
9979 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9980 ac_prev=srcdir ;;
9981 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9983 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9984 ac_prev=prefix ;;
9985 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9988 case $ac_arg in
9989 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9990 esac
9991 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
9992 esac
9993 done
9995 # Always prepend --prefix to ensure using the same prefix
9996 # in subdir configurations.
9997 ac_arg="--prefix=$prefix"
9998 case $ac_arg in
9999 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10000 esac
10001 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10003 # Pass --silent
10004 if test "$silent" = yes; then
10005 ac_sub_configure_args="--silent $ac_sub_configure_args"
10008 ac_popdir=`pwd`
10009 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10011 # Do not complain, so a configure script can configure whichever
10012 # parts of a large source tree are present.
10013 test -d "$srcdir/$ac_dir" || continue
10015 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10016 echo "$as_me:$LINENO: $ac_msg" >&5
10017 echo "$ac_msg" >&6
10018 { as_dir="$ac_dir"
10019 case $as_dir in #(
10020 -*) as_dir=./$as_dir;;
10021 esac
10022 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10023 as_dirs=
10024 while :; do
10025 case $as_dir in #(
10026 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10027 *) as_qdir=$as_dir;;
10028 esac
10029 as_dirs="'$as_qdir' $as_dirs"
10030 as_dir=`$as_dirname -- "$as_dir" ||
10031 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10032 X"$as_dir" : 'X\(//\)[^/]' \| \
10033 X"$as_dir" : 'X\(//\)$' \| \
10034 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10035 echo X"$as_dir" |
10036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10037 s//\1/
10040 /^X\(\/\/\)[^/].*/{
10041 s//\1/
10044 /^X\(\/\/\)$/{
10045 s//\1/
10048 /^X\(\/\).*/{
10049 s//\1/
10052 s/.*/./; q'`
10053 test -d "$as_dir" && break
10054 done
10055 test -z "$as_dirs" || eval "mkdir $as_dirs"
10056 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10057 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10058 { (exit 1); exit 1; }; }; }
10059 ac_builddir=.
10061 case "$ac_dir" in
10062 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10064 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10065 # A ".." for each directory in $ac_dir_suffix.
10066 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10067 case $ac_top_builddir_sub in
10068 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10069 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10070 esac ;;
10071 esac
10072 ac_abs_top_builddir=$ac_pwd
10073 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10074 # for backward compatibility:
10075 ac_top_builddir=$ac_top_build_prefix
10077 case $srcdir in
10078 .) # We are building in place.
10079 ac_srcdir=.
10080 ac_top_srcdir=$ac_top_builddir_sub
10081 ac_abs_top_srcdir=$ac_pwd ;;
10082 [\\/]* | ?:[\\/]* ) # Absolute name.
10083 ac_srcdir=$srcdir$ac_dir_suffix;
10084 ac_top_srcdir=$srcdir
10085 ac_abs_top_srcdir=$srcdir ;;
10086 *) # Relative name.
10087 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10088 ac_top_srcdir=$ac_top_build_prefix$srcdir
10089 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10090 esac
10091 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10094 cd "$ac_dir"
10096 # Check for guested configure; otherwise get Cygnus style configure.
10097 if test -f "$ac_srcdir/configure.gnu"; then
10098 ac_sub_configure=$ac_srcdir/configure.gnu
10099 elif test -f "$ac_srcdir/configure"; then
10100 ac_sub_configure=$ac_srcdir/configure
10101 elif test -f "$ac_srcdir/configure.in"; then
10102 # This should be Cygnus configure.
10103 ac_sub_configure=$ac_aux_dir/configure
10104 else
10105 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
10106 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10107 ac_sub_configure=
10110 # The recursion is here.
10111 if test -n "$ac_sub_configure"; then
10112 # Make the cache file name correct relative to the subdirectory.
10113 case $cache_file in
10114 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10115 *) # Relative name.
10116 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10117 esac
10119 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10120 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10121 # The eval makes quoting arguments work.
10122 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10123 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10124 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
10125 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
10126 { (exit 1); exit 1; }; }
10129 cd "$ac_popdir"
10130 done