* io/bits/fcntl2.h (open, open64, openat, openat64): Add
[glibc/pb-stable.git] / configure
blob0401d797fa99a53338436e2e80c1b81effe81a64
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
656 with_fp
657 with_cvs
658 enable_check_abi
659 oldest_abi
660 bindnow
661 force_install
662 all_warnings
663 build
664 build_cpu
665 build_vendor
666 build_os
667 host
668 host_cpu
669 host_vendor
670 host_os
671 subdirs
672 add_ons
673 add_on_subdirs
674 base_machine
675 submachine
676 sysnames
677 sysdeps_add_ons
678 INSTALL_PROGRAM
679 INSTALL_SCRIPT
680 INSTALL_DATA
681 LN_S
683 CFLAGS
684 LDFLAGS
685 CPPFLAGS
686 ac_ct_CC
687 OBJEXT
688 BUILD_CC
689 cross_compiling
692 CXXFLAGS
693 ac_ct_CXX
695 OBJDUMP
696 RANLIB
700 PWD_P
701 MAKE
702 MSGFMT
703 MAKEINFO
705 AUTOCONF
706 SYSINCLUDES
707 CXX_SYSINCLUDES
708 libc_cv_gcc_static_libgcc
709 BASH_SHELL
710 libc_cv_have_bash2
712 libc_cv_have_ksh
714 PERL
715 INSTALL_INFO
716 BISON
717 VERSIONING
718 libc_cv_cc_with_libunwind
719 libc_cv_Bgroup
720 libc_cv_libgcc_s_suffix
721 libc_cv_as_needed
722 ASFLAGS_config
723 libc_cv_z_combreloc
724 libc_cv_z_execstack
725 libc_cv_fpie
726 libc_cv_hashstyle
727 fno_unit_at_a_time
728 libc_cv_ssp
729 libc_cv_gnu89_inline
730 libc_cv_have_initfini
731 no_whole_archive
732 exceptions
733 LIBGD
734 have_libaudit
735 have_libcap
736 have_selinux
737 GREP
738 EGREP
739 sizeof_long_double
740 libc_cv_gcc_unwind_find_fde
741 uname_sysname
742 uname_release
743 uname_version
744 old_glibc_headers
745 libc_cv_slibdir
746 libc_cv_localedir
747 libc_cv_sysconfdir
748 libc_cv_rootsbindir
749 libc_cv_forced_unwind
750 use_ldconfig
751 ldd_rewrite_script
753 xcoff
754 static
755 shared
756 pic_default
757 profile
758 omitfp
759 bounded
760 static_nss
761 nopic_initfini
762 DEFINES
763 mach_interface_list
764 VERSION
765 RELEASE
766 LIBOBJS
767 LTLIBOBJS'
768 ac_subst_files=''
769 ac_precious_vars='build_alias
770 host_alias
771 target_alias
773 CFLAGS
774 LDFLAGS
775 LIBS
776 CPPFLAGS
779 CXXFLAGS
780 CCC'
781 ac_subdirs_all=''
783 # Initialize some variables set by options.
784 ac_init_help=
785 ac_init_version=false
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
788 cache_file=/dev/null
789 exec_prefix=NONE
790 no_create=
791 no_recursion=
792 prefix=NONE
793 program_prefix=NONE
794 program_suffix=NONE
795 program_transform_name=s,x,x,
796 silent=
797 site=
798 srcdir=
799 verbose=
800 x_includes=NONE
801 x_libraries=NONE
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir='${exec_prefix}/bin'
810 sbindir='${exec_prefix}/sbin'
811 libexecdir='${exec_prefix}/libexec'
812 datarootdir='${prefix}/share'
813 datadir='${datarootdir}'
814 sysconfdir='${prefix}/etc'
815 sharedstatedir='${prefix}/com'
816 localstatedir='${prefix}/var'
817 includedir='${prefix}/include'
818 oldincludedir='/usr/include'
819 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820 infodir='${datarootdir}/info'
821 htmldir='${docdir}'
822 dvidir='${docdir}'
823 pdfdir='${docdir}'
824 psdir='${docdir}'
825 libdir='${exec_prefix}/lib'
826 localedir='${datarootdir}/locale'
827 mandir='${datarootdir}/man'
829 ac_prev=
830 ac_dashdash=
831 for ac_option
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
835 eval $ac_prev=\$ac_option
836 ac_prev=
837 continue
840 case $ac_option in
841 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842 *) ac_optarg=yes ;;
843 esac
845 # Accept the important Cygnus configure options, so we can diagnose typos.
847 case $ac_dashdash$ac_option in
849 ac_dashdash=yes ;;
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 bindir=$ac_optarg ;;
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
868 --config-cache | -C)
869 cache_file=config.cache ;;
871 -datadir | --datadir | --datadi | --datad)
872 ac_prev=datadir ;;
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
883 -disable-* | --disable-*)
884 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
887 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
888 { (exit 1); exit 1; }; }
889 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
890 eval enable_$ac_feature=no ;;
892 -docdir | --docdir | --docdi | --doc | --do)
893 ac_prev=docdir ;;
894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 docdir=$ac_optarg ;;
897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898 ac_prev=dvidir ;;
899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 dvidir=$ac_optarg ;;
902 -enable-* | --enable-*)
903 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
906 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
907 { (exit 1); exit 1; }; }
908 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
909 eval enable_$ac_feature=\$ac_optarg ;;
911 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
912 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
913 | --exec | --exe | --ex)
914 ac_prev=exec_prefix ;;
915 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
916 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
917 | --exec=* | --exe=* | --ex=*)
918 exec_prefix=$ac_optarg ;;
920 -gas | --gas | --ga | --g)
921 # Obsolete; use --with-gas.
922 with_gas=yes ;;
924 -help | --help | --hel | --he | -h)
925 ac_init_help=long ;;
926 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
927 ac_init_help=recursive ;;
928 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
929 ac_init_help=short ;;
931 -host | --host | --hos | --ho)
932 ac_prev=host_alias ;;
933 -host=* | --host=* | --hos=* | --ho=*)
934 host_alias=$ac_optarg ;;
936 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
937 ac_prev=htmldir ;;
938 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
939 | --ht=*)
940 htmldir=$ac_optarg ;;
942 -includedir | --includedir | --includedi | --included | --include \
943 | --includ | --inclu | --incl | --inc)
944 ac_prev=includedir ;;
945 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
946 | --includ=* | --inclu=* | --incl=* | --inc=*)
947 includedir=$ac_optarg ;;
949 -infodir | --infodir | --infodi | --infod | --info | --inf)
950 ac_prev=infodir ;;
951 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
952 infodir=$ac_optarg ;;
954 -libdir | --libdir | --libdi | --libd)
955 ac_prev=libdir ;;
956 -libdir=* | --libdir=* | --libdi=* | --libd=*)
957 libdir=$ac_optarg ;;
959 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
960 | --libexe | --libex | --libe)
961 ac_prev=libexecdir ;;
962 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
963 | --libexe=* | --libex=* | --libe=*)
964 libexecdir=$ac_optarg ;;
966 -localedir | --localedir | --localedi | --localed | --locale)
967 ac_prev=localedir ;;
968 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
969 localedir=$ac_optarg ;;
971 -localstatedir | --localstatedir | --localstatedi | --localstated \
972 | --localstate | --localstat | --localsta | --localst | --locals)
973 ac_prev=localstatedir ;;
974 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
975 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
976 localstatedir=$ac_optarg ;;
978 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
979 ac_prev=mandir ;;
980 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981 mandir=$ac_optarg ;;
983 -nfp | --nfp | --nf)
984 # Obsolete; use --without-fp.
985 with_fp=no ;;
987 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988 | --no-cr | --no-c | -n)
989 no_create=yes ;;
991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993 no_recursion=yes ;;
995 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
996 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
997 | --oldin | --oldi | --old | --ol | --o)
998 ac_prev=oldincludedir ;;
999 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1000 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1001 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1002 oldincludedir=$ac_optarg ;;
1004 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1005 ac_prev=prefix ;;
1006 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1007 prefix=$ac_optarg ;;
1009 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1010 | --program-pre | --program-pr | --program-p)
1011 ac_prev=program_prefix ;;
1012 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1013 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1014 program_prefix=$ac_optarg ;;
1016 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1017 | --program-suf | --program-su | --program-s)
1018 ac_prev=program_suffix ;;
1019 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1020 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1021 program_suffix=$ac_optarg ;;
1023 -program-transform-name | --program-transform-name \
1024 | --program-transform-nam | --program-transform-na \
1025 | --program-transform-n | --program-transform- \
1026 | --program-transform | --program-transfor \
1027 | --program-transfo | --program-transf \
1028 | --program-trans | --program-tran \
1029 | --progr-tra | --program-tr | --program-t)
1030 ac_prev=program_transform_name ;;
1031 -program-transform-name=* | --program-transform-name=* \
1032 | --program-transform-nam=* | --program-transform-na=* \
1033 | --program-transform-n=* | --program-transform-=* \
1034 | --program-transform=* | --program-transfor=* \
1035 | --program-transfo=* | --program-transf=* \
1036 | --program-trans=* | --program-tran=* \
1037 | --progr-tra=* | --program-tr=* | --program-t=*)
1038 program_transform_name=$ac_optarg ;;
1040 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1041 ac_prev=pdfdir ;;
1042 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1043 pdfdir=$ac_optarg ;;
1045 -psdir | --psdir | --psdi | --psd | --ps)
1046 ac_prev=psdir ;;
1047 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048 psdir=$ac_optarg ;;
1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051 | -silent | --silent | --silen | --sile | --sil)
1052 silent=yes ;;
1054 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1055 ac_prev=sbindir ;;
1056 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1057 | --sbi=* | --sb=*)
1058 sbindir=$ac_optarg ;;
1060 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1061 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1062 | --sharedst | --shareds | --shared | --share | --shar \
1063 | --sha | --sh)
1064 ac_prev=sharedstatedir ;;
1065 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1066 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1067 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1068 | --sha=* | --sh=*)
1069 sharedstatedir=$ac_optarg ;;
1071 -site | --site | --sit)
1072 ac_prev=site ;;
1073 -site=* | --site=* | --sit=*)
1074 site=$ac_optarg ;;
1076 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1077 ac_prev=srcdir ;;
1078 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1079 srcdir=$ac_optarg ;;
1081 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1082 | --syscon | --sysco | --sysc | --sys | --sy)
1083 ac_prev=sysconfdir ;;
1084 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1085 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1086 sysconfdir=$ac_optarg ;;
1088 -target | --target | --targe | --targ | --tar | --ta | --t)
1089 ac_prev=target_alias ;;
1090 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1091 target_alias=$ac_optarg ;;
1093 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094 verbose=yes ;;
1096 -version | --version | --versio | --versi | --vers | -V)
1097 ac_init_version=: ;;
1099 -with-* | --with-*)
1100 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103 { echo "$as_me: error: invalid package name: $ac_package" >&2
1104 { (exit 1); exit 1; }; }
1105 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1106 eval with_$ac_package=\$ac_optarg ;;
1108 -without-* | --without-*)
1109 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid package name: $ac_package" >&2
1113 { (exit 1); exit 1; }; }
1114 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1115 eval with_$ac_package=no ;;
1117 --x)
1118 # Obsolete; use --with-x.
1119 with_x=yes ;;
1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122 | --x-incl | --x-inc | --x-in | --x-i)
1123 ac_prev=x_includes ;;
1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1126 x_includes=$ac_optarg ;;
1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130 ac_prev=x_libraries ;;
1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1133 x_libraries=$ac_optarg ;;
1135 -*) { echo "$as_me: error: unrecognized option: $ac_option
1136 Try \`$0 --help' for more information." >&2
1137 { (exit 1); exit 1; }; }
1140 *=*)
1141 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1144 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1145 { (exit 1); exit 1; }; }
1146 eval $ac_envvar=\$ac_optarg
1147 export $ac_envvar ;;
1150 # FIXME: should be removed in autoconf 3.0.
1151 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1157 esac
1158 done
1160 if test -n "$ac_prev"; then
1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162 { echo "$as_me: error: missing argument to $ac_option" >&2
1163 { (exit 1); exit 1; }; }
1166 # Be sure to have absolute directory names.
1167 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168 datadir sysconfdir sharedstatedir localstatedir includedir \
1169 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170 libdir localedir mandir
1172 eval ac_val=\$$ac_var
1173 case $ac_val in
1174 [\\/$]* | ?:[\\/]* ) continue;;
1175 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1176 esac
1177 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1178 { (exit 1); exit 1; }; }
1179 done
1181 # There might be people who depend on the old broken behavior: `$host'
1182 # used to hold the argument of --host etc.
1183 # FIXME: To remove some day.
1184 build=$build_alias
1185 host=$host_alias
1186 target=$target_alias
1188 # FIXME: To remove some day.
1189 if test "x$host_alias" != x; then
1190 if test "x$build_alias" = x; then
1191 cross_compiling=maybe
1192 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1193 If a cross compiler is detected then cross compile mode will be used." >&2
1194 elif test "x$build_alias" != "x$host_alias"; then
1195 cross_compiling=yes
1199 ac_tool_prefix=
1200 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1202 test "$silent" = yes && exec 6>/dev/null
1205 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1206 ac_ls_di=`ls -di .` &&
1207 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1208 { echo "$as_me: error: Working directory cannot be determined" >&2
1209 { (exit 1); exit 1; }; }
1210 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1211 { echo "$as_me: error: pwd does not report name of working directory" >&2
1212 { (exit 1); exit 1; }; }
1215 # Find the source files, if location was not specified.
1216 if test -z "$srcdir"; then
1217 ac_srcdir_defaulted=yes
1218 # Try the directory containing this script, then the parent directory.
1219 ac_confdir=`$as_dirname -- "$0" ||
1220 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1221 X"$0" : 'X\(//\)[^/]' \| \
1222 X"$0" : 'X\(//\)$' \| \
1223 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1224 echo X"$0" |
1225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1226 s//\1/
1229 /^X\(\/\/\)[^/].*/{
1230 s//\1/
1233 /^X\(\/\/\)$/{
1234 s//\1/
1237 /^X\(\/\).*/{
1238 s//\1/
1241 s/.*/./; q'`
1242 srcdir=$ac_confdir
1243 if test ! -r "$srcdir/$ac_unique_file"; then
1244 srcdir=..
1246 else
1247 ac_srcdir_defaulted=no
1249 if test ! -r "$srcdir/$ac_unique_file"; then
1250 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1251 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1252 { (exit 1); exit 1; }; }
1254 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1255 ac_abs_confdir=`(
1256 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1257 { (exit 1); exit 1; }; }
1258 pwd)`
1259 # When building in place, set srcdir=.
1260 if test "$ac_abs_confdir" = "$ac_pwd"; then
1261 srcdir=.
1263 # Remove unnecessary trailing slashes from srcdir.
1264 # Double slashes in file names in object file debugging info
1265 # mess up M-x gdb in Emacs.
1266 case $srcdir in
1267 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1268 esac
1269 for ac_var in $ac_precious_vars; do
1270 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1271 eval ac_env_${ac_var}_value=\$${ac_var}
1272 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1274 done
1277 # Report the --help message.
1279 if test "$ac_init_help" = "long"; then
1280 # Omit some internal or obsolete options to make the list less imposing.
1281 # This message is too long to be a string in the A/UX 3.1 sh.
1282 cat <<_ACEOF
1283 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1285 Usage: $0 [OPTION]... [VAR=VALUE]...
1287 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1288 VAR=VALUE. See below for descriptions of some of the useful variables.
1290 Defaults for the options are specified in brackets.
1292 Configuration:
1293 -h, --help display this help and exit
1294 --help=short display options specific to this package
1295 --help=recursive display the short help of all the included packages
1296 -V, --version display version information and exit
1297 -q, --quiet, --silent do not print \`checking...' messages
1298 --cache-file=FILE cache test results in FILE [disabled]
1299 -C, --config-cache alias for \`--cache-file=config.cache'
1300 -n, --no-create do not create output files
1301 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1303 Installation directories:
1304 --prefix=PREFIX install architecture-independent files in PREFIX
1305 [$ac_default_prefix]
1306 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1307 [PREFIX]
1309 By default, \`make install' will install all the files in
1310 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1311 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1312 for instance \`--prefix=\$HOME'.
1314 For better control, use the options below.
1316 Fine tuning of the installation directories:
1317 --bindir=DIR user executables [EPREFIX/bin]
1318 --sbindir=DIR system admin executables [EPREFIX/sbin]
1319 --libexecdir=DIR program executables [EPREFIX/libexec]
1320 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1321 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1322 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1323 --libdir=DIR object code libraries [EPREFIX/lib]
1324 --includedir=DIR C header files [PREFIX/include]
1325 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1326 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1327 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1328 --infodir=DIR info documentation [DATAROOTDIR/info]
1329 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1330 --mandir=DIR man documentation [DATAROOTDIR/man]
1331 --docdir=DIR documentation root [DATAROOTDIR/doc/c-library]
1332 --htmldir=DIR html documentation [DOCDIR]
1333 --dvidir=DIR dvi documentation [DOCDIR]
1334 --pdfdir=DIR pdf documentation [DOCDIR]
1335 --psdir=DIR ps documentation [DOCDIR]
1336 _ACEOF
1338 cat <<\_ACEOF
1340 System types:
1341 --build=BUILD configure for building on BUILD [guessed]
1342 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1343 _ACEOF
1346 if test -n "$ac_init_help"; then
1347 case $ac_init_help in
1348 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1349 esac
1350 cat <<\_ACEOF
1352 Optional Features:
1353 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1354 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1355 --disable-sanity-checks really do not use threads (should not be used except
1356 in special situations) [default=yes]
1357 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1358 [default=no]
1359 --enable-shared build shared library [default=yes if GNU ld & ELF]
1360 --enable-profile build profiled library [default=no]
1361 --enable-omitfp build undebuggable optimized library [default=no]
1362 --enable-bounded build with runtime bounds checking [default=no]
1363 --disable-versioning do not include versioning information in the library
1364 objects [default=yes if supported]
1365 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1366 [default=glibc default]
1367 --enable-stackguard-randomization
1368 initialize __stack_chk_guard canary with a random
1369 number at program start
1370 --enable-add-ons[=DIRS...]
1371 configure and build add-ons in DIR1,DIR2,... search
1372 for add-ons if no parameter given
1373 --disable-hidden-plt do not hide internal function calls to avoid PLT
1374 --enable-bind-now disable lazy relocations in DSOs
1375 --enable-static-nss build static NSS modules [default=no]
1376 --disable-force-install don't force installation of files from this package,
1377 even if they are older than the installed files
1378 --enable-kernel=VERSION compile for compatibility with kernel not older than
1379 VERSION
1380 --enable-all-warnings enable all useful warnings gcc can issue
1382 Optional Packages:
1383 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1384 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1385 --with-gd=DIR find libgd include dir and library with prefix DIR
1386 --with-gd-include=DIR find libgd include files in DIR
1387 --with-gd-lib=DIR find libgd library files in DIR
1388 --with-fp if using floating-point hardware [default=yes]
1389 --with-binutils=PATH specify location of binutils (as and ld)
1390 --with-elf if using the ELF object format
1391 --with-selinux if building with SELinux support
1392 --with-xcoff if using the XCOFF object format
1393 --without-cvs if CVS should not be used
1394 --with-headers=PATH location of system headers to use (for example
1395 /usr/src/linux/include) [default=compiler default]
1396 --with-tls enable support for TLS
1397 --without-__thread do not use TLS features even when supporting them
1398 --with-cpu=CPU select code for CPU variant
1400 Some influential environment variables:
1401 CC C compiler command
1402 CFLAGS C compiler flags
1403 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1404 nonstandard directory <lib dir>
1405 LIBS libraries to pass to the linker, e.g. -l<library>
1406 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1407 you have headers in a nonstandard directory <include dir>
1408 CPP C preprocessor
1409 CXX C++ compiler command
1410 CXXFLAGS C++ compiler flags
1412 Use these variables to override the choices made by `configure' or to help
1413 it to find libraries and programs with nonstandard names/locations.
1415 Report bugs to <glibc>.
1416 _ACEOF
1417 ac_status=$?
1420 if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423 test -d "$ac_dir" || continue
1424 ac_builddir=.
1426 case "$ac_dir" in
1427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1430 # A ".." for each directory in $ac_dir_suffix.
1431 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1432 case $ac_top_builddir_sub in
1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435 esac ;;
1436 esac
1437 ac_abs_top_builddir=$ac_pwd
1438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439 # for backward compatibility:
1440 ac_top_builddir=$ac_top_build_prefix
1442 case $srcdir in
1443 .) # We are building in place.
1444 ac_srcdir=.
1445 ac_top_srcdir=$ac_top_builddir_sub
1446 ac_abs_top_srcdir=$ac_pwd ;;
1447 [\\/]* | ?:[\\/]* ) # Absolute name.
1448 ac_srcdir=$srcdir$ac_dir_suffix;
1449 ac_top_srcdir=$srcdir
1450 ac_abs_top_srcdir=$srcdir ;;
1451 *) # Relative name.
1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1455 esac
1456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1458 cd "$ac_dir" || { ac_status=$?; continue; }
1459 # Check for guested configure.
1460 if test -f "$ac_srcdir/configure.gnu"; then
1461 echo &&
1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1463 elif test -f "$ac_srcdir/configure"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure" --help=recursive
1466 else
1467 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1468 fi || ac_status=$?
1469 cd "$ac_pwd" || { ac_status=$?; break; }
1470 done
1473 test -n "$ac_init_help" && exit $ac_status
1474 if $ac_init_version; then
1475 cat <<\_ACEOF
1476 GNU C Library configure (see version.h)
1477 generated by GNU Autoconf 2.61
1479 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1480 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1481 This configure script is free software; the Free Software Foundation
1482 gives unlimited permission to copy, distribute and modify it.
1483 _ACEOF
1484 exit
1486 cat >config.log <<_ACEOF
1487 This file contains any messages produced by compilers while
1488 running configure, to aid debugging if configure makes a mistake.
1490 It was created by GNU C Library $as_me (see version.h), which was
1491 generated by GNU Autoconf 2.61. Invocation command line was
1493 $ $0 $@
1495 _ACEOF
1496 exec 5>>config.log
1498 cat <<_ASUNAME
1499 ## --------- ##
1500 ## Platform. ##
1501 ## --------- ##
1503 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1504 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1505 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1506 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1507 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1509 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1510 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1512 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1513 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1514 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1515 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1516 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1517 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1518 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1520 _ASUNAME
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 for as_dir in $PATH
1525 IFS=$as_save_IFS
1526 test -z "$as_dir" && as_dir=.
1527 echo "PATH: $as_dir"
1528 done
1529 IFS=$as_save_IFS
1531 } >&5
1533 cat >&5 <<_ACEOF
1536 ## ----------- ##
1537 ## Core tests. ##
1538 ## ----------- ##
1540 _ACEOF
1543 # Keep a trace of the command line.
1544 # Strip out --no-create and --no-recursion so they do not pile up.
1545 # Strip out --silent because we don't want to record it for future runs.
1546 # Also quote any args containing shell meta-characters.
1547 # Make two passes to allow for proper duplicate-argument suppression.
1548 ac_configure_args=
1549 ac_configure_args0=
1550 ac_configure_args1=
1551 ac_must_keep_next=false
1552 for ac_pass in 1 2
1554 for ac_arg
1556 case $ac_arg in
1557 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1559 | -silent | --silent | --silen | --sile | --sil)
1560 continue ;;
1561 *\'*)
1562 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1563 esac
1564 case $ac_pass in
1565 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1567 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1568 if test $ac_must_keep_next = true; then
1569 ac_must_keep_next=false # Got value, back to normal.
1570 else
1571 case $ac_arg in
1572 *=* | --config-cache | -C | -disable-* | --disable-* \
1573 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1574 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1575 | -with-* | --with-* | -without-* | --without-* | --x)
1576 case "$ac_configure_args0 " in
1577 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1578 esac
1580 -* ) ac_must_keep_next=true ;;
1581 esac
1583 ac_configure_args="$ac_configure_args '$ac_arg'"
1585 esac
1586 done
1587 done
1588 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1589 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1591 # When interrupted or exit'd, cleanup temporary files, and complete
1592 # config.log. We remove comments because anyway the quotes in there
1593 # would cause problems or look ugly.
1594 # WARNING: Use '\'' to represent an apostrophe within the trap.
1595 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1596 trap 'exit_status=$?
1597 # Save into config.log some information that might help in debugging.
1599 echo
1601 cat <<\_ASBOX
1602 ## ---------------- ##
1603 ## Cache variables. ##
1604 ## ---------------- ##
1605 _ASBOX
1606 echo
1607 # The following way of writing the cache mishandles newlines in values,
1609 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1610 eval ac_val=\$$ac_var
1611 case $ac_val in #(
1612 *${as_nl}*)
1613 case $ac_var in #(
1614 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1615 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1616 esac
1617 case $ac_var in #(
1618 _ | IFS | as_nl) ;; #(
1619 *) $as_unset $ac_var ;;
1620 esac ;;
1621 esac
1622 done
1623 (set) 2>&1 |
1624 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1625 *${as_nl}ac_space=\ *)
1626 sed -n \
1627 "s/'\''/'\''\\\\'\'''\''/g;
1628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1629 ;; #(
1631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1633 esac |
1634 sort
1636 echo
1638 cat <<\_ASBOX
1639 ## ----------------- ##
1640 ## Output variables. ##
1641 ## ----------------- ##
1642 _ASBOX
1643 echo
1644 for ac_var in $ac_subst_vars
1646 eval ac_val=\$$ac_var
1647 case $ac_val in
1648 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649 esac
1650 echo "$ac_var='\''$ac_val'\''"
1651 done | sort
1652 echo
1654 if test -n "$ac_subst_files"; then
1655 cat <<\_ASBOX
1656 ## ------------------- ##
1657 ## File substitutions. ##
1658 ## ------------------- ##
1659 _ASBOX
1660 echo
1661 for ac_var in $ac_subst_files
1663 eval ac_val=\$$ac_var
1664 case $ac_val in
1665 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1666 esac
1667 echo "$ac_var='\''$ac_val'\''"
1668 done | sort
1669 echo
1672 if test -s confdefs.h; then
1673 cat <<\_ASBOX
1674 ## ----------- ##
1675 ## confdefs.h. ##
1676 ## ----------- ##
1677 _ASBOX
1678 echo
1679 cat confdefs.h
1680 echo
1682 test "$ac_signal" != 0 &&
1683 echo "$as_me: caught signal $ac_signal"
1684 echo "$as_me: exit $exit_status"
1685 } >&5
1686 rm -f core *.core core.conftest.* &&
1687 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1688 exit $exit_status
1690 for ac_signal in 1 2 13 15; do
1691 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1692 done
1693 ac_signal=0
1695 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1696 rm -f -r conftest* confdefs.h
1698 # Predefined preprocessor variables.
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_NAME "$PACKAGE_NAME"
1702 _ACEOF
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1707 _ACEOF
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1712 _ACEOF
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_STRING "$PACKAGE_STRING"
1717 _ACEOF
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1722 _ACEOF
1725 # Let the site file select an alternate cache file if it wants to.
1726 # Prefer explicitly selected file to automatically selected ones.
1727 if test -n "$CONFIG_SITE"; then
1728 set x "$CONFIG_SITE"
1729 elif test "x$prefix" != xNONE; then
1730 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1731 else
1732 set x "$ac_default_prefix/share/config.site" \
1733 "$ac_default_prefix/etc/config.site"
1735 shift
1736 for ac_site_file
1738 if test -r "$ac_site_file"; then
1739 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1740 echo "$as_me: loading site script $ac_site_file" >&6;}
1741 sed 's/^/| /' "$ac_site_file" >&5
1742 . "$ac_site_file"
1744 done
1746 if test -r "$cache_file"; then
1747 # Some versions of bash will fail to source /dev/null (special
1748 # files actually), so we avoid doing that.
1749 if test -f "$cache_file"; then
1750 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1751 echo "$as_me: loading cache $cache_file" >&6;}
1752 case $cache_file in
1753 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1754 *) . "./$cache_file";;
1755 esac
1757 else
1758 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1759 echo "$as_me: creating cache $cache_file" >&6;}
1760 >$cache_file
1763 # Check that the precious variables saved in the cache have kept the same
1764 # value.
1765 ac_cache_corrupted=false
1766 for ac_var in $ac_precious_vars; do
1767 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1768 eval ac_new_set=\$ac_env_${ac_var}_set
1769 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1770 eval ac_new_val=\$ac_env_${ac_var}_value
1771 case $ac_old_set,$ac_new_set in
1772 set,)
1773 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1774 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1775 ac_cache_corrupted=: ;;
1776 ,set)
1777 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1778 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1779 ac_cache_corrupted=: ;;
1780 ,);;
1782 if test "x$ac_old_val" != "x$ac_new_val"; then
1783 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1784 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1785 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1786 echo "$as_me: former value: $ac_old_val" >&2;}
1787 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1788 echo "$as_me: current value: $ac_new_val" >&2;}
1789 ac_cache_corrupted=:
1790 fi;;
1791 esac
1792 # Pass precious variables to config.status.
1793 if test "$ac_new_set" = set; then
1794 case $ac_new_val in
1795 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1796 *) ac_arg=$ac_var=$ac_new_val ;;
1797 esac
1798 case " $ac_configure_args " in
1799 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1800 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1801 esac
1803 done
1804 if $ac_cache_corrupted; then
1805 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1806 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1807 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1808 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1809 { (exit 1); exit 1; }; }
1836 ac_ext=c
1837 ac_cpp='$CPP $CPPFLAGS'
1838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1844 ac_config_headers="$ac_config_headers config.h"
1846 ac_aux_dir=
1847 for ac_dir in scripts "$srcdir"/scripts; do
1848 if test -f "$ac_dir/install-sh"; then
1849 ac_aux_dir=$ac_dir
1850 ac_install_sh="$ac_aux_dir/install-sh -c"
1851 break
1852 elif test -f "$ac_dir/install.sh"; then
1853 ac_aux_dir=$ac_dir
1854 ac_install_sh="$ac_aux_dir/install.sh -c"
1855 break
1856 elif test -f "$ac_dir/shtool"; then
1857 ac_aux_dir=$ac_dir
1858 ac_install_sh="$ac_aux_dir/shtool install -c"
1859 break
1861 done
1862 if test -z "$ac_aux_dir"; then
1863 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&5
1864 echo "$as_me: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&2;}
1865 { (exit 1); exit 1; }; }
1868 # These three variables are undocumented and unsupported,
1869 # and are intended to be withdrawn in a future Autoconf release.
1870 # They can cause serious problems if a builder's source tree is in a directory
1871 # whose full name contains unusual characters.
1872 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1873 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1874 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1878 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
1879 { { echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
1880 echo "$as_me: error: you must configure in a separate build directory" >&2;}
1881 { (exit 1); exit 1; }; }
1884 # This will get text that should go into config.make.
1885 config_vars=
1887 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
1889 # Check whether --with-gd was given.
1890 if test "${with_gd+set}" = set; then
1891 withval=$with_gd; case "$with_gd" in
1892 yes|''|no) ;;
1893 *) libgd_include="-I$withval/include"
1894 libgd_ldflags="-L$withval/lib" ;;
1895 esac
1900 # Check whether --with-gd-include was given.
1901 if test "${with_gd_include+set}" = set; then
1902 withval=$with_gd_include; case "$with_gd_include" in
1903 ''|no) ;;
1904 *) libgd_include="-I$withval" ;;
1905 esac
1910 # Check whether --with-gd-lib was given.
1911 if test "${with_gd_lib+set}" = set; then
1912 withval=$with_gd_lib; case "$with_gd_lib" in
1913 ''|no) ;;
1914 *) libgd_ldflags="-L$withval" ;;
1915 esac
1920 if test -n "$libgd_include"; then
1921 config_vars="$config_vars
1922 CFLAGS-memusagestat.c = $libgd_include"
1924 if test -n "$libgd_ldflags"; then
1925 config_vars="$config_vars
1926 libgd-LDFLAGS = $libgd_ldflags"
1930 # Check whether --with-fp was given.
1931 if test "${with_fp+set}" = set; then
1932 withval=$with_fp; with_fp=$withval
1933 else
1934 with_fp=yes
1939 # Check whether --with-binutils was given.
1940 if test "${with_binutils+set}" = set; then
1941 withval=$with_binutils; path_binutils=$withval
1942 else
1943 path_binutils=''
1947 # Check whether --with-elf was given.
1948 if test "${with_elf+set}" = set; then
1949 withval=$with_elf; elf=$withval
1950 else
1951 elf=no
1955 # Check whether --with-selinux was given.
1956 if test "${with_selinux+set}" = set; then
1957 withval=$with_selinux; with_selinux=$withval
1958 else
1959 with_selinux=auto
1963 # Check whether --with-xcoff was given.
1964 if test "${with_xcoff+set}" = set; then
1965 withval=$with_xcoff; xcoff=$withval
1966 else
1967 xcoff=no
1971 # Check whether --with-cvs was given.
1972 if test "${with_cvs+set}" = set; then
1973 withval=$with_cvs; with_cvs=$withval
1974 else
1975 with_cvs=yes
1978 if test "$with_cvs" = yes; then
1979 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
1980 then
1981 with_cvs=no
1987 # Check whether --with-headers was given.
1988 if test "${with_headers+set}" = set; then
1989 withval=$with_headers; sysheaders=$withval
1990 else
1991 sysheaders=''
1995 # Check whether --enable-sanity-checks was given.
1996 if test "${enable_sanity_checks+set}" = set; then
1997 enableval=$enable_sanity_checks; enable_sanity=$enableval
1998 else
1999 enable_sanity=yes
2004 # Check whether --enable-check-abi was given.
2005 if test "${enable_check_abi+set}" = set; then
2006 enableval=$enable_check_abi; enable_check_abi=$enableval
2007 else
2008 enable_check_abi=no
2012 static=yes
2013 # Check whether --enable-shared was given.
2014 if test "${enable_shared+set}" = set; then
2015 enableval=$enable_shared; shared=$enableval
2016 else
2017 shared=default
2020 # Check whether --enable-profile was given.
2021 if test "${enable_profile+set}" = set; then
2022 enableval=$enable_profile; profile=$enableval
2023 else
2024 profile=no
2027 # Check whether --enable-omitfp was given.
2028 if test "${enable_omitfp+set}" = set; then
2029 enableval=$enable_omitfp; omitfp=$enableval
2030 else
2031 omitfp=no
2034 # Check whether --enable-bounded was given.
2035 if test "${enable_bounded+set}" = set; then
2036 enableval=$enable_bounded; bounded=$enableval
2037 else
2038 bounded=no
2041 # Check whether --enable-versioning was given.
2042 if test "${enable_versioning+set}" = set; then
2043 enableval=$enable_versioning; enable_versioning=$enableval
2044 else
2045 enable_versioning=yes
2049 # Check whether --enable-oldest-abi was given.
2050 if test "${enable_oldest_abi+set}" = set; then
2051 enableval=$enable_oldest_abi; oldest_abi=$enableval
2052 else
2053 oldest_abi=no
2056 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
2057 oldest_abi=default
2058 else
2059 cat >>confdefs.h <<_ACEOF
2060 #define GLIBC_OLDEST_ABI "$oldest_abi"
2061 _ACEOF
2066 # Check whether --enable-stackguard-randomization was given.
2067 if test "${enable_stackguard_randomization+set}" = set; then
2068 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
2069 else
2070 enable_stackguard_randomize=no
2073 if test "$enable_stackguard_randomize" = yes; then
2074 cat >>confdefs.h <<\_ACEOF
2075 #define ENABLE_STACKGUARD_RANDOMIZE 1
2076 _ACEOF
2080 # Check whether --enable-add-ons was given.
2081 if test "${enable_add_ons+set}" = set; then
2082 enableval=$enable_add_ons;
2083 else
2084 enable_add_ons=yes
2089 # Check whether --with-tls was given.
2090 if test "${with_tls+set}" = set; then
2091 withval=$with_tls; usetls=$withval
2092 else
2093 usetls=yes
2098 # Check whether --with-__thread was given.
2099 if test "${with___thread+set}" = set; then
2100 withval=$with___thread; use__thread=$withval
2101 else
2102 use__thread=yes
2106 # Check whether --enable-hidden-plt was given.
2107 if test "${enable_hidden_plt+set}" = set; then
2108 enableval=$enable_hidden_plt; hidden=$enableval
2109 else
2110 hidden=yes
2113 if test "x$hidden" = xno; then
2114 cat >>confdefs.h <<\_ACEOF
2115 #define NO_HIDDEN 1
2116 _ACEOF
2120 # Check whether --enable-bind-now was given.
2121 if test "${enable_bind_now+set}" = set; then
2122 enableval=$enable_bind_now; bindnow=$enableval
2123 else
2124 bindnow=no
2129 # Check whether --enable-static-nss was given.
2130 if test "${enable_static_nss+set}" = set; then
2131 enableval=$enable_static_nss; static_nss=$enableval
2132 else
2133 static_nss=no
2136 if test x"$static_nss" = xyes || test x"$shared" = xno; then
2137 static_nss=yes
2138 cat >>confdefs.h <<\_ACEOF
2139 #define DO_STATIC_NSS 1
2140 _ACEOF
2144 # Check whether --enable-force-install was given.
2145 if test "${enable_force_install+set}" = set; then
2146 enableval=$enable_force_install; force_install=$enableval
2147 else
2148 force_install=yes
2153 # Check whether --enable-kernel was given.
2154 if test "${enable_kernel+set}" = set; then
2155 enableval=$enable_kernel; minimum_kernel=$enableval
2158 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
2159 # Better nothing than this.
2160 minimum_kernel=""
2161 else
2162 if test "$minimum_kernel" = current; then
2163 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
2167 # Check whether --enable-all-warnings was given.
2168 if test "${enable_all_warnings+set}" = set; then
2169 enableval=$enable_all_warnings; all_warnings=$enableval
2174 # Make sure we can run config.sub.
2175 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2176 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2177 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2178 { (exit 1); exit 1; }; }
2180 { echo "$as_me:$LINENO: checking build system type" >&5
2181 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2182 if test "${ac_cv_build+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
2185 ac_build_alias=$build_alias
2186 test "x$ac_build_alias" = x &&
2187 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2188 test "x$ac_build_alias" = x &&
2189 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2190 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2191 { (exit 1); exit 1; }; }
2192 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2193 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2194 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2195 { (exit 1); exit 1; }; }
2198 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2199 echo "${ECHO_T}$ac_cv_build" >&6; }
2200 case $ac_cv_build in
2201 *-*-*) ;;
2202 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2203 echo "$as_me: error: invalid value of canonical build" >&2;}
2204 { (exit 1); exit 1; }; };;
2205 esac
2206 build=$ac_cv_build
2207 ac_save_IFS=$IFS; IFS='-'
2208 set x $ac_cv_build
2209 shift
2210 build_cpu=$1
2211 build_vendor=$2
2212 shift; shift
2213 # Remember, the first character of IFS is used to create $*,
2214 # except with old shells:
2215 build_os=$*
2216 IFS=$ac_save_IFS
2217 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2220 { echo "$as_me:$LINENO: checking host system type" >&5
2221 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2222 if test "${ac_cv_host+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225 if test "x$host_alias" = x; then
2226 ac_cv_host=$ac_cv_build
2227 else
2228 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2229 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2230 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2231 { (exit 1); exit 1; }; }
2235 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2236 echo "${ECHO_T}$ac_cv_host" >&6; }
2237 case $ac_cv_host in
2238 *-*-*) ;;
2239 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2240 echo "$as_me: error: invalid value of canonical host" >&2;}
2241 { (exit 1); exit 1; }; };;
2242 esac
2243 host=$ac_cv_host
2244 ac_save_IFS=$IFS; IFS='-'
2245 set x $ac_cv_host
2246 shift
2247 host_cpu=$1
2248 host_vendor=$2
2249 shift; shift
2250 # Remember, the first character of IFS is used to create $*,
2251 # except with old shells:
2252 host_os=$*
2253 IFS=$ac_save_IFS
2254 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2258 # The way shlib-versions is used to generate soversions.mk uses a
2259 # fairly simplistic model for name recognition that can't distinguish
2260 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
2261 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
2262 # tell. This doesn't get used much beyond that, so it's fairly safe.
2263 case "$host_os" in
2264 linux*)
2266 gnu*)
2267 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
2269 esac
2271 # We keep the original values in `$config_*' and never modify them, so we
2272 # can write them unchanged into config.make. Everything else uses
2273 # $machine, $vendor, and $os, and changes them whenever convenient.
2274 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
2276 # Don't allow vendor == "unknown"
2277 test "$config_vendor" = unknown && config_vendor=
2278 config_os="`echo $config_os | sed 's/^unknown-//'`"
2280 # Some configurations imply other options.
2281 case "$host_os" in
2282 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
2283 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
2285 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
2286 # These systems (almost) always use the ELF format.
2287 elf=yes
2289 aix*)
2290 # These systems are always xcoff
2291 xcoff=yes
2292 elf=no
2294 esac
2296 # The configure fragment of an add-on port can modify these to supplement
2297 # or override the table in the case statement below. No fragment should
2298 # ever change the config_* variables, however.
2299 machine=$config_machine
2300 vendor=$config_vendor
2301 os=$config_os
2303 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
2304 # Unify this here.
2305 if test "$machine" = rs6000; then
2306 machine="powerpc"
2309 # Braindead PowerPC box with absolutely no FPU.
2310 case "$machine-$host_os" in
2311 powerpc*-*soft)
2312 with_fp=no
2314 esac
2316 submachine=
2318 # Check whether --with-cpu was given.
2319 if test "${with_cpu+set}" = set; then
2320 withval=$with_cpu; case "$withval" in
2321 yes|'') { { echo "$as_me:$LINENO: error: --with-cpu requires an argument" >&5
2322 echo "$as_me: error: --with-cpu requires an argument" >&2;}
2323 { (exit 1); exit 1; }; } ;;
2324 no) ;;
2325 *) submachine="$withval" ;;
2326 esac
2332 # An add-on can set this when it wants to disable the sanity check below.
2333 libc_config_ok=no
2335 subdirs="$subdirs "
2338 case "$enable_add_ons" in
2339 ''|no) add_ons= ;;
2340 yes|'*')
2341 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
2342 sed 's@/[^/]*$@@' | sort | uniq`
2343 add_ons_automatic=yes
2345 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
2346 add_ons_automatic=no ;;
2347 esac
2349 configured_add_ons=
2350 add_ons_sfx=
2351 add_ons_pfx=
2352 if test x"$add_ons" != x; then
2353 for f in $add_ons; do
2354 # Some sanity checks
2355 case "$f" in
2356 crypt)
2357 { { echo "$as_me:$LINENO: error:
2358 *** It seems that you're using an old \`crypt' add-on. crypt is now
2359 *** part of glibc and using the old add-on will not work with this
2360 *** release. Start again with fresh sources and without the old
2361 *** \`crypt' add-on." >&5
2362 echo "$as_me: error:
2363 *** It seems that you're using an old \`crypt' add-on. crypt is now
2364 *** part of glibc and using the old add-on will not work with this
2365 *** release. Start again with fresh sources and without the old
2366 *** \`crypt' add-on." >&2;}
2367 { (exit 1); exit 1; }; }
2369 localedata)
2370 { { echo "$as_me:$LINENO: error:
2371 *** It seems that you're using an old \`localedata' add-on. localedata
2372 *** is now part of glibc and using the old add-on will not work with
2373 *** this release. Start again with fresh sources and without the old
2374 *** \`localedata' add-on." >&5
2375 echo "$as_me: error:
2376 *** It seems that you're using an old \`localedata' add-on. localedata
2377 *** is now part of glibc and using the old add-on will not work with
2378 *** this release. Start again with fresh sources and without the old
2379 *** \`localedata' add-on." >&2;}
2380 { (exit 1); exit 1; }; }
2382 esac
2383 done
2385 # Now source each add-on's configure fragment.
2386 # The fragments can use $srcdir/$libc_add_on to find themselves,
2387 # and test $add_ons_automatic to see if they were explicitly requested.
2388 # A fragment can clear (or even change) $libc_add_on to affect
2389 # whether it goes into the list to be actually used in the build.
2390 use_add_ons=
2391 for libc_add_on in $add_ons; do
2392 # Test whether such a directory really exists.
2393 # It can be absolute, or relative to $srcdir, or relative to the build dir.
2394 case "$libc_add_on" in
2396 libc_add_on_srcdir=$libc_add_on
2399 test -d "$srcdir/$libc_add_on" || {
2400 if test -d "$libc_add_on"; then
2401 libc_add_on="`pwd`/$libc_add_on"
2402 else
2403 { { echo "$as_me:$LINENO: error: add-on directory \"$libc_add_on\" does not exist" >&5
2404 echo "$as_me: error: add-on directory \"$libc_add_on\" does not exist" >&2;}
2405 { (exit 1); exit 1; }; }
2408 libc_add_on_srcdir=$srcdir/$libc_add_on
2410 esac
2412 libc_add_on_frag=$libc_add_on_srcdir/configure
2413 libc_add_on_canonical=
2414 if test -r "$libc_add_on_frag"; then
2415 { echo "$as_me:$LINENO: running configure fragment for add-on $libc_add_on" >&5
2416 echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
2417 libc_add_on_canonical=unknown
2418 libc_add_on_subdirs=
2419 . "$libc_add_on_frag"
2420 test -z "$libc_add_on" || {
2421 configured_add_ons="$configured_add_ons $libc_add_on"
2422 if test "x$libc_add_on_canonical" = xunknown; then
2423 { { echo "$as_me:$LINENO: error: fragment must set \$libc_add_on_canonical" >&5
2424 echo "$as_me: error: fragment must set \$libc_add_on_canonical" >&2;}
2425 { (exit 1); exit 1; }; }
2427 for d in $libc_add_on_subdirs; do
2428 case "$libc_add_on" in
2429 /*) subdir_srcdir="$libc_add_on" ;;
2430 *) subdir_srcdir="\$(..)$libc_add_on" ;;
2431 esac
2432 case "$d" in
2434 d="${libc_add_on_canonical:-$libc_add_on}"
2437 subdir_srcdir="$d"
2440 subdir_srcdir="$subdir_srcdir/$d"
2442 esac
2443 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
2444 add_on_subdirs="$add_on_subdirs $d"
2445 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
2446 $d-srcdir = $subdir_srcdir"
2447 done
2450 if test -n "$libc_add_on"; then
2451 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
2452 then
2453 { echo "$as_me:$LINENO: checking add-on $libc_add_on for preconfigure fragments" >&5
2454 echo $ECHO_N "checking add-on $libc_add_on for preconfigure fragments... $ECHO_C" >&6; }
2455 for frag in $frags; do
2456 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
2457 echo $ECHO_N "$name $ECHO_C" >&6
2458 . "$frag"
2459 done
2460 { echo "$as_me:$LINENO: result: " >&5
2461 echo "${ECHO_T}" >&6; }
2463 use_add_ons="$use_add_ons $libc_add_on"
2464 add_ons_pfx="$add_ons_pfx $libc_add_on/"
2465 test -z "$libc_add_on_canonical" ||
2466 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
2468 done
2469 # Use echo to strip excess whitespace.
2470 add_ons="`echo $use_add_ons`"
2477 ### I put this here to prevent those annoying emails from people who cannot
2478 ### read and try to compile glibc on unsupported platforms. --drepper
2480 ### By using the undocumented --enable-hacker-mode option for configure
2481 ### one can skip this test to make the configuration not fail for unsupported
2482 ### platforms.
2484 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
2485 case "$machine-$host_os" in
2486 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
2489 echo "*** The GNU C library is currently not available for this platform."
2490 echo "*** So far nobody cared to port it and if there is no volunteer it"
2491 echo "*** might never happen. So, if you have interest to see glibc on"
2492 echo "*** this platform visit"
2493 echo "*** http://www.gnu.org/software/libc/porting.html"
2494 echo "*** and join the group of porters"
2495 exit 1
2497 esac
2500 # Expand the configuration machine name into a subdirectory by architecture
2501 # type and particular chip. If an add-on configure fragment already set
2502 # base_machine, we don't change it.
2503 test -n "$base_machine" || case "$machine" in
2504 a29k | am29000) base_machine=a29k machine=a29k ;;
2505 alpha*) base_machine=alpha machine=alpha/$machine ;;
2506 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
2507 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
2508 i[34567]86) base_machine=i386 machine=i386/$machine ;;
2509 ia64) base_machine=ia64 machine=ia64 ;;
2510 m88???) base_machine=m88k machine=m88k/$machine ;;
2511 m88k) base_machine=m88k machine=m88k/m88100 ;;
2512 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
2513 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
2514 s390) base_machine=s390 machine=s390/s390-32 ;;
2515 s390x) base_machine=s390 machine=s390/s390-64 ;;
2516 sh3*) base_machine=sh machine=sh/sh3 ;;
2517 sh4*) base_machine=sh machine=sh/sh4 ;;
2518 sparc | sparcv[67])
2519 base_machine=sparc machine=sparc/sparc32 ;;
2520 sparcv8 | supersparc | hypersparc)
2521 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
2522 sparcv8plus | sparcv8plusa | sparcv9)
2523 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
2524 sparcv8plusb | sparcv9b)
2525 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
2526 sparcv9v)
2527 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
2528 sparc64)
2529 base_machine=sparc machine=sparc/sparc64 ;;
2530 sparc64b)
2531 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
2532 sparc64v)
2533 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
2534 *) base_machine=$machine ;;
2535 esac
2538 if test "$base_machine" = "i386"; then
2539 cat >>confdefs.h <<\_ACEOF
2540 #define USE_REGPARMS 1
2541 _ACEOF
2545 # Compute the list of sysdep directories for this configuration.
2546 # This can take a while to compute.
2547 sysdep_dir=$srcdir/sysdeps
2548 { echo "$as_me:$LINENO: checking sysdep dirs" >&5
2549 echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6; }
2550 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
2551 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
2553 case "$os" in
2554 gnu*)
2555 base_os=mach/hurd ;;
2556 netbsd* | 386bsd* | freebsd* | bsdi*)
2557 base_os=unix/bsd/bsd4.4 ;;
2558 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
2559 base_os=unix/bsd ;;
2560 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
2561 base_os=unix/sysv ;;
2562 irix6*)
2563 base_os=unix/sysv/irix6/$os ;;
2564 solaris[2-9]*)
2565 base_os=unix/sysv/sysv4 ;;
2566 hpux*)
2567 base_os=unix/sysv/hpux/$os ;;
2568 aix4.3*)
2569 base_os=unix/sysv/aix/aix4.3 ;;
2570 none)
2571 base_os=standalone ;;
2573 base_os='' ;;
2574 esac
2576 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
2577 tail=$os
2578 ostry=$os
2579 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
2580 ostry="$ostry /$o"
2581 tail=$o
2582 done
2583 o=`echo $tail | sed 's/[0-9]*$//'`
2584 if test $o != $tail; then
2585 ostry="$ostry /$o"
2587 # For linux-gnu, try linux-gnu, then linux.
2588 o=`echo $tail | sed 's/-.*$//'`
2589 if test $o != $tail; then
2590 ostry="$ostry /$o"
2593 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
2594 base=
2595 tail=$base_os
2596 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
2597 set $b
2598 base="$base /$1"
2599 tail="$2"
2600 done
2602 # For sparc/sparc32, try sparc/sparc32 and then sparc.
2603 mach=
2604 tail=$machine${submachine:+/$submachine}
2605 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
2606 set $m
2607 # Prepend the machine's FPU directory unless --without-fp.
2608 if test "$with_fp" = yes; then
2609 mach="$mach /$1/fpu"
2610 else
2611 mach="$mach /$1/nofpu"
2613 mach="$mach /$1"
2614 tail="$2"
2615 done
2618 # Find what sysdep directories exist.
2619 sysnames_add_ons=
2620 sysnames=
2621 for b in $base ''; do
2622 for m0 in $mach ''; do
2623 for v in /$vendor ''; do
2624 test "$v" = / && continue
2625 for o in /$ostry ''; do
2626 test "$o" = / && continue
2627 for m in $mach ''; do
2628 for d in $add_ons_pfx ''; do
2629 for a in $add_ons_sfx ''; do
2630 if test -n "$m0$m0sub$b$v$o$m$msub"; then
2631 try_srcdir="${srcdir}/"
2632 case "$d" in
2633 /*) try_srcdir= ;;
2634 esac
2635 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
2636 test -n "$enable_debug_configure" &&
2637 echo "$0 DEBUG: try $try" >&2
2638 if test -d "$try_srcdir$try"; then
2639 sysnames="$sysnames $try"
2640 { test -n "$o" || test -n "$b"; } && os_used=t
2641 { test -n "$m" || test -n "$m0"; } && machine_used=t
2642 case x${m0:-$m} in
2643 x*/$submachine) submachine_used=t ;;
2644 esac
2645 if test -n "$d"; then
2646 case "$sysnames_add_ons" in
2647 *" $d "*) ;;
2648 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
2649 esac
2653 done
2654 done
2655 done
2656 done
2657 done
2658 done
2659 done
2661 if test -z "$os_used" && test "$os" != none; then
2662 { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
2663 echo "$as_me: error: Operating system $os is not supported." >&2;}
2664 { (exit 1); exit 1; }; }
2666 if test -z "$machine_used" && test "$machine" != none; then
2667 { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
2668 echo "$as_me: error: The $machine is not supported." >&2;}
2669 { (exit 1); exit 1; }; }
2671 if test -z "$submachine_used" && test -n "$submachine"; then
2672 { { echo "$as_me:$LINENO: error: The $submachine subspecies of $host_cpu is not supported." >&5
2673 echo "$as_me: error: The $submachine subspecies of $host_cpu is not supported." >&2;}
2674 { (exit 1); exit 1; }; }
2678 # We have now validated the configuration.
2681 # If using ELF, look for an `elf' subdirectory of each machine directory.
2682 # We prepend these rather than inserting them whereever the machine appears
2683 # because things specified by the machine's ELF ABI should override
2684 # OS-specific things, and should always be the same for any OS on the
2685 # machine (otherwise what's the point of an ABI?).
2686 if test "$elf" = yes; then
2687 elf_dirs=
2688 for d in $add_ons_pfx ''; do
2689 for m in $mach; do
2690 if test -d $srcdir/${d}sysdeps$m/elf; then
2691 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
2693 done
2694 done
2695 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
2699 # Expand the list of system names into a full list of directories
2700 # from each element's parent name and Implies file (if present).
2701 set $sysnames
2702 names=
2703 while test $# -gt 0; do
2704 name=$1
2705 shift
2707 case " $names " in *" $name "*)
2708 # Already in the list.
2709 continue
2710 esac
2712 # Report each name as we discover it, so there is no long pause in output.
2713 echo $ECHO_N "$name $ECHO_C" >&6
2715 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
2717 case $name in
2718 /*) xsrcdir= ;;
2719 *) xsrcdir=$srcdir/ ;;
2720 esac
2721 test -n "$enable_debug_configure" &&
2722 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
2724 if test -f $xsrcdir$name/Implies; then
2725 # Collect more names from the `Implies' file (removing comments).
2726 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
2727 implied=
2728 for x in $implied_candidate; do
2729 found=no
2730 if test -d $xsrcdir$name_base/$x; then
2731 implied="$implied $name_base/$x";
2732 found=yes
2734 for d in $add_ons_pfx ''; do
2735 try="${d}sysdeps/$x"
2736 case $d in
2737 /*) try_srcdir= ;;
2738 *) try_srcdir=$srcdir/ ;;
2739 esac
2740 test -n "$enable_debug_configure" &&
2741 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
2742 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
2743 then
2744 implied="$implied $try"
2745 found=yes
2746 case "$sysnames_add_ons" in
2747 *" $d "*) ;;
2748 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
2749 esac
2751 done
2752 if test $found = no; then
2753 { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
2754 echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
2756 done
2757 else
2758 implied=
2761 # Add NAME to the list of names.
2762 names="$names $name"
2764 # Find the parent of NAME, using the empty string if it has none.
2765 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
2767 # Add the names implied by NAME, and NAME's parent (if it has one), to
2768 # the list of names to be processed (the argument list). We prepend the
2769 # implied names to the list and append the parent. We want implied
2770 # directories to come before further directories inferred from the
2771 # configuration components; this ensures that for sysv4, unix/common
2772 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
2773 # after sysv4).
2774 sysnames="`echo $implied $* $parent`"
2775 test -n "$sysnames" && set $sysnames
2776 done
2778 # Add the default directories.
2779 default_sysnames=sysdeps/generic
2780 if test "$elf" = yes; then
2781 default_sysnames="sysdeps/generic/elf $default_sysnames"
2783 sysnames="$names $default_sysnames"
2785 # The other names were emitted during the scan.
2786 { echo "$as_me:$LINENO: result: $default_sysnames" >&5
2787 echo "${ECHO_T}$default_sysnames" >&6; }
2789 # Collect the list of add-ons that supply partial sysdeps trees.
2790 sysdeps_add_ons=
2791 for add_on in $add_ons; do
2792 case "$add_on" in
2793 /*) xsrcdir= ;;
2794 *) xsrcdir="$srcdir/" ;;
2795 esac
2797 test -d "$xsrcdir$add_on/sysdeps" || {
2798 case "$configured_add_ons " in
2799 *" $add_on "*) ;;
2800 *|'')
2801 { { echo "$as_me:$LINENO: error: add-on $add_on has no configure fragment or sysdeps tree" >&5
2802 echo "$as_me: error: add-on $add_on has no configure fragment or sysdeps tree" >&2;}
2803 { (exit 1); exit 1; }; }
2805 esac
2806 continue
2809 sysdeps_add_ons="$sysdeps_add_ons $add_on"
2810 case "$sysnames_add_ons" in
2811 *" $add_on/ "*) ;;
2812 *|'')
2813 { echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no sysdeps directories" >&5
2814 echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
2815 continue ;;
2816 esac
2818 found=no
2819 for d in $sysnames; do
2820 case "$d" in
2821 $add_on/sysdeps/*) ;;
2822 *) continue ;;
2823 esac
2824 (cd "$xsrcdir$d" && for f in *[!~]; do
2825 case "$f" in
2826 sys|bits)
2827 for ff in $f/*.h; do
2828 test -d "$ff" || { test -e "$ff" && exit 88; }
2829 done
2832 test -d "$f" || { test -e "$f" && exit 88; }
2834 esac
2835 done)
2836 if test $? -eq 88; then
2837 found=yes
2838 break
2840 done
2841 if test $found = no; then
2842 { echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
2843 echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
2845 done
2849 ### Locate tools.
2851 # Find a good install program. We prefer a C program (faster),
2852 # so one script is as good as another. But avoid the broken or
2853 # incompatible versions:
2854 # SysV /etc/install, /usr/sbin/install
2855 # SunOS /usr/etc/install
2856 # IRIX /sbin/install
2857 # AIX /bin/install
2858 # AmigaOS /C/install, which installs bootblocks on floppy discs
2859 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2860 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2861 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2862 # OS/2's system install, which has a completely different semantic
2863 # ./install, which can be erroneously created by make from ./install.sh.
2864 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2865 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2866 if test -z "$INSTALL"; then
2867 if test "${ac_cv_path_install+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 # Account for people who put trailing slashes in PATH elements.
2876 case $as_dir/ in
2877 ./ | .// | /cC/* | \
2878 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2879 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2880 /usr/ucb/* ) ;;
2882 # OSF1 and SCO ODT 3.0 have their own names for install.
2883 # Don't use installbsd from OSF since it installs stuff as root
2884 # by default.
2885 for ac_prog in ginstall scoinst install; do
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2888 if test $ac_prog = install &&
2889 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2890 # AIX install. It has an incompatible calling convention.
2892 elif test $ac_prog = install &&
2893 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2894 # program-specific install script used by HP pwplus--don't use.
2896 else
2897 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2898 break 3
2901 done
2902 done
2904 esac
2905 done
2906 IFS=$as_save_IFS
2910 if test "${ac_cv_path_install+set}" = set; then
2911 INSTALL=$ac_cv_path_install
2912 else
2913 # As a last resort, use the slow shell script. Don't cache a
2914 # value for INSTALL within a source directory, because that will
2915 # break other packages using the cache if that directory is
2916 # removed, or if the value is a relative name.
2917 INSTALL=$ac_install_sh
2920 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2921 echo "${ECHO_T}$INSTALL" >&6; }
2923 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2924 # It thinks the first close brace ends the variable substitution.
2925 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2927 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2929 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2931 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
2932 # The makefiles need to use a different form to find it in $srcdir.
2933 INSTALL='\$(..)./scripts/install-sh -c'
2935 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
2936 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2937 LN_S=$as_ln_s
2938 if test "$LN_S" = "ln -s"; then
2939 { echo "$as_me:$LINENO: result: yes" >&5
2940 echo "${ECHO_T}yes" >&6; }
2941 else
2942 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2943 echo "${ECHO_T}no, using $LN_S" >&6; }
2947 ac_ext=c
2948 ac_cpp='$CPP $CPPFLAGS'
2949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2952 if test -n "$ac_tool_prefix"; then
2953 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2954 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2957 if test "${ac_cv_prog_CC+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960 if test -n "$CC"; then
2961 ac_cv_prog_CC="$CC" # 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_CC="${ac_tool_prefix}gcc"
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 CC=$ac_cv_prog_CC
2981 if test -n "$CC"; then
2982 { echo "$as_me:$LINENO: result: $CC" >&5
2983 echo "${ECHO_T}$CC" >&6; }
2984 else
2985 { echo "$as_me:$LINENO: result: no" >&5
2986 echo "${ECHO_T}no" >&6; }
2991 if test -z "$ac_cv_prog_CC"; then
2992 ac_ct_CC=$CC
2993 # Extract the first word of "gcc", so it can be a program name with args.
2994 set dummy gcc; ac_word=$2
2995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2997 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
2999 else
3000 if test -n "$ac_ct_CC"; then
3001 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3002 else
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3006 IFS=$as_save_IFS
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3010 ac_cv_prog_ac_ct_CC="gcc"
3011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 break 2
3014 done
3015 done
3016 IFS=$as_save_IFS
3020 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3021 if test -n "$ac_ct_CC"; then
3022 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3023 echo "${ECHO_T}$ac_ct_CC" >&6; }
3024 else
3025 { echo "$as_me:$LINENO: result: no" >&5
3026 echo "${ECHO_T}no" >&6; }
3029 if test "x$ac_ct_CC" = x; then
3030 CC=""
3031 else
3032 case $cross_compiling:$ac_tool_warned in
3033 yes:)
3034 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3035 whose name does not start with the host triplet. If you think this
3036 configuration is useful to you, please write to autoconf@gnu.org." >&5
3037 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3038 whose name does not start with the host triplet. If you think this
3039 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3040 ac_tool_warned=yes ;;
3041 esac
3042 CC=$ac_ct_CC
3044 else
3045 CC="$ac_cv_prog_CC"
3048 if test -z "$CC"; then
3049 if test -n "$ac_tool_prefix"; then
3050 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3051 set dummy ${ac_tool_prefix}cc; ac_word=$2
3052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3054 if test "${ac_cv_prog_CC+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 else
3057 if test -n "$CC"; then
3058 ac_cv_prog_CC="$CC" # Let the user override the test.
3059 else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3063 IFS=$as_save_IFS
3064 test -z "$as_dir" && as_dir=.
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067 ac_cv_prog_CC="${ac_tool_prefix}cc"
3068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 break 2
3071 done
3072 done
3073 IFS=$as_save_IFS
3077 CC=$ac_cv_prog_CC
3078 if test -n "$CC"; then
3079 { echo "$as_me:$LINENO: result: $CC" >&5
3080 echo "${ECHO_T}$CC" >&6; }
3081 else
3082 { echo "$as_me:$LINENO: result: no" >&5
3083 echo "${ECHO_T}no" >&6; }
3089 if test -z "$CC"; then
3090 # Extract the first word of "cc", so it can be a program name with args.
3091 set dummy cc; ac_word=$2
3092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3094 if test "${ac_cv_prog_CC+set}" = set; then
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
3096 else
3097 if test -n "$CC"; then
3098 ac_cv_prog_CC="$CC" # Let the user override the test.
3099 else
3100 ac_prog_rejected=no
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3108 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3109 ac_prog_rejected=yes
3110 continue
3112 ac_cv_prog_CC="cc"
3113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 break 2
3116 done
3117 done
3118 IFS=$as_save_IFS
3120 if test $ac_prog_rejected = yes; then
3121 # We found a bogon in the path, so make sure we never use it.
3122 set dummy $ac_cv_prog_CC
3123 shift
3124 if test $# != 0; then
3125 # We chose a different compiler from the bogus one.
3126 # However, it has the same basename, so the bogon will be chosen
3127 # first if we set CC to just the basename; use the full file name.
3128 shift
3129 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3134 CC=$ac_cv_prog_CC
3135 if test -n "$CC"; then
3136 { echo "$as_me:$LINENO: result: $CC" >&5
3137 echo "${ECHO_T}$CC" >&6; }
3138 else
3139 { echo "$as_me:$LINENO: result: no" >&5
3140 echo "${ECHO_T}no" >&6; }
3145 if test -z "$CC"; then
3146 if test -n "$ac_tool_prefix"; then
3147 for ac_prog in cl.exe
3149 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3150 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3153 if test "${ac_cv_prog_CC+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156 if test -n "$CC"; then
3157 ac_cv_prog_CC="$CC" # Let the user override the test.
3158 else
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3162 IFS=$as_save_IFS
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 break 2
3170 done
3171 done
3172 IFS=$as_save_IFS
3176 CC=$ac_cv_prog_CC
3177 if test -n "$CC"; then
3178 { echo "$as_me:$LINENO: result: $CC" >&5
3179 echo "${ECHO_T}$CC" >&6; }
3180 else
3181 { echo "$as_me:$LINENO: result: no" >&5
3182 echo "${ECHO_T}no" >&6; }
3186 test -n "$CC" && break
3187 done
3189 if test -z "$CC"; then
3190 ac_ct_CC=$CC
3191 for ac_prog in cl.exe
3193 # Extract the first word of "$ac_prog", so it can be a program name with args.
3194 set dummy $ac_prog; ac_word=$2
3195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3197 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3199 else
3200 if test -n "$ac_ct_CC"; then
3201 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3206 IFS=$as_save_IFS
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210 ac_cv_prog_ac_ct_CC="$ac_prog"
3211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 break 2
3214 done
3215 done
3216 IFS=$as_save_IFS
3220 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3221 if test -n "$ac_ct_CC"; then
3222 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3223 echo "${ECHO_T}$ac_ct_CC" >&6; }
3224 else
3225 { echo "$as_me:$LINENO: result: no" >&5
3226 echo "${ECHO_T}no" >&6; }
3230 test -n "$ac_ct_CC" && break
3231 done
3233 if test "x$ac_ct_CC" = x; then
3234 CC=""
3235 else
3236 case $cross_compiling:$ac_tool_warned in
3237 yes:)
3238 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3239 whose name does not start with the host triplet. If you think this
3240 configuration is useful to you, please write to autoconf@gnu.org." >&5
3241 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3242 whose name does not start with the host triplet. If you think this
3243 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3244 ac_tool_warned=yes ;;
3245 esac
3246 CC=$ac_ct_CC
3253 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3254 See \`config.log' for more details." >&5
3255 echo "$as_me: error: no acceptable C compiler found in \$PATH
3256 See \`config.log' for more details." >&2;}
3257 { (exit 1); exit 1; }; }
3259 # Provide some information about the compiler.
3260 echo "$as_me:$LINENO: checking for C compiler version" >&5
3261 ac_compiler=`set X $ac_compile; echo $2`
3262 { (ac_try="$ac_compiler --version >&5"
3263 case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266 esac
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_compiler --version >&5") 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }
3272 { (ac_try="$ac_compiler -v >&5"
3273 case "(($ac_try" in
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3276 esac
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278 (eval "$ac_compiler -v >&5") 2>&5
3279 ac_status=$?
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }
3282 { (ac_try="$ac_compiler -V >&5"
3283 case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286 esac
3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288 (eval "$ac_compiler -V >&5") 2>&5
3289 ac_status=$?
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }
3293 EXEEXT=
3294 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3295 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3296 if test "${ac_cv_objext+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299 cat >conftest.$ac_ext <<_ACEOF
3300 /* confdefs.h. */
3301 _ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3307 main ()
3311 return 0;
3313 _ACEOF
3314 rm -f conftest.o conftest.obj
3315 if { (ac_try="$ac_compile"
3316 case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319 esac
3320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321 (eval "$ac_compile") 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; then
3325 for ac_file in conftest.o conftest.obj conftest.*; do
3326 test -f "$ac_file" || continue;
3327 case $ac_file in
3328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3330 break;;
3331 esac
3332 done
3333 else
3334 echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3337 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3338 See \`config.log' for more details." >&5
3339 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3340 See \`config.log' for more details." >&2;}
3341 { (exit 1); exit 1; }; }
3344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3346 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3347 echo "${ECHO_T}$ac_cv_objext" >&6; }
3348 OBJEXT=$ac_cv_objext
3349 ac_objext=$OBJEXT
3350 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3351 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3352 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355 cat >conftest.$ac_ext <<_ACEOF
3356 /* confdefs.h. */
3357 _ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h. */
3363 main ()
3365 #ifndef __GNUC__
3366 choke me
3367 #endif
3370 return 0;
3372 _ACEOF
3373 rm -f conftest.$ac_objext
3374 if { (ac_try="$ac_compile"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_compile") 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } && {
3387 test -z "$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3389 } && test -s conftest.$ac_objext; then
3390 ac_compiler_gnu=yes
3391 else
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3395 ac_compiler_gnu=no
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3402 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3403 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3404 GCC=`test $ac_compiler_gnu = yes && echo yes`
3405 ac_test_CFLAGS=${CFLAGS+set}
3406 ac_save_CFLAGS=$CFLAGS
3407 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3408 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3409 if test "${ac_cv_prog_cc_g+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412 ac_save_c_werror_flag=$ac_c_werror_flag
3413 ac_c_werror_flag=yes
3414 ac_cv_prog_cc_g=no
3415 CFLAGS="-g"
3416 cat >conftest.$ac_ext <<_ACEOF
3417 /* confdefs.h. */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3424 main ()
3428 return 0;
3430 _ACEOF
3431 rm -f conftest.$ac_objext
3432 if { (ac_try="$ac_compile"
3433 case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436 esac
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_compile") 2>conftest.er1
3439 ac_status=$?
3440 grep -v '^ *+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } && {
3445 test -z "$ac_c_werror_flag" ||
3446 test ! -s conftest.err
3447 } && test -s conftest.$ac_objext; then
3448 ac_cv_prog_cc_g=yes
3449 else
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3453 CFLAGS=""
3454 cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h. */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3462 main ()
3466 return 0;
3468 _ACEOF
3469 rm -f conftest.$ac_objext
3470 if { (ac_try="$ac_compile"
3471 case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474 esac
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_compile") 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } && {
3483 test -z "$ac_c_werror_flag" ||
3484 test ! -s conftest.err
3485 } && test -s conftest.$ac_objext; then
3487 else
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3491 ac_c_werror_flag=$ac_save_c_werror_flag
3492 CFLAGS="-g"
3493 cat >conftest.$ac_ext <<_ACEOF
3494 /* confdefs.h. */
3495 _ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3501 main ()
3505 return 0;
3507 _ACEOF
3508 rm -f conftest.$ac_objext
3509 if { (ac_try="$ac_compile"
3510 case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3513 esac
3514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3515 (eval "$ac_compile") 2>conftest.er1
3516 ac_status=$?
3517 grep -v '^ *+' conftest.er1 >conftest.err
3518 rm -f conftest.er1
3519 cat conftest.err >&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); } && {
3522 test -z "$ac_c_werror_flag" ||
3523 test ! -s conftest.err
3524 } && test -s conftest.$ac_objext; then
3525 ac_cv_prog_cc_g=yes
3526 else
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540 ac_c_werror_flag=$ac_save_c_werror_flag
3542 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3543 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3544 if test "$ac_test_CFLAGS" = set; then
3545 CFLAGS=$ac_save_CFLAGS
3546 elif test $ac_cv_prog_cc_g = yes; then
3547 if test "$GCC" = yes; then
3548 CFLAGS="-g -O2"
3549 else
3550 CFLAGS="-g"
3552 else
3553 if test "$GCC" = yes; then
3554 CFLAGS="-O2"
3555 else
3556 CFLAGS=
3559 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3560 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3561 if test "${ac_cv_prog_cc_c89+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564 ac_cv_prog_cc_c89=no
3565 ac_save_CC=$CC
3566 cat >conftest.$ac_ext <<_ACEOF
3567 /* confdefs.h. */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3572 #include <stdarg.h>
3573 #include <stdio.h>
3574 #include <sys/types.h>
3575 #include <sys/stat.h>
3576 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3577 struct buf { int x; };
3578 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3579 static char *e (p, i)
3580 char **p;
3581 int i;
3583 return p[i];
3585 static char *f (char * (*g) (char **, int), char **p, ...)
3587 char *s;
3588 va_list v;
3589 va_start (v,p);
3590 s = g (p, va_arg (v,int));
3591 va_end (v);
3592 return s;
3595 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3596 function prototypes and stuff, but not '\xHH' hex character constants.
3597 These don't provoke an error unfortunately, instead are silently treated
3598 as 'x'. The following induces an error, until -std is added to get
3599 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3600 array size at least. It's necessary to write '\x00'==0 to get something
3601 that's true only with -std. */
3602 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3604 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3605 inside strings and character constants. */
3606 #define FOO(x) 'x'
3607 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3609 int test (int i, double x);
3610 struct s1 {int (*f) (int a);};
3611 struct s2 {int (*f) (double a);};
3612 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3613 int argc;
3614 char **argv;
3616 main ()
3618 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3620 return 0;
3622 _ACEOF
3623 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3624 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3626 CC="$ac_save_CC $ac_arg"
3627 rm -f conftest.$ac_objext
3628 if { (ac_try="$ac_compile"
3629 case "(($ac_try" in
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3632 esac
3633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3634 (eval "$ac_compile") 2>conftest.er1
3635 ac_status=$?
3636 grep -v '^ *+' conftest.er1 >conftest.err
3637 rm -f conftest.er1
3638 cat conftest.err >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } && {
3641 test -z "$ac_c_werror_flag" ||
3642 test ! -s conftest.err
3643 } && test -s conftest.$ac_objext; then
3644 ac_cv_prog_cc_c89=$ac_arg
3645 else
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3652 rm -f core conftest.err conftest.$ac_objext
3653 test "x$ac_cv_prog_cc_c89" != "xno" && break
3654 done
3655 rm -f conftest.$ac_ext
3656 CC=$ac_save_CC
3659 # AC_CACHE_VAL
3660 case "x$ac_cv_prog_cc_c89" in
3662 { echo "$as_me:$LINENO: result: none needed" >&5
3663 echo "${ECHO_T}none needed" >&6; } ;;
3664 xno)
3665 { echo "$as_me:$LINENO: result: unsupported" >&5
3666 echo "${ECHO_T}unsupported" >&6; } ;;
3668 CC="$CC $ac_cv_prog_cc_c89"
3669 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3670 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3671 esac
3674 ac_ext=c
3675 ac_cpp='$CPP $CPPFLAGS'
3676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680 if test $host != $build; then
3681 for ac_prog in gcc cc
3683 # Extract the first word of "$ac_prog", so it can be a program name with args.
3684 set dummy $ac_prog; ac_word=$2
3685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3687 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690 if test -n "$BUILD_CC"; then
3691 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3692 else
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3700 ac_cv_prog_BUILD_CC="$ac_prog"
3701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 break 2
3704 done
3705 done
3706 IFS=$as_save_IFS
3710 BUILD_CC=$ac_cv_prog_BUILD_CC
3711 if test -n "$BUILD_CC"; then
3712 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3713 echo "${ECHO_T}$BUILD_CC" >&6; }
3714 else
3715 { echo "$as_me:$LINENO: result: no" >&5
3716 echo "${ECHO_T}no" >&6; }
3720 test -n "$BUILD_CC" && break
3721 done
3725 ac_ext=c
3726 ac_cpp='$CPP $CPPFLAGS'
3727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3730 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3731 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3732 # On Suns, sometimes $CPP names a directory.
3733 if test -n "$CPP" && test -d "$CPP"; then
3734 CPP=
3736 if test -z "$CPP"; then
3737 if test "${ac_cv_prog_CPP+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740 # Double quotes because CPP needs to be expanded
3741 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3743 ac_preproc_ok=false
3744 for ac_c_preproc_warn_flag in '' yes
3746 # Use a header file that comes with gcc, so configuring glibc
3747 # with a fresh cross-compiler works.
3748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3749 # <limits.h> exists even on freestanding compilers.
3750 # On the NeXT, cc -E runs the code through the compiler's parser,
3751 # not just through cpp. "Syntax error" is here to catch this case.
3752 cat >conftest.$ac_ext <<_ACEOF
3753 /* confdefs.h. */
3754 _ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3758 #ifdef __STDC__
3759 # include <limits.h>
3760 #else
3761 # include <assert.h>
3762 #endif
3763 Syntax error
3764 _ACEOF
3765 if { (ac_try="$ac_cpp conftest.$ac_ext"
3766 case "(($ac_try" in
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3769 esac
3770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3772 ac_status=$?
3773 grep -v '^ *+' conftest.er1 >conftest.err
3774 rm -f conftest.er1
3775 cat conftest.err >&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); } >/dev/null && {
3778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3779 test ! -s conftest.err
3780 }; then
3782 else
3783 echo "$as_me: failed program was:" >&5
3784 sed 's/^/| /' conftest.$ac_ext >&5
3786 # Broken: fails on valid input.
3787 continue
3790 rm -f conftest.err conftest.$ac_ext
3792 # OK, works on sane cases. Now check whether nonexistent headers
3793 # can be detected and how.
3794 cat >conftest.$ac_ext <<_ACEOF
3795 /* confdefs.h. */
3796 _ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3800 #include <ac_nonexistent.h>
3801 _ACEOF
3802 if { (ac_try="$ac_cpp conftest.$ac_ext"
3803 case "(($ac_try" in
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3806 esac
3807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3809 ac_status=$?
3810 grep -v '^ *+' conftest.er1 >conftest.err
3811 rm -f conftest.er1
3812 cat conftest.err >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } >/dev/null && {
3815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3816 test ! -s conftest.err
3817 }; then
3818 # Broken: success on invalid input.
3819 continue
3820 else
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 # Passes both tests.
3825 ac_preproc_ok=:
3826 break
3829 rm -f conftest.err conftest.$ac_ext
3831 done
3832 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3833 rm -f conftest.err conftest.$ac_ext
3834 if $ac_preproc_ok; then
3835 break
3838 done
3839 ac_cv_prog_CPP=$CPP
3842 CPP=$ac_cv_prog_CPP
3843 else
3844 ac_cv_prog_CPP=$CPP
3846 { echo "$as_me:$LINENO: result: $CPP" >&5
3847 echo "${ECHO_T}$CPP" >&6; }
3848 ac_preproc_ok=false
3849 for ac_c_preproc_warn_flag in '' yes
3851 # Use a header file that comes with gcc, so configuring glibc
3852 # with a fresh cross-compiler works.
3853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3854 # <limits.h> exists even on freestanding compilers.
3855 # On the NeXT, cc -E runs the code through the compiler's parser,
3856 # not just through cpp. "Syntax error" is here to catch this case.
3857 cat >conftest.$ac_ext <<_ACEOF
3858 /* confdefs.h. */
3859 _ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3863 #ifdef __STDC__
3864 # include <limits.h>
3865 #else
3866 # include <assert.h>
3867 #endif
3868 Syntax error
3869 _ACEOF
3870 if { (ac_try="$ac_cpp conftest.$ac_ext"
3871 case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874 esac
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3877 ac_status=$?
3878 grep -v '^ *+' conftest.er1 >conftest.err
3879 rm -f conftest.er1
3880 cat conftest.err >&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); } >/dev/null && {
3883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3884 test ! -s conftest.err
3885 }; then
3887 else
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3891 # Broken: fails on valid input.
3892 continue
3895 rm -f conftest.err conftest.$ac_ext
3897 # OK, works on sane cases. Now check whether nonexistent headers
3898 # can be detected and how.
3899 cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h. */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3905 #include <ac_nonexistent.h>
3906 _ACEOF
3907 if { (ac_try="$ac_cpp conftest.$ac_ext"
3908 case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3911 esac
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3914 ac_status=$?
3915 grep -v '^ *+' conftest.er1 >conftest.err
3916 rm -f conftest.er1
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } >/dev/null && {
3920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3921 test ! -s conftest.err
3922 }; then
3923 # Broken: success on invalid input.
3924 continue
3925 else
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 # Passes both tests.
3930 ac_preproc_ok=:
3931 break
3934 rm -f conftest.err conftest.$ac_ext
3936 done
3937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3938 rm -f conftest.err conftest.$ac_ext
3939 if $ac_preproc_ok; then
3941 else
3942 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3943 See \`config.log' for more details." >&5
3944 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3945 See \`config.log' for more details." >&2;}
3946 { (exit 1); exit 1; }; }
3949 ac_ext=c
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955 # We need the C++ compiler only for testing.
3956 ac_ext=cpp
3957 ac_cpp='$CXXCPP $CPPFLAGS'
3958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3961 if test -z "$CXX"; then
3962 if test -n "$CCC"; then
3963 CXX=$CCC
3964 else
3965 if test -n "$ac_tool_prefix"; then
3966 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3972 if test "${ac_cv_prog_CXX+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 else
3975 if test -n "$CXX"; then
3976 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3977 else
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3981 IFS=$as_save_IFS
3982 test -z "$as_dir" && as_dir=.
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3985 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 break 2
3989 done
3990 done
3991 IFS=$as_save_IFS
3995 CXX=$ac_cv_prog_CXX
3996 if test -n "$CXX"; then
3997 { echo "$as_me:$LINENO: result: $CXX" >&5
3998 echo "${ECHO_T}$CXX" >&6; }
3999 else
4000 { echo "$as_me:$LINENO: result: no" >&5
4001 echo "${ECHO_T}no" >&6; }
4005 test -n "$CXX" && break
4006 done
4008 if test -z "$CXX"; then
4009 ac_ct_CXX=$CXX
4010 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4012 # Extract the first word of "$ac_prog", so it can be a program name with args.
4013 set dummy $ac_prog; ac_word=$2
4014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4016 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019 if test -n "$ac_ct_CXX"; then
4020 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4021 else
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4029 ac_cv_prog_ac_ct_CXX="$ac_prog"
4030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4031 break 2
4033 done
4034 done
4035 IFS=$as_save_IFS
4039 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4040 if test -n "$ac_ct_CXX"; then
4041 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4042 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4043 else
4044 { echo "$as_me:$LINENO: result: no" >&5
4045 echo "${ECHO_T}no" >&6; }
4049 test -n "$ac_ct_CXX" && break
4050 done
4052 if test "x$ac_ct_CXX" = x; then
4053 CXX="g++"
4054 else
4055 case $cross_compiling:$ac_tool_warned in
4056 yes:)
4057 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4058 whose name does not start with the host triplet. If you think this
4059 configuration is useful to you, please write to autoconf@gnu.org." >&5
4060 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4061 whose name does not start with the host triplet. If you think this
4062 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4063 ac_tool_warned=yes ;;
4064 esac
4065 CXX=$ac_ct_CXX
4071 # Provide some information about the compiler.
4072 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4073 ac_compiler=`set X $ac_compile; echo $2`
4074 { (ac_try="$ac_compiler --version >&5"
4075 case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078 esac
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_compiler --version >&5") 2>&5
4081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }
4084 { (ac_try="$ac_compiler -v >&5"
4085 case "(($ac_try" in
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4088 esac
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090 (eval "$ac_compiler -v >&5") 2>&5
4091 ac_status=$?
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }
4094 { (ac_try="$ac_compiler -V >&5"
4095 case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4098 esac
4099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4100 (eval "$ac_compiler -V >&5") 2>&5
4101 ac_status=$?
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); }
4105 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4106 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4107 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110 cat >conftest.$ac_ext <<_ACEOF
4111 /* confdefs.h. */
4112 _ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4118 main ()
4120 #ifndef __GNUC__
4121 choke me
4122 #endif
4125 return 0;
4127 _ACEOF
4128 rm -f conftest.$ac_objext
4129 if { (ac_try="$ac_compile"
4130 case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4133 esac
4134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135 (eval "$ac_compile") 2>conftest.er1
4136 ac_status=$?
4137 grep -v '^ *+' conftest.er1 >conftest.err
4138 rm -f conftest.er1
4139 cat conftest.err >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } && {
4142 test -z "$ac_cxx_werror_flag" ||
4143 test ! -s conftest.err
4144 } && test -s conftest.$ac_objext; then
4145 ac_compiler_gnu=yes
4146 else
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4150 ac_compiler_gnu=no
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4157 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4158 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4159 GXX=`test $ac_compiler_gnu = yes && echo yes`
4160 ac_test_CXXFLAGS=${CXXFLAGS+set}
4161 ac_save_CXXFLAGS=$CXXFLAGS
4162 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4163 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4164 if test "${ac_cv_prog_cxx_g+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
4166 else
4167 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4168 ac_cxx_werror_flag=yes
4169 ac_cv_prog_cxx_g=no
4170 CXXFLAGS="-g"
4171 cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h. */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4179 main ()
4183 return 0;
4185 _ACEOF
4186 rm -f conftest.$ac_objext
4187 if { (ac_try="$ac_compile"
4188 case "(($ac_try" in
4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4191 esac
4192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4193 (eval "$ac_compile") 2>conftest.er1
4194 ac_status=$?
4195 grep -v '^ *+' conftest.er1 >conftest.err
4196 rm -f conftest.er1
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } && {
4200 test -z "$ac_cxx_werror_flag" ||
4201 test ! -s conftest.err
4202 } && test -s conftest.$ac_objext; then
4203 ac_cv_prog_cxx_g=yes
4204 else
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4208 CXXFLAGS=""
4209 cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h. */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4217 main ()
4221 return 0;
4223 _ACEOF
4224 rm -f conftest.$ac_objext
4225 if { (ac_try="$ac_compile"
4226 case "(($ac_try" in
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4229 esac
4230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231 (eval "$ac_compile") 2>conftest.er1
4232 ac_status=$?
4233 grep -v '^ *+' conftest.er1 >conftest.err
4234 rm -f conftest.er1
4235 cat conftest.err >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } && {
4238 test -z "$ac_cxx_werror_flag" ||
4239 test ! -s conftest.err
4240 } && test -s conftest.$ac_objext; then
4242 else
4243 echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4246 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4247 CXXFLAGS="-g"
4248 cat >conftest.$ac_ext <<_ACEOF
4249 /* confdefs.h. */
4250 _ACEOF
4251 cat confdefs.h >>conftest.$ac_ext
4252 cat >>conftest.$ac_ext <<_ACEOF
4253 /* end confdefs.h. */
4256 main ()
4260 return 0;
4262 _ACEOF
4263 rm -f conftest.$ac_objext
4264 if { (ac_try="$ac_compile"
4265 case "(($ac_try" in
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4268 esac
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270 (eval "$ac_compile") 2>conftest.er1
4271 ac_status=$?
4272 grep -v '^ *+' conftest.er1 >conftest.err
4273 rm -f conftest.er1
4274 cat conftest.err >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } && {
4277 test -z "$ac_cxx_werror_flag" ||
4278 test ! -s conftest.err
4279 } && test -s conftest.$ac_objext; then
4280 ac_cv_prog_cxx_g=yes
4281 else
4282 echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4297 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4298 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4299 if test "$ac_test_CXXFLAGS" = set; then
4300 CXXFLAGS=$ac_save_CXXFLAGS
4301 elif test $ac_cv_prog_cxx_g = yes; then
4302 if test "$GXX" = yes; then
4303 CXXFLAGS="-g -O2"
4304 else
4305 CXXFLAGS="-g"
4307 else
4308 if test "$GXX" = yes; then
4309 CXXFLAGS="-O2"
4310 else
4311 CXXFLAGS=
4314 ac_ext=c
4315 ac_cpp='$CPP $CPPFLAGS'
4316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4320 # Was a --with-binutils option given?
4321 if test -n "$path_binutils"; then
4322 # Make absolute; ensure a single trailing slash.
4323 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4324 CC="$CC -B$path_binutils"
4326 AS=`$CC -print-prog-name=as`
4327 LD=`$CC -print-prog-name=ld`
4328 AR=`$CC -print-prog-name=ar`
4330 OBJDUMP=`$CC -print-prog-name=objdump`
4333 # ranlib has to be treated a bit differently since it might not exist at all.
4334 ac_ranlib=`$CC -print-prog-name=ranlib`
4335 if test "x$ac_ranlib" = xranlib; then
4336 # This extra check has to happen since gcc simply echos the parameter in
4337 # case it cannot find the value in its own directories.
4338 if test -n "$ac_tool_prefix"; then
4339 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4340 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4343 if test "${ac_cv_prog_RANLIB+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 else
4346 if test -n "$RANLIB"; then
4347 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4348 else
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4352 IFS=$as_save_IFS
4353 test -z "$as_dir" && as_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4356 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 break 2
4360 done
4361 done
4362 IFS=$as_save_IFS
4366 RANLIB=$ac_cv_prog_RANLIB
4367 if test -n "$RANLIB"; then
4368 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4369 echo "${ECHO_T}$RANLIB" >&6; }
4370 else
4371 { echo "$as_me:$LINENO: result: no" >&5
4372 echo "${ECHO_T}no" >&6; }
4377 if test -z "$ac_cv_prog_RANLIB"; then
4378 ac_ct_RANLIB=$RANLIB
4379 # Extract the first word of "ranlib", so it can be a program name with args.
4380 set dummy ranlib; ac_word=$2
4381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4383 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386 if test -n "$ac_ct_RANLIB"; then
4387 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
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 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4396 ac_cv_prog_ac_ct_RANLIB="ranlib"
4397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 break 2
4400 done
4401 done
4402 IFS=$as_save_IFS
4406 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4407 if test -n "$ac_ct_RANLIB"; then
4408 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4409 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4410 else
4411 { echo "$as_me:$LINENO: result: no" >&5
4412 echo "${ECHO_T}no" >&6; }
4415 if test "x$ac_ct_RANLIB" = x; then
4416 RANLIB=":"
4417 else
4418 case $cross_compiling:$ac_tool_warned in
4419 yes:)
4420 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4421 whose name does not start with the host triplet. If you think this
4422 configuration is useful to you, please write to autoconf@gnu.org." >&5
4423 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4424 whose name does not start with the host triplet. If you think this
4425 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4426 ac_tool_warned=yes ;;
4427 esac
4428 RANLIB=$ac_ct_RANLIB
4430 else
4431 RANLIB="$ac_cv_prog_RANLIB"
4434 else
4435 RANLIB=$ac_ranlib
4439 # Determine whether we are using GNU binutils.
4440 { echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
4441 echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6; }
4442 if test "${libc_cv_prog_as_gnu+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445 # Most GNU programs take a -v and spit out some text including
4446 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4447 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4448 libc_cv_prog_as_gnu=yes
4449 else
4450 libc_cv_prog_as_gnu=no
4452 rm -fr contest*
4454 { echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
4455 echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6; }
4456 rm -f a.out
4457 gnu_as=$libc_cv_prog_as_gnu
4459 { echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
4460 echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6; }
4461 if test "${libc_cv_prog_ld_gnu+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464 # Most GNU programs take a -v and spit out some text including
4465 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4466 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4467 libc_cv_prog_ld_gnu=yes
4468 else
4469 libc_cv_prog_ld_gnu=no
4471 rm -fr contest*
4473 { echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
4474 echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6; }
4475 gnu_ld=$libc_cv_prog_ld_gnu
4478 # Accept binutils 2.13 or newer.
4479 for ac_prog in $AS
4481 # Extract the first word of "$ac_prog", so it can be a program name with args.
4482 set dummy $ac_prog; ac_word=$2
4483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4485 if test "${ac_cv_prog_AS+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488 if test -n "$AS"; then
4489 ac_cv_prog_AS="$AS" # Let the user override the test.
4490 else
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498 ac_cv_prog_AS="$ac_prog"
4499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 break 2
4502 done
4503 done
4504 IFS=$as_save_IFS
4508 AS=$ac_cv_prog_AS
4509 if test -n "$AS"; then
4510 { echo "$as_me:$LINENO: result: $AS" >&5
4511 echo "${ECHO_T}$AS" >&6; }
4512 else
4513 { echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6; }
4518 test -n "$AS" && break
4519 done
4521 if test -z "$AS"; then
4522 ac_verc_fail=yes
4523 else
4524 # Found it, now check the version.
4525 { echo "$as_me:$LINENO: checking version of $AS" >&5
4526 echo $ECHO_N "checking version of $AS... $ECHO_C" >&6; }
4527 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4528 case $ac_prog_version in
4529 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4530 2.1[3-9]*)
4531 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4532 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4534 esac
4535 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4536 echo "${ECHO_T}$ac_prog_version" >&6; }
4538 if test $ac_verc_fail = yes; then
4539 AS=: critic_missing="$critic_missing as"
4542 for ac_prog in $LD
4544 # Extract the first word of "$ac_prog", so it can be a program name with args.
4545 set dummy $ac_prog; ac_word=$2
4546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4548 if test "${ac_cv_prog_LD+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551 if test -n "$LD"; then
4552 ac_cv_prog_LD="$LD" # Let the user override the test.
4553 else
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561 ac_cv_prog_LD="$ac_prog"
4562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4565 done
4566 done
4567 IFS=$as_save_IFS
4571 LD=$ac_cv_prog_LD
4572 if test -n "$LD"; then
4573 { echo "$as_me:$LINENO: result: $LD" >&5
4574 echo "${ECHO_T}$LD" >&6; }
4575 else
4576 { echo "$as_me:$LINENO: result: no" >&5
4577 echo "${ECHO_T}no" >&6; }
4581 test -n "$LD" && break
4582 done
4584 if test -z "$LD"; then
4585 ac_verc_fail=yes
4586 else
4587 # Found it, now check the version.
4588 { echo "$as_me:$LINENO: checking version of $LD" >&5
4589 echo $ECHO_N "checking version of $LD... $ECHO_C" >&6; }
4590 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4591 case $ac_prog_version in
4592 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4593 2.1[3-9]*)
4594 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4595 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4597 esac
4598 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4599 echo "${ECHO_T}$ac_prog_version" >&6; }
4601 if test $ac_verc_fail = yes; then
4602 LD=: critic_missing="$critic_missing ld"
4606 # We need the physical current working directory. We cannot use the
4607 # "pwd -P" shell builtin since that's not portable. Instead we try to
4608 # find a pwd binary. Note that assigning to the PWD environment
4609 # variable might have some interesting side effects, so we don't do
4610 # that.
4611 # Extract the first word of "pwd", so it can be a program name with args.
4612 set dummy pwd; ac_word=$2
4613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4615 if test "${ac_cv_path_PWD_P+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618 case $PWD_P in
4619 [\\/]* | ?:[\\/]*)
4620 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 break 2
4634 done
4635 done
4636 IFS=$as_save_IFS
4638 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4640 esac
4642 PWD_P=$ac_cv_path_PWD_P
4643 if test -n "$PWD_P"; then
4644 { echo "$as_me:$LINENO: result: $PWD_P" >&5
4645 echo "${ECHO_T}$PWD_P" >&6; }
4646 else
4647 { echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6; }
4652 if test "$PWD_P" = no; then
4653 { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
4654 echo "$as_me: error: *** A pwd binary could not be found." >&2;}
4655 { (exit 1); exit 1; }; }
4658 # These programs are version sensitive.
4660 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4662 # Extract the first word of "$ac_prog", so it can be a program name with args.
4663 set dummy $ac_prog; ac_word=$2
4664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4666 if test "${ac_cv_prog_CC+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669 if test -n "$CC"; then
4670 ac_cv_prog_CC="$CC" # Let the user override the test.
4671 else
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4675 IFS=$as_save_IFS
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4679 ac_cv_prog_CC="$ac_prog"
4680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 break 2
4683 done
4684 done
4685 IFS=$as_save_IFS
4689 CC=$ac_cv_prog_CC
4690 if test -n "$CC"; then
4691 { echo "$as_me:$LINENO: result: $CC" >&5
4692 echo "${ECHO_T}$CC" >&6; }
4693 else
4694 { echo "$as_me:$LINENO: result: no" >&5
4695 echo "${ECHO_T}no" >&6; }
4699 test -n "$CC" && break
4700 done
4702 if test -z "$CC"; then
4703 ac_verc_fail=yes
4704 else
4705 # Found it, now check the version.
4706 { echo "$as_me:$LINENO: checking version of $CC" >&5
4707 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6; }
4708 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
4709 case $ac_prog_version in
4710 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4711 3.4* | 4.[0-9]* )
4712 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4713 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4715 esac
4716 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4717 echo "${ECHO_T}$ac_prog_version" >&6; }
4719 if test $ac_verc_fail = yes; then
4720 critic_missing="$critic_missing gcc"
4723 for ac_prog in gnumake gmake make
4725 # Extract the first word of "$ac_prog", so it can be a program name with args.
4726 set dummy $ac_prog; ac_word=$2
4727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4729 if test "${ac_cv_prog_MAKE+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732 if test -n "$MAKE"; then
4733 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4734 else
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_MAKE="$ac_prog"
4743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 break 2
4746 done
4747 done
4748 IFS=$as_save_IFS
4752 MAKE=$ac_cv_prog_MAKE
4753 if test -n "$MAKE"; then
4754 { echo "$as_me:$LINENO: result: $MAKE" >&5
4755 echo "${ECHO_T}$MAKE" >&6; }
4756 else
4757 { echo "$as_me:$LINENO: result: no" >&5
4758 echo "${ECHO_T}no" >&6; }
4762 test -n "$MAKE" && break
4763 done
4765 if test -z "$MAKE"; then
4766 ac_verc_fail=yes
4767 else
4768 # Found it, now check the version.
4769 { echo "$as_me:$LINENO: checking version of $MAKE" >&5
4770 echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6; }
4771 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4772 case $ac_prog_version in
4773 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4774 3.79* | 3.[89]*)
4775 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4776 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4778 esac
4779 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4780 echo "${ECHO_T}$ac_prog_version" >&6; }
4782 if test $ac_verc_fail = yes; then
4783 critic_missing="$critic_missing make"
4787 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4789 # Extract the first word of "$ac_prog", so it can be a program name with args.
4790 set dummy $ac_prog; ac_word=$2
4791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4793 if test "${ac_cv_prog_MSGFMT+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 else
4796 if test -n "$MSGFMT"; then
4797 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4798 else
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 for as_dir in $PATH
4802 IFS=$as_save_IFS
4803 test -z "$as_dir" && as_dir=.
4804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4806 ac_cv_prog_MSGFMT="$ac_prog"
4807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4808 break 2
4810 done
4811 done
4812 IFS=$as_save_IFS
4816 MSGFMT=$ac_cv_prog_MSGFMT
4817 if test -n "$MSGFMT"; then
4818 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4819 echo "${ECHO_T}$MSGFMT" >&6; }
4820 else
4821 { echo "$as_me:$LINENO: result: no" >&5
4822 echo "${ECHO_T}no" >&6; }
4826 test -n "$MSGFMT" && break
4827 done
4829 if test -z "$MSGFMT"; then
4830 ac_verc_fail=yes
4831 else
4832 # Found it, now check the version.
4833 { echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
4834 echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6; }
4835 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4836 case $ac_prog_version in
4837 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4838 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4839 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4840 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4842 esac
4843 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4844 echo "${ECHO_T}$ac_prog_version" >&6; }
4846 if test $ac_verc_fail = yes; then
4847 MSGFMT=: aux_missing="$aux_missing msgfmt"
4850 for ac_prog in makeinfo
4852 # Extract the first word of "$ac_prog", so it can be a program name with args.
4853 set dummy $ac_prog; ac_word=$2
4854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4856 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859 if test -n "$MAKEINFO"; then
4860 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_MAKEINFO="$ac_prog"
4870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4873 done
4874 done
4875 IFS=$as_save_IFS
4879 MAKEINFO=$ac_cv_prog_MAKEINFO
4880 if test -n "$MAKEINFO"; then
4881 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4882 echo "${ECHO_T}$MAKEINFO" >&6; }
4883 else
4884 { echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6; }
4889 test -n "$MAKEINFO" && break
4890 done
4892 if test -z "$MAKEINFO"; then
4893 ac_verc_fail=yes
4894 else
4895 # Found it, now check the version.
4896 { echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
4897 echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6; }
4898 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4899 case $ac_prog_version in
4900 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4901 4.*)
4902 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4903 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4905 esac
4906 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4907 echo "${ECHO_T}$ac_prog_version" >&6; }
4909 if test $ac_verc_fail = yes; then
4910 MAKEINFO=: aux_missing="$aux_missing makeinfo"
4913 for ac_prog in sed
4915 # Extract the first word of "$ac_prog", so it can be a program name with args.
4916 set dummy $ac_prog; ac_word=$2
4917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4919 if test "${ac_cv_prog_SED+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4921 else
4922 if test -n "$SED"; then
4923 ac_cv_prog_SED="$SED" # Let the user override the test.
4924 else
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932 ac_cv_prog_SED="$ac_prog"
4933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 break 2
4936 done
4937 done
4938 IFS=$as_save_IFS
4942 SED=$ac_cv_prog_SED
4943 if test -n "$SED"; then
4944 { echo "$as_me:$LINENO: result: $SED" >&5
4945 echo "${ECHO_T}$SED" >&6; }
4946 else
4947 { echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6; }
4952 test -n "$SED" && break
4953 done
4955 if test -z "$SED"; then
4956 ac_verc_fail=yes
4957 else
4958 # Found it, now check the version.
4959 { echo "$as_me:$LINENO: checking version of $SED" >&5
4960 echo $ECHO_N "checking version of $SED... $ECHO_C" >&6; }
4961 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
4962 case $ac_prog_version in
4963 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4964 3.0[2-9]*|3.[1-9]*|[4-9]*)
4965 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4966 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4968 esac
4969 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4970 echo "${ECHO_T}$ac_prog_version" >&6; }
4972 if test $ac_verc_fail = yes; then
4973 SED=: aux_missing="$aux_missing sed"
4977 for ac_prog in autoconf
4979 # Extract the first word of "$ac_prog", so it can be a program name with args.
4980 set dummy $ac_prog; ac_word=$2
4981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4983 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 else
4986 if test -n "$AUTOCONF"; then
4987 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4988 else
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996 ac_cv_prog_AUTOCONF="$ac_prog"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
5000 done
5001 done
5002 IFS=$as_save_IFS
5006 AUTOCONF=$ac_cv_prog_AUTOCONF
5007 if test -n "$AUTOCONF"; then
5008 { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
5009 echo "${ECHO_T}$AUTOCONF" >&6; }
5010 else
5011 { echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6; }
5016 test -n "$AUTOCONF" && break
5017 done
5018 test -n "$AUTOCONF" || AUTOCONF="no"
5020 case "x$AUTOCONF" in
5021 xno|x|x:) AUTOCONF=no ;;
5023 { echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5024 echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6; }
5025 if test "${libc_cv_autoconf_works+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5029 libc_cv_autoconf_works=yes
5030 else
5031 libc_cv_autoconf_works=no
5034 { echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
5035 echo "${ECHO_T}$libc_cv_autoconf_works" >&6; }
5036 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5038 esac
5039 if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
5040 # If --without-cvs they probably won't change configure.in, so no complaints.
5041 aux_missing="$aux_missing autoconf"
5044 test -n "$critic_missing" && { { echo "$as_me:$LINENO: error:
5045 *** These critical programs are missing or too old:$critic_missing
5046 *** Check the INSTALL file for required versions." >&5
5047 echo "$as_me: error:
5048 *** These critical programs are missing or too old:$critic_missing
5049 *** Check the INSTALL file for required versions." >&2;}
5050 { (exit 1); exit 1; }; }
5052 test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
5053 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5054 *** some features will be disabled.
5055 *** Check the INSTALL file for required versions." >&5
5056 echo "$as_me: WARNING:
5057 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5058 *** some features will be disabled.
5059 *** Check the INSTALL file for required versions." >&2;}
5061 # if using special system headers, find out the compiler's sekrit
5062 # header directory and add that to the list. NOTE: Only does the right
5063 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5064 if test -n "$sysheaders"; then
5065 ccheaders=`$CC -print-file-name=include`
5066 SYSINCLUDES="-nostdinc -isystem $ccheaders \
5067 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5068 if test -n "$CXX"; then
5069 cxxversion=`$CXX -dumpversion 2>&5` &&
5070 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5071 cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" &&
5072 CXX_SYSINCLUDES="-isystem $cxxheaders \
5073 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5079 # check if ranlib is necessary
5080 { echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
5081 echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6; }
5082 if test "${libc_cv_ranlib_necessary+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085 cat > conftest.c <<EOF
5086 int a;
5087 char b;
5088 void c(void) {}
5090 $CC $CFLAGS $CPPFLAGS -c conftest.c
5091 $AR cr conftest.a conftest.o
5092 cp conftest.a conftest2.a
5093 $RANLIB conftest.a
5094 if cmp -s conftest.a conftest2.a; then
5095 libc_cv_ranlib_necessary=no
5096 else
5097 libc_cv_ranlib_necessary=yes
5099 rm -rf conftest*
5101 { echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
5102 echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6; }
5103 if test "$libc_cv_ranlib_necessary" = no; then
5104 RANLIB=:
5107 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5108 # since this would lead to problems installing/building glibc.
5109 # LD_LIBRARY_PATH contains the current directory if one of the following
5110 # is true:
5111 # - one of the terminals (":" and ";") is the first or last sign
5112 # - two terminals occur directly after each other
5113 # - the path contains an element with a dot in it
5114 { echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
5115 echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6; }
5116 case ${LD_LIBRARY_PATH} in
5117 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5118 ld_library_path_setting="contains current directory"
5121 ld_library_path_setting="ok"
5123 esac
5124 { echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
5125 echo "${ECHO_T}$ld_library_path_setting" >&6; }
5126 if test "$ld_library_path_setting" != "ok"; then
5127 { { echo "$as_me:$LINENO: error:
5128 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5129 *** building glibc. Please change the environment variable
5130 *** and run configure again." >&5
5131 echo "$as_me: error:
5132 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5133 *** building glibc. Please change the environment variable
5134 *** and run configure again." >&2;}
5135 { (exit 1); exit 1; }; }
5138 { echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
5139 echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6; }
5140 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 else
5143 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5144 libc_cv_gcc_static_libgcc=
5145 else
5146 libc_cv_gcc_static_libgcc=-static-libgcc
5149 { echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
5150 echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6; }
5153 # Extract the first word of "bash", so it can be a program name with args.
5154 set dummy bash; ac_word=$2
5155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5157 if test "${ac_cv_path_BASH_SHELL+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160 case $BASH_SHELL in
5161 [\\/]* | ?:[\\/]*)
5162 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5172 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
5176 done
5177 done
5178 IFS=$as_save_IFS
5180 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5182 esac
5184 BASH_SHELL=$ac_cv_path_BASH_SHELL
5185 if test -n "$BASH_SHELL"; then
5186 { echo "$as_me:$LINENO: result: $BASH_SHELL" >&5
5187 echo "${ECHO_T}$BASH_SHELL" >&6; }
5188 else
5189 { echo "$as_me:$LINENO: result: no" >&5
5190 echo "${ECHO_T}no" >&6; }
5194 if test "$BASH_SHELL" != no &&
5195 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5196 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5197 libc_cv_have_bash2=yes
5198 else
5199 libc_cv_have_bash2=no
5203 if test "$BASH_SHELL" = no; then
5204 # Extract the first word of "ksh", so it can be a program name with args.
5205 set dummy ksh; ac_word=$2
5206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5208 if test "${ac_cv_path_KSH+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211 case $KSH in
5212 [\\/]* | ?:[\\/]*)
5213 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5227 done
5228 done
5229 IFS=$as_save_IFS
5231 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5233 esac
5235 KSH=$ac_cv_path_KSH
5236 if test -n "$KSH"; then
5237 { echo "$as_me:$LINENO: result: $KSH" >&5
5238 echo "${ECHO_T}$KSH" >&6; }
5239 else
5240 { echo "$as_me:$LINENO: result: no" >&5
5241 echo "${ECHO_T}no" >&6; }
5245 if test "$KSH" = no; then
5246 libc_cv_have_ksh=no
5247 else
5248 libc_cv_have_ksh=yes
5250 else
5251 KSH="$BASH_SHELL"
5253 libc_cv_have_ksh=yes
5257 for ac_prog in gawk mawk nawk awk
5259 # Extract the first word of "$ac_prog", so it can be a program name with args.
5260 set dummy $ac_prog; ac_word=$2
5261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5263 if test "${ac_cv_prog_AWK+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266 if test -n "$AWK"; then
5267 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5268 else
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5276 ac_cv_prog_AWK="$ac_prog"
5277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 break 2
5280 done
5281 done
5282 IFS=$as_save_IFS
5286 AWK=$ac_cv_prog_AWK
5287 if test -n "$AWK"; then
5288 { echo "$as_me:$LINENO: result: $AWK" >&5
5289 echo "${ECHO_T}$AWK" >&6; }
5290 else
5291 { echo "$as_me:$LINENO: result: no" >&5
5292 echo "${ECHO_T}no" >&6; }
5296 test -n "$AWK" && break
5297 done
5299 # Extract the first word of "perl", so it can be a program name with args.
5300 set dummy perl; ac_word=$2
5301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5303 if test "${ac_cv_path_PERL+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 else
5306 case $PERL in
5307 [\\/]* | ?:[\\/]*)
5308 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 for as_dir in $PATH
5314 IFS=$as_save_IFS
5315 test -z "$as_dir" && as_dir=.
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5318 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 break 2
5322 done
5323 done
5324 IFS=$as_save_IFS
5326 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5328 esac
5330 PERL=$ac_cv_path_PERL
5331 if test -n "$PERL"; then
5332 { echo "$as_me:$LINENO: result: $PERL" >&5
5333 echo "${ECHO_T}$PERL" >&6; }
5334 else
5335 { echo "$as_me:$LINENO: result: no" >&5
5336 echo "${ECHO_T}no" >&6; }
5340 if test "$PERL" != no &&
5341 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5342 PERL=no
5344 # Extract the first word of "install-info", so it can be a program name with args.
5345 set dummy install-info; ac_word=$2
5346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5348 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351 case $INSTALL_INFO in
5352 [\\/]* | ?:[\\/]*)
5353 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5358 for as_dir in $as_dummy
5360 IFS=$as_save_IFS
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5364 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366 break 2
5368 done
5369 done
5370 IFS=$as_save_IFS
5372 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5374 esac
5376 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5377 if test -n "$INSTALL_INFO"; then
5378 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5379 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5380 else
5381 { echo "$as_me:$LINENO: result: no" >&5
5382 echo "${ECHO_T}no" >&6; }
5386 # Extract the first word of "bison", so it can be a program name with args.
5387 set dummy bison; ac_word=$2
5388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5390 if test "${ac_cv_path_BISON+set}" = set; then
5391 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393 case $BISON in
5394 [\\/]* | ?:[\\/]*)
5395 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5400 for as_dir in $as_dummy
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5406 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 break 2
5410 done
5411 done
5412 IFS=$as_save_IFS
5414 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5416 esac
5418 BISON=$ac_cv_path_BISON
5419 if test -n "$BISON"; then
5420 { echo "$as_me:$LINENO: result: $BISON" >&5
5421 echo "${ECHO_T}$BISON" >&6; }
5422 else
5423 { echo "$as_me:$LINENO: result: no" >&5
5424 echo "${ECHO_T}no" >&6; }
5429 { echo "$as_me:$LINENO: checking for signed size_t type" >&5
5430 echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6; }
5431 if test "${libc_cv_signed_size_t+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5433 else
5434 echo '#include <stddef.h>
5435 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5436 if eval "$ac_cpp conftest.c 2>/dev/null" \
5437 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5438 libc_cv_signed_size_t=no
5439 else
5440 libc_cv_signed_size_t=yes
5442 rm -f conftest*
5444 { echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
5445 echo "${ECHO_T}$libc_cv_signed_size_t" >&6; }
5446 if test $libc_cv_signed_size_t = yes; then
5447 cat >> confdefs.h <<\EOF
5448 #undef __SIZE_TYPE__
5449 #define __SIZE_TYPE__ unsigned
5454 { echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
5455 echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6; }
5456 if test "${libc_cv_friendly_stddef+set}" = set; then
5457 echo $ECHO_N "(cached) $ECHO_C" >&6
5458 else
5459 cat >conftest.$ac_ext <<_ACEOF
5460 /* confdefs.h. */
5461 _ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h. */
5465 #define __need_size_t
5466 #define __need_wchar_t
5467 #include <stddef.h>
5468 #define __need_NULL
5469 #include <stddef.h>
5471 main ()
5473 size_t size; wchar_t wchar;
5474 #ifdef offsetof
5475 #error stddef.h ignored __need_*
5476 #endif
5477 if (&size == NULL || &wchar == NULL) abort ();
5479 return 0;
5481 _ACEOF
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5484 case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5487 esac
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_compile") 2>conftest.er1
5490 ac_status=$?
5491 grep -v '^ *+' conftest.er1 >conftest.err
5492 rm -f conftest.er1
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } && {
5496 test -z "$ac_c_werror_flag" ||
5497 test ! -s conftest.err
5498 } && test -s conftest.$ac_objext; then
5499 libc_cv_friendly_stddef=yes
5500 else
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5504 libc_cv_friendly_stddef=no
5507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509 { echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
5510 echo "${ECHO_T}$libc_cv_friendly_stddef" >&6; }
5511 if test $libc_cv_friendly_stddef = yes; then
5512 config_vars="$config_vars
5513 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5516 { echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
5517 echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6; }
5518 if test "${libc_cv_need_minus_P+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5520 else
5521 cat > conftest.S <<EOF
5522 #include "confdefs.h"
5523 /* Nothing whatsoever. */
5525 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527 (eval $ac_try) 2>&5
5528 ac_status=$?
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5531 libc_cv_need_minus_P=no
5532 else
5533 libc_cv_need_minus_P=yes
5535 rm -f conftest*
5537 { echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
5538 echo "${ECHO_T}$libc_cv_need_minus_P" >&6; }
5539 if test $libc_cv_need_minus_P = yes; then
5540 config_vars="$config_vars
5541 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5544 { echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
5545 echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6; }
5546 if test "${libc_cv_dot_text+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549 cat > conftest.s <<EOF
5550 .text
5552 libc_cv_dot_text=
5553 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 (eval $ac_try) 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5559 libc_cv_dot_text=.text
5561 rm -f conftest*
5564 if test -z "$libc_cv_dot_text"; then
5565 { echo "$as_me:$LINENO: result: no" >&5
5566 echo "${ECHO_T}no" >&6; }
5567 else
5568 { echo "$as_me:$LINENO: result: yes" >&5
5569 echo "${ECHO_T}yes" >&6; }
5572 { echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
5573 echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6; }
5574 if test "${libc_cv_asm_global_directive+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 else
5577 libc_cv_asm_global_directive=UNKNOWN
5578 for ac_globl in .globl .global .EXPORT; do
5579 cat > conftest.s <<EOF
5580 ${libc_cv_dot_text}
5581 ${ac_globl} foo
5582 foo:
5584 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 (eval $ac_try) 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; }; then
5590 libc_cv_asm_global_directive=${ac_globl}
5592 rm -f conftest*
5593 test $libc_cv_asm_global_directive != UNKNOWN && break
5594 done
5596 { echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
5597 echo "${ECHO_T}$libc_cv_asm_global_directive" >&6; }
5598 if test $libc_cv_asm_global_directive = UNKNOWN; then
5599 { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
5600 echo "$as_me: error: cannot determine asm global directive" >&2;}
5601 { (exit 1); exit 1; }; }
5602 else
5603 cat >>confdefs.h <<_ACEOF
5604 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
5605 _ACEOF
5609 { echo "$as_me:$LINENO: checking for .set assembler directive" >&5
5610 echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6; }
5611 if test "${libc_cv_asm_set_directive+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614 cat > conftest.s <<EOF
5615 ${libc_cv_dot_text}
5616 foo:
5617 .set glibc_conftest_frobozz,foo
5618 $libc_cv_asm_global_directive glibc_conftest_frobozz
5620 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5621 # (but it doesn't work), so we must do a linking check to be sure.
5622 cat > conftest1.c <<\EOF
5623 extern int glibc_conftest_frobozz;
5624 void _start() { glibc_conftest_frobozz = 1; }
5626 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5627 -nostartfiles -nostdlib \
5628 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5629 libc_cv_asm_set_directive=yes
5630 else
5631 libc_cv_asm_set_directive=no
5633 rm -f conftest*
5635 { echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
5636 echo "${ECHO_T}$libc_cv_asm_set_directive" >&6; }
5637 if test $libc_cv_asm_set_directive = yes; then
5638 cat >>confdefs.h <<\_ACEOF
5639 #define HAVE_ASM_SET_DIRECTIVE 1
5640 _ACEOF
5644 { echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
5645 echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6; }
5646 if test "${libc_cv_asm_type_prefix+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649 libc_cv_asm_type_prefix=no
5650 for ac_try_prefix in '@' '%' '#'; do
5651 cat > conftest.s <<EOF
5652 ${libc_cv_dot_text}
5653 ${libc_cv_asm_global_directive} foo
5654 .type foo, ${ac_try_prefix}object
5655 .size foo, 1
5656 foo:
5657 .byte 1
5659 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 (eval $ac_try) 2>&5
5662 ac_status=$?
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; }; then
5665 libc_cv_asm_type_prefix=${ac_try_prefix}
5667 rm -f conftest*
5668 test "x$libc_cv_asm_type_prefix" != xno && break
5669 done
5671 { echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
5672 echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6; }
5673 if test "x$libc_cv_asm_type_prefix" != xno; then
5674 cat >>confdefs.h <<_ACEOF
5675 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
5676 _ACEOF
5680 { echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
5681 echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6; }
5682 if test "${libc_cv_asm_symver_directive+set}" = set; then
5683 echo $ECHO_N "(cached) $ECHO_C" >&6
5684 else
5685 cat > conftest.s <<EOF
5686 ${libc_cv_dot_text}
5687 _sym:
5688 .symver _sym,sym@VERS
5690 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5691 libc_cv_asm_symver_directive=yes
5692 else
5693 libc_cv_asm_symver_directive=no
5695 rm -f conftest*
5697 { echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
5698 echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6; }
5699 { echo "$as_me:$LINENO: checking for ld --version-script" >&5
5700 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6; }
5701 if test "${libc_cv_ld_version_script_option+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704 if test $libc_cv_asm_symver_directive = yes; then
5705 cat > conftest.s <<EOF
5706 ${libc_cv_dot_text}
5707 _sym:
5708 .symver _sym,sym@VERS
5710 cat > conftest.map <<EOF
5711 VERS_1 {
5712 global: sym;
5715 VERS_2 {
5716 global: sym;
5717 } VERS_1;
5719 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5720 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
5721 -o conftest.so conftest.o
5722 -nostartfiles -nostdlib
5723 -Wl,--version-script,conftest.map
5724 1>&5'
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 (eval $ac_try) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; };
5730 then
5731 libc_cv_ld_version_script_option=yes
5732 else
5733 libc_cv_ld_version_script_option=no
5735 else
5736 libc_cv_ld_version_script_option=no
5738 else
5739 libc_cv_ld_version_script_option=no
5741 rm -f conftest*
5743 { echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
5744 echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6; }
5745 if test $shared != no &&
5746 test $libc_cv_asm_symver_directive = yes &&
5747 test $libc_cv_ld_version_script_option = yes &&
5748 test $enable_versioning = yes; then
5749 VERSIONING=yes
5750 cat >>confdefs.h <<\_ACEOF
5751 #define DO_VERSIONING 1
5752 _ACEOF
5754 else
5755 VERSIONING=no
5759 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
5760 echo "\
5761 *** WARNING: You should not compile GNU libc without versioning. Not using
5762 *** versioning will introduce incompatibilities so that old binaries
5763 *** will not run anymore.
5764 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
5766 if test $elf = yes; then
5767 { echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
5768 echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6; }
5769 if test "${libc_cv_asm_previous_directive+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772 cat > conftest.s <<EOF
5773 .section foo_section
5774 .previous
5776 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 (eval $ac_try) 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
5782 libc_cv_asm_previous_directive=yes
5783 else
5784 libc_cv_asm_previous_directive=no
5786 rm -f conftest*
5788 { echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
5789 echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6; }
5790 if test $libc_cv_asm_previous_directive = yes; then
5791 cat >>confdefs.h <<\_ACEOF
5792 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
5793 _ACEOF
5795 else
5796 { echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
5797 echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6; }
5798 if test "${libc_cv_asm_popsection_directive+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801 cat > conftest.s <<EOF
5802 .pushsection foo_section
5803 .popsection
5805 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 (eval $ac_try) 2>&5
5808 ac_status=$?
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; }; then
5811 libc_cv_asm_popsection_directive=yes
5812 else
5813 libc_cv_asm_popsection_directive=no
5815 rm -f conftest*
5817 { echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
5818 echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6; }
5819 if test $libc_cv_asm_popsection_directive = yes; then
5820 cat >>confdefs.h <<\_ACEOF
5821 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
5822 _ACEOF
5826 { echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
5827 echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6; }
5828 if test "${libc_cv_asm_protected_directive+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 else
5831 cat > conftest.s <<EOF
5832 .protected foo
5833 foo:
5834 .hidden bar
5835 bar:
5837 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 (eval $ac_try) 2>&5
5840 ac_status=$?
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; }; then
5843 libc_cv_asm_protected_directive=yes
5844 else
5845 { { echo "$as_me:$LINENO: error: assembler support for symbol visibility is required" >&5
5846 echo "$as_me: error: assembler support for symbol visibility is required" >&2;}
5847 { (exit 1); exit 1; }; }
5849 rm -f conftest*
5851 { echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
5852 echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6; }
5854 if test $libc_cv_asm_protected_directive = yes; then
5855 { echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
5856 echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6; }
5857 if test "${libc_cv_visibility_attribute+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860 cat > conftest.c <<EOF
5861 int foo __attribute__ ((visibility ("hidden"))) = 1;
5862 int bar __attribute__ ((visibility ("protected"))) = 1;
5864 libc_cv_visibility_attribute=no
5865 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 (eval $ac_try) 2>&5
5868 ac_status=$?
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; }; then
5871 if grep '\.hidden.*foo' conftest.s >/dev/null; then
5872 if grep '\.protected.*bar' conftest.s >/dev/null; then
5873 libc_cv_visibility_attribute=yes
5877 rm -f conftest.cs
5880 { echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
5881 echo "${ECHO_T}$libc_cv_visibility_attribute" >&6; }
5882 if test $libc_cv_visibility_attribute != yes; then
5883 { { echo "$as_me:$LINENO: error: compiler support for visibility attribute is required" >&5
5884 echo "$as_me: error: compiler support for visibility attribute is required" >&2;}
5885 { (exit 1); exit 1; }; }
5889 if test $libc_cv_visibility_attribute = yes; then
5890 { echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
5891 echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6; }
5892 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895 cat > conftest.c <<EOF
5896 int foo (int x);
5897 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
5898 int bar (int x) { return x; }
5900 libc_cv_broken_visibility_attribute=yes
5901 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
5902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5903 (eval $ac_try) 2>&5
5904 ac_status=$?
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); }; }; then
5907 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
5908 libc_cv_broken_visibility_attribute=no
5911 rm -f conftest.c conftest.s
5914 { echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
5915 echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6; }
5916 if test $libc_cv_broken_visibility_attribute = yes; then
5917 { { echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
5918 echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
5919 { (exit 1); exit 1; }; }
5923 { echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
5924 echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6; }
5925 if test "${libc_cv_broken_alias_attribute+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928 cat > conftest.c <<EOF
5929 extern int foo (int x) __asm ("xyzzy");
5930 int bar (int x) { return x; }
5931 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5932 extern int dfoo;
5933 extern __typeof (dfoo) dfoo __asm ("abccb");
5934 int dfoo = 1;
5936 libc_cv_broken_alias_attribute=yes
5937 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 (eval $ac_try) 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 if grep 'xyzzy' conftest.s >/dev/null &&
5944 grep 'abccb' conftest.s >/dev/null; then
5945 libc_cv_broken_alias_attribute=no
5948 rm -f conftest.c conftest.s
5951 { echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
5952 echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6; }
5953 if test $libc_cv_broken_alias_attribute = yes; then
5954 { { echo "$as_me:$LINENO: error: working alias attribute support required" >&5
5955 echo "$as_me: error: working alias attribute support required" >&2;}
5956 { (exit 1); exit 1; }; }
5959 if test $libc_cv_visibility_attribute = yes; then
5960 { echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
5961 echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6; }
5962 if test "${libc_cv_have_sdata_section+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965 echo "int i;" > conftest.c
5966 libc_cv_have_sdata_section=no
5967 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
5968 | grep '\.sdata' >/dev/null; then
5969 libc_cv_have_sdata_section=yes
5971 rm -f conftest.c conftest.so
5974 { echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
5975 echo "${ECHO_T}$libc_cv_have_sdata_section" >&6; }
5976 if test $libc_cv_have_sdata_section = yes; then
5977 cat >>confdefs.h <<\_ACEOF
5978 #define HAVE_SDATA_SECTION 1
5979 _ACEOF
5984 { echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
5985 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6; }
5986 if test "${libc_cv_initfini_array+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989 cat > conftest.c <<EOF
5990 int _start (void) { return 0; }
5991 int __start (void) { return 0; }
5992 int foo (void) { return 1; }
5993 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
5995 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
5996 -static -nostartfiles -nostdlib 1>&5'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 (eval $ac_try) 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }
6002 then
6003 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
6004 libc_cv_initfini_array=yes
6005 else
6006 libc_cv_initfini_array=no
6008 else
6009 libc_cv_initfini_array=no
6011 rm -f conftest*
6013 { echo "$as_me:$LINENO: result: $libc_cv_initfini_array" >&5
6014 echo "${ECHO_T}$libc_cv_initfini_array" >&6; }
6015 if test $libc_cv_initfini_array != yes; then
6016 { { echo "$as_me:$LINENO: error: Need linker with .init_array/.fini_array support." >&5
6017 echo "$as_me: error: Need linker with .init_array/.fini_array support." >&2;}
6018 { (exit 1); exit 1; }; }
6021 { echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
6022 echo $ECHO_N "checking for libunwind-support in compiler... $ECHO_C" >&6; }
6023 if test "${libc_cv_cc_with_libunwind+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6027 cat > conftest.c <<EOF
6028 int main (void) { return 0; }
6030 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6031 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6032 libc_cv_cc_with_libunwind=yes
6033 else
6034 libc_cv_cc_with_libunwind=no
6036 rm -f conftest*
6038 { echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
6039 echo "${ECHO_T}$libc_cv_cc_with_libunwind" >&6; }
6041 if test $libc_cv_cc_with_libunwind = yes; then
6042 cat >>confdefs.h <<\_ACEOF
6043 #define HAVE_CC_WITH_LIBUNWIND 1
6044 _ACEOF
6048 { echo "$as_me:$LINENO: checking for -z nodelete option" >&5
6049 echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6; }
6050 if test "${libc_cv_z_nodelete+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053 cat > conftest.c <<EOF
6054 int _start (void) { return 42; }
6056 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6057 -fPIC -shared -o conftest.so conftest.c
6058 -nostartfiles -nostdlib
6059 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061 (eval $ac_try) 2>&5
6062 ac_status=$?
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }
6065 then
6066 libc_cv_z_nodelete=yes
6067 else
6068 { { echo "$as_me:$LINENO: error: linker with -z nodelete support required" >&5
6069 echo "$as_me: error: linker with -z nodelete support required" >&2;}
6070 { (exit 1); exit 1; }; }
6072 rm -f conftest*
6074 { echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
6075 echo "${ECHO_T}$libc_cv_z_nodelete" >&6; }
6077 { echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
6078 echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6; }
6079 if test "${libc_cv_z_nodlopen+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082 cat > conftest.c <<EOF
6083 int _start (void) { return 42; }
6085 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6086 -fPIC -shared -o conftest.so conftest.c
6087 -nostartfiles -nostdlib
6088 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 (eval $ac_try) 2>&5
6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }
6094 then
6095 libc_cv_z_nodlopen=yes
6096 else
6097 { { echo "$as_me:$LINENO: error: linker with -z nodlopen support required" >&5
6098 echo "$as_me: error: linker with -z nodlopen support required" >&2;}
6099 { (exit 1); exit 1; }; }
6101 rm -f conftest*
6103 { echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
6104 echo "${ECHO_T}$libc_cv_z_nodlopen" >&6; }
6106 { echo "$as_me:$LINENO: checking for -z initfirst option" >&5
6107 echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6; }
6108 if test "${libc_cv_z_initfirst+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111 cat > conftest.c <<EOF
6112 int _start (void) { return 42; }
6114 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6115 -fPIC -shared -o conftest.so conftest.c
6116 -nostartfiles -nostdlib
6117 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119 (eval $ac_try) 2>&5
6120 ac_status=$?
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; }
6123 then
6124 libc_cv_z_initfirst=yes
6125 else
6126 { { echo "$as_me:$LINENO: error: linker with -z initfirst support required" >&5
6127 echo "$as_me: error: linker with -z initfirst support required" >&2;}
6128 { (exit 1); exit 1; }; }
6130 rm -f conftest*
6132 { echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
6133 echo "${ECHO_T}$libc_cv_z_initfirst" >&6; }
6135 case "$base_machine" in
6136 i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*)
6137 { echo "$as_me:$LINENO: checking for -z relro option" >&5
6138 echo $ECHO_N "checking for -z relro option... $ECHO_C" >&6; }
6139 if test "${libc_cv_z_relro+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142 libc_cv_z_relro=no
6143 if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 (eval $ac_try) 2>&5
6146 ac_status=$?
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }
6149 then
6150 if { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5'
6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 (eval $ac_try) 2>&5
6153 ac_status=$?
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; }
6156 then
6157 libc_cv_z_relro=yes
6161 { echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
6162 echo "${ECHO_T}$libc_cv_z_relro" >&6; }
6163 if test "$libc_cv_z_relro" = no; then
6164 { { echo "$as_me:$LINENO: error: linker with -z relro support required" >&5
6165 echo "$as_me: error: linker with -z relro support required" >&2;}
6166 { (exit 1); exit 1; }; }
6169 *) ;;
6170 esac
6172 { echo "$as_me:$LINENO: checking for -Bgroup option" >&5
6173 echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6; }
6174 if test "${libc_cv_Bgroup+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 else
6177 cat > conftest.c <<EOF
6178 int _start (void) { return 42; }
6180 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6181 -fPIC -shared -o conftest.so conftest.c
6182 -Wl,-Bgroup -nostdlib 1>&5'
6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184 (eval $ac_try) 2>&5
6185 ac_status=$?
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; }
6188 then
6189 libc_cv_Bgroup=yes
6190 else
6191 libc_cv_Bgroup=no
6193 rm -f conftest*
6195 { echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
6196 echo "${ECHO_T}$libc_cv_Bgroup" >&6; }
6199 { echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
6200 echo $ECHO_N "checking for libgcc_s suffix... $ECHO_C" >&6; }
6201 if test "${libc_cv_libgcc_s_suffix+set}" = set; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204 cat > conftest.c <<EOF
6205 int main (void) { return 0; }
6207 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6208 -fPIC -shared -shared-libgcc -o conftest.so \
6209 conftest.c -v 2>&1 >/dev/null \
6210 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6211 rm -f conftest*
6213 { echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
6214 echo "${ECHO_T}$libc_cv_libgcc_s_suffix" >&6; }
6217 { echo "$as_me:$LINENO: checking for --as-needed option" >&5
6218 echo $ECHO_N "checking for --as-needed option... $ECHO_C" >&6; }
6219 if test "${libc_cv_as_needed+set}" = set; then
6220 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 else
6222 cat > conftest.c <<EOF
6223 int main (void) { return 0; }
6225 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6226 -fPIC -shared -o conftest.so conftest.c
6227 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6228 -nostdlib 1>&5'
6229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 (eval $ac_try) 2>&5
6231 ac_status=$?
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }; }
6234 then
6235 libc_cv_as_needed=yes
6236 else
6237 libc_cv_as_needed=no
6239 rm -f conftest*
6241 { echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
6242 echo "${ECHO_T}$libc_cv_as_needed" >&6; }
6245 ASFLAGS_config=
6246 { echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
6247 echo $ECHO_N "checking whether --noexecstack is desirable for .S files... $ECHO_C" >&6; }
6248 if test "${libc_cv_as_noexecstack+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251 cat > conftest.c <<EOF
6252 void foo (void) { }
6254 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6255 -S -o conftest.s conftest.c 1>&5'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257 (eval $ac_try) 2>&5
6258 ac_status=$?
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; } \
6261 && grep -q .note.GNU-stack conftest.s \
6262 && { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wa,--noexecstack
6263 -c -o conftest.o conftest.s 1>&5'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 (eval $ac_try) 2>&5
6266 ac_status=$?
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; }
6269 then
6270 libc_cv_as_noexecstack=yes
6271 else
6272 libc_cv_as_noexecstack=no
6274 rm -f conftest*
6276 { echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
6277 echo "${ECHO_T}$libc_cv_as_noexecstack" >&6; }
6278 if test $libc_cv_as_noexecstack = yes; then
6279 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6283 { echo "$as_me:$LINENO: checking for -z combreloc" >&5
6284 echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6; }
6285 if test "${libc_cv_z_combreloc+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 else
6288 cat > conftest.c <<EOF
6289 extern int bar (int);
6290 extern int mumble;
6291 int foo (void) { return bar (mumble); }
6293 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6294 -fPIC -shared -o conftest.so conftest.c
6295 -nostdlib -nostartfiles
6296 -Wl,-z,combreloc 1>&5'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 (eval $ac_try) 2>&5
6299 ac_status=$?
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }
6302 then
6303 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6304 libc_cv_z_combreloc=yes
6305 else
6306 libc_cv_z_combreloc=no
6308 else
6309 libc_cv_z_combreloc=no
6311 rm -f conftest*
6313 { echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
6314 echo "${ECHO_T}$libc_cv_z_combreloc" >&6; }
6315 if test "$libc_cv_z_combreloc" = yes; then
6316 cat >>confdefs.h <<\_ACEOF
6317 #define HAVE_Z_COMBRELOC 1
6318 _ACEOF
6323 { echo "$as_me:$LINENO: checking for -z execstack" >&5
6324 echo $ECHO_N "checking for -z execstack... $ECHO_C" >&6; }
6325 if test "${libc_cv_z_execstack+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328 cat > conftest.c <<EOF
6329 int _start (void) { return 42; }
6331 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6332 -fPIC -shared -o conftest.so conftest.c
6333 -Wl,-z,execstack -nostdlib
6334 1>&5'
6335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 (eval $ac_try) 2>&5
6337 ac_status=$?
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; }
6340 then
6341 libc_cv_z_execstack=yes
6342 else
6343 libc_cv_z_execstack=no
6345 rm -f conftest*
6347 { echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
6348 echo "${ECHO_T}$libc_cv_z_execstack" >&6; }
6351 { echo "$as_me:$LINENO: checking for -fpie" >&5
6352 echo $ECHO_N "checking for -fpie... $ECHO_C" >&6; }
6353 if test "${libc_cv_fpie+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356 cat > conftest.c <<EOF
6357 int foo;
6358 main () { return 0;}
6360 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6361 -o conftest conftest.c 1>&5'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 (eval $ac_try) 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }
6367 then
6368 libc_cv_fpie=yes
6369 else
6370 libc_cv_fpie=no
6372 rm -f conftest*
6374 { echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
6375 echo "${ECHO_T}$libc_cv_fpie" >&6; }
6379 { echo "$as_me:$LINENO: checking for --hash-style option" >&5
6380 echo $ECHO_N "checking for --hash-style option... $ECHO_C" >&6; }
6381 if test "${libc_cv_hashstyle+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 else
6384 cat > conftest.c <<EOF
6385 int _start (void) { return 42; }
6387 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6388 -fPIC -shared -o conftest.so conftest.c
6389 -Wl,--hash-style=both -nostdlib 1>&5'
6390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 (eval $ac_try) 2>&5
6392 ac_status=$?
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; }
6395 then
6396 libc_cv_hashstyle=yes
6397 else
6398 libc_cv_hashstyle=no
6400 rm -f conftest*
6402 { echo "$as_me:$LINENO: result: $libc_cv_hashstyle" >&5
6403 echo "${ECHO_T}$libc_cv_hashstyle" >&6; }
6407 { echo "$as_me:$LINENO: checking for -fno-toplevel-reorder" >&5
6408 echo $ECHO_N "checking for -fno-toplevel-reorder... $ECHO_C" >&6; }
6409 if test "${libc_cv_fno_toplevel_reorder+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 else
6412 cat > conftest.c <<EOF
6413 int foo;
6415 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder
6416 conftest.c 1>&5'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 (eval $ac_try) 2>&5
6419 ac_status=$?
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; }
6422 then
6423 libc_cv_fno_toplevel_reorder=yes
6424 else
6425 libc_cv_fno_toplevel_reorder=no
6427 rm -f conftest*
6429 { echo "$as_me:$LINENO: result: $libc_cv_fno_toplevel_reorder" >&5
6430 echo "${ECHO_T}$libc_cv_fno_toplevel_reorder" >&6; }
6431 if test $libc_cv_fno_toplevel_reorder = yes; then
6432 fno_unit_at_a_time=-fno-toplevel-reorder
6433 else
6434 fno_unit_at_a_time=-fno-unit-at-a-time
6438 { echo "$as_me:$LINENO: checking for -fstack-protector" >&5
6439 echo $ECHO_N "checking for -fstack-protector... $ECHO_C" >&6; }
6440 if test "${libc_cv_ssp+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443 cat > conftest.c <<EOF
6444 int foo;
6445 main () { return 0;}
6447 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -fstack-protector
6448 -o conftest conftest.c 1>&5'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }
6454 then
6455 libc_cv_ssp=yes
6456 else
6457 libc_cv_ssp=no
6459 rm -f conftest*
6461 { echo "$as_me:$LINENO: result: $libc_cv_ssp" >&5
6462 echo "${ECHO_T}$libc_cv_ssp" >&6; }
6465 { echo "$as_me:$LINENO: checking for -fgnu89-inline" >&5
6466 echo $ECHO_N "checking for -fgnu89-inline... $ECHO_C" >&6; }
6467 if test "${libc_cv_gnu89_inline+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6469 else
6470 cat > conftest.c <<EOF
6471 int foo;
6472 #ifdef __GNUC_GNU_INLINE__
6473 main () { return 0;}
6474 #else
6475 #error
6476 #endif
6478 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6479 -o conftest.s conftest.c 1>&5'
6480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 (eval $ac_try) 2>&5
6482 ac_status=$?
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; }
6485 then
6486 libc_cv_gnu89_inline=yes
6487 else
6488 libc_cv_gnu89_inline=no
6490 rm -f conftest*
6492 { echo "$as_me:$LINENO: result: $libc_cv_gnu89_inline" >&5
6493 echo "${ECHO_T}$libc_cv_gnu89_inline" >&6; }
6494 if test $libc_cv_gnu89_inline = yes; then
6495 libc_cv_gnu89_inline=-fgnu89-inline
6496 else
6497 libc_cv_gnu89_inline=
6501 if test $elf != yes; then
6502 { echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
6503 echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6; }
6504 if test "${libc_cv_have_initfini+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507 cat >conftest.$ac_ext <<_ACEOF
6508 /* confdefs.h. */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6515 main ()
6517 asm (".section .init");
6518 asm (".section .fini");
6519 asm ("${libc_cv_dot_text}");
6521 return 0;
6523 _ACEOF
6524 rm -f conftest.$ac_objext
6525 if { (ac_try="$ac_compile"
6526 case "(($ac_try" in
6527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6528 *) ac_try_echo=$ac_try;;
6529 esac
6530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531 (eval "$ac_compile") 2>conftest.er1
6532 ac_status=$?
6533 grep -v '^ *+' conftest.er1 >conftest.err
6534 rm -f conftest.er1
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } && {
6538 test -z "$ac_c_werror_flag" ||
6539 test ! -s conftest.err
6540 } && test -s conftest.$ac_objext; then
6541 libc_cv_have_initfini=yes
6542 else
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6546 libc_cv_have_initfini=no
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551 { echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
6552 echo "${ECHO_T}$libc_cv_have_initfini" >&6; }
6553 if test $libc_cv_have_initfini = yes; then
6554 cat >>confdefs.h <<\_ACEOF
6555 #define HAVE_INITFINI 1
6556 _ACEOF
6561 if test $elf = yes; then
6562 { echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
6563 echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6; }
6564 if test "${libc_cv_have_section_quotes+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 else
6567 cat > conftest.c <<EOF
6568 static const int foo
6569 __attribute__ ((section ("bar"))) = 1;
6571 if ${CC-cc} -S conftest.c -o conftest.s; then
6572 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6573 libc_cv_have_section_quotes=yes
6574 else
6575 libc_cv_have_section_quotes=no
6577 else
6578 libc_cv_have_section_quotes=unknown
6580 rm -f conftest.cs
6583 { echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
6584 echo "${ECHO_T}$libc_cv_have_section_quotes" >&6; }
6585 if test $libc_cv_have_section_quotes = yes; then
6586 cat >>confdefs.h <<\_ACEOF
6587 #define HAVE_SECTION_QUOTES 1
6588 _ACEOF
6595 if test $elf = yes; then
6596 libc_cv_asm_underscores=no
6597 else
6598 if test $ac_cv_prog_cc_works = yes; then
6599 { echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6600 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6; }
6601 if test "${libc_cv_asm_underscores+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604 cat >conftest.$ac_ext <<_ACEOF
6605 /* confdefs.h. */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6610 asm ("_glibc_foobar:");
6612 main ()
6614 glibc_foobar ();
6616 return 0;
6618 _ACEOF
6619 rm -f conftest.$ac_objext conftest$ac_exeext
6620 if { (ac_try="$ac_link"
6621 case "(($ac_try" in
6622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6623 *) ac_try_echo=$ac_try;;
6624 esac
6625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6626 (eval "$ac_link") 2>conftest.er1
6627 ac_status=$?
6628 grep -v '^ *+' conftest.er1 >conftest.err
6629 rm -f conftest.er1
6630 cat conftest.err >&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } && {
6633 test -z "$ac_c_werror_flag" ||
6634 test ! -s conftest.err
6635 } && test -s conftest$ac_exeext &&
6636 $as_test_x conftest$ac_exeext; then
6637 libc_cv_asm_underscores=yes
6638 else
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6642 libc_cv_asm_underscores=no
6645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6646 conftest$ac_exeext conftest.$ac_ext
6648 { echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
6649 echo "${ECHO_T}$libc_cv_asm_underscores" >&6; }
6650 else
6651 { echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6652 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6; }
6653 if test "${libc_cv_asm_underscores+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 else
6656 cat > conftest.$ac_ext <<EOF
6657 #line $LINENO "configure"
6658 #include "confdefs.h"
6659 void underscore_test(void) {
6660 return; }
6662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6663 (eval $ac_compile) 2>&5
6664 ac_status=$?
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; then
6667 if grep _underscore_test conftest* >/dev/null; then
6668 rm -f conftest*
6669 libc_cv_asm_underscores=yes
6670 else
6671 rm -f conftest*
6672 libc_cv_asm_underscores=no
6674 else
6675 echo "configure: failed program was:" >&5
6676 cat conftest.$ac_ext >&5
6677 rm -f conftest*
6678 libc_cv_asm_underscores=no
6680 rm -f conftest*
6682 { echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
6683 echo "${ECHO_T}$libc_cv_asm_underscores" >&6; }
6686 if test $libc_cv_asm_underscores = no; then
6687 cat >>confdefs.h <<\_ACEOF
6688 #define NO_UNDERSCORES 1
6689 _ACEOF
6693 if test $elf = yes; then
6694 libc_cv_weak_symbols=yes
6697 { echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
6698 echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6; }
6699 if test "${libc_cv_asm_weak_directive+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702 cat > conftest.s <<EOF
6703 ${libc_cv_dot_text}
6704 ${libc_cv_asm_global_directive} foo
6705 foo:
6706 .weak foo
6707 .weak bar; bar = foo
6709 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 (eval $ac_try) 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6715 libc_cv_asm_weak_directive=yes
6716 else
6717 libc_cv_asm_weak_directive=no
6719 rm -f conftest*
6721 { echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
6722 echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6; }
6724 if test $libc_cv_asm_weak_directive = no; then
6725 { echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
6726 echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6; }
6727 if test "${libc_cv_asm_weakext_directive+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730 cat > conftest.s <<EOF
6731 ${libc_cv_dot_text}
6732 ${libc_cv_asm_global_directive} foo
6733 foo:
6734 .weakext bar foo
6735 .weakext baz
6736 ${libc_cv_asm_global_directive} baz
6737 baz:
6739 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741 (eval $ac_try) 2>&5
6742 ac_status=$?
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
6745 libc_cv_asm_weakext_directive=yes
6746 else
6747 libc_cv_asm_weakext_directive=no
6749 rm -f conftest*
6751 { echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
6752 echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6; }
6754 fi # no .weak
6756 if test $libc_cv_asm_weak_directive = yes; then
6757 cat >>confdefs.h <<\_ACEOF
6758 #define HAVE_ASM_WEAK_DIRECTIVE 1
6759 _ACEOF
6761 elif test $libc_cv_asm_weakext_directive = yes; then
6762 cat >>confdefs.h <<\_ACEOF
6763 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
6764 _ACEOF
6768 { echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
6769 echo $ECHO_N "checking whether CFI directives are supported... $ECHO_C" >&6; }
6770 if test "${libc_cv_asm_cfi_directives+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 else
6773 case $machine in
6774 sparc/sparc64*) cfi_offset=2047;;
6775 *) cfi_offset=0;;
6776 esac
6777 cat > conftest.s <<EOF
6778 .text
6779 .type func,%function
6780 func:
6781 .cfi_startproc
6782 .cfi_remember_state
6783 .cfi_rel_offset 1, $cfi_offset
6784 .cfi_endproc
6786 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6788 (eval $ac_try) 2>&5
6789 ac_status=$?
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); }; }; then
6792 libc_cv_asm_cfi_directives=yes
6793 else
6794 libc_cv_asm_cfi_directives=no
6796 rm -f conftest*
6798 { echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
6799 echo "${ECHO_T}$libc_cv_asm_cfi_directives" >&6; }
6800 if test $libc_cv_asm_cfi_directives = yes; then
6801 cat >>confdefs.h <<\_ACEOF
6802 #define HAVE_ASM_CFI_DIRECTIVES 1
6803 _ACEOF
6807 { echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
6808 echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6; }
6809 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 else
6812 cat > conftest.c <<\EOF
6813 _start () {}
6814 int __eh_pc;
6815 __throw () {}
6817 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6818 -nostdlib -nostartfiles -Wl,--no-whole-archive
6819 -o conftest conftest.c 1>&5'
6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821 (eval $ac_try) 2>&5
6822 ac_status=$?
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; }; then
6825 libc_cv_ld_no_whole_archive=yes
6826 else
6827 libc_cv_ld_no_whole_archive=no
6829 rm -f conftest*
6831 { echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
6832 echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6; }
6833 if test $libc_cv_ld_no_whole_archive = yes; then
6834 no_whole_archive=-Wl,--no-whole-archive
6837 { echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
6838 echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6; }
6839 if test "${libc_cv_gcc_exceptions+set}" = set; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 else
6842 cat > conftest.c <<\EOF
6843 _start () {}
6844 int __eh_pc;
6845 __throw () {}
6847 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6848 -nostdlib -nostartfiles -fexceptions
6849 -o conftest conftest.c 1>&5'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 (eval $ac_try) 2>&5
6852 ac_status=$?
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6855 libc_cv_gcc_exceptions=yes
6856 else
6857 libc_cv_gcc_exceptions=no
6859 rm -f conftest*
6861 { echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
6862 echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6; }
6863 if test $libc_cv_gcc_exceptions = yes; then
6864 exceptions=-fexceptions
6867 if test "$host_cpu" = powerpc ; then
6868 # Check for a bug present in at least versions 2.8.x of GCC
6869 # and versions 1.0.x of EGCS.
6870 { echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
6871 echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6; }
6872 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 else
6875 cat >conftest.$ac_ext <<_ACEOF
6876 /* confdefs.h. */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6881 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
6883 main ()
6887 return 0;
6889 _ACEOF
6890 rm -f conftest.$ac_objext
6891 if { (ac_try="$ac_compile"
6892 case "(($ac_try" in
6893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6894 *) ac_try_echo=$ac_try;;
6895 esac
6896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6897 (eval "$ac_compile") 2>conftest.er1
6898 ac_status=$?
6899 grep -v '^ *+' conftest.er1 >conftest.err
6900 rm -f conftest.er1
6901 cat conftest.err >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } && {
6904 test -z "$ac_c_werror_flag" ||
6905 test ! -s conftest.err
6906 } && test -s conftest.$ac_objext; then
6907 libc_cv_c_asmcr0_bug='no'
6908 else
6909 echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.$ac_ext >&5
6912 libc_cv_c_asmcr0_bug='yes'
6915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6917 { echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
6918 echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6; }
6919 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
6920 cat >>confdefs.h <<\_ACEOF
6921 #define BROKEN_PPC_ASM_CR0 1
6922 _ACEOF
6927 { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
6928 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
6929 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932 cat > conftest.c <<EOF
6933 #line $LINENO "configure"
6934 int foo (int a)
6936 a = __builtin_expect (a, 10);
6937 return a == 10 ? 0 : 1;
6940 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
6941 -o conftest conftest.c -lgcc >&5'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 (eval $ac_try) 2>&5
6944 ac_status=$?
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6947 libc_cv_gcc_builtin_expect=yes
6948 else
6949 libc_cv_gcc_builtin_expect=no
6951 rm -f conftest*
6953 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
6954 echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6; }
6955 if test "$libc_cv_gcc_builtin_expect" = yes; then
6956 cat >>confdefs.h <<\_ACEOF
6957 #define HAVE_BUILTIN_EXPECT 1
6958 _ACEOF
6962 { echo "$as_me:$LINENO: checking for __builtin_memset" >&5
6963 echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6; }
6964 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967 cat > conftest.c <<\EOF
6968 void zero (void *x)
6970 __builtin_memset (x, 0, 1000);
6973 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
6974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6975 (eval $ac_try) 2>&5
6976 ac_status=$?
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); }; };
6979 then
6980 libc_cv_gcc_builtin_memset=no
6981 else
6982 libc_cv_gcc_builtin_memset=yes
6984 rm -f conftest*
6986 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
6987 echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6; }
6988 if test "$libc_cv_gcc_builtin_memset" = yes ; then
6989 cat >>confdefs.h <<\_ACEOF
6990 #define HAVE_BUILTIN_MEMSET 1
6991 _ACEOF
6995 { echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
6996 echo $ECHO_N "checking for redirection of built-in functions... $ECHO_C" >&6; }
6997 if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000 cat > conftest.c <<\EOF
7001 extern char *strstr (const char *, const char *) __asm ("my_strstr");
7002 char *foo (const char *a, const char *b)
7004 return __builtin_strstr (a, b);
7007 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
7008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 (eval $ac_try) 2>&5
7010 ac_status=$?
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); }; };
7013 then
7014 libc_cv_gcc_builtin_redirection=yes
7015 else
7016 libc_cv_gcc_builtin_redirection=no
7018 rm -f conftest*
7020 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
7021 echo "${ECHO_T}$libc_cv_gcc_builtin_redirection" >&6; }
7022 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
7023 cat >>confdefs.h <<\_ACEOF
7024 #define HAVE_BUILTIN_REDIRECTION 1
7025 _ACEOF
7029 if test "x$use__thread" != xno; then
7030 { echo "$as_me:$LINENO: checking for __thread" >&5
7031 echo $ECHO_N "checking for __thread... $ECHO_C" >&6; }
7032 if test "${libc_cv_gcc___thread+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035 cat > conftest.c <<\EOF
7036 __thread int a = 42;
7038 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 (eval $ac_try) 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; }; then
7044 libc_cv_gcc___thread=yes
7045 else
7046 libc_cv_gcc___thread=no
7048 rm -f conftest*
7050 { echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
7051 echo "${ECHO_T}$libc_cv_gcc___thread" >&6; }
7052 if test "$libc_cv_gcc___thread" = yes; then
7053 cat >>confdefs.h <<\_ACEOF
7054 #define HAVE___THREAD 1
7055 _ACEOF
7058 else
7059 libc_cv_gcc___thread=no
7062 if test "$libc_cv_gcc___thread" = yes; then
7063 { echo "$as_me:$LINENO: checking for tls_model attribute" >&5
7064 echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6; }
7065 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 else
7068 cat > conftest.c <<\EOF
7069 extern __thread int a __attribute__((tls_model ("initial-exec")));
7071 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 (eval $ac_try) 2>&5
7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7077 libc_cv_gcc_tls_model_attr=yes
7078 else
7079 libc_cv_gcc_tls_model_attr=no
7081 rm -f conftest*
7083 { echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
7084 echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6; }
7085 if test "$libc_cv_gcc_tls_model_attr" = yes; then
7086 cat >>confdefs.h <<\_ACEOF
7087 #define HAVE_TLS_MODEL_ATTRIBUTE 1
7088 _ACEOF
7093 { echo "$as_me:$LINENO: checking for libgd" >&5
7094 echo $ECHO_N "checking for libgd... $ECHO_C" >&6; }
7095 if test "$with_gd" != "no"; then
7096 old_CFLAGS="$CFLAGS"
7097 CFLAGS="$CFLAGS $libgd_include"
7098 old_LDFLAGS="$LDFLAGS"
7099 LDFLAGS="$LDFLAGS $libgd_ldflags"
7100 old_LIBS="$LIBS"
7101 LIBS="$LIBS -lgd -lpng -lz -lm"
7102 cat >conftest.$ac_ext <<_ACEOF
7103 /* confdefs.h. */
7104 _ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7108 #include <gd.h>
7110 main ()
7112 gdImagePng (0, 0)
7114 return 0;
7116 _ACEOF
7117 rm -f conftest.$ac_objext conftest$ac_exeext
7118 if { (ac_try="$ac_link"
7119 case "(($ac_try" in
7120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7121 *) ac_try_echo=$ac_try;;
7122 esac
7123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7124 (eval "$ac_link") 2>conftest.er1
7125 ac_status=$?
7126 grep -v '^ *+' conftest.er1 >conftest.err
7127 rm -f conftest.er1
7128 cat conftest.err >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); } && {
7131 test -z "$ac_c_werror_flag" ||
7132 test ! -s conftest.err
7133 } && test -s conftest$ac_exeext &&
7134 $as_test_x conftest$ac_exeext; then
7135 LIBGD=yes
7136 else
7137 echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.$ac_ext >&5
7140 LIBGD=no
7143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7144 conftest$ac_exeext conftest.$ac_ext
7145 CFLAGS="$old_CFLAGS"
7146 LDFLAGS="$old_LDFLAGS"
7147 LIBS="$old_LIBS"
7148 else
7149 LIBGD=no
7151 { echo "$as_me:$LINENO: result: $LIBGD" >&5
7152 echo "${ECHO_T}$LIBGD" >&6; }
7155 # SELinux detection
7156 if test x$with_selinux = xno ; then
7157 have_selinux=no;
7158 else
7159 # See if we have the SELinux library
7160 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
7161 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
7162 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165 ac_check_lib_save_LIBS=$LIBS
7166 LIBS="-lselinux $LIBS"
7167 cat >conftest.$ac_ext <<_ACEOF
7168 /* confdefs.h. */
7169 _ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7174 /* Override any GCC internal prototype to avoid an error.
7175 Use char because int might match the return type of a GCC
7176 builtin and then its argument prototype would still apply. */
7177 #ifdef __cplusplus
7178 extern "C"
7179 #endif
7180 char is_selinux_enabled ();
7182 main ()
7184 return is_selinux_enabled ();
7186 return 0;
7188 _ACEOF
7189 rm -f conftest.$ac_objext conftest$ac_exeext
7190 if { (ac_try="$ac_link"
7191 case "(($ac_try" in
7192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7193 *) ac_try_echo=$ac_try;;
7194 esac
7195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7196 (eval "$ac_link") 2>conftest.er1
7197 ac_status=$?
7198 grep -v '^ *+' conftest.er1 >conftest.err
7199 rm -f conftest.er1
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } && {
7203 test -z "$ac_c_werror_flag" ||
7204 test ! -s conftest.err
7205 } && test -s conftest$ac_exeext &&
7206 $as_test_x conftest$ac_exeext; then
7207 ac_cv_lib_selinux_is_selinux_enabled=yes
7208 else
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7212 ac_cv_lib_selinux_is_selinux_enabled=no
7215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7216 conftest$ac_exeext conftest.$ac_ext
7217 LIBS=$ac_check_lib_save_LIBS
7219 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7220 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7221 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
7222 have_selinux=yes
7223 else
7224 have_selinux=no
7227 # See if we have the SELinux header with the NSCD permissions in it.
7228 if test x$have_selinux = xyes ; then
7229 { echo "$as_me:$LINENO: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7230 echo $ECHO_N "checking for NSCD Flask permissions in selinux/av_permissions.h... $ECHO_C" >&6; }
7231 cat >conftest.$ac_ext <<_ACEOF
7232 /* confdefs.h. */
7233 _ACEOF
7234 cat confdefs.h >>conftest.$ac_ext
7235 cat >>conftest.$ac_ext <<_ACEOF
7236 /* end confdefs.h. */
7237 #include <selinux/av_permissions.h>
7239 main ()
7241 #ifdef NSCD__SHMEMHOST
7242 return 0;
7243 #else
7244 #error NSCD__SHMEMHOST not defined
7245 #endif
7247 return 0;
7249 _ACEOF
7250 rm -f conftest.$ac_objext
7251 if { (ac_try="$ac_compile"
7252 case "(($ac_try" in
7253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7254 *) ac_try_echo=$ac_try;;
7255 esac
7256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7257 (eval "$ac_compile") 2>conftest.er1
7258 ac_status=$?
7259 grep -v '^ *+' conftest.er1 >conftest.err
7260 rm -f conftest.er1
7261 cat conftest.err >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } && {
7264 test -z "$ac_c_werror_flag" ||
7265 test ! -s conftest.err
7266 } && test -s conftest.$ac_objext; then
7267 have_selinux=yes
7268 else
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7272 have_selinux=no
7275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7276 { echo "$as_me:$LINENO: result: $have_selinux" >&5
7277 echo "${ECHO_T}$have_selinux" >&6; }
7280 if test x$with_selinux = xyes ; then
7281 if test x$have_selinux = xno ; then
7282 { { echo "$as_me:$LINENO: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&5
7283 echo "$as_me: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&2;}
7284 { (exit 1); exit 1; }; }
7288 # Check if we're building with SELinux support.
7289 if test "x$have_selinux" = xyes; then
7291 cat >>confdefs.h <<\_ACEOF
7292 #define HAVE_SELINUX 1
7293 _ACEOF
7296 # See if we have the libaudit library
7297 { echo "$as_me:$LINENO: checking for audit_log_user_avc_message in -laudit" >&5
7298 echo $ECHO_N "checking for audit_log_user_avc_message in -laudit... $ECHO_C" >&6; }
7299 if test "${ac_cv_lib_audit_audit_log_user_avc_message+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302 ac_check_lib_save_LIBS=$LIBS
7303 LIBS="-laudit $LIBS"
7304 cat >conftest.$ac_ext <<_ACEOF
7305 /* confdefs.h. */
7306 _ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7311 /* Override any GCC internal prototype to avoid an error.
7312 Use char because int might match the return type of a GCC
7313 builtin and then its argument prototype would still apply. */
7314 #ifdef __cplusplus
7315 extern "C"
7316 #endif
7317 char audit_log_user_avc_message ();
7319 main ()
7321 return audit_log_user_avc_message ();
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 ac_cv_lib_audit_audit_log_user_avc_message=yes
7345 else
7346 echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7349 ac_cv_lib_audit_audit_log_user_avc_message=no
7352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7353 conftest$ac_exeext conftest.$ac_ext
7354 LIBS=$ac_check_lib_save_LIBS
7356 { echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7357 echo "${ECHO_T}$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7358 if test $ac_cv_lib_audit_audit_log_user_avc_message = yes; then
7359 have_libaudit=yes
7360 else
7361 have_libaudit=no
7364 if test "x$have_libaudit" = xyes; then
7366 cat >>confdefs.h <<\_ACEOF
7367 #define HAVE_LIBAUDIT 1
7368 _ACEOF
7373 # See if we have the libcap library
7374 { echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
7375 echo $ECHO_N "checking for cap_init in -lcap... $ECHO_C" >&6; }
7376 if test "${ac_cv_lib_cap_cap_init+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7378 else
7379 ac_check_lib_save_LIBS=$LIBS
7380 LIBS="-lcap $LIBS"
7381 cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h. */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7388 /* Override any GCC internal prototype to avoid an error.
7389 Use char because int might match the return type of a GCC
7390 builtin and then its argument prototype would still apply. */
7391 #ifdef __cplusplus
7392 extern "C"
7393 #endif
7394 char cap_init ();
7396 main ()
7398 return cap_init ();
7400 return 0;
7402 _ACEOF
7403 rm -f conftest.$ac_objext conftest$ac_exeext
7404 if { (ac_try="$ac_link"
7405 case "(($ac_try" in
7406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7407 *) ac_try_echo=$ac_try;;
7408 esac
7409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7410 (eval "$ac_link") 2>conftest.er1
7411 ac_status=$?
7412 grep -v '^ *+' conftest.er1 >conftest.err
7413 rm -f conftest.er1
7414 cat conftest.err >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } && {
7417 test -z "$ac_c_werror_flag" ||
7418 test ! -s conftest.err
7419 } && test -s conftest$ac_exeext &&
7420 $as_test_x conftest$ac_exeext; then
7421 ac_cv_lib_cap_cap_init=yes
7422 else
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7426 ac_cv_lib_cap_cap_init=no
7429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7430 conftest$ac_exeext conftest.$ac_ext
7431 LIBS=$ac_check_lib_save_LIBS
7433 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
7434 echo "${ECHO_T}$ac_cv_lib_cap_cap_init" >&6; }
7435 if test $ac_cv_lib_cap_cap_init = yes; then
7436 have_libcap=yes
7437 else
7438 have_libcap=no
7441 if test "x$have_libcap" = xyes; then
7443 cat >>confdefs.h <<\_ACEOF
7444 #define HAVE_LIBCAP 1
7445 _ACEOF
7453 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7454 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7455 if test "${ac_cv_path_GREP+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458 # Extract the first word of "grep ggrep" to use in msg output
7459 if test -z "$GREP"; then
7460 set dummy grep ggrep; ac_prog_name=$2
7461 if test "${ac_cv_path_GREP+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464 ac_path_GREP_found=false
7465 # Loop through the user's path and test for each of PROGNAME-LIST
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7469 IFS=$as_save_IFS
7470 test -z "$as_dir" && as_dir=.
7471 for ac_prog in grep ggrep; do
7472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7474 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7475 # Check for GNU ac_path_GREP and select it if it is found.
7476 # Check for GNU $ac_path_GREP
7477 case `"$ac_path_GREP" --version 2>&1` in
7478 *GNU*)
7479 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7481 ac_count=0
7482 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7483 while :
7485 cat "conftest.in" "conftest.in" >"conftest.tmp"
7486 mv "conftest.tmp" "conftest.in"
7487 cp "conftest.in" "conftest.nl"
7488 echo 'GREP' >> "conftest.nl"
7489 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7490 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7491 ac_count=`expr $ac_count + 1`
7492 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7493 # Best one so far, save it but keep looking for a better one
7494 ac_cv_path_GREP="$ac_path_GREP"
7495 ac_path_GREP_max=$ac_count
7497 # 10*(2^10) chars as input seems more than enough
7498 test $ac_count -gt 10 && break
7499 done
7500 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7501 esac
7504 $ac_path_GREP_found && break 3
7505 done
7506 done
7508 done
7509 IFS=$as_save_IFS
7514 GREP="$ac_cv_path_GREP"
7515 if test -z "$GREP"; then
7516 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7517 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7518 { (exit 1); exit 1; }; }
7521 else
7522 ac_cv_path_GREP=$GREP
7527 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7528 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7529 GREP="$ac_cv_path_GREP"
7532 { echo "$as_me:$LINENO: checking for egrep" >&5
7533 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7534 if test "${ac_cv_path_EGREP+set}" = set; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7538 then ac_cv_path_EGREP="$GREP -E"
7539 else
7540 # Extract the first word of "egrep" to use in msg output
7541 if test -z "$EGREP"; then
7542 set dummy egrep; ac_prog_name=$2
7543 if test "${ac_cv_path_EGREP+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546 ac_path_EGREP_found=false
7547 # Loop through the user's path and test for each of PROGNAME-LIST
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
7553 for ac_prog in egrep; do
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7556 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7557 # Check for GNU ac_path_EGREP and select it if it is found.
7558 # Check for GNU $ac_path_EGREP
7559 case `"$ac_path_EGREP" --version 2>&1` in
7560 *GNU*)
7561 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7563 ac_count=0
7564 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7565 while :
7567 cat "conftest.in" "conftest.in" >"conftest.tmp"
7568 mv "conftest.tmp" "conftest.in"
7569 cp "conftest.in" "conftest.nl"
7570 echo 'EGREP' >> "conftest.nl"
7571 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7572 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7573 ac_count=`expr $ac_count + 1`
7574 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7575 # Best one so far, save it but keep looking for a better one
7576 ac_cv_path_EGREP="$ac_path_EGREP"
7577 ac_path_EGREP_max=$ac_count
7579 # 10*(2^10) chars as input seems more than enough
7580 test $ac_count -gt 10 && break
7581 done
7582 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7583 esac
7586 $ac_path_EGREP_found && break 3
7587 done
7588 done
7590 done
7591 IFS=$as_save_IFS
7596 EGREP="$ac_cv_path_EGREP"
7597 if test -z "$EGREP"; then
7598 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7599 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7600 { (exit 1); exit 1; }; }
7603 else
7604 ac_cv_path_EGREP=$EGREP
7610 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7611 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7612 EGREP="$ac_cv_path_EGREP"
7615 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7616 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7617 if test "${ac_cv_header_stdc+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 else
7620 cat >conftest.$ac_ext <<_ACEOF
7621 /* confdefs.h. */
7622 _ACEOF
7623 cat confdefs.h >>conftest.$ac_ext
7624 cat >>conftest.$ac_ext <<_ACEOF
7625 /* end confdefs.h. */
7626 #include <stdlib.h>
7627 #include <stdarg.h>
7628 #include <string.h>
7629 #include <float.h>
7632 main ()
7636 return 0;
7638 _ACEOF
7639 rm -f conftest.$ac_objext
7640 if { (ac_try="$ac_compile"
7641 case "(($ac_try" in
7642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7643 *) ac_try_echo=$ac_try;;
7644 esac
7645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7646 (eval "$ac_compile") 2>conftest.er1
7647 ac_status=$?
7648 grep -v '^ *+' conftest.er1 >conftest.err
7649 rm -f conftest.er1
7650 cat conftest.err >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); } && {
7653 test -z "$ac_c_werror_flag" ||
7654 test ! -s conftest.err
7655 } && test -s conftest.$ac_objext; then
7656 ac_cv_header_stdc=yes
7657 else
7658 echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7661 ac_cv_header_stdc=no
7664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7666 if test $ac_cv_header_stdc = yes; then
7667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7668 cat >conftest.$ac_ext <<_ACEOF
7669 /* confdefs.h. */
7670 _ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7674 #include <string.h>
7676 _ACEOF
7677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7678 $EGREP "memchr" >/dev/null 2>&1; then
7680 else
7681 ac_cv_header_stdc=no
7683 rm -f conftest*
7687 if test $ac_cv_header_stdc = yes; then
7688 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7689 cat >conftest.$ac_ext <<_ACEOF
7690 /* confdefs.h. */
7691 _ACEOF
7692 cat confdefs.h >>conftest.$ac_ext
7693 cat >>conftest.$ac_ext <<_ACEOF
7694 /* end confdefs.h. */
7695 #include <stdlib.h>
7697 _ACEOF
7698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7699 $EGREP "free" >/dev/null 2>&1; then
7701 else
7702 ac_cv_header_stdc=no
7704 rm -f conftest*
7708 if test $ac_cv_header_stdc = yes; then
7709 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7710 if test "$cross_compiling" = yes; then
7712 else
7713 cat >conftest.$ac_ext <<_ACEOF
7714 /* confdefs.h. */
7715 _ACEOF
7716 cat confdefs.h >>conftest.$ac_ext
7717 cat >>conftest.$ac_ext <<_ACEOF
7718 /* end confdefs.h. */
7719 #include <ctype.h>
7720 #include <stdlib.h>
7721 #if ((' ' & 0x0FF) == 0x020)
7722 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7723 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7724 #else
7725 # define ISLOWER(c) \
7726 (('a' <= (c) && (c) <= 'i') \
7727 || ('j' <= (c) && (c) <= 'r') \
7728 || ('s' <= (c) && (c) <= 'z'))
7729 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7730 #endif
7732 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7734 main ()
7736 int i;
7737 for (i = 0; i < 256; i++)
7738 if (XOR (islower (i), ISLOWER (i))
7739 || toupper (i) != TOUPPER (i))
7740 return 2;
7741 return 0;
7743 _ACEOF
7744 rm -f conftest$ac_exeext
7745 if { (ac_try="$ac_link"
7746 case "(($ac_try" in
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7749 esac
7750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751 (eval "$ac_link") 2>&5
7752 ac_status=$?
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7755 { (case "(($ac_try" in
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7758 esac
7759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760 (eval "$ac_try") 2>&5
7761 ac_status=$?
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); }; }; then
7765 else
7766 echo "$as_me: program exited with status $ac_status" >&5
7767 echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.$ac_ext >&5
7770 ( exit $ac_status )
7771 ac_cv_header_stdc=no
7773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7779 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7780 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7781 if test $ac_cv_header_stdc = yes; then
7783 cat >>confdefs.h <<\_ACEOF
7784 #define STDC_HEADERS 1
7785 _ACEOF
7789 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7799 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7800 inttypes.h stdint.h unistd.h
7802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7803 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 else
7808 cat >conftest.$ac_ext <<_ACEOF
7809 /* confdefs.h. */
7810 _ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h. */
7814 $ac_includes_default
7816 #include <$ac_header>
7817 _ACEOF
7818 rm -f conftest.$ac_objext
7819 if { (ac_try="$ac_compile"
7820 case "(($ac_try" in
7821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7822 *) ac_try_echo=$ac_try;;
7823 esac
7824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7825 (eval "$ac_compile") 2>conftest.er1
7826 ac_status=$?
7827 grep -v '^ *+' conftest.er1 >conftest.err
7828 rm -f conftest.er1
7829 cat conftest.err >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } && {
7832 test -z "$ac_c_werror_flag" ||
7833 test ! -s conftest.err
7834 } && test -s conftest.$ac_objext; then
7835 eval "$as_ac_Header=yes"
7836 else
7837 echo "$as_me: failed program was:" >&5
7838 sed 's/^/| /' conftest.$ac_ext >&5
7840 eval "$as_ac_Header=no"
7843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7845 ac_res=`eval echo '${'$as_ac_Header'}'`
7846 { echo "$as_me:$LINENO: result: $ac_res" >&5
7847 echo "${ECHO_T}$ac_res" >&6; }
7848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7849 cat >>confdefs.h <<_ACEOF
7850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7851 _ACEOF
7855 done
7858 { echo "$as_me:$LINENO: checking for long double" >&5
7859 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
7860 if test "${ac_cv_type_long_double+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 else
7863 cat >conftest.$ac_ext <<_ACEOF
7864 /* confdefs.h. */
7865 _ACEOF
7866 cat confdefs.h >>conftest.$ac_ext
7867 cat >>conftest.$ac_ext <<_ACEOF
7868 /* end confdefs.h. */
7869 $ac_includes_default
7870 typedef long double ac__type_new_;
7872 main ()
7874 if ((ac__type_new_ *) 0)
7875 return 0;
7876 if (sizeof (ac__type_new_))
7877 return 0;
7879 return 0;
7881 _ACEOF
7882 rm -f conftest.$ac_objext
7883 if { (ac_try="$ac_compile"
7884 case "(($ac_try" in
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7887 esac
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889 (eval "$ac_compile") 2>conftest.er1
7890 ac_status=$?
7891 grep -v '^ *+' conftest.er1 >conftest.err
7892 rm -f conftest.er1
7893 cat conftest.err >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } && {
7896 test -z "$ac_c_werror_flag" ||
7897 test ! -s conftest.err
7898 } && test -s conftest.$ac_objext; then
7899 ac_cv_type_long_double=yes
7900 else
7901 echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7904 ac_cv_type_long_double=no
7907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7909 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
7910 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
7912 # The cast to long int works around a bug in the HP C Compiler
7913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7915 # This bug is HP SR number 8606223364.
7916 { echo "$as_me:$LINENO: checking size of long double" >&5
7917 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
7918 if test "${ac_cv_sizeof_long_double+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921 if test "$cross_compiling" = yes; then
7922 # Depending upon the size, compute the lo and hi bounds.
7923 cat >conftest.$ac_ext <<_ACEOF
7924 /* confdefs.h. */
7925 _ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7929 $ac_includes_default
7930 typedef long double ac__type_sizeof_;
7932 main ()
7934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7935 test_array [0] = 0
7938 return 0;
7940 _ACEOF
7941 rm -f conftest.$ac_objext
7942 if { (ac_try="$ac_compile"
7943 case "(($ac_try" in
7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7946 esac
7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948 (eval "$ac_compile") 2>conftest.er1
7949 ac_status=$?
7950 grep -v '^ *+' conftest.er1 >conftest.err
7951 rm -f conftest.er1
7952 cat conftest.err >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } && {
7955 test -z "$ac_c_werror_flag" ||
7956 test ! -s conftest.err
7957 } && test -s conftest.$ac_objext; then
7958 ac_lo=0 ac_mid=0
7959 while :; do
7960 cat >conftest.$ac_ext <<_ACEOF
7961 /* confdefs.h. */
7962 _ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7966 $ac_includes_default
7967 typedef long double ac__type_sizeof_;
7969 main ()
7971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7972 test_array [0] = 0
7975 return 0;
7977 _ACEOF
7978 rm -f conftest.$ac_objext
7979 if { (ac_try="$ac_compile"
7980 case "(($ac_try" in
7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7983 esac
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_compile") 2>conftest.er1
7986 ac_status=$?
7987 grep -v '^ *+' conftest.er1 >conftest.err
7988 rm -f conftest.er1
7989 cat conftest.err >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } && {
7992 test -z "$ac_c_werror_flag" ||
7993 test ! -s conftest.err
7994 } && test -s conftest.$ac_objext; then
7995 ac_hi=$ac_mid; break
7996 else
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
8000 ac_lo=`expr $ac_mid + 1`
8001 if test $ac_lo -le $ac_mid; then
8002 ac_lo= ac_hi=
8003 break
8005 ac_mid=`expr 2 '*' $ac_mid + 1`
8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009 done
8010 else
8011 echo "$as_me: failed program was:" >&5
8012 sed 's/^/| /' conftest.$ac_ext >&5
8014 cat >conftest.$ac_ext <<_ACEOF
8015 /* confdefs.h. */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8020 $ac_includes_default
8021 typedef long double ac__type_sizeof_;
8023 main ()
8025 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8026 test_array [0] = 0
8029 return 0;
8031 _ACEOF
8032 rm -f conftest.$ac_objext
8033 if { (ac_try="$ac_compile"
8034 case "(($ac_try" in
8035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036 *) ac_try_echo=$ac_try;;
8037 esac
8038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039 (eval "$ac_compile") 2>conftest.er1
8040 ac_status=$?
8041 grep -v '^ *+' conftest.er1 >conftest.err
8042 rm -f conftest.er1
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } && {
8046 test -z "$ac_c_werror_flag" ||
8047 test ! -s conftest.err
8048 } && test -s conftest.$ac_objext; then
8049 ac_hi=-1 ac_mid=-1
8050 while :; do
8051 cat >conftest.$ac_ext <<_ACEOF
8052 /* confdefs.h. */
8053 _ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8057 $ac_includes_default
8058 typedef long double ac__type_sizeof_;
8060 main ()
8062 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8063 test_array [0] = 0
8066 return 0;
8068 _ACEOF
8069 rm -f conftest.$ac_objext
8070 if { (ac_try="$ac_compile"
8071 case "(($ac_try" in
8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8074 esac
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076 (eval "$ac_compile") 2>conftest.er1
8077 ac_status=$?
8078 grep -v '^ *+' conftest.er1 >conftest.err
8079 rm -f conftest.er1
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } && {
8083 test -z "$ac_c_werror_flag" ||
8084 test ! -s conftest.err
8085 } && test -s conftest.$ac_objext; then
8086 ac_lo=$ac_mid; break
8087 else
8088 echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8091 ac_hi=`expr '(' $ac_mid ')' - 1`
8092 if test $ac_mid -le $ac_hi; then
8093 ac_lo= ac_hi=
8094 break
8096 ac_mid=`expr 2 '*' $ac_mid`
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 done
8101 else
8102 echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8105 ac_lo= ac_hi=
8108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8112 # Binary search between lo and hi bounds.
8113 while test "x$ac_lo" != "x$ac_hi"; do
8114 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8115 cat >conftest.$ac_ext <<_ACEOF
8116 /* confdefs.h. */
8117 _ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8121 $ac_includes_default
8122 typedef long double ac__type_sizeof_;
8124 main ()
8126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8127 test_array [0] = 0
8130 return 0;
8132 _ACEOF
8133 rm -f conftest.$ac_objext
8134 if { (ac_try="$ac_compile"
8135 case "(($ac_try" in
8136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137 *) ac_try_echo=$ac_try;;
8138 esac
8139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140 (eval "$ac_compile") 2>conftest.er1
8141 ac_status=$?
8142 grep -v '^ *+' conftest.er1 >conftest.err
8143 rm -f conftest.er1
8144 cat conftest.err >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); } && {
8147 test -z "$ac_c_werror_flag" ||
8148 test ! -s conftest.err
8149 } && test -s conftest.$ac_objext; then
8150 ac_hi=$ac_mid
8151 else
8152 echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8155 ac_lo=`expr '(' $ac_mid ')' + 1`
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159 done
8160 case $ac_lo in
8161 ?*) ac_cv_sizeof_long_double=$ac_lo;;
8162 '') if test "$ac_cv_type_long_double" = yes; then
8163 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8164 See \`config.log' for more details." >&5
8165 echo "$as_me: error: cannot compute sizeof (long double)
8166 See \`config.log' for more details." >&2;}
8167 { (exit 77); exit 77; }; }
8168 else
8169 ac_cv_sizeof_long_double=0
8170 fi ;;
8171 esac
8172 else
8173 cat >conftest.$ac_ext <<_ACEOF
8174 /* confdefs.h. */
8175 _ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8179 $ac_includes_default
8180 typedef long double ac__type_sizeof_;
8181 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8182 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8183 #include <stdio.h>
8184 #include <stdlib.h>
8186 main ()
8189 FILE *f = fopen ("conftest.val", "w");
8190 if (! f)
8191 return 1;
8192 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8194 long int i = longval ();
8195 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8196 return 1;
8197 fprintf (f, "%ld\n", i);
8199 else
8201 unsigned long int i = ulongval ();
8202 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8203 return 1;
8204 fprintf (f, "%lu\n", i);
8206 return ferror (f) || fclose (f) != 0;
8209 return 0;
8211 _ACEOF
8212 rm -f conftest$ac_exeext
8213 if { (ac_try="$ac_link"
8214 case "(($ac_try" in
8215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8216 *) ac_try_echo=$ac_try;;
8217 esac
8218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8219 (eval "$ac_link") 2>&5
8220 ac_status=$?
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8223 { (case "(($ac_try" in
8224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8226 esac
8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228 (eval "$ac_try") 2>&5
8229 ac_status=$?
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; }; then
8232 ac_cv_sizeof_long_double=`cat conftest.val`
8233 else
8234 echo "$as_me: program exited with status $ac_status" >&5
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8238 ( exit $ac_status )
8239 if test "$ac_cv_type_long_double" = yes; then
8240 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8241 See \`config.log' for more details." >&5
8242 echo "$as_me: error: cannot compute sizeof (long double)
8243 See \`config.log' for more details." >&2;}
8244 { (exit 77); exit 77; }; }
8245 else
8246 ac_cv_sizeof_long_double=0
8249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8251 rm -f conftest.val
8253 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
8254 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
8258 cat >>confdefs.h <<_ACEOF
8259 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8260 _ACEOF
8263 sizeof_long_double=$ac_cv_sizeof_long_double
8266 ### End of automated tests.
8267 ### Now run sysdeps configure fragments.
8269 # They also can set these variables.
8270 use_ldconfig=no
8271 ldd_rewrite_script=no
8272 libc_cv_sysconfdir=$sysconfdir
8273 libc_cv_gcc_unwind_find_fde=no
8274 libc_cv_idn=no
8276 # Iterate over all the sysdep directories we will use, running their
8277 # configure fragments, and looking for a uname implementation.
8278 uname=
8279 for dir in $sysnames; do
8280 case $dir in
8281 /*) dest=$dir ;;
8282 *) dest=$srcdir/$dir ;;
8283 esac
8284 if test -r $dest/configure; then
8285 { echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
8286 echo "${ECHO_T}running configure fragment for $dir" >&6; }
8287 . $dest/configure
8290 if test -z "$uname"; then
8291 if test -r $dest/uname.c ||
8292 test -r $dest/uname.S ||
8293 { test -r $dest/syscalls.list &&
8294 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
8295 uname=$dir
8298 done
8300 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
8301 cat >>confdefs.h <<\_ACEOF
8302 #define EXPORT_UNWIND_FIND_FDE 1
8303 _ACEOF
8308 # If we will use the generic uname implementation, we must figure out what
8309 # it will say by examining the system, and write the results in config-name.h.
8310 if test "$uname" = "sysdeps/generic"; then
8312 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
8313 if test $uname_sysname != $config_os; then
8314 config_release=`echo $config_os | sed s/$uname_sysname//`
8317 { echo "$as_me:$LINENO: checking OS release for uname" >&5
8318 echo $ECHO_N "checking OS release for uname... $ECHO_C" >&6; }
8319 if test "${libc_cv_uname_release+set}" = set; then
8320 echo $ECHO_N "(cached) $ECHO_C" >&6
8321 else
8322 if test -r /vmunix; then
8323 kernel_id=`strings /vmunix | grep UNIX`
8324 elif test -r /dynix; then
8325 kernel_id=`strings /dynix | grep DYNIX`
8326 else
8327 kernel_id=
8330 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
8331 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
8332 != x$config_release; then
8333 # The configuration release is a substring of the kernel release.
8334 libc_cv_uname_release=$kernel_release
8335 elif test x$config_release != x; then
8336 libc_cv_uname_release=$config_release
8337 elif test x$kernel_release != x; then
8338 libc_cv_uname_release=$kernel_release
8339 else
8340 libc_cv_uname_release=unknown
8343 { echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
8344 echo "${ECHO_T}$libc_cv_uname_release" >&6; }
8345 uname_release="$libc_cv_uname_release"
8347 { echo "$as_me:$LINENO: checking OS version for uname" >&5
8348 echo $ECHO_N "checking OS version for uname... $ECHO_C" >&6; }
8349 if test "${libc_cv_uname_version+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 else
8352 if test -r /vmunix; then
8353 kernel_id=`strings /vmunix | grep UNIX`
8354 elif test -r /dynix; then
8355 kernel_id=`strings /dynix | grep DYNIX`
8356 else
8357 kernel_id=
8360 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
8361 if test -n "$kernel_version"; then
8362 libc_cv_uname_version="$kernel_version"
8363 else
8364 libc_cv_uname_version=unknown
8367 { echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
8368 echo "${ECHO_T}$libc_cv_uname_version" >&6; }
8369 uname_version="$libc_cv_uname_version"
8371 config_uname=config-name.h:config-name.in
8372 else
8373 # For non-generic uname, we don't need to create config-name.h at all.
8374 config_uname=
8377 cat >>confdefs.h <<\_ACEOF
8378 #define USE_IN_LIBIO 1
8379 _ACEOF
8382 # Test for old glibc 2.0.x headers so that they can be removed properly
8383 # Search only in includedir.
8384 { echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
8385 echo $ECHO_N "checking for old glibc 2.0.x headers... $ECHO_C" >&6; }
8386 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
8387 then
8388 old_glibc_headers=yes
8389 else
8390 old_glibc_headers=no
8392 { echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
8393 echo "${ECHO_T}$old_glibc_headers" >&6; }
8394 if test ${old_glibc_headers} = yes; then
8395 { echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
8396 echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
8397 { echo "$as_me:$LINENO: WARNING: *** be removed." >&5
8398 echo "$as_me: WARNING: *** be removed." >&2;}
8412 if test $elf = yes; then
8413 cat >>confdefs.h <<\_ACEOF
8414 #define HAVE_ELF 1
8415 _ACEOF
8418 if test $xcoff = yes; then
8419 cat >>confdefs.h <<\_ACEOF
8420 #define HAVE_XCOFF 1
8421 _ACEOF
8427 if test $shared = default; then
8428 shared=$elf
8431 { echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
8432 echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6; }
8433 if test "${pic_default+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 else
8436 pic_default=yes
8437 cat > conftest.c <<EOF
8438 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
8439 # error PIC is default.
8440 #endif
8442 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
8443 pic_default=no
8445 rm -f conftest.*
8447 { echo "$as_me:$LINENO: result: $pic_default" >&5
8448 echo "${ECHO_T}$pic_default" >&6; }
8461 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
8462 config_makefile=
8463 else
8464 config_makefile=Makefile
8467 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
8468 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8472 ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
8474 ac_config_commands="$ac_config_commands default"
8476 cat >confcache <<\_ACEOF
8477 # This file is a shell script that caches the results of configure
8478 # tests run on this system so they can be shared between configure
8479 # scripts and configure runs, see configure's option --config-cache.
8480 # It is not useful on other systems. If it contains results you don't
8481 # want to keep, you may remove or edit it.
8483 # config.status only pays attention to the cache file if you give it
8484 # the --recheck option to rerun configure.
8486 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8487 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8488 # following values.
8490 _ACEOF
8492 # The following way of writing the cache mishandles newlines in values,
8493 # but we know of no workaround that is simple, portable, and efficient.
8494 # So, we kill variables containing newlines.
8495 # Ultrix sh set writes to stderr and can't be redirected directly,
8496 # and sets the high bit in the cache file unless we assign to the vars.
8498 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8499 eval ac_val=\$$ac_var
8500 case $ac_val in #(
8501 *${as_nl}*)
8502 case $ac_var in #(
8503 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8504 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8505 esac
8506 case $ac_var in #(
8507 _ | IFS | as_nl) ;; #(
8508 *) $as_unset $ac_var ;;
8509 esac ;;
8510 esac
8511 done
8513 (set) 2>&1 |
8514 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8515 *${as_nl}ac_space=\ *)
8516 # `set' does not quote correctly, so add quotes (double-quote
8517 # substitution turns \\\\ into \\, and sed turns \\ into \).
8518 sed -n \
8519 "s/'/'\\\\''/g;
8520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8521 ;; #(
8523 # `set' quotes correctly as required by POSIX, so do not add quotes.
8524 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8526 esac |
8527 sort
8529 sed '
8530 /^ac_cv_env_/b end
8531 t clear
8532 :clear
8533 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8534 t end
8535 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8536 :end' >>confcache
8537 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8538 if test -w "$cache_file"; then
8539 test "x$cache_file" != "x/dev/null" &&
8540 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8541 echo "$as_me: updating cache $cache_file" >&6;}
8542 cat confcache >$cache_file
8543 else
8544 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8545 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8548 rm -f confcache
8550 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8551 # Let make expand exec_prefix.
8552 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8554 DEFS=-DHAVE_CONFIG_H
8556 ac_libobjs=
8557 ac_ltlibobjs=
8558 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8559 # 1. Remove the extension, and $U if already installed.
8560 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8561 ac_i=`echo "$ac_i" | sed "$ac_script"`
8562 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8563 # will be set to the directory where LIBOBJS objects are built.
8564 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8565 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8566 done
8567 LIBOBJS=$ac_libobjs
8569 LTLIBOBJS=$ac_ltlibobjs
8573 : ${CONFIG_STATUS=./config.status}
8574 ac_clean_files_save=$ac_clean_files
8575 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8576 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8577 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8578 cat >$CONFIG_STATUS <<_ACEOF
8579 #! $SHELL
8580 # Generated by $as_me.
8581 # Run this file to recreate the current configuration.
8582 # Compiler output produced by configure, useful for debugging
8583 # configure, is in config.log if it exists.
8585 debug=false
8586 ac_cs_recheck=false
8587 ac_cs_silent=false
8588 SHELL=\${CONFIG_SHELL-$SHELL}
8589 _ACEOF
8591 cat >>$CONFIG_STATUS <<\_ACEOF
8592 ## --------------------- ##
8593 ## M4sh Initialization. ##
8594 ## --------------------- ##
8596 # Be more Bourne compatible
8597 DUALCASE=1; export DUALCASE # for MKS sh
8598 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8599 emulate sh
8600 NULLCMD=:
8601 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8602 # is contrary to our usage. Disable this feature.
8603 alias -g '${1+"$@"}'='"$@"'
8604 setopt NO_GLOB_SUBST
8605 else
8606 case `(set -o) 2>/dev/null` in
8607 *posix*) set -o posix ;;
8608 esac
8615 # PATH needs CR
8616 # Avoid depending upon Character Ranges.
8617 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8618 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8619 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8620 as_cr_digits='0123456789'
8621 as_cr_alnum=$as_cr_Letters$as_cr_digits
8623 # The user is always right.
8624 if test "${PATH_SEPARATOR+set}" != set; then
8625 echo "#! /bin/sh" >conf$$.sh
8626 echo "exit 0" >>conf$$.sh
8627 chmod +x conf$$.sh
8628 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8629 PATH_SEPARATOR=';'
8630 else
8631 PATH_SEPARATOR=:
8633 rm -f conf$$.sh
8636 # Support unset when possible.
8637 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8638 as_unset=unset
8639 else
8640 as_unset=false
8644 # IFS
8645 # We need space, tab and new line, in precisely that order. Quoting is
8646 # there to prevent editors from complaining about space-tab.
8647 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8648 # splitting by setting IFS to empty value.)
8649 as_nl='
8651 IFS=" "" $as_nl"
8653 # Find who we are. Look in the path if we contain no directory separator.
8654 case $0 in
8655 *[\\/]* ) as_myself=$0 ;;
8656 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8657 for as_dir in $PATH
8659 IFS=$as_save_IFS
8660 test -z "$as_dir" && as_dir=.
8661 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8662 done
8663 IFS=$as_save_IFS
8666 esac
8667 # We did not find ourselves, most probably we were run as `sh COMMAND'
8668 # in which case we are not to be found in the path.
8669 if test "x$as_myself" = x; then
8670 as_myself=$0
8672 if test ! -f "$as_myself"; then
8673 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8674 { (exit 1); exit 1; }
8677 # Work around bugs in pre-3.0 UWIN ksh.
8678 for as_var in ENV MAIL MAILPATH
8679 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8680 done
8681 PS1='$ '
8682 PS2='> '
8683 PS4='+ '
8685 # NLS nuisances.
8686 for as_var in \
8687 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8688 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8689 LC_TELEPHONE LC_TIME
8691 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8692 eval $as_var=C; export $as_var
8693 else
8694 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8696 done
8698 # Required to use basename.
8699 if expr a : '\(a\)' >/dev/null 2>&1 &&
8700 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8701 as_expr=expr
8702 else
8703 as_expr=false
8706 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8707 as_basename=basename
8708 else
8709 as_basename=false
8713 # Name of the executable.
8714 as_me=`$as_basename -- "$0" ||
8715 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8716 X"$0" : 'X\(//\)$' \| \
8717 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8718 echo X/"$0" |
8719 sed '/^.*\/\([^/][^/]*\)\/*$/{
8720 s//\1/
8723 /^X\/\(\/\/\)$/{
8724 s//\1/
8727 /^X\/\(\/\).*/{
8728 s//\1/
8731 s/.*/./; q'`
8733 # CDPATH.
8734 $as_unset CDPATH
8738 as_lineno_1=$LINENO
8739 as_lineno_2=$LINENO
8740 test "x$as_lineno_1" != "x$as_lineno_2" &&
8741 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8743 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8744 # uniformly replaced by the line number. The first 'sed' inserts a
8745 # line-number line after each line using $LINENO; the second 'sed'
8746 # does the real work. The second script uses 'N' to pair each
8747 # line-number line with the line containing $LINENO, and appends
8748 # trailing '-' during substitution so that $LINENO is not a special
8749 # case at line end.
8750 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8751 # scripts with optimization help from Paolo Bonzini. Blame Lee
8752 # E. McMahon (1931-1989) for sed's syntax. :-)
8753 sed -n '
8755 /[$]LINENO/=
8756 ' <$as_myself |
8757 sed '
8758 s/[$]LINENO.*/&-/
8759 t lineno
8761 :lineno
8763 :loop
8764 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8765 t loop
8766 s/-\n.*//
8767 ' >$as_me.lineno &&
8768 chmod +x "$as_me.lineno" ||
8769 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8770 { (exit 1); exit 1; }; }
8772 # Don't try to exec as it changes $[0], causing all sort of problems
8773 # (the dirname of $[0] is not the place where we might find the
8774 # original and so on. Autoconf is especially sensitive to this).
8775 . "./$as_me.lineno"
8776 # Exit status is that of the last command.
8777 exit
8781 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8782 as_dirname=dirname
8783 else
8784 as_dirname=false
8787 ECHO_C= ECHO_N= ECHO_T=
8788 case `echo -n x` in
8789 -n*)
8790 case `echo 'x\c'` in
8791 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8792 *) ECHO_C='\c';;
8793 esac;;
8795 ECHO_N='-n';;
8796 esac
8798 if expr a : '\(a\)' >/dev/null 2>&1 &&
8799 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8800 as_expr=expr
8801 else
8802 as_expr=false
8805 rm -f conf$$ conf$$.exe conf$$.file
8806 if test -d conf$$.dir; then
8807 rm -f conf$$.dir/conf$$.file
8808 else
8809 rm -f conf$$.dir
8810 mkdir conf$$.dir
8812 echo >conf$$.file
8813 if ln -s conf$$.file conf$$ 2>/dev/null; then
8814 as_ln_s='ln -s'
8815 # ... but there are two gotchas:
8816 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8817 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8818 # In both cases, we have to default to `cp -p'.
8819 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8820 as_ln_s='cp -p'
8821 elif ln conf$$.file conf$$ 2>/dev/null; then
8822 as_ln_s=ln
8823 else
8824 as_ln_s='cp -p'
8826 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8827 rmdir conf$$.dir 2>/dev/null
8829 if mkdir -p . 2>/dev/null; then
8830 as_mkdir_p=:
8831 else
8832 test -d ./-p && rmdir ./-p
8833 as_mkdir_p=false
8836 if test -x / >/dev/null 2>&1; then
8837 as_test_x='test -x'
8838 else
8839 if ls -dL / >/dev/null 2>&1; then
8840 as_ls_L_option=L
8841 else
8842 as_ls_L_option=
8844 as_test_x='
8845 eval sh -c '\''
8846 if test -d "$1"; then
8847 test -d "$1/.";
8848 else
8849 case $1 in
8850 -*)set "./$1";;
8851 esac;
8852 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8853 ???[sx]*):;;*)false;;esac;fi
8854 '\'' sh
8857 as_executable_p=$as_test_x
8859 # Sed expression to map a string onto a valid CPP name.
8860 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8862 # Sed expression to map a string onto a valid variable name.
8863 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8866 exec 6>&1
8868 # Save the log message, to keep $[0] and so on meaningful, and to
8869 # report actual input values of CONFIG_FILES etc. instead of their
8870 # values after options handling.
8871 ac_log="
8872 This file was extended by GNU C Library $as_me (see version.h), which was
8873 generated by GNU Autoconf 2.61. Invocation command line was
8875 CONFIG_FILES = $CONFIG_FILES
8876 CONFIG_HEADERS = $CONFIG_HEADERS
8877 CONFIG_LINKS = $CONFIG_LINKS
8878 CONFIG_COMMANDS = $CONFIG_COMMANDS
8879 $ $0 $@
8881 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8884 _ACEOF
8886 cat >>$CONFIG_STATUS <<_ACEOF
8887 # Files that config.status was made for.
8888 config_files="$ac_config_files"
8889 config_headers="$ac_config_headers"
8890 config_commands="$ac_config_commands"
8892 _ACEOF
8894 cat >>$CONFIG_STATUS <<\_ACEOF
8895 ac_cs_usage="\
8896 \`$as_me' instantiates files from templates according to the
8897 current configuration.
8899 Usage: $0 [OPTIONS] [FILE]...
8901 -h, --help print this help, then exit
8902 -V, --version print version number and configuration settings, then exit
8903 -q, --quiet do not print progress messages
8904 -d, --debug don't remove temporary files
8905 --recheck update $as_me by reconfiguring in the same conditions
8906 --file=FILE[:TEMPLATE]
8907 instantiate the configuration file FILE
8908 --header=FILE[:TEMPLATE]
8909 instantiate the configuration header FILE
8911 Configuration files:
8912 $config_files
8914 Configuration headers:
8915 $config_headers
8917 Configuration commands:
8918 $config_commands
8920 Report bugs to <bug-autoconf@gnu.org>."
8922 _ACEOF
8923 cat >>$CONFIG_STATUS <<_ACEOF
8924 ac_cs_version="\\
8925 GNU C Library config.status (see version.h)
8926 configured by $0, generated by GNU Autoconf 2.61,
8927 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8929 Copyright (C) 2006 Free Software Foundation, Inc.
8930 This config.status script is free software; the Free Software Foundation
8931 gives unlimited permission to copy, distribute and modify it."
8933 ac_pwd='$ac_pwd'
8934 srcdir='$srcdir'
8935 INSTALL='$INSTALL'
8936 _ACEOF
8938 cat >>$CONFIG_STATUS <<\_ACEOF
8939 # If no file are specified by the user, then we need to provide default
8940 # value. By we need to know if files were specified by the user.
8941 ac_need_defaults=:
8942 while test $# != 0
8944 case $1 in
8945 --*=*)
8946 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8947 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8948 ac_shift=:
8951 ac_option=$1
8952 ac_optarg=$2
8953 ac_shift=shift
8955 esac
8957 case $ac_option in
8958 # Handling of the options.
8959 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8960 ac_cs_recheck=: ;;
8961 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8962 echo "$ac_cs_version"; exit ;;
8963 --debug | --debu | --deb | --de | --d | -d )
8964 debug=: ;;
8965 --file | --fil | --fi | --f )
8966 $ac_shift
8967 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8968 ac_need_defaults=false;;
8969 --header | --heade | --head | --hea )
8970 $ac_shift
8971 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8972 ac_need_defaults=false;;
8973 --he | --h)
8974 # Conflict between --help and --header
8975 { echo "$as_me: error: ambiguous option: $1
8976 Try \`$0 --help' for more information." >&2
8977 { (exit 1); exit 1; }; };;
8978 --help | --hel | -h )
8979 echo "$ac_cs_usage"; exit ;;
8980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8981 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8982 ac_cs_silent=: ;;
8984 # This is an error.
8985 -*) { echo "$as_me: error: unrecognized option: $1
8986 Try \`$0 --help' for more information." >&2
8987 { (exit 1); exit 1; }; } ;;
8989 *) ac_config_targets="$ac_config_targets $1"
8990 ac_need_defaults=false ;;
8992 esac
8993 shift
8994 done
8996 ac_configure_extra_args=
8998 if $ac_cs_silent; then
8999 exec 6>/dev/null
9000 ac_configure_extra_args="$ac_configure_extra_args --silent"
9003 _ACEOF
9004 cat >>$CONFIG_STATUS <<_ACEOF
9005 if \$ac_cs_recheck; then
9006 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9007 CONFIG_SHELL=$SHELL
9008 export CONFIG_SHELL
9009 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9012 _ACEOF
9013 cat >>$CONFIG_STATUS <<\_ACEOF
9014 exec 5>>config.log
9016 echo
9017 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9018 ## Running $as_me. ##
9019 _ASBOX
9020 echo "$ac_log"
9021 } >&5
9023 _ACEOF
9024 cat >>$CONFIG_STATUS <<_ACEOF
9026 # INIT-COMMANDS
9028 config_vars='$config_vars'
9030 _ACEOF
9032 cat >>$CONFIG_STATUS <<\_ACEOF
9034 # Handling of arguments.
9035 for ac_config_target in $ac_config_targets
9037 case $ac_config_target in
9038 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9039 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
9040 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
9041 "${config_uname}") CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
9042 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9044 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9045 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9046 { (exit 1); exit 1; }; };;
9047 esac
9048 done
9051 # If the user did not use the arguments to specify the items to instantiate,
9052 # then the envvar interface is used. Set only those that are not.
9053 # We use the long form for the default assignment because of an extremely
9054 # bizarre bug on SunOS 4.1.3.
9055 if $ac_need_defaults; then
9056 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9057 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9058 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9061 # Have a temporary directory for convenience. Make it in the build tree
9062 # simply because there is no reason against having it here, and in addition,
9063 # creating and moving files from /tmp can sometimes cause problems.
9064 # Hook for its removal unless debugging.
9065 # Note that there is a small window in which the directory will not be cleaned:
9066 # after its creation but before its name has been assigned to `$tmp'.
9067 $debug ||
9069 tmp=
9070 trap 'exit_status=$?
9071 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9073 trap '{ (exit 1); exit 1; }' 1 2 13 15
9075 # Create a (secure) tmp directory for tmp files.
9078 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9079 test -n "$tmp" && test -d "$tmp"
9080 } ||
9082 tmp=./conf$$-$RANDOM
9083 (umask 077 && mkdir "$tmp")
9084 } ||
9086 echo "$me: cannot create a temporary directory in ." >&2
9087 { (exit 1); exit 1; }
9091 # Set up the sed scripts for CONFIG_FILES section.
9094 # No need to generate the scripts if there are no CONFIG_FILES.
9095 # This happens for instance when ./config.status config.h
9096 if test -n "$CONFIG_FILES"; then
9098 _ACEOF
9102 ac_delim='%!_!# '
9103 for ac_last_try in false false false false false :; do
9104 cat >conf$$subs.sed <<_ACEOF
9105 SHELL!$SHELL$ac_delim
9106 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9107 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9108 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9109 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9110 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9111 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9112 exec_prefix!$exec_prefix$ac_delim
9113 prefix!$prefix$ac_delim
9114 program_transform_name!$program_transform_name$ac_delim
9115 bindir!$bindir$ac_delim
9116 sbindir!$sbindir$ac_delim
9117 libexecdir!$libexecdir$ac_delim
9118 datarootdir!$datarootdir$ac_delim
9119 datadir!$datadir$ac_delim
9120 sysconfdir!$sysconfdir$ac_delim
9121 sharedstatedir!$sharedstatedir$ac_delim
9122 localstatedir!$localstatedir$ac_delim
9123 includedir!$includedir$ac_delim
9124 oldincludedir!$oldincludedir$ac_delim
9125 docdir!$docdir$ac_delim
9126 infodir!$infodir$ac_delim
9127 htmldir!$htmldir$ac_delim
9128 dvidir!$dvidir$ac_delim
9129 pdfdir!$pdfdir$ac_delim
9130 psdir!$psdir$ac_delim
9131 libdir!$libdir$ac_delim
9132 localedir!$localedir$ac_delim
9133 mandir!$mandir$ac_delim
9134 DEFS!$DEFS$ac_delim
9135 ECHO_C!$ECHO_C$ac_delim
9136 ECHO_N!$ECHO_N$ac_delim
9137 ECHO_T!$ECHO_T$ac_delim
9138 LIBS!$LIBS$ac_delim
9139 build_alias!$build_alias$ac_delim
9140 host_alias!$host_alias$ac_delim
9141 target_alias!$target_alias$ac_delim
9142 with_fp!$with_fp$ac_delim
9143 with_cvs!$with_cvs$ac_delim
9144 enable_check_abi!$enable_check_abi$ac_delim
9145 oldest_abi!$oldest_abi$ac_delim
9146 bindnow!$bindnow$ac_delim
9147 force_install!$force_install$ac_delim
9148 all_warnings!$all_warnings$ac_delim
9149 build!$build$ac_delim
9150 build_cpu!$build_cpu$ac_delim
9151 build_vendor!$build_vendor$ac_delim
9152 build_os!$build_os$ac_delim
9153 host!$host$ac_delim
9154 host_cpu!$host_cpu$ac_delim
9155 host_vendor!$host_vendor$ac_delim
9156 host_os!$host_os$ac_delim
9157 subdirs!$subdirs$ac_delim
9158 add_ons!$add_ons$ac_delim
9159 add_on_subdirs!$add_on_subdirs$ac_delim
9160 base_machine!$base_machine$ac_delim
9161 submachine!$submachine$ac_delim
9162 sysnames!$sysnames$ac_delim
9163 sysdeps_add_ons!$sysdeps_add_ons$ac_delim
9164 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9165 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9166 INSTALL_DATA!$INSTALL_DATA$ac_delim
9167 LN_S!$LN_S$ac_delim
9168 CC!$CC$ac_delim
9169 CFLAGS!$CFLAGS$ac_delim
9170 LDFLAGS!$LDFLAGS$ac_delim
9171 CPPFLAGS!$CPPFLAGS$ac_delim
9172 ac_ct_CC!$ac_ct_CC$ac_delim
9173 OBJEXT!$OBJEXT$ac_delim
9174 BUILD_CC!$BUILD_CC$ac_delim
9175 cross_compiling!$cross_compiling$ac_delim
9176 CPP!$CPP$ac_delim
9177 CXX!$CXX$ac_delim
9178 CXXFLAGS!$CXXFLAGS$ac_delim
9179 ac_ct_CXX!$ac_ct_CXX$ac_delim
9180 AR!$AR$ac_delim
9181 OBJDUMP!$OBJDUMP$ac_delim
9182 RANLIB!$RANLIB$ac_delim
9183 MIG!$MIG$ac_delim
9184 AS!$AS$ac_delim
9185 LD!$LD$ac_delim
9186 PWD_P!$PWD_P$ac_delim
9187 MAKE!$MAKE$ac_delim
9188 MSGFMT!$MSGFMT$ac_delim
9189 MAKEINFO!$MAKEINFO$ac_delim
9190 SED!$SED$ac_delim
9191 AUTOCONF!$AUTOCONF$ac_delim
9192 SYSINCLUDES!$SYSINCLUDES$ac_delim
9193 CXX_SYSINCLUDES!$CXX_SYSINCLUDES$ac_delim
9194 libc_cv_gcc_static_libgcc!$libc_cv_gcc_static_libgcc$ac_delim
9195 BASH_SHELL!$BASH_SHELL$ac_delim
9196 libc_cv_have_bash2!$libc_cv_have_bash2$ac_delim
9197 KSH!$KSH$ac_delim
9198 libc_cv_have_ksh!$libc_cv_have_ksh$ac_delim
9199 AWK!$AWK$ac_delim
9200 PERL!$PERL$ac_delim
9201 INSTALL_INFO!$INSTALL_INFO$ac_delim
9202 _ACEOF
9204 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
9205 break
9206 elif $ac_last_try; then
9207 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9208 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9209 { (exit 1); exit 1; }; }
9210 else
9211 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9213 done
9215 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9216 if test -n "$ac_eof"; then
9217 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9218 ac_eof=`expr $ac_eof + 1`
9221 cat >>$CONFIG_STATUS <<_ACEOF
9222 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9223 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9224 _ACEOF
9225 sed '
9226 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9227 s/^/s,@/; s/!/@,|#_!!_#|/
9230 s/'"$ac_delim"'$/,g/; t
9231 s/$/\\/; p
9232 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9233 ' >>$CONFIG_STATUS <conf$$subs.sed
9234 rm -f conf$$subs.sed
9235 cat >>$CONFIG_STATUS <<_ACEOF
9236 CEOF$ac_eof
9237 _ACEOF
9240 ac_delim='%!_!# '
9241 for ac_last_try in false false false false false :; do
9242 cat >conf$$subs.sed <<_ACEOF
9243 BISON!$BISON$ac_delim
9244 VERSIONING!$VERSIONING$ac_delim
9245 libc_cv_cc_with_libunwind!$libc_cv_cc_with_libunwind$ac_delim
9246 libc_cv_Bgroup!$libc_cv_Bgroup$ac_delim
9247 libc_cv_libgcc_s_suffix!$libc_cv_libgcc_s_suffix$ac_delim
9248 libc_cv_as_needed!$libc_cv_as_needed$ac_delim
9249 ASFLAGS_config!$ASFLAGS_config$ac_delim
9250 libc_cv_z_combreloc!$libc_cv_z_combreloc$ac_delim
9251 libc_cv_z_execstack!$libc_cv_z_execstack$ac_delim
9252 libc_cv_fpie!$libc_cv_fpie$ac_delim
9253 libc_cv_hashstyle!$libc_cv_hashstyle$ac_delim
9254 fno_unit_at_a_time!$fno_unit_at_a_time$ac_delim
9255 libc_cv_ssp!$libc_cv_ssp$ac_delim
9256 libc_cv_gnu89_inline!$libc_cv_gnu89_inline$ac_delim
9257 libc_cv_have_initfini!$libc_cv_have_initfini$ac_delim
9258 no_whole_archive!$no_whole_archive$ac_delim
9259 exceptions!$exceptions$ac_delim
9260 LIBGD!$LIBGD$ac_delim
9261 have_libaudit!$have_libaudit$ac_delim
9262 have_libcap!$have_libcap$ac_delim
9263 have_selinux!$have_selinux$ac_delim
9264 GREP!$GREP$ac_delim
9265 EGREP!$EGREP$ac_delim
9266 sizeof_long_double!$sizeof_long_double$ac_delim
9267 libc_cv_gcc_unwind_find_fde!$libc_cv_gcc_unwind_find_fde$ac_delim
9268 uname_sysname!$uname_sysname$ac_delim
9269 uname_release!$uname_release$ac_delim
9270 uname_version!$uname_version$ac_delim
9271 old_glibc_headers!$old_glibc_headers$ac_delim
9272 libc_cv_slibdir!$libc_cv_slibdir$ac_delim
9273 libc_cv_localedir!$libc_cv_localedir$ac_delim
9274 libc_cv_sysconfdir!$libc_cv_sysconfdir$ac_delim
9275 libc_cv_rootsbindir!$libc_cv_rootsbindir$ac_delim
9276 libc_cv_forced_unwind!$libc_cv_forced_unwind$ac_delim
9277 use_ldconfig!$use_ldconfig$ac_delim
9278 ldd_rewrite_script!$ldd_rewrite_script$ac_delim
9279 elf!$elf$ac_delim
9280 xcoff!$xcoff$ac_delim
9281 static!$static$ac_delim
9282 shared!$shared$ac_delim
9283 pic_default!$pic_default$ac_delim
9284 profile!$profile$ac_delim
9285 omitfp!$omitfp$ac_delim
9286 bounded!$bounded$ac_delim
9287 static_nss!$static_nss$ac_delim
9288 nopic_initfini!$nopic_initfini$ac_delim
9289 DEFINES!$DEFINES$ac_delim
9290 mach_interface_list!$mach_interface_list$ac_delim
9291 VERSION!$VERSION$ac_delim
9292 RELEASE!$RELEASE$ac_delim
9293 LIBOBJS!$LIBOBJS$ac_delim
9294 LTLIBOBJS!$LTLIBOBJS$ac_delim
9295 _ACEOF
9297 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then
9298 break
9299 elif $ac_last_try; then
9300 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9301 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9302 { (exit 1); exit 1; }; }
9303 else
9304 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9306 done
9308 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9309 if test -n "$ac_eof"; then
9310 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9311 ac_eof=`expr $ac_eof + 1`
9314 cat >>$CONFIG_STATUS <<_ACEOF
9315 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
9316 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9317 _ACEOF
9318 sed '
9319 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9320 s/^/s,@/; s/!/@,|#_!!_#|/
9323 s/'"$ac_delim"'$/,g/; t
9324 s/$/\\/; p
9325 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9326 ' >>$CONFIG_STATUS <conf$$subs.sed
9327 rm -f conf$$subs.sed
9328 cat >>$CONFIG_STATUS <<_ACEOF
9329 :end
9330 s/|#_!!_#|//g
9331 CEOF$ac_eof
9332 _ACEOF
9335 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9336 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9337 # trailing colons and then remove the whole line if VPATH becomes empty
9338 # (actually we leave an empty line to preserve line numbers).
9339 if test "x$srcdir" = x.; then
9340 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9341 s/:*\$(srcdir):*/:/
9342 s/:*\${srcdir}:*/:/
9343 s/:*@srcdir@:*/:/
9344 s/^\([^=]*=[ ]*\):*/\1/
9345 s/:*$//
9346 s/^[^=]*=[ ]*$//
9350 cat >>$CONFIG_STATUS <<\_ACEOF
9351 fi # test -n "$CONFIG_FILES"
9354 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
9356 case $ac_tag in
9357 :[FHLC]) ac_mode=$ac_tag; continue;;
9358 esac
9359 case $ac_mode$ac_tag in
9360 :[FHL]*:*);;
9361 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9362 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9363 { (exit 1); exit 1; }; };;
9364 :[FH]-) ac_tag=-:-;;
9365 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9366 esac
9367 ac_save_IFS=$IFS
9368 IFS=:
9369 set x $ac_tag
9370 IFS=$ac_save_IFS
9371 shift
9372 ac_file=$1
9373 shift
9375 case $ac_mode in
9376 :L) ac_source=$1;;
9377 :[FH])
9378 ac_file_inputs=
9379 for ac_f
9381 case $ac_f in
9382 -) ac_f="$tmp/stdin";;
9383 *) # Look for the file first in the build tree, then in the source tree
9384 # (if the path is not absolute). The absolute path cannot be DOS-style,
9385 # because $ac_f cannot contain `:'.
9386 test -f "$ac_f" ||
9387 case $ac_f in
9388 [\\/$]*) false;;
9389 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9390 esac ||
9391 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9392 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9393 { (exit 1); exit 1; }; };;
9394 esac
9395 ac_file_inputs="$ac_file_inputs $ac_f"
9396 done
9398 # Let's still pretend it is `configure' which instantiates (i.e., don't
9399 # use $as_me), people would be surprised to read:
9400 # /* config.h. Generated by config.status. */
9401 configure_input="Generated from "`IFS=:
9402 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9403 if test x"$ac_file" != x-; then
9404 configure_input="$ac_file. $configure_input"
9405 { echo "$as_me:$LINENO: creating $ac_file" >&5
9406 echo "$as_me: creating $ac_file" >&6;}
9409 case $ac_tag in
9410 *:-:* | *:-) cat >"$tmp/stdin";;
9411 esac
9413 esac
9415 ac_dir=`$as_dirname -- "$ac_file" ||
9416 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9417 X"$ac_file" : 'X\(//\)[^/]' \| \
9418 X"$ac_file" : 'X\(//\)$' \| \
9419 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9420 echo X"$ac_file" |
9421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9422 s//\1/
9425 /^X\(\/\/\)[^/].*/{
9426 s//\1/
9429 /^X\(\/\/\)$/{
9430 s//\1/
9433 /^X\(\/\).*/{
9434 s//\1/
9437 s/.*/./; q'`
9438 { as_dir="$ac_dir"
9439 case $as_dir in #(
9440 -*) as_dir=./$as_dir;;
9441 esac
9442 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9443 as_dirs=
9444 while :; do
9445 case $as_dir in #(
9446 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9447 *) as_qdir=$as_dir;;
9448 esac
9449 as_dirs="'$as_qdir' $as_dirs"
9450 as_dir=`$as_dirname -- "$as_dir" ||
9451 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9452 X"$as_dir" : 'X\(//\)[^/]' \| \
9453 X"$as_dir" : 'X\(//\)$' \| \
9454 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9455 echo X"$as_dir" |
9456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9457 s//\1/
9460 /^X\(\/\/\)[^/].*/{
9461 s//\1/
9464 /^X\(\/\/\)$/{
9465 s//\1/
9468 /^X\(\/\).*/{
9469 s//\1/
9472 s/.*/./; q'`
9473 test -d "$as_dir" && break
9474 done
9475 test -z "$as_dirs" || eval "mkdir $as_dirs"
9476 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9477 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9478 { (exit 1); exit 1; }; }; }
9479 ac_builddir=.
9481 case "$ac_dir" in
9482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9484 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9485 # A ".." for each directory in $ac_dir_suffix.
9486 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9487 case $ac_top_builddir_sub in
9488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9490 esac ;;
9491 esac
9492 ac_abs_top_builddir=$ac_pwd
9493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9494 # for backward compatibility:
9495 ac_top_builddir=$ac_top_build_prefix
9497 case $srcdir in
9498 .) # We are building in place.
9499 ac_srcdir=.
9500 ac_top_srcdir=$ac_top_builddir_sub
9501 ac_abs_top_srcdir=$ac_pwd ;;
9502 [\\/]* | ?:[\\/]* ) # Absolute name.
9503 ac_srcdir=$srcdir$ac_dir_suffix;
9504 ac_top_srcdir=$srcdir
9505 ac_abs_top_srcdir=$srcdir ;;
9506 *) # Relative name.
9507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9508 ac_top_srcdir=$ac_top_build_prefix$srcdir
9509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9510 esac
9511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9514 case $ac_mode in
9517 # CONFIG_FILE
9520 case $INSTALL in
9521 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9522 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9523 esac
9524 _ACEOF
9526 cat >>$CONFIG_STATUS <<\_ACEOF
9527 # If the template does not know about datarootdir, expand it.
9528 # FIXME: This hack should be removed a few years after 2.60.
9529 ac_datarootdir_hack=; ac_datarootdir_seen=
9531 case `sed -n '/datarootdir/ {
9535 /@datadir@/p
9536 /@docdir@/p
9537 /@infodir@/p
9538 /@localedir@/p
9539 /@mandir@/p
9540 ' $ac_file_inputs` in
9541 *datarootdir*) ac_datarootdir_seen=yes;;
9542 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9543 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9544 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9545 _ACEOF
9546 cat >>$CONFIG_STATUS <<_ACEOF
9547 ac_datarootdir_hack='
9548 s&@datadir@&$datadir&g
9549 s&@docdir@&$docdir&g
9550 s&@infodir@&$infodir&g
9551 s&@localedir@&$localedir&g
9552 s&@mandir@&$mandir&g
9553 s&\\\${datarootdir}&$datarootdir&g' ;;
9554 esac
9555 _ACEOF
9557 # Neutralize VPATH when `$srcdir' = `.'.
9558 # Shell code in configure.ac might set extrasub.
9559 # FIXME: do we really want to maintain this feature?
9560 cat >>$CONFIG_STATUS <<_ACEOF
9561 sed "$ac_vpsub
9562 $extrasub
9563 _ACEOF
9564 cat >>$CONFIG_STATUS <<\_ACEOF
9566 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9567 s&@configure_input@&$configure_input&;t t
9568 s&@top_builddir@&$ac_top_builddir_sub&;t t
9569 s&@srcdir@&$ac_srcdir&;t t
9570 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9571 s&@top_srcdir@&$ac_top_srcdir&;t t
9572 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9573 s&@builddir@&$ac_builddir&;t t
9574 s&@abs_builddir@&$ac_abs_builddir&;t t
9575 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9576 s&@INSTALL@&$ac_INSTALL&;t t
9577 $ac_datarootdir_hack
9578 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
9580 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9581 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9582 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9583 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9584 which seems to be undefined. Please make sure it is defined." >&5
9585 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9586 which seems to be undefined. Please make sure it is defined." >&2;}
9588 rm -f "$tmp/stdin"
9589 case $ac_file in
9590 -) cat "$tmp/out"; rm -f "$tmp/out";;
9591 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9592 esac
9596 # CONFIG_HEADER
9598 _ACEOF
9600 # Transform confdefs.h into a sed script `conftest.defines', that
9601 # substitutes the proper values into config.h.in to produce config.h.
9602 rm -f conftest.defines conftest.tail
9603 # First, append a space to every undef/define line, to ease matching.
9604 echo 's/$/ /' >conftest.defines
9605 # Then, protect against being on the right side of a sed subst, or in
9606 # an unquoted here document, in config.status. If some macros were
9607 # called several times there might be several #defines for the same
9608 # symbol, which is useless. But do not sort them, since the last
9609 # AC_DEFINE must be honored.
9610 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9611 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9612 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9613 # PARAMS is the parameter list in the macro definition--in most cases, it's
9614 # just an empty string.
9615 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9616 ac_dB='\\)[ (].*,\\1define\\2'
9617 ac_dC=' '
9618 ac_dD=' ,'
9620 uniq confdefs.h |
9621 sed -n '
9622 t rset
9623 :rset
9624 s/^[ ]*#[ ]*define[ ][ ]*//
9625 t ok
9628 s/[\\&,]/\\&/g
9629 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9630 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9631 ' >>conftest.defines
9633 # Remove the space that was appended to ease matching.
9634 # Then replace #undef with comments. This is necessary, for
9635 # example, in the case of _POSIX_SOURCE, which is predefined and required
9636 # on some systems where configure will not decide to define it.
9637 # (The regexp can be short, since the line contains either #define or #undef.)
9638 echo 's/ $//
9639 s,^[ #]*u.*,/* & */,' >>conftest.defines
9641 # Break up conftest.defines:
9642 ac_max_sed_lines=50
9644 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9645 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9646 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9647 # et cetera.
9648 ac_in='$ac_file_inputs'
9649 ac_out='"$tmp/out1"'
9650 ac_nxt='"$tmp/out2"'
9652 while :
9654 # Write a here document:
9655 cat >>$CONFIG_STATUS <<_ACEOF
9656 # First, check the format of the line:
9657 cat >"\$tmp/defines.sed" <<\\CEOF
9658 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9659 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9661 :def
9662 _ACEOF
9663 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9664 echo 'CEOF
9665 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9666 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9667 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9668 grep . conftest.tail >/dev/null || break
9669 rm -f conftest.defines
9670 mv conftest.tail conftest.defines
9671 done
9672 rm -f conftest.defines conftest.tail
9674 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9675 cat >>$CONFIG_STATUS <<\_ACEOF
9676 if test x"$ac_file" != x-; then
9677 echo "/* $configure_input */" >"$tmp/config.h"
9678 cat "$ac_result" >>"$tmp/config.h"
9679 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9680 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9681 echo "$as_me: $ac_file is unchanged" >&6;}
9682 else
9683 rm -f $ac_file
9684 mv "$tmp/config.h" $ac_file
9686 else
9687 echo "/* $configure_input */"
9688 cat "$ac_result"
9690 rm -f "$tmp/out12"
9693 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9694 echo "$as_me: executing $ac_file commands" >&6;}
9696 esac
9699 case $ac_file$ac_mode in
9700 "default":C)
9701 case $CONFIG_FILES in *config.make*)
9702 echo "$config_vars" >> config.make;;
9703 esac
9704 test -d bits || mkdir bits ;;
9706 esac
9707 done # for ac_tag
9710 { (exit 0); exit 0; }
9711 _ACEOF
9712 chmod +x $CONFIG_STATUS
9713 ac_clean_files=$ac_clean_files_save
9716 # configure is writing to config.log, and then calls config.status.
9717 # config.status does its own redirection, appending to config.log.
9718 # Unfortunately, on DOS this fails, as config.log is still kept open
9719 # by configure, so config.status won't be able to write to it; its
9720 # output is simply discarded. So we exec the FD to /dev/null,
9721 # effectively closing config.log, so it can be properly (re)opened and
9722 # appended to by config.status. When coming back to configure, we
9723 # need to make the FD available again.
9724 if test "$no_create" != yes; then
9725 ac_cs_success=:
9726 ac_config_status_args=
9727 test "$silent" = yes &&
9728 ac_config_status_args="$ac_config_status_args --quiet"
9729 exec 5>/dev/null
9730 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9731 exec 5>>config.log
9732 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9733 # would make configure fail if this is the last instruction.
9734 $ac_cs_success || { (exit 1); exit 1; }
9738 # CONFIG_SUBDIRS section.
9740 if test "$no_recursion" != yes; then
9742 # Remove --cache-file and --srcdir arguments so they do not pile up.
9743 ac_sub_configure_args=
9744 ac_prev=
9745 eval "set x $ac_configure_args"
9746 shift
9747 for ac_arg
9749 if test -n "$ac_prev"; then
9750 ac_prev=
9751 continue
9753 case $ac_arg in
9754 -cache-file | --cache-file | --cache-fil | --cache-fi \
9755 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9756 ac_prev=cache_file ;;
9757 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9758 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9759 | --c=*)
9761 --config-cache | -C)
9763 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9764 ac_prev=srcdir ;;
9765 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9767 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9768 ac_prev=prefix ;;
9769 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9772 case $ac_arg in
9773 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9774 esac
9775 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
9776 esac
9777 done
9779 # Always prepend --prefix to ensure using the same prefix
9780 # in subdir configurations.
9781 ac_arg="--prefix=$prefix"
9782 case $ac_arg in
9783 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9784 esac
9785 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9787 # Pass --silent
9788 if test "$silent" = yes; then
9789 ac_sub_configure_args="--silent $ac_sub_configure_args"
9792 ac_popdir=`pwd`
9793 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9795 # Do not complain, so a configure script can configure whichever
9796 # parts of a large source tree are present.
9797 test -d "$srcdir/$ac_dir" || continue
9799 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9800 echo "$as_me:$LINENO: $ac_msg" >&5
9801 echo "$ac_msg" >&6
9802 { as_dir="$ac_dir"
9803 case $as_dir in #(
9804 -*) as_dir=./$as_dir;;
9805 esac
9806 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9807 as_dirs=
9808 while :; do
9809 case $as_dir in #(
9810 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9811 *) as_qdir=$as_dir;;
9812 esac
9813 as_dirs="'$as_qdir' $as_dirs"
9814 as_dir=`$as_dirname -- "$as_dir" ||
9815 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9816 X"$as_dir" : 'X\(//\)[^/]' \| \
9817 X"$as_dir" : 'X\(//\)$' \| \
9818 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9819 echo X"$as_dir" |
9820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9821 s//\1/
9824 /^X\(\/\/\)[^/].*/{
9825 s//\1/
9828 /^X\(\/\/\)$/{
9829 s//\1/
9832 /^X\(\/\).*/{
9833 s//\1/
9836 s/.*/./; q'`
9837 test -d "$as_dir" && break
9838 done
9839 test -z "$as_dirs" || eval "mkdir $as_dirs"
9840 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9841 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9842 { (exit 1); exit 1; }; }; }
9843 ac_builddir=.
9845 case "$ac_dir" in
9846 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9848 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9849 # A ".." for each directory in $ac_dir_suffix.
9850 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9851 case $ac_top_builddir_sub in
9852 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9853 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9854 esac ;;
9855 esac
9856 ac_abs_top_builddir=$ac_pwd
9857 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9858 # for backward compatibility:
9859 ac_top_builddir=$ac_top_build_prefix
9861 case $srcdir in
9862 .) # We are building in place.
9863 ac_srcdir=.
9864 ac_top_srcdir=$ac_top_builddir_sub
9865 ac_abs_top_srcdir=$ac_pwd ;;
9866 [\\/]* | ?:[\\/]* ) # Absolute name.
9867 ac_srcdir=$srcdir$ac_dir_suffix;
9868 ac_top_srcdir=$srcdir
9869 ac_abs_top_srcdir=$srcdir ;;
9870 *) # Relative name.
9871 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9872 ac_top_srcdir=$ac_top_build_prefix$srcdir
9873 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9874 esac
9875 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9878 cd "$ac_dir"
9880 # Check for guested configure; otherwise get Cygnus style configure.
9881 if test -f "$ac_srcdir/configure.gnu"; then
9882 ac_sub_configure=$ac_srcdir/configure.gnu
9883 elif test -f "$ac_srcdir/configure"; then
9884 ac_sub_configure=$ac_srcdir/configure
9885 elif test -f "$ac_srcdir/configure.in"; then
9886 # This should be Cygnus configure.
9887 ac_sub_configure=$ac_aux_dir/configure
9888 else
9889 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
9890 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9891 ac_sub_configure=
9894 # The recursion is here.
9895 if test -n "$ac_sub_configure"; then
9896 # Make the cache file name correct relative to the subdirectory.
9897 case $cache_file in
9898 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9899 *) # Relative name.
9900 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9901 esac
9903 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9904 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9905 # The eval makes quoting arguments work.
9906 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9907 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9908 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
9909 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9910 { (exit 1); exit 1; }; }
9913 cd "$ac_popdir"
9914 done