Add nss-crypt entry. Rename pic_default to libc_cv_pic_default.
[glibc.git] / configure
blob69af8525bec3c5074fa872799a405c8d874a01f4
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 multi_arch
664 experimental_malloc
665 build
666 build_cpu
667 build_vendor
668 build_os
669 host
670 host_cpu
671 host_vendor
672 host_os
673 subdirs
674 add_ons
675 add_on_subdirs
676 base_machine
677 submachine
678 sysnames
679 sysdeps_add_ons
680 INSTALL_PROGRAM
681 INSTALL_SCRIPT
682 INSTALL_DATA
683 LN_S
685 CFLAGS
686 LDFLAGS
687 CPPFLAGS
688 ac_ct_CC
689 OBJEXT
690 BUILD_CC
691 cross_compiling
694 CXXFLAGS
695 ac_ct_CXX
697 OBJDUMP
698 RANLIB
702 PWD_P
703 MAKE
704 MSGFMT
705 MAKEINFO
707 AUTOCONF
708 SYSINCLUDES
709 CXX_SYSINCLUDES
710 libc_cv_gcc_static_libgcc
711 BASH_SHELL
712 libc_cv_have_bash2
714 libc_cv_have_ksh
716 PERL
717 INSTALL_INFO
718 BISON
719 VERSIONING
720 libc_cv_cc_with_libunwind
721 libc_cv_Bgroup
722 libc_cv_libgcc_s_suffix
723 libc_cv_as_needed
724 ASFLAGS_config
725 libc_cv_z_combreloc
726 libc_cv_z_execstack
727 libc_cv_fpie
728 libc_cv_hashstyle
729 fno_unit_at_a_time
730 libc_cv_ssp
731 libc_cv_gnu89_inline
732 libc_cv_have_initfini
733 no_whole_archive
734 exceptions
735 libc_cv_cc_submachine
736 LIBGD
737 have_libaudit
738 have_libcap
739 have_selinux
740 GREP
741 EGREP
742 sizeof_long_double
743 libc_cv_gcc_unwind_find_fde
744 uname_sysname
745 uname_release
746 uname_version
747 old_glibc_headers
748 libc_cv_slibdir
749 libc_cv_localedir
750 libc_cv_sysconfdir
751 libc_cv_rootsbindir
752 libc_cv_forced_unwind
753 libc_cv_cpp_asm_debuginfo
754 use_ldconfig
755 ldd_rewrite_script
757 xcoff
758 static
759 shared
760 pic_default
761 profile
762 omitfp
763 bounded
764 static_nss
765 nopic_initfini
766 DEFINES
767 mach_interface_list
768 VERSION
769 RELEASE
770 LIBOBJS
771 LTLIBOBJS'
772 ac_subst_files=''
773 ac_precious_vars='build_alias
774 host_alias
775 target_alias
777 CFLAGS
778 LDFLAGS
779 LIBS
780 CPPFLAGS
783 CXXFLAGS
784 CCC'
785 ac_subdirs_all=''
787 # Initialize some variables set by options.
788 ac_init_help=
789 ac_init_version=false
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
792 cache_file=/dev/null
793 exec_prefix=NONE
794 no_create=
795 no_recursion=
796 prefix=NONE
797 program_prefix=NONE
798 program_suffix=NONE
799 program_transform_name=s,x,x,
800 silent=
801 site=
802 srcdir=
803 verbose=
804 x_includes=NONE
805 x_libraries=NONE
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir='${exec_prefix}/bin'
814 sbindir='${exec_prefix}/sbin'
815 libexecdir='${exec_prefix}/libexec'
816 datarootdir='${prefix}/share'
817 datadir='${datarootdir}'
818 sysconfdir='${prefix}/etc'
819 sharedstatedir='${prefix}/com'
820 localstatedir='${prefix}/var'
821 includedir='${prefix}/include'
822 oldincludedir='/usr/include'
823 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824 infodir='${datarootdir}/info'
825 htmldir='${docdir}'
826 dvidir='${docdir}'
827 pdfdir='${docdir}'
828 psdir='${docdir}'
829 libdir='${exec_prefix}/lib'
830 localedir='${datarootdir}/locale'
831 mandir='${datarootdir}/man'
833 ac_prev=
834 ac_dashdash=
835 for ac_option
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\$ac_option
840 ac_prev=
841 continue
844 case $ac_option in
845 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 *) ac_optarg=yes ;;
847 esac
849 # Accept the important Cygnus configure options, so we can diagnose typos.
851 case $ac_dashdash$ac_option in
853 ac_dashdash=yes ;;
855 -bindir | --bindir | --bindi | --bind | --bin | --bi)
856 ac_prev=bindir ;;
857 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858 bindir=$ac_optarg ;;
860 -build | --build | --buil | --bui | --bu)
861 ac_prev=build_alias ;;
862 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
863 build_alias=$ac_optarg ;;
865 -cache-file | --cache-file | --cache-fil | --cache-fi \
866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
867 ac_prev=cache_file ;;
868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
870 cache_file=$ac_optarg ;;
872 --config-cache | -C)
873 cache_file=config.cache ;;
875 -datadir | --datadir | --datadi | --datad)
876 ac_prev=datadir ;;
877 -datadir=* | --datadir=* | --datadi=* | --datad=*)
878 datadir=$ac_optarg ;;
880 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
881 | --dataroo | --dataro | --datar)
882 ac_prev=datarootdir ;;
883 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
884 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
885 datarootdir=$ac_optarg ;;
887 -disable-* | --disable-*)
888 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
889 # Reject names that are not valid shell variable names.
890 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
891 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
892 { (exit 1); exit 1; }; }
893 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
894 eval enable_$ac_feature=no ;;
896 -docdir | --docdir | --docdi | --doc | --do)
897 ac_prev=docdir ;;
898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899 docdir=$ac_optarg ;;
901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 ac_prev=dvidir ;;
903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904 dvidir=$ac_optarg ;;
906 -enable-* | --enable-*)
907 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
910 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
911 { (exit 1); exit 1; }; }
912 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
913 eval enable_$ac_feature=\$ac_optarg ;;
915 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
916 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
917 | --exec | --exe | --ex)
918 ac_prev=exec_prefix ;;
919 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
920 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
921 | --exec=* | --exe=* | --ex=*)
922 exec_prefix=$ac_optarg ;;
924 -gas | --gas | --ga | --g)
925 # Obsolete; use --with-gas.
926 with_gas=yes ;;
928 -help | --help | --hel | --he | -h)
929 ac_init_help=long ;;
930 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
931 ac_init_help=recursive ;;
932 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
933 ac_init_help=short ;;
935 -host | --host | --hos | --ho)
936 ac_prev=host_alias ;;
937 -host=* | --host=* | --hos=* | --ho=*)
938 host_alias=$ac_optarg ;;
940 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
941 ac_prev=htmldir ;;
942 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
943 | --ht=*)
944 htmldir=$ac_optarg ;;
946 -includedir | --includedir | --includedi | --included | --include \
947 | --includ | --inclu | --incl | --inc)
948 ac_prev=includedir ;;
949 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
950 | --includ=* | --inclu=* | --incl=* | --inc=*)
951 includedir=$ac_optarg ;;
953 -infodir | --infodir | --infodi | --infod | --info | --inf)
954 ac_prev=infodir ;;
955 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
956 infodir=$ac_optarg ;;
958 -libdir | --libdir | --libdi | --libd)
959 ac_prev=libdir ;;
960 -libdir=* | --libdir=* | --libdi=* | --libd=*)
961 libdir=$ac_optarg ;;
963 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
964 | --libexe | --libex | --libe)
965 ac_prev=libexecdir ;;
966 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
967 | --libexe=* | --libex=* | --libe=*)
968 libexecdir=$ac_optarg ;;
970 -localedir | --localedir | --localedi | --localed | --locale)
971 ac_prev=localedir ;;
972 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
973 localedir=$ac_optarg ;;
975 -localstatedir | --localstatedir | --localstatedi | --localstated \
976 | --localstate | --localstat | --localsta | --localst | --locals)
977 ac_prev=localstatedir ;;
978 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
979 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
980 localstatedir=$ac_optarg ;;
982 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
983 ac_prev=mandir ;;
984 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
985 mandir=$ac_optarg ;;
987 -nfp | --nfp | --nf)
988 # Obsolete; use --without-fp.
989 with_fp=no ;;
991 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
992 | --no-cr | --no-c | -n)
993 no_create=yes ;;
995 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
996 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
997 no_recursion=yes ;;
999 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1000 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1001 | --oldin | --oldi | --old | --ol | --o)
1002 ac_prev=oldincludedir ;;
1003 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1004 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1005 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1006 oldincludedir=$ac_optarg ;;
1008 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1009 ac_prev=prefix ;;
1010 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1011 prefix=$ac_optarg ;;
1013 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1014 | --program-pre | --program-pr | --program-p)
1015 ac_prev=program_prefix ;;
1016 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1017 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1018 program_prefix=$ac_optarg ;;
1020 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1021 | --program-suf | --program-su | --program-s)
1022 ac_prev=program_suffix ;;
1023 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1024 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1025 program_suffix=$ac_optarg ;;
1027 -program-transform-name | --program-transform-name \
1028 | --program-transform-nam | --program-transform-na \
1029 | --program-transform-n | --program-transform- \
1030 | --program-transform | --program-transfor \
1031 | --program-transfo | --program-transf \
1032 | --program-trans | --program-tran \
1033 | --progr-tra | --program-tr | --program-t)
1034 ac_prev=program_transform_name ;;
1035 -program-transform-name=* | --program-transform-name=* \
1036 | --program-transform-nam=* | --program-transform-na=* \
1037 | --program-transform-n=* | --program-transform-=* \
1038 | --program-transform=* | --program-transfor=* \
1039 | --program-transfo=* | --program-transf=* \
1040 | --program-trans=* | --program-tran=* \
1041 | --progr-tra=* | --program-tr=* | --program-t=*)
1042 program_transform_name=$ac_optarg ;;
1044 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1045 ac_prev=pdfdir ;;
1046 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1047 pdfdir=$ac_optarg ;;
1049 -psdir | --psdir | --psdi | --psd | --ps)
1050 ac_prev=psdir ;;
1051 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1052 psdir=$ac_optarg ;;
1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055 | -silent | --silent | --silen | --sile | --sil)
1056 silent=yes ;;
1058 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1059 ac_prev=sbindir ;;
1060 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1061 | --sbi=* | --sb=*)
1062 sbindir=$ac_optarg ;;
1064 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1065 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1066 | --sharedst | --shareds | --shared | --share | --shar \
1067 | --sha | --sh)
1068 ac_prev=sharedstatedir ;;
1069 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1070 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1071 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1072 | --sha=* | --sh=*)
1073 sharedstatedir=$ac_optarg ;;
1075 -site | --site | --sit)
1076 ac_prev=site ;;
1077 -site=* | --site=* | --sit=*)
1078 site=$ac_optarg ;;
1080 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1081 ac_prev=srcdir ;;
1082 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1083 srcdir=$ac_optarg ;;
1085 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1086 | --syscon | --sysco | --sysc | --sys | --sy)
1087 ac_prev=sysconfdir ;;
1088 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1089 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1090 sysconfdir=$ac_optarg ;;
1092 -target | --target | --targe | --targ | --tar | --ta | --t)
1093 ac_prev=target_alias ;;
1094 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1095 target_alias=$ac_optarg ;;
1097 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1098 verbose=yes ;;
1100 -version | --version | --versio | --versi | --vers | -V)
1101 ac_init_version=: ;;
1103 -with-* | --with-*)
1104 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1107 { echo "$as_me: error: invalid package name: $ac_package" >&2
1108 { (exit 1); exit 1; }; }
1109 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1110 eval with_$ac_package=\$ac_optarg ;;
1112 -without-* | --without-*)
1113 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1116 { echo "$as_me: error: invalid package name: $ac_package" >&2
1117 { (exit 1); exit 1; }; }
1118 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1119 eval with_$ac_package=no ;;
1121 --x)
1122 # Obsolete; use --with-x.
1123 with_x=yes ;;
1125 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1126 | --x-incl | --x-inc | --x-in | --x-i)
1127 ac_prev=x_includes ;;
1128 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1129 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1130 x_includes=$ac_optarg ;;
1132 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1133 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1134 ac_prev=x_libraries ;;
1135 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1136 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1137 x_libraries=$ac_optarg ;;
1139 -*) { echo "$as_me: error: unrecognized option: $ac_option
1140 Try \`$0 --help' for more information." >&2
1141 { (exit 1); exit 1; }; }
1144 *=*)
1145 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1149 { (exit 1); exit 1; }; }
1150 eval $ac_envvar=\$ac_optarg
1151 export $ac_envvar ;;
1154 # FIXME: should be removed in autoconf 3.0.
1155 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1156 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1158 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1161 esac
1162 done
1164 if test -n "$ac_prev"; then
1165 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1166 { echo "$as_me: error: missing argument to $ac_option" >&2
1167 { (exit 1); exit 1; }; }
1170 # Be sure to have absolute directory names.
1171 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1172 datadir sysconfdir sharedstatedir localstatedir includedir \
1173 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1174 libdir localedir mandir
1176 eval ac_val=\$$ac_var
1177 case $ac_val in
1178 [\\/$]* | ?:[\\/]* ) continue;;
1179 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1180 esac
1181 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1182 { (exit 1); exit 1; }; }
1183 done
1185 # There might be people who depend on the old broken behavior: `$host'
1186 # used to hold the argument of --host etc.
1187 # FIXME: To remove some day.
1188 build=$build_alias
1189 host=$host_alias
1190 target=$target_alias
1192 # FIXME: To remove some day.
1193 if test "x$host_alias" != x; then
1194 if test "x$build_alias" = x; then
1195 cross_compiling=maybe
1196 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1197 If a cross compiler is detected then cross compile mode will be used." >&2
1198 elif test "x$build_alias" != "x$host_alias"; then
1199 cross_compiling=yes
1203 ac_tool_prefix=
1204 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1206 test "$silent" = yes && exec 6>/dev/null
1209 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1210 ac_ls_di=`ls -di .` &&
1211 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1212 { echo "$as_me: error: Working directory cannot be determined" >&2
1213 { (exit 1); exit 1; }; }
1214 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1215 { echo "$as_me: error: pwd does not report name of working directory" >&2
1216 { (exit 1); exit 1; }; }
1219 # Find the source files, if location was not specified.
1220 if test -z "$srcdir"; then
1221 ac_srcdir_defaulted=yes
1222 # Try the directory containing this script, then the parent directory.
1223 ac_confdir=`$as_dirname -- "$0" ||
1224 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1225 X"$0" : 'X\(//\)[^/]' \| \
1226 X"$0" : 'X\(//\)$' \| \
1227 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1228 echo X"$0" |
1229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1230 s//\1/
1233 /^X\(\/\/\)[^/].*/{
1234 s//\1/
1237 /^X\(\/\/\)$/{
1238 s//\1/
1241 /^X\(\/\).*/{
1242 s//\1/
1245 s/.*/./; q'`
1246 srcdir=$ac_confdir
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248 srcdir=..
1250 else
1251 ac_srcdir_defaulted=no
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1254 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1255 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1256 { (exit 1); exit 1; }; }
1258 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1259 ac_abs_confdir=`(
1260 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1261 { (exit 1); exit 1; }; }
1262 pwd)`
1263 # When building in place, set srcdir=.
1264 if test "$ac_abs_confdir" = "$ac_pwd"; then
1265 srcdir=.
1267 # Remove unnecessary trailing slashes from srcdir.
1268 # Double slashes in file names in object file debugging info
1269 # mess up M-x gdb in Emacs.
1270 case $srcdir in
1271 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1272 esac
1273 for ac_var in $ac_precious_vars; do
1274 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_env_${ac_var}_value=\$${ac_var}
1276 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1277 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1278 done
1281 # Report the --help message.
1283 if test "$ac_init_help" = "long"; then
1284 # Omit some internal or obsolete options to make the list less imposing.
1285 # This message is too long to be a string in the A/UX 3.1 sh.
1286 cat <<_ACEOF
1287 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1289 Usage: $0 [OPTION]... [VAR=VALUE]...
1291 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1292 VAR=VALUE. See below for descriptions of some of the useful variables.
1294 Defaults for the options are specified in brackets.
1296 Configuration:
1297 -h, --help display this help and exit
1298 --help=short display options specific to this package
1299 --help=recursive display the short help of all the included packages
1300 -V, --version display version information and exit
1301 -q, --quiet, --silent do not print \`checking...' messages
1302 --cache-file=FILE cache test results in FILE [disabled]
1303 -C, --config-cache alias for \`--cache-file=config.cache'
1304 -n, --no-create do not create output files
1305 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1307 Installation directories:
1308 --prefix=PREFIX install architecture-independent files in PREFIX
1309 [$ac_default_prefix]
1310 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1311 [PREFIX]
1313 By default, \`make install' will install all the files in
1314 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1315 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1316 for instance \`--prefix=\$HOME'.
1318 For better control, use the options below.
1320 Fine tuning of the installation directories:
1321 --bindir=DIR user executables [EPREFIX/bin]
1322 --sbindir=DIR system admin executables [EPREFIX/sbin]
1323 --libexecdir=DIR program executables [EPREFIX/libexec]
1324 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1325 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1326 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1327 --libdir=DIR object code libraries [EPREFIX/lib]
1328 --includedir=DIR C header files [PREFIX/include]
1329 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1330 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1331 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1332 --infodir=DIR info documentation [DATAROOTDIR/info]
1333 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1334 --mandir=DIR man documentation [DATAROOTDIR/man]
1335 --docdir=DIR documentation root [DATAROOTDIR/doc/c-library]
1336 --htmldir=DIR html documentation [DOCDIR]
1337 --dvidir=DIR dvi documentation [DOCDIR]
1338 --pdfdir=DIR pdf documentation [DOCDIR]
1339 --psdir=DIR ps documentation [DOCDIR]
1340 _ACEOF
1342 cat <<\_ACEOF
1344 System types:
1345 --build=BUILD configure for building on BUILD [guessed]
1346 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1347 _ACEOF
1350 if test -n "$ac_init_help"; then
1351 case $ac_init_help in
1352 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1353 esac
1354 cat <<\_ACEOF
1356 Optional Features:
1357 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1358 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1359 --disable-sanity-checks really do not use threads (should not be used except
1360 in special situations) [default=yes]
1361 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1362 [default=no]
1363 --enable-shared build shared library [default=yes if GNU ld & ELF]
1364 --enable-profile build profiled library [default=no]
1365 --enable-omitfp build undebuggable optimized library [default=no]
1366 --enable-bounded build with runtime bounds checking [default=no]
1367 --disable-versioning do not include versioning information in the library
1368 objects [default=yes if supported]
1369 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1370 [default=glibc default]
1371 --enable-stackguard-randomization
1372 initialize __stack_chk_guard canary with a random
1373 number at program start
1374 --enable-add-ons[=DIRS...]
1375 configure and build add-ons in DIR1,DIR2,... search
1376 for add-ons if no parameter given
1377 --disable-hidden-plt do not hide internal function calls to avoid PLT
1378 --enable-bind-now disable lazy relocations in DSOs
1379 --enable-static-nss build static NSS modules [default=no]
1380 --disable-force-install don't force installation of files from this package,
1381 even if they are older than the installed files
1382 --enable-kernel=VERSION compile for compatibility with kernel not older than
1383 VERSION
1384 --enable-all-warnings enable all useful warnings gcc can issue
1385 --enable-multi-arch enable single DSO with optimizations for multiple
1386 architectures
1387 --enable-experimental-malloc
1388 enable experimental malloc features
1390 Optional Packages:
1391 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1392 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1393 --with-gd=DIR find libgd include dir and library with prefix DIR
1394 --with-gd-include=DIR find libgd include files in DIR
1395 --with-gd-lib=DIR find libgd library files in DIR
1396 --with-fp if using floating-point hardware [default=yes]
1397 --with-binutils=PATH specify location of binutils (as and ld)
1398 --with-elf if using the ELF object format
1399 --with-selinux if building with SELinux support
1400 --with-xcoff if using the XCOFF object format
1401 --without-cvs if CVS should not be used
1402 --with-headers=PATH location of system headers to use (for example
1403 /usr/src/linux/include) [default=compiler default]
1404 --with-tls enable support for TLS
1405 --without-__thread do not use TLS features even when supporting them
1406 --with-cpu=CPU select code for CPU variant
1408 Some influential environment variables:
1409 CC C compiler command
1410 CFLAGS C compiler flags
1411 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1412 nonstandard directory <lib dir>
1413 LIBS libraries to pass to the linker, e.g. -l<library>
1414 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1415 you have headers in a nonstandard directory <include dir>
1416 CPP C preprocessor
1417 CXX C++ compiler command
1418 CXXFLAGS C++ compiler flags
1420 Use these variables to override the choices made by `configure' or to help
1421 it to find libraries and programs with nonstandard names/locations.
1423 Report bugs to <glibc>.
1424 _ACEOF
1425 ac_status=$?
1428 if test "$ac_init_help" = "recursive"; then
1429 # If there are subdirs, report their specific --help.
1430 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1431 test -d "$ac_dir" || continue
1432 ac_builddir=.
1434 case "$ac_dir" in
1435 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1438 # A ".." for each directory in $ac_dir_suffix.
1439 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1440 case $ac_top_builddir_sub in
1441 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1443 esac ;;
1444 esac
1445 ac_abs_top_builddir=$ac_pwd
1446 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1447 # for backward compatibility:
1448 ac_top_builddir=$ac_top_build_prefix
1450 case $srcdir in
1451 .) # We are building in place.
1452 ac_srcdir=.
1453 ac_top_srcdir=$ac_top_builddir_sub
1454 ac_abs_top_srcdir=$ac_pwd ;;
1455 [\\/]* | ?:[\\/]* ) # Absolute name.
1456 ac_srcdir=$srcdir$ac_dir_suffix;
1457 ac_top_srcdir=$srcdir
1458 ac_abs_top_srcdir=$srcdir ;;
1459 *) # Relative name.
1460 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1461 ac_top_srcdir=$ac_top_build_prefix$srcdir
1462 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1463 esac
1464 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466 cd "$ac_dir" || { ac_status=$?; continue; }
1467 # Check for guested configure.
1468 if test -f "$ac_srcdir/configure.gnu"; then
1469 echo &&
1470 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471 elif test -f "$ac_srcdir/configure"; then
1472 echo &&
1473 $SHELL "$ac_srcdir/configure" --help=recursive
1474 else
1475 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1476 fi || ac_status=$?
1477 cd "$ac_pwd" || { ac_status=$?; break; }
1478 done
1481 test -n "$ac_init_help" && exit $ac_status
1482 if $ac_init_version; then
1483 cat <<\_ACEOF
1484 GNU C Library configure (see version.h)
1485 generated by GNU Autoconf 2.61
1487 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1488 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1489 This configure script is free software; the Free Software Foundation
1490 gives unlimited permission to copy, distribute and modify it.
1491 _ACEOF
1492 exit
1494 cat >config.log <<_ACEOF
1495 This file contains any messages produced by compilers while
1496 running configure, to aid debugging if configure makes a mistake.
1498 It was created by GNU C Library $as_me (see version.h), which was
1499 generated by GNU Autoconf 2.61. Invocation command line was
1501 $ $0 $@
1503 _ACEOF
1504 exec 5>>config.log
1506 cat <<_ASUNAME
1507 ## --------- ##
1508 ## Platform. ##
1509 ## --------- ##
1511 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1512 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1513 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1514 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1515 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1517 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1518 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1520 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1521 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1522 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1523 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1524 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1525 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1526 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1528 _ASUNAME
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 for as_dir in $PATH
1533 IFS=$as_save_IFS
1534 test -z "$as_dir" && as_dir=.
1535 echo "PATH: $as_dir"
1536 done
1537 IFS=$as_save_IFS
1539 } >&5
1541 cat >&5 <<_ACEOF
1544 ## ----------- ##
1545 ## Core tests. ##
1546 ## ----------- ##
1548 _ACEOF
1551 # Keep a trace of the command line.
1552 # Strip out --no-create and --no-recursion so they do not pile up.
1553 # Strip out --silent because we don't want to record it for future runs.
1554 # Also quote any args containing shell meta-characters.
1555 # Make two passes to allow for proper duplicate-argument suppression.
1556 ac_configure_args=
1557 ac_configure_args0=
1558 ac_configure_args1=
1559 ac_must_keep_next=false
1560 for ac_pass in 1 2
1562 for ac_arg
1564 case $ac_arg in
1565 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1566 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1567 | -silent | --silent | --silen | --sile | --sil)
1568 continue ;;
1569 *\'*)
1570 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1571 esac
1572 case $ac_pass in
1573 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1575 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1576 if test $ac_must_keep_next = true; then
1577 ac_must_keep_next=false # Got value, back to normal.
1578 else
1579 case $ac_arg in
1580 *=* | --config-cache | -C | -disable-* | --disable-* \
1581 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1582 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1583 | -with-* | --with-* | -without-* | --without-* | --x)
1584 case "$ac_configure_args0 " in
1585 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1586 esac
1588 -* ) ac_must_keep_next=true ;;
1589 esac
1591 ac_configure_args="$ac_configure_args '$ac_arg'"
1593 esac
1594 done
1595 done
1596 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1597 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1599 # When interrupted or exit'd, cleanup temporary files, and complete
1600 # config.log. We remove comments because anyway the quotes in there
1601 # would cause problems or look ugly.
1602 # WARNING: Use '\'' to represent an apostrophe within the trap.
1603 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1604 trap 'exit_status=$?
1605 # Save into config.log some information that might help in debugging.
1607 echo
1609 cat <<\_ASBOX
1610 ## ---------------- ##
1611 ## Cache variables. ##
1612 ## ---------------- ##
1613 _ASBOX
1614 echo
1615 # The following way of writing the cache mishandles newlines in values,
1617 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1618 eval ac_val=\$$ac_var
1619 case $ac_val in #(
1620 *${as_nl}*)
1621 case $ac_var in #(
1622 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1623 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1624 esac
1625 case $ac_var in #(
1626 _ | IFS | as_nl) ;; #(
1627 *) $as_unset $ac_var ;;
1628 esac ;;
1629 esac
1630 done
1631 (set) 2>&1 |
1632 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1633 *${as_nl}ac_space=\ *)
1634 sed -n \
1635 "s/'\''/'\''\\\\'\'''\''/g;
1636 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1637 ;; #(
1639 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1641 esac |
1642 sort
1644 echo
1646 cat <<\_ASBOX
1647 ## ----------------- ##
1648 ## Output variables. ##
1649 ## ----------------- ##
1650 _ASBOX
1651 echo
1652 for ac_var in $ac_subst_vars
1654 eval ac_val=\$$ac_var
1655 case $ac_val in
1656 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1657 esac
1658 echo "$ac_var='\''$ac_val'\''"
1659 done | sort
1660 echo
1662 if test -n "$ac_subst_files"; then
1663 cat <<\_ASBOX
1664 ## ------------------- ##
1665 ## File substitutions. ##
1666 ## ------------------- ##
1667 _ASBOX
1668 echo
1669 for ac_var in $ac_subst_files
1671 eval ac_val=\$$ac_var
1672 case $ac_val in
1673 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1674 esac
1675 echo "$ac_var='\''$ac_val'\''"
1676 done | sort
1677 echo
1680 if test -s confdefs.h; then
1681 cat <<\_ASBOX
1682 ## ----------- ##
1683 ## confdefs.h. ##
1684 ## ----------- ##
1685 _ASBOX
1686 echo
1687 cat confdefs.h
1688 echo
1690 test "$ac_signal" != 0 &&
1691 echo "$as_me: caught signal $ac_signal"
1692 echo "$as_me: exit $exit_status"
1693 } >&5
1694 rm -f core *.core core.conftest.* &&
1695 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1696 exit $exit_status
1698 for ac_signal in 1 2 13 15; do
1699 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1700 done
1701 ac_signal=0
1703 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1704 rm -f -r conftest* confdefs.h
1706 # Predefined preprocessor variables.
1708 cat >>confdefs.h <<_ACEOF
1709 #define PACKAGE_NAME "$PACKAGE_NAME"
1710 _ACEOF
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1715 _ACEOF
1718 cat >>confdefs.h <<_ACEOF
1719 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1720 _ACEOF
1723 cat >>confdefs.h <<_ACEOF
1724 #define PACKAGE_STRING "$PACKAGE_STRING"
1725 _ACEOF
1728 cat >>confdefs.h <<_ACEOF
1729 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1730 _ACEOF
1733 # Let the site file select an alternate cache file if it wants to.
1734 # Prefer explicitly selected file to automatically selected ones.
1735 if test -n "$CONFIG_SITE"; then
1736 set x "$CONFIG_SITE"
1737 elif test "x$prefix" != xNONE; then
1738 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1739 else
1740 set x "$ac_default_prefix/share/config.site" \
1741 "$ac_default_prefix/etc/config.site"
1743 shift
1744 for ac_site_file
1746 if test -r "$ac_site_file"; then
1747 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1748 echo "$as_me: loading site script $ac_site_file" >&6;}
1749 sed 's/^/| /' "$ac_site_file" >&5
1750 . "$ac_site_file"
1752 done
1754 if test -r "$cache_file"; then
1755 # Some versions of bash will fail to source /dev/null (special
1756 # files actually), so we avoid doing that.
1757 if test -f "$cache_file"; then
1758 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1759 echo "$as_me: loading cache $cache_file" >&6;}
1760 case $cache_file in
1761 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1762 *) . "./$cache_file";;
1763 esac
1765 else
1766 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1767 echo "$as_me: creating cache $cache_file" >&6;}
1768 >$cache_file
1771 # Check that the precious variables saved in the cache have kept the same
1772 # value.
1773 ac_cache_corrupted=false
1774 for ac_var in $ac_precious_vars; do
1775 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1776 eval ac_new_set=\$ac_env_${ac_var}_set
1777 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1778 eval ac_new_val=\$ac_env_${ac_var}_value
1779 case $ac_old_set,$ac_new_set in
1780 set,)
1781 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1782 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1783 ac_cache_corrupted=: ;;
1784 ,set)
1785 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1786 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1787 ac_cache_corrupted=: ;;
1788 ,);;
1790 if test "x$ac_old_val" != "x$ac_new_val"; then
1791 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1792 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1793 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1794 echo "$as_me: former value: $ac_old_val" >&2;}
1795 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1796 echo "$as_me: current value: $ac_new_val" >&2;}
1797 ac_cache_corrupted=:
1798 fi;;
1799 esac
1800 # Pass precious variables to config.status.
1801 if test "$ac_new_set" = set; then
1802 case $ac_new_val in
1803 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1804 *) ac_arg=$ac_var=$ac_new_val ;;
1805 esac
1806 case " $ac_configure_args " in
1807 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1808 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1809 esac
1811 done
1812 if $ac_cache_corrupted; then
1813 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1814 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1815 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1816 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1817 { (exit 1); exit 1; }; }
1844 ac_ext=c
1845 ac_cpp='$CPP $CPPFLAGS'
1846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1852 ac_config_headers="$ac_config_headers config.h"
1854 ac_aux_dir=
1855 for ac_dir in scripts "$srcdir"/scripts; do
1856 if test -f "$ac_dir/install-sh"; then
1857 ac_aux_dir=$ac_dir
1858 ac_install_sh="$ac_aux_dir/install-sh -c"
1859 break
1860 elif test -f "$ac_dir/install.sh"; then
1861 ac_aux_dir=$ac_dir
1862 ac_install_sh="$ac_aux_dir/install.sh -c"
1863 break
1864 elif test -f "$ac_dir/shtool"; then
1865 ac_aux_dir=$ac_dir
1866 ac_install_sh="$ac_aux_dir/shtool install -c"
1867 break
1869 done
1870 if test -z "$ac_aux_dir"; then
1871 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&5
1872 echo "$as_me: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&2;}
1873 { (exit 1); exit 1; }; }
1876 # These three variables are undocumented and unsupported,
1877 # and are intended to be withdrawn in a future Autoconf release.
1878 # They can cause serious problems if a builder's source tree is in a directory
1879 # whose full name contains unusual characters.
1880 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1881 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1882 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1886 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
1887 { { echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
1888 echo "$as_me: error: you must configure in a separate build directory" >&2;}
1889 { (exit 1); exit 1; }; }
1892 # This will get text that should go into config.make.
1893 config_vars=
1895 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
1897 # Check whether --with-gd was given.
1898 if test "${with_gd+set}" = set; then
1899 withval=$with_gd; case "$with_gd" in
1900 yes|''|no) ;;
1901 *) libgd_include="-I$withval/include"
1902 libgd_ldflags="-L$withval/lib" ;;
1903 esac
1908 # Check whether --with-gd-include was given.
1909 if test "${with_gd_include+set}" = set; then
1910 withval=$with_gd_include; case "$with_gd_include" in
1911 ''|no) ;;
1912 *) libgd_include="-I$withval" ;;
1913 esac
1918 # Check whether --with-gd-lib was given.
1919 if test "${with_gd_lib+set}" = set; then
1920 withval=$with_gd_lib; case "$with_gd_lib" in
1921 ''|no) ;;
1922 *) libgd_ldflags="-L$withval" ;;
1923 esac
1928 if test -n "$libgd_include"; then
1929 config_vars="$config_vars
1930 CFLAGS-memusagestat.c = $libgd_include"
1932 if test -n "$libgd_ldflags"; then
1933 config_vars="$config_vars
1934 libgd-LDFLAGS = $libgd_ldflags"
1938 # Check whether --with-fp was given.
1939 if test "${with_fp+set}" = set; then
1940 withval=$with_fp; with_fp=$withval
1941 else
1942 with_fp=yes
1947 # Check whether --with-binutils was given.
1948 if test "${with_binutils+set}" = set; then
1949 withval=$with_binutils; path_binutils=$withval
1950 else
1951 path_binutils=''
1955 # Check whether --with-elf was given.
1956 if test "${with_elf+set}" = set; then
1957 withval=$with_elf; elf=$withval
1958 else
1959 elf=no
1963 # Check whether --with-selinux was given.
1964 if test "${with_selinux+set}" = set; then
1965 withval=$with_selinux; with_selinux=$withval
1966 else
1967 with_selinux=auto
1971 # Check whether --with-xcoff was given.
1972 if test "${with_xcoff+set}" = set; then
1973 withval=$with_xcoff; xcoff=$withval
1974 else
1975 xcoff=no
1979 # Check whether --with-cvs was given.
1980 if test "${with_cvs+set}" = set; then
1981 withval=$with_cvs; with_cvs=$withval
1982 else
1983 with_cvs=yes
1986 if test "$with_cvs" = yes; then
1987 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
1988 then
1989 with_cvs=no
1995 # Check whether --with-headers was given.
1996 if test "${with_headers+set}" = set; then
1997 withval=$with_headers; sysheaders=$withval
1998 else
1999 sysheaders=''
2003 # Check whether --enable-sanity-checks was given.
2004 if test "${enable_sanity_checks+set}" = set; then
2005 enableval=$enable_sanity_checks; enable_sanity=$enableval
2006 else
2007 enable_sanity=yes
2012 # Check whether --enable-check-abi was given.
2013 if test "${enable_check_abi+set}" = set; then
2014 enableval=$enable_check_abi; enable_check_abi=$enableval
2015 else
2016 enable_check_abi=no
2020 static=yes
2021 # Check whether --enable-shared was given.
2022 if test "${enable_shared+set}" = set; then
2023 enableval=$enable_shared; shared=$enableval
2024 else
2025 shared=default
2028 # Check whether --enable-profile was given.
2029 if test "${enable_profile+set}" = set; then
2030 enableval=$enable_profile; profile=$enableval
2031 else
2032 profile=no
2035 # Check whether --enable-omitfp was given.
2036 if test "${enable_omitfp+set}" = set; then
2037 enableval=$enable_omitfp; omitfp=$enableval
2038 else
2039 omitfp=no
2042 # Check whether --enable-bounded was given.
2043 if test "${enable_bounded+set}" = set; then
2044 enableval=$enable_bounded; bounded=$enableval
2045 else
2046 bounded=no
2049 # Check whether --enable-versioning was given.
2050 if test "${enable_versioning+set}" = set; then
2051 enableval=$enable_versioning; enable_versioning=$enableval
2052 else
2053 enable_versioning=yes
2057 # Check whether --enable-oldest-abi was given.
2058 if test "${enable_oldest_abi+set}" = set; then
2059 enableval=$enable_oldest_abi; oldest_abi=$enableval
2060 else
2061 oldest_abi=no
2064 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
2065 oldest_abi=default
2066 else
2067 cat >>confdefs.h <<_ACEOF
2068 #define GLIBC_OLDEST_ABI "$oldest_abi"
2069 _ACEOF
2074 # Check whether --enable-stackguard-randomization was given.
2075 if test "${enable_stackguard_randomization+set}" = set; then
2076 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
2077 else
2078 enable_stackguard_randomize=no
2081 if test "$enable_stackguard_randomize" = yes; then
2082 cat >>confdefs.h <<\_ACEOF
2083 #define ENABLE_STACKGUARD_RANDOMIZE 1
2084 _ACEOF
2088 # Check whether --enable-add-ons was given.
2089 if test "${enable_add_ons+set}" = set; then
2090 enableval=$enable_add_ons;
2091 else
2092 enable_add_ons=yes
2097 # Check whether --with-tls was given.
2098 if test "${with_tls+set}" = set; then
2099 withval=$with_tls; usetls=$withval
2100 else
2101 usetls=yes
2106 # Check whether --with-__thread was given.
2107 if test "${with___thread+set}" = set; then
2108 withval=$with___thread; use__thread=$withval
2109 else
2110 use__thread=yes
2114 # Check whether --enable-hidden-plt was given.
2115 if test "${enable_hidden_plt+set}" = set; then
2116 enableval=$enable_hidden_plt; hidden=$enableval
2117 else
2118 hidden=yes
2121 if test "x$hidden" = xno; then
2122 cat >>confdefs.h <<\_ACEOF
2123 #define NO_HIDDEN 1
2124 _ACEOF
2128 # Check whether --enable-bind-now was given.
2129 if test "${enable_bind_now+set}" = set; then
2130 enableval=$enable_bind_now; bindnow=$enableval
2131 else
2132 bindnow=no
2137 # Check whether --enable-static-nss was given.
2138 if test "${enable_static_nss+set}" = set; then
2139 enableval=$enable_static_nss; static_nss=$enableval
2140 else
2141 static_nss=no
2144 if test x"$static_nss" = xyes || test x"$shared" = xno; then
2145 static_nss=yes
2146 cat >>confdefs.h <<\_ACEOF
2147 #define DO_STATIC_NSS 1
2148 _ACEOF
2152 # Check whether --enable-force-install was given.
2153 if test "${enable_force_install+set}" = set; then
2154 enableval=$enable_force_install; force_install=$enableval
2155 else
2156 force_install=yes
2161 # Check whether --enable-kernel was given.
2162 if test "${enable_kernel+set}" = set; then
2163 enableval=$enable_kernel; minimum_kernel=$enableval
2166 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
2167 # Better nothing than this.
2168 minimum_kernel=""
2169 else
2170 if test "$minimum_kernel" = current; then
2171 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
2175 # Check whether --enable-all-warnings was given.
2176 if test "${enable_all_warnings+set}" = set; then
2177 enableval=$enable_all_warnings; all_warnings=$enableval
2182 # Check whether --enable-multi-arch was given.
2183 if test "${enable_multi_arch+set}" = set; then
2184 enableval=$enable_multi_arch; multi_arch=$enableval
2185 else
2186 multi_arch=no
2189 if test x"$multi_arch" = xyes; then
2190 cat >>confdefs.h <<\_ACEOF
2191 #define USE_MULTIARCH 1
2192 _ACEOF
2194 multi_arch_d=/multiarch
2198 # Check whether --enable-experimental-malloc was given.
2199 if test "${enable_experimental_malloc+set}" = set; then
2200 enableval=$enable_experimental_malloc; experimental_malloc=$enableval
2205 # Make sure we can run config.sub.
2206 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2207 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2208 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2209 { (exit 1); exit 1; }; }
2211 { echo "$as_me:$LINENO: checking build system type" >&5
2212 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2213 if test "${ac_cv_build+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 else
2216 ac_build_alias=$build_alias
2217 test "x$ac_build_alias" = x &&
2218 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2219 test "x$ac_build_alias" = x &&
2220 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2221 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2222 { (exit 1); exit 1; }; }
2223 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2224 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2225 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2226 { (exit 1); exit 1; }; }
2229 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2230 echo "${ECHO_T}$ac_cv_build" >&6; }
2231 case $ac_cv_build in
2232 *-*-*) ;;
2233 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2234 echo "$as_me: error: invalid value of canonical build" >&2;}
2235 { (exit 1); exit 1; }; };;
2236 esac
2237 build=$ac_cv_build
2238 ac_save_IFS=$IFS; IFS='-'
2239 set x $ac_cv_build
2240 shift
2241 build_cpu=$1
2242 build_vendor=$2
2243 shift; shift
2244 # Remember, the first character of IFS is used to create $*,
2245 # except with old shells:
2246 build_os=$*
2247 IFS=$ac_save_IFS
2248 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2251 { echo "$as_me:$LINENO: checking host system type" >&5
2252 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2253 if test "${ac_cv_host+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256 if test "x$host_alias" = x; then
2257 ac_cv_host=$ac_cv_build
2258 else
2259 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2260 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2261 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2262 { (exit 1); exit 1; }; }
2266 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2267 echo "${ECHO_T}$ac_cv_host" >&6; }
2268 case $ac_cv_host in
2269 *-*-*) ;;
2270 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2271 echo "$as_me: error: invalid value of canonical host" >&2;}
2272 { (exit 1); exit 1; }; };;
2273 esac
2274 host=$ac_cv_host
2275 ac_save_IFS=$IFS; IFS='-'
2276 set x $ac_cv_host
2277 shift
2278 host_cpu=$1
2279 host_vendor=$2
2280 shift; shift
2281 # Remember, the first character of IFS is used to create $*,
2282 # except with old shells:
2283 host_os=$*
2284 IFS=$ac_save_IFS
2285 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2289 # The way shlib-versions is used to generate soversions.mk uses a
2290 # fairly simplistic model for name recognition that can't distinguish
2291 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
2292 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
2293 # tell. This doesn't get used much beyond that, so it's fairly safe.
2294 case "$host_os" in
2295 linux*)
2297 gnu*)
2298 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
2300 esac
2302 # We keep the original values in `$config_*' and never modify them, so we
2303 # can write them unchanged into config.make. Everything else uses
2304 # $machine, $vendor, and $os, and changes them whenever convenient.
2305 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
2307 # Don't allow vendor == "unknown"
2308 test "$config_vendor" = unknown && config_vendor=
2309 config_os="`echo $config_os | sed 's/^unknown-//'`"
2311 # Some configurations imply other options.
2312 case "$host_os" in
2313 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
2314 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
2316 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
2317 # These systems (almost) always use the ELF format.
2318 elf=yes
2320 aix*)
2321 # These systems are always xcoff
2322 xcoff=yes
2323 elf=no
2325 esac
2327 # The configure fragment of an add-on port can modify these to supplement
2328 # or override the table in the case statement below. No fragment should
2329 # ever change the config_* variables, however.
2330 machine=$config_machine
2331 vendor=$config_vendor
2332 os=$config_os
2333 base_os=''
2335 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
2336 # Unify this here.
2337 if test "$machine" = rs6000; then
2338 machine="powerpc"
2341 # Braindead PowerPC box with absolutely no FPU.
2342 case "$machine-$host_os" in
2343 powerpc*-*soft)
2344 with_fp=no
2346 esac
2348 submachine=
2350 # Check whether --with-cpu was given.
2351 if test "${with_cpu+set}" = set; then
2352 withval=$with_cpu; case "$withval" in
2353 yes|'') { { echo "$as_me:$LINENO: error: --with-cpu requires an argument" >&5
2354 echo "$as_me: error: --with-cpu requires an argument" >&2;}
2355 { (exit 1); exit 1; }; } ;;
2356 no) ;;
2357 *) submachine="$withval" ;;
2358 esac
2363 # An add-on can set this when it wants to disable the sanity check below.
2364 libc_config_ok=no
2366 subdirs="$subdirs "
2369 case "$enable_add_ons" in
2370 ''|no) add_ons= ;;
2371 yes|'*')
2372 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
2373 sed 's@/[^/]*$@@' | sort | uniq`
2374 add_ons_automatic=yes
2376 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
2377 add_ons_automatic=no ;;
2378 esac
2380 configured_add_ons=
2381 add_ons_sfx=
2382 add_ons_pfx=
2383 if test x"$add_ons" != x; then
2384 for f in $add_ons; do
2385 # Some sanity checks
2386 case "$f" in
2387 crypt)
2388 { { echo "$as_me:$LINENO: error:
2389 *** It seems that you're using an old \`crypt' add-on. crypt is now
2390 *** part of glibc and using the old add-on will not work with this
2391 *** release. Start again with fresh sources and without the old
2392 *** \`crypt' add-on." >&5
2393 echo "$as_me: error:
2394 *** It seems that you're using an old \`crypt' add-on. crypt is now
2395 *** part of glibc and using the old add-on will not work with this
2396 *** release. Start again with fresh sources and without the old
2397 *** \`crypt' add-on." >&2;}
2398 { (exit 1); exit 1; }; }
2400 localedata)
2401 { { echo "$as_me:$LINENO: error:
2402 *** It seems that you're using an old \`localedata' add-on. localedata
2403 *** is now part of glibc and using the old add-on will not work with
2404 *** this release. Start again with fresh sources and without the old
2405 *** \`localedata' add-on." >&5
2406 echo "$as_me: error:
2407 *** It seems that you're using an old \`localedata' add-on. localedata
2408 *** is now part of glibc and using the old add-on will not work with
2409 *** this release. Start again with fresh sources and without the old
2410 *** \`localedata' add-on." >&2;}
2411 { (exit 1); exit 1; }; }
2413 esac
2414 done
2416 # Now source each add-on's configure fragment.
2417 # The fragments can use $srcdir/$libc_add_on to find themselves,
2418 # and test $add_ons_automatic to see if they were explicitly requested.
2419 # A fragment can clear (or even change) $libc_add_on to affect
2420 # whether it goes into the list to be actually used in the build.
2421 use_add_ons=
2422 for libc_add_on in $add_ons; do
2423 # Test whether such a directory really exists.
2424 # It can be absolute, or relative to $srcdir, or relative to the build dir.
2425 case "$libc_add_on" in
2427 libc_add_on_srcdir=$libc_add_on
2430 test -d "$srcdir/$libc_add_on" || {
2431 if test -d "$libc_add_on"; then
2432 libc_add_on="`pwd`/$libc_add_on"
2433 else
2434 { { echo "$as_me:$LINENO: error: add-on directory \"$libc_add_on\" does not exist" >&5
2435 echo "$as_me: error: add-on directory \"$libc_add_on\" does not exist" >&2;}
2436 { (exit 1); exit 1; }; }
2439 libc_add_on_srcdir=$srcdir/$libc_add_on
2441 esac
2443 libc_add_on_frag=$libc_add_on_srcdir/configure
2444 libc_add_on_canonical=
2445 if test -r "$libc_add_on_frag"; then
2446 { echo "$as_me:$LINENO: running configure fragment for add-on $libc_add_on" >&5
2447 echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
2448 libc_add_on_canonical=unknown
2449 libc_add_on_subdirs=
2450 . "$libc_add_on_frag"
2451 test -z "$libc_add_on" || {
2452 configured_add_ons="$configured_add_ons $libc_add_on"
2453 if test "x$libc_add_on_canonical" = xunknown; then
2454 { { echo "$as_me:$LINENO: error: fragment must set \$libc_add_on_canonical" >&5
2455 echo "$as_me: error: fragment must set \$libc_add_on_canonical" >&2;}
2456 { (exit 1); exit 1; }; }
2458 for d in $libc_add_on_subdirs; do
2459 case "$libc_add_on" in
2460 /*) subdir_srcdir="$libc_add_on" ;;
2461 *) subdir_srcdir="\$(..)$libc_add_on" ;;
2462 esac
2463 case "$d" in
2465 d="${libc_add_on_canonical:-$libc_add_on}"
2468 subdir_srcdir="$d"
2471 subdir_srcdir="$subdir_srcdir/$d"
2473 esac
2474 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
2475 add_on_subdirs="$add_on_subdirs $d"
2476 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
2477 $d-srcdir = $subdir_srcdir"
2478 done
2481 if test -n "$libc_add_on"; then
2482 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
2483 then
2484 { echo "$as_me:$LINENO: checking add-on $libc_add_on for preconfigure fragments" >&5
2485 echo $ECHO_N "checking add-on $libc_add_on for preconfigure fragments... $ECHO_C" >&6; }
2486 for frag in $frags; do
2487 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
2488 echo $ECHO_N "$name $ECHO_C" >&6
2489 . "$frag"
2490 done
2491 { echo "$as_me:$LINENO: result: " >&5
2492 echo "${ECHO_T}" >&6; }
2494 use_add_ons="$use_add_ons $libc_add_on"
2495 add_ons_pfx="$add_ons_pfx $libc_add_on/"
2496 test -z "$libc_add_on_canonical" ||
2497 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
2499 done
2500 # Use echo to strip excess whitespace.
2501 add_ons="`echo $use_add_ons`"
2508 ### I put this here to prevent those annoying emails from people who cannot
2509 ### read and try to compile glibc on unsupported platforms. --drepper
2511 ### By using the undocumented --enable-hacker-mode option for configure
2512 ### one can skip this test to make the configuration not fail for unsupported
2513 ### platforms.
2515 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
2516 case "$machine-$host_os" in
2517 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
2520 echo "*** The GNU C library is currently not available for this platform."
2521 echo "*** So far nobody cared to port it and if there is no volunteer it"
2522 echo "*** might never happen. So, if you have interest to see glibc on"
2523 echo "*** this platform visit"
2524 echo "*** http://www.gnu.org/software/libc/porting.html"
2525 echo "*** and join the group of porters"
2526 exit 1
2528 esac
2531 # Expand the configuration machine name into a subdirectory by architecture
2532 # type and particular chip. If an add-on configure fragment already set
2533 # base_machine, we don't change it.
2534 test -n "$base_machine" || case "$machine" in
2535 a29k | am29000) base_machine=a29k machine=a29k ;;
2536 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
2537 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
2538 i[34567]86) base_machine=i386 machine=i386/$machine ;;
2539 ia64) base_machine=ia64 machine=ia64 ;;
2540 m88???) base_machine=m88k machine=m88k/$machine ;;
2541 m88k) base_machine=m88k machine=m88k/m88100 ;;
2542 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
2543 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
2544 s390) base_machine=s390 machine=s390/s390-32 ;;
2545 s390x) base_machine=s390 machine=s390/s390-64 ;;
2546 sh3*) base_machine=sh machine=sh/sh3 ;;
2547 sh4*) base_machine=sh machine=sh/sh4 ;;
2548 sparc | sparcv[67])
2549 base_machine=sparc machine=sparc/sparc32 ;;
2550 sparcv8 | supersparc | hypersparc)
2551 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
2552 sparcv8plus | sparcv8plusa | sparcv9)
2553 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
2554 sparcv8plusb | sparcv9b)
2555 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
2556 sparcv9v)
2557 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
2558 sparcv9v2)
2559 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
2560 sparc64)
2561 base_machine=sparc machine=sparc/sparc64 ;;
2562 sparc64b)
2563 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
2564 sparc64v)
2565 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
2566 sparc64v2)
2567 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
2568 *) base_machine=$machine ;;
2569 esac
2572 if test "$base_machine" = "i386"; then
2573 cat >>confdefs.h <<\_ACEOF
2574 #define USE_REGPARMS 1
2575 _ACEOF
2579 # Compute the list of sysdep directories for this configuration.
2580 # This can take a while to compute.
2581 sysdep_dir=$srcdir/sysdeps
2582 { echo "$as_me:$LINENO: checking sysdep dirs" >&5
2583 echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6; }
2584 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
2585 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
2587 test "x$base_os" != x || case "$os" in
2588 gnu*)
2589 base_os=mach/hurd ;;
2590 netbsd* | 386bsd* | freebsd* | bsdi*)
2591 base_os=unix/bsd/bsd4.4 ;;
2592 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
2593 base_os=unix/bsd ;;
2594 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
2595 base_os=unix/sysv ;;
2596 irix6*)
2597 base_os=unix/sysv/irix6/$os ;;
2598 solaris[2-9]*)
2599 base_os=unix/sysv/sysv4 ;;
2600 hpux*)
2601 base_os=unix/sysv/hpux/$os ;;
2602 aix4.3*)
2603 base_os=unix/sysv/aix/aix4.3 ;;
2604 none)
2605 base_os=standalone ;;
2606 esac
2608 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
2609 tail=$os
2610 ostry=$os
2611 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
2612 ostry="$ostry /$o"
2613 tail=$o
2614 done
2615 o=`echo $tail | sed 's/[0-9]*$//'`
2616 if test $o != $tail; then
2617 ostry="$ostry /$o"
2619 # For linux-gnu, try linux-gnu, then linux.
2620 o=`echo $tail | sed 's/-.*$//'`
2621 if test $o != $tail; then
2622 ostry="$ostry /$o"
2625 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
2626 base=
2627 tail=$base_os
2628 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
2629 set $b
2630 base="$base /$1"
2631 tail="$2"
2632 done
2634 # For sparc/sparc32, try sparc/sparc32 and then sparc.
2635 mach=
2636 tail=$machine${submachine:+/$submachine}
2637 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
2638 set $m
2639 # Prepend the machine's FPU directory unless --without-fp.
2640 if test "$with_fp" = yes; then
2641 mach="$mach /$1/fpu"
2642 else
2643 mach="$mach /$1/nofpu"
2645 mach="$mach /$1"
2646 tail="$2"
2647 done
2650 # Find what sysdep directories exist.
2651 sysnames_add_ons=
2652 sysnames=
2653 for b in $base ''; do
2654 for m0 in $mach ''; do
2655 for v in /$vendor ''; do
2656 test "$v" = / && continue
2657 for o in /$ostry ''; do
2658 test "$o" = / && continue
2659 for m in $multi_arch_d $mach ''; do
2660 for d in $add_ons_pfx ''; do
2661 for a in $add_ons_sfx ''; do
2662 if test -n "$m0$m0sub$b$v$o$m$msub"; then
2663 try_srcdir="${srcdir}/"
2664 case "$d" in
2665 /*) try_srcdir= ;;
2666 esac
2667 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
2668 test -n "$enable_debug_configure" &&
2669 echo "$0 DEBUG: try $try" >&2
2670 if test -d "$try_srcdir$try"; then
2671 sysnames="$sysnames $try"
2672 { test -n "$o" || test -n "$b"; } && os_used=t
2673 { test -n "$m" || test -n "$m0"; } && machine_used=t
2674 case x${m0:-$m} in
2675 x*/$submachine) submachine_used=t ;;
2676 esac
2677 if test -n "$d"; then
2678 case "$sysnames_add_ons" in
2679 *" $d "*) ;;
2680 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
2681 esac
2685 done
2686 done
2687 done
2688 done
2689 done
2690 done
2691 done
2693 if test -z "$os_used" && test "$os" != none; then
2694 { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
2695 echo "$as_me: error: Operating system $os is not supported." >&2;}
2696 { (exit 1); exit 1; }; }
2698 if test -z "$machine_used" && test "$machine" != none; then
2699 { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
2700 echo "$as_me: error: The $machine is not supported." >&2;}
2701 { (exit 1); exit 1; }; }
2703 if test -z "$submachine_used" && test -n "$submachine"; then
2704 { { echo "$as_me:$LINENO: error: The $submachine subspecies of $host_cpu is not supported." >&5
2705 echo "$as_me: error: The $submachine subspecies of $host_cpu is not supported." >&2;}
2706 { (exit 1); exit 1; }; }
2710 # We have now validated the configuration.
2713 # If using ELF, look for an `elf' subdirectory of each machine directory.
2714 # We prepend these rather than inserting them whereever the machine appears
2715 # because things specified by the machine's ELF ABI should override
2716 # OS-specific things, and should always be the same for any OS on the
2717 # machine (otherwise what's the point of an ABI?).
2718 if test "$elf" = yes; then
2719 elf_dirs=
2720 for d in $add_ons_pfx ''; do
2721 for m in $mach; do
2722 if test -d $srcdir/${d}sysdeps$m/elf; then
2723 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
2725 done
2726 done
2727 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
2731 # Expand the list of system names into a full list of directories
2732 # from each element's parent name and Implies file (if present).
2733 set $sysnames
2734 names=
2735 while test $# -gt 0; do
2736 name=$1
2737 shift
2739 case " $names " in *" $name "*)
2740 # Already in the list.
2741 continue
2742 esac
2744 # Report each name as we discover it, so there is no long pause in output.
2745 echo $ECHO_N "$name $ECHO_C" >&6
2747 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
2749 case $name in
2750 /*) xsrcdir= ;;
2751 *) xsrcdir=$srcdir/ ;;
2752 esac
2753 test -n "$enable_debug_configure" &&
2754 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
2756 if test -f $xsrcdir$name/Implies; then
2757 # Collect more names from the `Implies' file (removing comments).
2758 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
2759 implied=
2760 for x in $implied_candidate; do
2761 found=no
2762 if test -d $xsrcdir$name_base/$x; then
2763 implied="$implied $name_base/$x";
2764 found=yes
2766 for d in $add_ons_pfx ''; do
2767 try="${d}sysdeps/$x"
2768 case $d in
2769 /*) try_srcdir= ;;
2770 *) try_srcdir=$srcdir/ ;;
2771 esac
2772 test -n "$enable_debug_configure" &&
2773 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
2774 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
2775 then
2776 implied="$implied $try"
2777 found=yes
2778 case "$sysnames_add_ons" in
2779 *" $d "*) ;;
2780 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
2781 esac
2783 done
2784 if test $found = no; then
2785 { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
2786 echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
2788 done
2789 else
2790 implied=
2793 # Add NAME to the list of names.
2794 names="$names $name"
2796 # Find the parent of NAME, using the empty string if it has none.
2797 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
2799 # Add the names implied by NAME, and NAME's parent (if it has one), to
2800 # the list of names to be processed (the argument list). We prepend the
2801 # implied names to the list and append the parent. We want implied
2802 # directories to come before further directories inferred from the
2803 # configuration components; this ensures that for sysv4, unix/common
2804 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
2805 # after sysv4).
2806 sysnames="`echo $implied $* $parent`"
2807 test -n "$sysnames" && set $sysnames
2808 done
2810 # Add the default directories.
2811 default_sysnames=sysdeps/generic
2812 if test "$elf" = yes; then
2813 default_sysnames="sysdeps/generic/elf $default_sysnames"
2815 sysnames="$names $default_sysnames"
2817 # The other names were emitted during the scan.
2818 { echo "$as_me:$LINENO: result: $default_sysnames" >&5
2819 echo "${ECHO_T}$default_sysnames" >&6; }
2821 # Collect the list of add-ons that supply partial sysdeps trees.
2822 sysdeps_add_ons=
2823 for add_on in $add_ons; do
2824 case "$add_on" in
2825 /*) xsrcdir= ;;
2826 *) xsrcdir="$srcdir/" ;;
2827 esac
2829 test -d "$xsrcdir$add_on/sysdeps" || {
2830 case "$configured_add_ons " in
2831 *" $add_on "*) ;;
2832 *|'')
2833 { { echo "$as_me:$LINENO: error: add-on $add_on has no configure fragment or sysdeps tree" >&5
2834 echo "$as_me: error: add-on $add_on has no configure fragment or sysdeps tree" >&2;}
2835 { (exit 1); exit 1; }; }
2837 esac
2838 continue
2841 sysdeps_add_ons="$sysdeps_add_ons $add_on"
2842 case "$sysnames_add_ons" in
2843 *" $add_on/ "*) ;;
2844 *|'')
2845 { echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no sysdeps directories" >&5
2846 echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
2847 continue ;;
2848 esac
2850 found=no
2851 for d in $sysnames; do
2852 case "$d" in
2853 $add_on/sysdeps/*) ;;
2854 *) continue ;;
2855 esac
2856 (cd "$xsrcdir$d" && for f in *[!~]; do
2857 case "$f" in
2858 sys|bits)
2859 for ff in $f/*.h; do
2860 test -d "$ff" || { test -e "$ff" && exit 88; }
2861 done
2864 test -d "$f" || { test -e "$f" && exit 88; }
2866 esac
2867 done)
2868 if test $? -eq 88; then
2869 found=yes
2870 break
2872 done
2873 if test $found = no; then
2874 { echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
2875 echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
2877 done
2881 ### Locate tools.
2883 # Find a good install program. We prefer a C program (faster),
2884 # so one script is as good as another. But avoid the broken or
2885 # incompatible versions:
2886 # SysV /etc/install, /usr/sbin/install
2887 # SunOS /usr/etc/install
2888 # IRIX /sbin/install
2889 # AIX /bin/install
2890 # AmigaOS /C/install, which installs bootblocks on floppy discs
2891 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2892 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2893 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2894 # OS/2's system install, which has a completely different semantic
2895 # ./install, which can be erroneously created by make from ./install.sh.
2896 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2897 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2898 if test -z "$INSTALL"; then
2899 if test "${ac_cv_path_install+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 # Account for people who put trailing slashes in PATH elements.
2908 case $as_dir/ in
2909 ./ | .// | /cC/* | \
2910 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2911 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2912 /usr/ucb/* ) ;;
2914 # OSF1 and SCO ODT 3.0 have their own names for install.
2915 # Don't use installbsd from OSF since it installs stuff as root
2916 # by default.
2917 for ac_prog in ginstall scoinst install; do
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2920 if test $ac_prog = install &&
2921 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2922 # AIX install. It has an incompatible calling convention.
2924 elif test $ac_prog = install &&
2925 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2926 # program-specific install script used by HP pwplus--don't use.
2928 else
2929 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2930 break 3
2933 done
2934 done
2936 esac
2937 done
2938 IFS=$as_save_IFS
2942 if test "${ac_cv_path_install+set}" = set; then
2943 INSTALL=$ac_cv_path_install
2944 else
2945 # As a last resort, use the slow shell script. Don't cache a
2946 # value for INSTALL within a source directory, because that will
2947 # break other packages using the cache if that directory is
2948 # removed, or if the value is a relative name.
2949 INSTALL=$ac_install_sh
2952 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2953 echo "${ECHO_T}$INSTALL" >&6; }
2955 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2956 # It thinks the first close brace ends the variable substitution.
2957 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2959 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2961 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2963 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
2964 # The makefiles need to use a different form to find it in $srcdir.
2965 INSTALL='\$(..)./scripts/install-sh -c'
2967 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
2968 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2969 LN_S=$as_ln_s
2970 if test "$LN_S" = "ln -s"; then
2971 { echo "$as_me:$LINENO: result: yes" >&5
2972 echo "${ECHO_T}yes" >&6; }
2973 else
2974 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2975 echo "${ECHO_T}no, using $LN_S" >&6; }
2979 ac_ext=c
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984 if test -n "$ac_tool_prefix"; then
2985 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2986 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2989 if test "${ac_cv_prog_CC+set}" = set; then
2990 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 else
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3002 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3006 done
3007 done
3008 IFS=$as_save_IFS
3012 CC=$ac_cv_prog_CC
3013 if test -n "$CC"; then
3014 { echo "$as_me:$LINENO: result: $CC" >&5
3015 echo "${ECHO_T}$CC" >&6; }
3016 else
3017 { echo "$as_me:$LINENO: result: no" >&5
3018 echo "${ECHO_T}no" >&6; }
3023 if test -z "$ac_cv_prog_CC"; then
3024 ac_ct_CC=$CC
3025 # Extract the first word of "gcc", so it can be a program name with args.
3026 set dummy gcc; ac_word=$2
3027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032 if test -n "$ac_ct_CC"; then
3033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042 ac_cv_prog_ac_ct_CC="gcc"
3043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3046 done
3047 done
3048 IFS=$as_save_IFS
3052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3053 if test -n "$ac_ct_CC"; then
3054 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3055 echo "${ECHO_T}$ac_ct_CC" >&6; }
3056 else
3057 { echo "$as_me:$LINENO: result: no" >&5
3058 echo "${ECHO_T}no" >&6; }
3061 if test "x$ac_ct_CC" = x; then
3062 CC=""
3063 else
3064 case $cross_compiling:$ac_tool_warned in
3065 yes:)
3066 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3067 whose name does not start with the host triplet. If you think this
3068 configuration is useful to you, please write to autoconf@gnu.org." >&5
3069 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3070 whose name does not start with the host triplet. If you think this
3071 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3072 ac_tool_warned=yes ;;
3073 esac
3074 CC=$ac_ct_CC
3076 else
3077 CC="$ac_cv_prog_CC"
3080 if test -z "$CC"; then
3081 if test -n "$ac_tool_prefix"; then
3082 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3083 set dummy ${ac_tool_prefix}cc; ac_word=$2
3084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3086 if test "${ac_cv_prog_CC+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089 if test -n "$CC"; then
3090 ac_cv_prog_CC="$CC" # Let the user override the test.
3091 else
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 for as_dir in $PATH
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3099 ac_cv_prog_CC="${ac_tool_prefix}cc"
3100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3103 done
3104 done
3105 IFS=$as_save_IFS
3109 CC=$ac_cv_prog_CC
3110 if test -n "$CC"; then
3111 { echo "$as_me:$LINENO: result: $CC" >&5
3112 echo "${ECHO_T}$CC" >&6; }
3113 else
3114 { echo "$as_me:$LINENO: result: no" >&5
3115 echo "${ECHO_T}no" >&6; }
3121 if test -z "$CC"; then
3122 # Extract the first word of "cc", so it can be a program name with args.
3123 set dummy cc; ac_word=$2
3124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3126 if test "${ac_cv_prog_CC+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3128 else
3129 if test -n "$CC"; then
3130 ac_cv_prog_CC="$CC" # Let the user override the test.
3131 else
3132 ac_prog_rejected=no
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3140 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3141 ac_prog_rejected=yes
3142 continue
3144 ac_cv_prog_CC="cc"
3145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3148 done
3149 done
3150 IFS=$as_save_IFS
3152 if test $ac_prog_rejected = yes; then
3153 # We found a bogon in the path, so make sure we never use it.
3154 set dummy $ac_cv_prog_CC
3155 shift
3156 if test $# != 0; then
3157 # We chose a different compiler from the bogus one.
3158 # However, it has the same basename, so the bogon will be chosen
3159 # first if we set CC to just the basename; use the full file name.
3160 shift
3161 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3166 CC=$ac_cv_prog_CC
3167 if test -n "$CC"; then
3168 { echo "$as_me:$LINENO: result: $CC" >&5
3169 echo "${ECHO_T}$CC" >&6; }
3170 else
3171 { echo "$as_me:$LINENO: result: no" >&5
3172 echo "${ECHO_T}no" >&6; }
3177 if test -z "$CC"; then
3178 if test -n "$ac_tool_prefix"; then
3179 for ac_prog in cl.exe
3181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3185 if test "${ac_cv_prog_CC+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 else
3188 if test -n "$CC"; then
3189 ac_cv_prog_CC="$CC" # Let the user override the test.
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3194 IFS=$as_save_IFS
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 break 2
3202 done
3203 done
3204 IFS=$as_save_IFS
3208 CC=$ac_cv_prog_CC
3209 if test -n "$CC"; then
3210 { echo "$as_me:$LINENO: result: $CC" >&5
3211 echo "${ECHO_T}$CC" >&6; }
3212 else
3213 { echo "$as_me:$LINENO: result: no" >&5
3214 echo "${ECHO_T}no" >&6; }
3218 test -n "$CC" && break
3219 done
3221 if test -z "$CC"; then
3222 ac_ct_CC=$CC
3223 for ac_prog in cl.exe
3225 # Extract the first word of "$ac_prog", so it can be a program name with args.
3226 set dummy $ac_prog; ac_word=$2
3227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232 if test -n "$ac_ct_CC"; then
3233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3234 else
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH
3238 IFS=$as_save_IFS
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3242 ac_cv_prog_ac_ct_CC="$ac_prog"
3243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 break 2
3246 done
3247 done
3248 IFS=$as_save_IFS
3252 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3253 if test -n "$ac_ct_CC"; then
3254 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3255 echo "${ECHO_T}$ac_ct_CC" >&6; }
3256 else
3257 { echo "$as_me:$LINENO: result: no" >&5
3258 echo "${ECHO_T}no" >&6; }
3262 test -n "$ac_ct_CC" && break
3263 done
3265 if test "x$ac_ct_CC" = x; then
3266 CC=""
3267 else
3268 case $cross_compiling:$ac_tool_warned in
3269 yes:)
3270 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3271 whose name does not start with the host triplet. If you think this
3272 configuration is useful to you, please write to autoconf@gnu.org." >&5
3273 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3274 whose name does not start with the host triplet. If you think this
3275 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3276 ac_tool_warned=yes ;;
3277 esac
3278 CC=$ac_ct_CC
3285 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3286 See \`config.log' for more details." >&5
3287 echo "$as_me: error: no acceptable C compiler found in \$PATH
3288 See \`config.log' for more details." >&2;}
3289 { (exit 1); exit 1; }; }
3291 # Provide some information about the compiler.
3292 echo "$as_me:$LINENO: checking for C compiler version" >&5
3293 ac_compiler=`set X $ac_compile; echo $2`
3294 { (ac_try="$ac_compiler --version >&5"
3295 case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_compiler --version >&5") 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }
3304 { (ac_try="$ac_compiler -v >&5"
3305 case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308 esac
3309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3310 (eval "$ac_compiler -v >&5") 2>&5
3311 ac_status=$?
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }
3314 { (ac_try="$ac_compiler -V >&5"
3315 case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318 esac
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_compiler -V >&5") 2>&5
3321 ac_status=$?
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }
3325 EXEEXT=
3326 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3327 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3328 if test "${ac_cv_objext+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 else
3331 cat >conftest.$ac_ext <<_ACEOF
3332 /* confdefs.h. */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3339 main ()
3343 return 0;
3345 _ACEOF
3346 rm -f conftest.o conftest.obj
3347 if { (ac_try="$ac_compile"
3348 case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351 esac
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_compile") 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; then
3357 for ac_file in conftest.o conftest.obj conftest.*; do
3358 test -f "$ac_file" || continue;
3359 case $ac_file in
3360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3361 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3362 break;;
3363 esac
3364 done
3365 else
3366 echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3369 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3370 See \`config.log' for more details." >&5
3371 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3372 See \`config.log' for more details." >&2;}
3373 { (exit 1); exit 1; }; }
3376 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3378 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3379 echo "${ECHO_T}$ac_cv_objext" >&6; }
3380 OBJEXT=$ac_cv_objext
3381 ac_objext=$OBJEXT
3382 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3383 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3384 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387 cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h. */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3395 main ()
3397 #ifndef __GNUC__
3398 choke me
3399 #endif
3402 return 0;
3404 _ACEOF
3405 rm -f conftest.$ac_objext
3406 if { (ac_try="$ac_compile"
3407 case "(($ac_try" in
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3410 esac
3411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3412 (eval "$ac_compile") 2>conftest.er1
3413 ac_status=$?
3414 grep -v '^ *+' conftest.er1 >conftest.err
3415 rm -f conftest.er1
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } && {
3419 test -z "$ac_c_werror_flag" ||
3420 test ! -s conftest.err
3421 } && test -s conftest.$ac_objext; then
3422 ac_compiler_gnu=yes
3423 else
3424 echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3427 ac_compiler_gnu=no
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3434 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3435 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3436 GCC=`test $ac_compiler_gnu = yes && echo yes`
3437 ac_test_CFLAGS=${CFLAGS+set}
3438 ac_save_CFLAGS=$CFLAGS
3439 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3440 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3441 if test "${ac_cv_prog_cc_g+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444 ac_save_c_werror_flag=$ac_c_werror_flag
3445 ac_c_werror_flag=yes
3446 ac_cv_prog_cc_g=no
3447 CFLAGS="-g"
3448 cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h. */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3456 main ()
3460 return 0;
3462 _ACEOF
3463 rm -f conftest.$ac_objext
3464 if { (ac_try="$ac_compile"
3465 case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468 esac
3469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3470 (eval "$ac_compile") 2>conftest.er1
3471 ac_status=$?
3472 grep -v '^ *+' conftest.er1 >conftest.err
3473 rm -f conftest.er1
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } && {
3477 test -z "$ac_c_werror_flag" ||
3478 test ! -s conftest.err
3479 } && test -s conftest.$ac_objext; then
3480 ac_cv_prog_cc_g=yes
3481 else
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3485 CFLAGS=""
3486 cat >conftest.$ac_ext <<_ACEOF
3487 /* confdefs.h. */
3488 _ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3494 main ()
3498 return 0;
3500 _ACEOF
3501 rm -f conftest.$ac_objext
3502 if { (ac_try="$ac_compile"
3503 case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508 (eval "$ac_compile") 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } && {
3515 test -z "$ac_c_werror_flag" ||
3516 test ! -s conftest.err
3517 } && test -s conftest.$ac_objext; then
3519 else
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 ac_c_werror_flag=$ac_save_c_werror_flag
3524 CFLAGS="-g"
3525 cat >conftest.$ac_ext <<_ACEOF
3526 /* confdefs.h. */
3527 _ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3533 main ()
3537 return 0;
3539 _ACEOF
3540 rm -f conftest.$ac_objext
3541 if { (ac_try="$ac_compile"
3542 case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3545 esac
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547 (eval "$ac_compile") 2>conftest.er1
3548 ac_status=$?
3549 grep -v '^ *+' conftest.er1 >conftest.err
3550 rm -f conftest.er1
3551 cat conftest.err >&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); } && {
3554 test -z "$ac_c_werror_flag" ||
3555 test ! -s conftest.err
3556 } && test -s conftest.$ac_objext; then
3557 ac_cv_prog_cc_g=yes
3558 else
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 ac_c_werror_flag=$ac_save_c_werror_flag
3574 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3575 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3576 if test "$ac_test_CFLAGS" = set; then
3577 CFLAGS=$ac_save_CFLAGS
3578 elif test $ac_cv_prog_cc_g = yes; then
3579 if test "$GCC" = yes; then
3580 CFLAGS="-g -O2"
3581 else
3582 CFLAGS="-g"
3584 else
3585 if test "$GCC" = yes; then
3586 CFLAGS="-O2"
3587 else
3588 CFLAGS=
3591 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3592 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3593 if test "${ac_cv_prog_cc_c89+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596 ac_cv_prog_cc_c89=no
3597 ac_save_CC=$CC
3598 cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h. */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3604 #include <stdarg.h>
3605 #include <stdio.h>
3606 #include <sys/types.h>
3607 #include <sys/stat.h>
3608 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3609 struct buf { int x; };
3610 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3611 static char *e (p, i)
3612 char **p;
3613 int i;
3615 return p[i];
3617 static char *f (char * (*g) (char **, int), char **p, ...)
3619 char *s;
3620 va_list v;
3621 va_start (v,p);
3622 s = g (p, va_arg (v,int));
3623 va_end (v);
3624 return s;
3627 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3628 function prototypes and stuff, but not '\xHH' hex character constants.
3629 These don't provoke an error unfortunately, instead are silently treated
3630 as 'x'. The following induces an error, until -std is added to get
3631 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3632 array size at least. It's necessary to write '\x00'==0 to get something
3633 that's true only with -std. */
3634 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3636 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3637 inside strings and character constants. */
3638 #define FOO(x) 'x'
3639 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3641 int test (int i, double x);
3642 struct s1 {int (*f) (int a);};
3643 struct s2 {int (*f) (double a);};
3644 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3645 int argc;
3646 char **argv;
3648 main ()
3650 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3652 return 0;
3654 _ACEOF
3655 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3656 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3658 CC="$ac_save_CC $ac_arg"
3659 rm -f conftest.$ac_objext
3660 if { (ac_try="$ac_compile"
3661 case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664 esac
3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666 (eval "$ac_compile") 2>conftest.er1
3667 ac_status=$?
3668 grep -v '^ *+' conftest.er1 >conftest.err
3669 rm -f conftest.er1
3670 cat conftest.err >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); } && {
3673 test -z "$ac_c_werror_flag" ||
3674 test ! -s conftest.err
3675 } && test -s conftest.$ac_objext; then
3676 ac_cv_prog_cc_c89=$ac_arg
3677 else
3678 echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3684 rm -f core conftest.err conftest.$ac_objext
3685 test "x$ac_cv_prog_cc_c89" != "xno" && break
3686 done
3687 rm -f conftest.$ac_ext
3688 CC=$ac_save_CC
3691 # AC_CACHE_VAL
3692 case "x$ac_cv_prog_cc_c89" in
3694 { echo "$as_me:$LINENO: result: none needed" >&5
3695 echo "${ECHO_T}none needed" >&6; } ;;
3696 xno)
3697 { echo "$as_me:$LINENO: result: unsupported" >&5
3698 echo "${ECHO_T}unsupported" >&6; } ;;
3700 CC="$CC $ac_cv_prog_cc_c89"
3701 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3702 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3703 esac
3706 ac_ext=c
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712 if test $host != $build; then
3713 for ac_prog in gcc cc
3715 # Extract the first word of "$ac_prog", so it can be a program name with args.
3716 set dummy $ac_prog; ac_word=$2
3717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3719 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722 if test -n "$BUILD_CC"; then
3723 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3724 else
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3732 ac_cv_prog_BUILD_CC="$ac_prog"
3733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 break 2
3736 done
3737 done
3738 IFS=$as_save_IFS
3742 BUILD_CC=$ac_cv_prog_BUILD_CC
3743 if test -n "$BUILD_CC"; then
3744 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3745 echo "${ECHO_T}$BUILD_CC" >&6; }
3746 else
3747 { echo "$as_me:$LINENO: result: no" >&5
3748 echo "${ECHO_T}no" >&6; }
3752 test -n "$BUILD_CC" && break
3753 done
3757 ac_ext=c
3758 ac_cpp='$CPP $CPPFLAGS'
3759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3762 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3763 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3764 # On Suns, sometimes $CPP names a directory.
3765 if test -n "$CPP" && test -d "$CPP"; then
3766 CPP=
3768 if test -z "$CPP"; then
3769 if test "${ac_cv_prog_CPP+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772 # Double quotes because CPP needs to be expanded
3773 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3775 ac_preproc_ok=false
3776 for ac_c_preproc_warn_flag in '' yes
3778 # Use a header file that comes with gcc, so configuring glibc
3779 # with a fresh cross-compiler works.
3780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3781 # <limits.h> exists even on freestanding compilers.
3782 # On the NeXT, cc -E runs the code through the compiler's parser,
3783 # not just through cpp. "Syntax error" is here to catch this case.
3784 cat >conftest.$ac_ext <<_ACEOF
3785 /* confdefs.h. */
3786 _ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3790 #ifdef __STDC__
3791 # include <limits.h>
3792 #else
3793 # include <assert.h>
3794 #endif
3795 Syntax error
3796 _ACEOF
3797 if { (ac_try="$ac_cpp conftest.$ac_ext"
3798 case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3801 esac
3802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3804 ac_status=$?
3805 grep -v '^ *+' conftest.er1 >conftest.err
3806 rm -f conftest.er1
3807 cat conftest.err >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } >/dev/null && {
3810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3811 test ! -s conftest.err
3812 }; then
3814 else
3815 echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3818 # Broken: fails on valid input.
3819 continue
3822 rm -f conftest.err conftest.$ac_ext
3824 # OK, works on sane cases. Now check whether nonexistent headers
3825 # can be detected and how.
3826 cat >conftest.$ac_ext <<_ACEOF
3827 /* confdefs.h. */
3828 _ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3832 #include <ac_nonexistent.h>
3833 _ACEOF
3834 if { (ac_try="$ac_cpp conftest.$ac_ext"
3835 case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838 esac
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3841 ac_status=$?
3842 grep -v '^ *+' conftest.er1 >conftest.err
3843 rm -f conftest.er1
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } >/dev/null && {
3847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3848 test ! -s conftest.err
3849 }; then
3850 # Broken: success on invalid input.
3851 continue
3852 else
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3856 # Passes both tests.
3857 ac_preproc_ok=:
3858 break
3861 rm -f conftest.err conftest.$ac_ext
3863 done
3864 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3865 rm -f conftest.err conftest.$ac_ext
3866 if $ac_preproc_ok; then
3867 break
3870 done
3871 ac_cv_prog_CPP=$CPP
3874 CPP=$ac_cv_prog_CPP
3875 else
3876 ac_cv_prog_CPP=$CPP
3878 { echo "$as_me:$LINENO: result: $CPP" >&5
3879 echo "${ECHO_T}$CPP" >&6; }
3880 ac_preproc_ok=false
3881 for ac_c_preproc_warn_flag in '' yes
3883 # Use a header file that comes with gcc, so configuring glibc
3884 # with a fresh cross-compiler works.
3885 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3886 # <limits.h> exists even on freestanding compilers.
3887 # On the NeXT, cc -E runs the code through the compiler's parser,
3888 # not just through cpp. "Syntax error" is here to catch this case.
3889 cat >conftest.$ac_ext <<_ACEOF
3890 /* confdefs.h. */
3891 _ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3895 #ifdef __STDC__
3896 # include <limits.h>
3897 #else
3898 # include <assert.h>
3899 #endif
3900 Syntax error
3901 _ACEOF
3902 if { (ac_try="$ac_cpp conftest.$ac_ext"
3903 case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906 esac
3907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3909 ac_status=$?
3910 grep -v '^ *+' conftest.er1 >conftest.err
3911 rm -f conftest.er1
3912 cat conftest.err >&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } >/dev/null && {
3915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3916 test ! -s conftest.err
3917 }; then
3919 else
3920 echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3923 # Broken: fails on valid input.
3924 continue
3927 rm -f conftest.err conftest.$ac_ext
3929 # OK, works on sane cases. Now check whether nonexistent headers
3930 # can be detected and how.
3931 cat >conftest.$ac_ext <<_ACEOF
3932 /* confdefs.h. */
3933 _ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3937 #include <ac_nonexistent.h>
3938 _ACEOF
3939 if { (ac_try="$ac_cpp conftest.$ac_ext"
3940 case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3946 ac_status=$?
3947 grep -v '^ *+' conftest.er1 >conftest.err
3948 rm -f conftest.er1
3949 cat conftest.err >&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); } >/dev/null && {
3952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3953 test ! -s conftest.err
3954 }; then
3955 # Broken: success on invalid input.
3956 continue
3957 else
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3961 # Passes both tests.
3962 ac_preproc_ok=:
3963 break
3966 rm -f conftest.err conftest.$ac_ext
3968 done
3969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3970 rm -f conftest.err conftest.$ac_ext
3971 if $ac_preproc_ok; then
3973 else
3974 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3975 See \`config.log' for more details." >&5
3976 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3977 See \`config.log' for more details." >&2;}
3978 { (exit 1); exit 1; }; }
3981 ac_ext=c
3982 ac_cpp='$CPP $CPPFLAGS'
3983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3987 # We need the C++ compiler only for testing.
3988 ac_ext=cpp
3989 ac_cpp='$CXXCPP $CPPFLAGS'
3990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3993 if test -z "$CXX"; then
3994 if test -n "$CCC"; then
3995 CXX=$CCC
3996 else
3997 if test -n "$ac_tool_prefix"; then
3998 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4000 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4001 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4004 if test "${ac_cv_prog_CXX+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007 if test -n "$CXX"; then
4008 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4009 else
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 for as_dir in $PATH
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4017 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 break 2
4021 done
4022 done
4023 IFS=$as_save_IFS
4027 CXX=$ac_cv_prog_CXX
4028 if test -n "$CXX"; then
4029 { echo "$as_me:$LINENO: result: $CXX" >&5
4030 echo "${ECHO_T}$CXX" >&6; }
4031 else
4032 { echo "$as_me:$LINENO: result: no" >&5
4033 echo "${ECHO_T}no" >&6; }
4037 test -n "$CXX" && break
4038 done
4040 if test -z "$CXX"; then
4041 ac_ct_CXX=$CXX
4042 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4044 # Extract the first word of "$ac_prog", so it can be a program name with args.
4045 set dummy $ac_prog; ac_word=$2
4046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4048 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051 if test -n "$ac_ct_CXX"; then
4052 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4053 else
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4061 ac_cv_prog_ac_ct_CXX="$ac_prog"
4062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 break 2
4065 done
4066 done
4067 IFS=$as_save_IFS
4071 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4072 if test -n "$ac_ct_CXX"; then
4073 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4074 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4075 else
4076 { echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6; }
4081 test -n "$ac_ct_CXX" && break
4082 done
4084 if test "x$ac_ct_CXX" = x; then
4085 CXX="g++"
4086 else
4087 case $cross_compiling:$ac_tool_warned in
4088 yes:)
4089 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4090 whose name does not start with the host triplet. If you think this
4091 configuration is useful to you, please write to autoconf@gnu.org." >&5
4092 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4093 whose name does not start with the host triplet. If you think this
4094 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4095 ac_tool_warned=yes ;;
4096 esac
4097 CXX=$ac_ct_CXX
4103 # Provide some information about the compiler.
4104 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4105 ac_compiler=`set X $ac_compile; echo $2`
4106 { (ac_try="$ac_compiler --version >&5"
4107 case "(($ac_try" in
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4110 esac
4111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4112 (eval "$ac_compiler --version >&5") 2>&5
4113 ac_status=$?
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); }
4116 { (ac_try="$ac_compiler -v >&5"
4117 case "(($ac_try" in
4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119 *) ac_try_echo=$ac_try;;
4120 esac
4121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4122 (eval "$ac_compiler -v >&5") 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }
4126 { (ac_try="$ac_compiler -V >&5"
4127 case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4130 esac
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_compiler -V >&5") 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }
4137 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4138 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4139 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 else
4142 cat >conftest.$ac_ext <<_ACEOF
4143 /* confdefs.h. */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4150 main ()
4152 #ifndef __GNUC__
4153 choke me
4154 #endif
4157 return 0;
4159 _ACEOF
4160 rm -f conftest.$ac_objext
4161 if { (ac_try="$ac_compile"
4162 case "(($ac_try" in
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4165 esac
4166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167 (eval "$ac_compile") 2>conftest.er1
4168 ac_status=$?
4169 grep -v '^ *+' conftest.er1 >conftest.err
4170 rm -f conftest.er1
4171 cat conftest.err >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } && {
4174 test -z "$ac_cxx_werror_flag" ||
4175 test ! -s conftest.err
4176 } && test -s conftest.$ac_objext; then
4177 ac_compiler_gnu=yes
4178 else
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4182 ac_compiler_gnu=no
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4189 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4190 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4191 GXX=`test $ac_compiler_gnu = yes && echo yes`
4192 ac_test_CXXFLAGS=${CXXFLAGS+set}
4193 ac_save_CXXFLAGS=$CXXFLAGS
4194 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4195 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4196 if test "${ac_cv_prog_cxx_g+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 else
4199 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4200 ac_cxx_werror_flag=yes
4201 ac_cv_prog_cxx_g=no
4202 CXXFLAGS="-g"
4203 cat >conftest.$ac_ext <<_ACEOF
4204 /* confdefs.h. */
4205 _ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4211 main ()
4215 return 0;
4217 _ACEOF
4218 rm -f conftest.$ac_objext
4219 if { (ac_try="$ac_compile"
4220 case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4223 esac
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_compile") 2>conftest.er1
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } && {
4232 test -z "$ac_cxx_werror_flag" ||
4233 test ! -s conftest.err
4234 } && test -s conftest.$ac_objext; then
4235 ac_cv_prog_cxx_g=yes
4236 else
4237 echo "$as_me: failed program was:" >&5
4238 sed 's/^/| /' conftest.$ac_ext >&5
4240 CXXFLAGS=""
4241 cat >conftest.$ac_ext <<_ACEOF
4242 /* confdefs.h. */
4243 _ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4249 main ()
4253 return 0;
4255 _ACEOF
4256 rm -f conftest.$ac_objext
4257 if { (ac_try="$ac_compile"
4258 case "(($ac_try" in
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4261 esac
4262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_compile") 2>conftest.er1
4264 ac_status=$?
4265 grep -v '^ *+' conftest.er1 >conftest.err
4266 rm -f conftest.er1
4267 cat conftest.err >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } && {
4270 test -z "$ac_cxx_werror_flag" ||
4271 test ! -s conftest.err
4272 } && test -s conftest.$ac_objext; then
4274 else
4275 echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4278 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4279 CXXFLAGS="-g"
4280 cat >conftest.$ac_ext <<_ACEOF
4281 /* confdefs.h. */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4288 main ()
4292 return 0;
4294 _ACEOF
4295 rm -f conftest.$ac_objext
4296 if { (ac_try="$ac_compile"
4297 case "(($ac_try" in
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4300 esac
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302 (eval "$ac_compile") 2>conftest.er1
4303 ac_status=$?
4304 grep -v '^ *+' conftest.er1 >conftest.err
4305 rm -f conftest.er1
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } && {
4309 test -z "$ac_cxx_werror_flag" ||
4310 test ! -s conftest.err
4311 } && test -s conftest.$ac_objext; then
4312 ac_cv_prog_cxx_g=yes
4313 else
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4329 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4330 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4331 if test "$ac_test_CXXFLAGS" = set; then
4332 CXXFLAGS=$ac_save_CXXFLAGS
4333 elif test $ac_cv_prog_cxx_g = yes; then
4334 if test "$GXX" = yes; then
4335 CXXFLAGS="-g -O2"
4336 else
4337 CXXFLAGS="-g"
4339 else
4340 if test "$GXX" = yes; then
4341 CXXFLAGS="-O2"
4342 else
4343 CXXFLAGS=
4346 ac_ext=c
4347 ac_cpp='$CPP $CPPFLAGS'
4348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4352 # Was a --with-binutils option given?
4353 if test -n "$path_binutils"; then
4354 # Make absolute; ensure a single trailing slash.
4355 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4356 CC="$CC -B$path_binutils"
4358 AS=`$CC -print-prog-name=as`
4359 LD=`$CC -print-prog-name=ld`
4360 AR=`$CC -print-prog-name=ar`
4362 OBJDUMP=`$CC -print-prog-name=objdump`
4365 # ranlib has to be treated a bit differently since it might not exist at all.
4366 ac_ranlib=`$CC -print-prog-name=ranlib`
4367 if test "x$ac_ranlib" = xranlib; then
4368 # This extra check has to happen since gcc simply echos the parameter in
4369 # case it cannot find the value in its own directories.
4370 if test -n "$ac_tool_prefix"; then
4371 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4372 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4375 if test "${ac_cv_prog_RANLIB+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4378 if test -n "$RANLIB"; then
4379 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4380 else
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 for as_dir in $PATH
4384 IFS=$as_save_IFS
4385 test -z "$as_dir" && as_dir=.
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4388 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 break 2
4392 done
4393 done
4394 IFS=$as_save_IFS
4398 RANLIB=$ac_cv_prog_RANLIB
4399 if test -n "$RANLIB"; then
4400 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4401 echo "${ECHO_T}$RANLIB" >&6; }
4402 else
4403 { echo "$as_me:$LINENO: result: no" >&5
4404 echo "${ECHO_T}no" >&6; }
4409 if test -z "$ac_cv_prog_RANLIB"; then
4410 ac_ct_RANLIB=$RANLIB
4411 # Extract the first word of "ranlib", so it can be a program name with args.
4412 set dummy ranlib; ac_word=$2
4413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4415 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418 if test -n "$ac_ct_RANLIB"; then
4419 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_prog_ac_ct_RANLIB="ranlib"
4429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4432 done
4433 done
4434 IFS=$as_save_IFS
4438 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4439 if test -n "$ac_ct_RANLIB"; then
4440 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4441 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4442 else
4443 { echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6; }
4447 if test "x$ac_ct_RANLIB" = x; then
4448 RANLIB=":"
4449 else
4450 case $cross_compiling:$ac_tool_warned in
4451 yes:)
4452 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4453 whose name does not start with the host triplet. If you think this
4454 configuration is useful to you, please write to autoconf@gnu.org." >&5
4455 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4456 whose name does not start with the host triplet. If you think this
4457 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4458 ac_tool_warned=yes ;;
4459 esac
4460 RANLIB=$ac_ct_RANLIB
4462 else
4463 RANLIB="$ac_cv_prog_RANLIB"
4466 else
4467 RANLIB=$ac_ranlib
4471 # Determine whether we are using GNU binutils.
4472 { echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
4473 echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6; }
4474 if test "${libc_cv_prog_as_gnu+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477 # Most GNU programs take a -v and spit out some text including
4478 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4479 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4480 libc_cv_prog_as_gnu=yes
4481 else
4482 libc_cv_prog_as_gnu=no
4484 rm -fr contest*
4486 { echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
4487 echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6; }
4488 rm -f a.out
4489 gnu_as=$libc_cv_prog_as_gnu
4491 { echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
4492 echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6; }
4493 if test "${libc_cv_prog_ld_gnu+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496 # Most GNU programs take a -v and spit out some text including
4497 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4498 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4499 libc_cv_prog_ld_gnu=yes
4500 else
4501 libc_cv_prog_ld_gnu=no
4503 rm -fr contest*
4505 { echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
4506 echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6; }
4507 gnu_ld=$libc_cv_prog_ld_gnu
4510 # Accept binutils 2.13 or newer.
4511 for ac_prog in $AS
4513 # Extract the first word of "$ac_prog", so it can be a program name with args.
4514 set dummy $ac_prog; ac_word=$2
4515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4517 if test "${ac_cv_prog_AS+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520 if test -n "$AS"; then
4521 ac_cv_prog_AS="$AS" # Let the user override the test.
4522 else
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4530 ac_cv_prog_AS="$ac_prog"
4531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 break 2
4534 done
4535 done
4536 IFS=$as_save_IFS
4540 AS=$ac_cv_prog_AS
4541 if test -n "$AS"; then
4542 { echo "$as_me:$LINENO: result: $AS" >&5
4543 echo "${ECHO_T}$AS" >&6; }
4544 else
4545 { echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6; }
4550 test -n "$AS" && break
4551 done
4553 if test -z "$AS"; then
4554 ac_verc_fail=yes
4555 else
4556 # Found it, now check the version.
4557 { echo "$as_me:$LINENO: checking version of $AS" >&5
4558 echo $ECHO_N "checking version of $AS... $ECHO_C" >&6; }
4559 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4560 case $ac_prog_version in
4561 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4562 2.1[3-9]*)
4563 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4564 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4566 esac
4567 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4568 echo "${ECHO_T}$ac_prog_version" >&6; }
4570 if test $ac_verc_fail = yes; then
4571 AS=: critic_missing="$critic_missing as"
4574 for ac_prog in $LD
4576 # Extract the first word of "$ac_prog", so it can be a program name with args.
4577 set dummy $ac_prog; ac_word=$2
4578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4580 if test "${ac_cv_prog_LD+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583 if test -n "$LD"; then
4584 ac_cv_prog_LD="$LD" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593 ac_cv_prog_LD="$ac_prog"
4594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4597 done
4598 done
4599 IFS=$as_save_IFS
4603 LD=$ac_cv_prog_LD
4604 if test -n "$LD"; then
4605 { echo "$as_me:$LINENO: result: $LD" >&5
4606 echo "${ECHO_T}$LD" >&6; }
4607 else
4608 { echo "$as_me:$LINENO: result: no" >&5
4609 echo "${ECHO_T}no" >&6; }
4613 test -n "$LD" && break
4614 done
4616 if test -z "$LD"; then
4617 ac_verc_fail=yes
4618 else
4619 # Found it, now check the version.
4620 { echo "$as_me:$LINENO: checking version of $LD" >&5
4621 echo $ECHO_N "checking version of $LD... $ECHO_C" >&6; }
4622 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4623 case $ac_prog_version in
4624 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4625 2.1[3-9]*)
4626 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4627 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4629 esac
4630 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4631 echo "${ECHO_T}$ac_prog_version" >&6; }
4633 if test $ac_verc_fail = yes; then
4634 LD=: critic_missing="$critic_missing ld"
4638 # We need the physical current working directory. We cannot use the
4639 # "pwd -P" shell builtin since that's not portable. Instead we try to
4640 # find a pwd binary. Note that assigning to the PWD environment
4641 # variable might have some interesting side effects, so we don't do
4642 # that.
4643 # Extract the first word of "pwd", so it can be a program name with args.
4644 set dummy pwd; ac_word=$2
4645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4647 if test "${ac_cv_path_PWD_P+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650 case $PWD_P in
4651 [\\/]* | ?:[\\/]*)
4652 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4666 done
4667 done
4668 IFS=$as_save_IFS
4670 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4672 esac
4674 PWD_P=$ac_cv_path_PWD_P
4675 if test -n "$PWD_P"; then
4676 { echo "$as_me:$LINENO: result: $PWD_P" >&5
4677 echo "${ECHO_T}$PWD_P" >&6; }
4678 else
4679 { echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6; }
4684 if test "$PWD_P" = no; then
4685 { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
4686 echo "$as_me: error: *** A pwd binary could not be found." >&2;}
4687 { (exit 1); exit 1; }; }
4690 # These programs are version sensitive.
4692 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4694 # Extract the first word of "$ac_prog", so it can be a program name with args.
4695 set dummy $ac_prog; ac_word=$2
4696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698 if test "${ac_cv_prog_CC+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701 if test -n "$CC"; then
4702 ac_cv_prog_CC="$CC" # Let the user override the test.
4703 else
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 ac_cv_prog_CC="$ac_prog"
4712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 break 2
4715 done
4716 done
4717 IFS=$as_save_IFS
4721 CC=$ac_cv_prog_CC
4722 if test -n "$CC"; then
4723 { echo "$as_me:$LINENO: result: $CC" >&5
4724 echo "${ECHO_T}$CC" >&6; }
4725 else
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4731 test -n "$CC" && break
4732 done
4734 if test -z "$CC"; then
4735 ac_verc_fail=yes
4736 else
4737 # Found it, now check the version.
4738 { echo "$as_me:$LINENO: checking version of $CC" >&5
4739 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6; }
4740 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
4741 case $ac_prog_version in
4742 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4743 3.4* | 4.[0-9]* )
4744 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4745 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4747 esac
4748 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4749 echo "${ECHO_T}$ac_prog_version" >&6; }
4751 if test $ac_verc_fail = yes; then
4752 critic_missing="$critic_missing gcc"
4755 for ac_prog in gnumake gmake make
4757 # Extract the first word of "$ac_prog", so it can be a program name with args.
4758 set dummy $ac_prog; ac_word=$2
4759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4761 if test "${ac_cv_prog_MAKE+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764 if test -n "$MAKE"; then
4765 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4766 else
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4774 ac_cv_prog_MAKE="$ac_prog"
4775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 break 2
4778 done
4779 done
4780 IFS=$as_save_IFS
4784 MAKE=$ac_cv_prog_MAKE
4785 if test -n "$MAKE"; then
4786 { echo "$as_me:$LINENO: result: $MAKE" >&5
4787 echo "${ECHO_T}$MAKE" >&6; }
4788 else
4789 { echo "$as_me:$LINENO: result: no" >&5
4790 echo "${ECHO_T}no" >&6; }
4794 test -n "$MAKE" && break
4795 done
4797 if test -z "$MAKE"; then
4798 ac_verc_fail=yes
4799 else
4800 # Found it, now check the version.
4801 { echo "$as_me:$LINENO: checking version of $MAKE" >&5
4802 echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6; }
4803 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4804 case $ac_prog_version in
4805 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4806 3.79* | 3.[89]*)
4807 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4808 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4810 esac
4811 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4812 echo "${ECHO_T}$ac_prog_version" >&6; }
4814 if test $ac_verc_fail = yes; then
4815 critic_missing="$critic_missing make"
4819 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4821 # Extract the first word of "$ac_prog", so it can be a program name with args.
4822 set dummy $ac_prog; ac_word=$2
4823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4825 if test "${ac_cv_prog_MSGFMT+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 else
4828 if test -n "$MSGFMT"; then
4829 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4830 else
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH
4834 IFS=$as_save_IFS
4835 test -z "$as_dir" && as_dir=.
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4838 ac_cv_prog_MSGFMT="$ac_prog"
4839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 break 2
4842 done
4843 done
4844 IFS=$as_save_IFS
4848 MSGFMT=$ac_cv_prog_MSGFMT
4849 if test -n "$MSGFMT"; then
4850 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4851 echo "${ECHO_T}$MSGFMT" >&6; }
4852 else
4853 { echo "$as_me:$LINENO: result: no" >&5
4854 echo "${ECHO_T}no" >&6; }
4858 test -n "$MSGFMT" && break
4859 done
4861 if test -z "$MSGFMT"; then
4862 ac_verc_fail=yes
4863 else
4864 # Found it, now check the version.
4865 { echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
4866 echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6; }
4867 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4868 case $ac_prog_version in
4869 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4870 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4871 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4872 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4874 esac
4875 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4876 echo "${ECHO_T}$ac_prog_version" >&6; }
4878 if test $ac_verc_fail = yes; then
4879 MSGFMT=: aux_missing="$aux_missing msgfmt"
4882 for ac_prog in makeinfo
4884 # Extract the first word of "$ac_prog", so it can be a program name with args.
4885 set dummy $ac_prog; ac_word=$2
4886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4888 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891 if test -n "$MAKEINFO"; then
4892 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4893 else
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4901 ac_cv_prog_MAKEINFO="$ac_prog"
4902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4905 done
4906 done
4907 IFS=$as_save_IFS
4911 MAKEINFO=$ac_cv_prog_MAKEINFO
4912 if test -n "$MAKEINFO"; then
4913 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4914 echo "${ECHO_T}$MAKEINFO" >&6; }
4915 else
4916 { echo "$as_me:$LINENO: result: no" >&5
4917 echo "${ECHO_T}no" >&6; }
4921 test -n "$MAKEINFO" && break
4922 done
4924 if test -z "$MAKEINFO"; then
4925 ac_verc_fail=yes
4926 else
4927 # Found it, now check the version.
4928 { echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
4929 echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6; }
4930 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4931 case $ac_prog_version in
4932 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4933 4.*)
4934 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4935 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4937 esac
4938 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4939 echo "${ECHO_T}$ac_prog_version" >&6; }
4941 if test $ac_verc_fail = yes; then
4942 MAKEINFO=: aux_missing="$aux_missing makeinfo"
4945 for ac_prog in sed
4947 # Extract the first word of "$ac_prog", so it can be a program name with args.
4948 set dummy $ac_prog; ac_word=$2
4949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4951 if test "${ac_cv_prog_SED+set}" = set; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4953 else
4954 if test -n "$SED"; then
4955 ac_cv_prog_SED="$SED" # Let the user override the test.
4956 else
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4964 ac_cv_prog_SED="$ac_prog"
4965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 break 2
4968 done
4969 done
4970 IFS=$as_save_IFS
4974 SED=$ac_cv_prog_SED
4975 if test -n "$SED"; then
4976 { echo "$as_me:$LINENO: result: $SED" >&5
4977 echo "${ECHO_T}$SED" >&6; }
4978 else
4979 { echo "$as_me:$LINENO: result: no" >&5
4980 echo "${ECHO_T}no" >&6; }
4984 test -n "$SED" && break
4985 done
4987 if test -z "$SED"; then
4988 ac_verc_fail=yes
4989 else
4990 # Found it, now check the version.
4991 { echo "$as_me:$LINENO: checking version of $SED" >&5
4992 echo $ECHO_N "checking version of $SED... $ECHO_C" >&6; }
4993 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
4994 case $ac_prog_version in
4995 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4996 3.0[2-9]*|3.[1-9]*|[4-9]*)
4997 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4998 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5000 esac
5001 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5002 echo "${ECHO_T}$ac_prog_version" >&6; }
5004 if test $ac_verc_fail = yes; then
5005 SED=: aux_missing="$aux_missing sed"
5009 for ac_prog in autoconf
5011 # Extract the first word of "$ac_prog", so it can be a program name with args.
5012 set dummy $ac_prog; ac_word=$2
5013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5015 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018 if test -n "$AUTOCONF"; then
5019 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5028 ac_cv_prog_AUTOCONF="$ac_prog"
5029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 break 2
5032 done
5033 done
5034 IFS=$as_save_IFS
5038 AUTOCONF=$ac_cv_prog_AUTOCONF
5039 if test -n "$AUTOCONF"; then
5040 { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
5041 echo "${ECHO_T}$AUTOCONF" >&6; }
5042 else
5043 { echo "$as_me:$LINENO: result: no" >&5
5044 echo "${ECHO_T}no" >&6; }
5048 test -n "$AUTOCONF" && break
5049 done
5050 test -n "$AUTOCONF" || AUTOCONF="no"
5052 case "x$AUTOCONF" in
5053 xno|x|x:) AUTOCONF=no ;;
5055 { echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5056 echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6; }
5057 if test "${libc_cv_autoconf_works+set}" = set; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
5059 else
5060 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5061 libc_cv_autoconf_works=yes
5062 else
5063 libc_cv_autoconf_works=no
5066 { echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
5067 echo "${ECHO_T}$libc_cv_autoconf_works" >&6; }
5068 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5070 esac
5071 if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
5072 # If --without-cvs they probably won't change configure.in, so no complaints.
5073 aux_missing="$aux_missing autoconf"
5076 test -n "$critic_missing" && { { echo "$as_me:$LINENO: error:
5077 *** These critical programs are missing or too old:$critic_missing
5078 *** Check the INSTALL file for required versions." >&5
5079 echo "$as_me: error:
5080 *** These critical programs are missing or too old:$critic_missing
5081 *** Check the INSTALL file for required versions." >&2;}
5082 { (exit 1); exit 1; }; }
5084 test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
5085 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5086 *** some features will be disabled.
5087 *** Check the INSTALL file for required versions." >&5
5088 echo "$as_me: WARNING:
5089 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5090 *** some features will be disabled.
5091 *** Check the INSTALL file for required versions." >&2;}
5093 # if using special system headers, find out the compiler's sekrit
5094 # header directory and add that to the list. NOTE: Only does the right
5095 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5096 if test -n "$sysheaders"; then
5097 SYSINCLUDES=-nostdinc
5098 for d in include include-fixed; do
5099 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5100 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5101 done
5102 SYSINCLUDES="$SYSINCLUDES \
5103 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5104 if test -n "$CXX"; then
5105 cxxversion=`$CXX -dumpversion 2>&5` &&
5106 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5107 cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" &&
5108 CXX_SYSINCLUDES="-isystem $cxxheaders \
5109 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5115 # check if ranlib is necessary
5116 { echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
5117 echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6; }
5118 if test "${libc_cv_ranlib_necessary+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 else
5121 cat > conftest.c <<EOF
5122 int a;
5123 char b;
5124 void c(void) {}
5126 $CC $CFLAGS $CPPFLAGS -c conftest.c
5127 $AR cr conftest.a conftest.o
5128 cp conftest.a conftest2.a
5129 $RANLIB conftest.a
5130 if cmp -s conftest.a conftest2.a; then
5131 libc_cv_ranlib_necessary=no
5132 else
5133 libc_cv_ranlib_necessary=yes
5135 rm -rf conftest*
5137 { echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
5138 echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6; }
5139 if test "$libc_cv_ranlib_necessary" = no; then
5140 RANLIB=:
5143 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5144 # since this would lead to problems installing/building glibc.
5145 # LD_LIBRARY_PATH contains the current directory if one of the following
5146 # is true:
5147 # - one of the terminals (":" and ";") is the first or last sign
5148 # - two terminals occur directly after each other
5149 # - the path contains an element with a dot in it
5150 { echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
5151 echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6; }
5152 case ${LD_LIBRARY_PATH} in
5153 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5154 ld_library_path_setting="contains current directory"
5157 ld_library_path_setting="ok"
5159 esac
5160 { echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
5161 echo "${ECHO_T}$ld_library_path_setting" >&6; }
5162 if test "$ld_library_path_setting" != "ok"; then
5163 { { echo "$as_me:$LINENO: error:
5164 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5165 *** building glibc. Please change the environment variable
5166 *** and run configure again." >&5
5167 echo "$as_me: error:
5168 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5169 *** building glibc. Please change the environment variable
5170 *** and run configure again." >&2;}
5171 { (exit 1); exit 1; }; }
5174 { echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
5175 echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6; }
5176 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5180 libc_cv_gcc_static_libgcc=
5181 else
5182 libc_cv_gcc_static_libgcc=-static-libgcc
5185 { echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
5186 echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6; }
5189 # Extract the first word of "bash", so it can be a program name with args.
5190 set dummy bash; ac_word=$2
5191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5193 if test "${ac_cv_path_BASH_SHELL+set}" = set; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 else
5196 case $BASH_SHELL in
5197 [\\/]* | ?:[\\/]*)
5198 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5208 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5212 done
5213 done
5214 IFS=$as_save_IFS
5216 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5218 esac
5220 BASH_SHELL=$ac_cv_path_BASH_SHELL
5221 if test -n "$BASH_SHELL"; then
5222 { echo "$as_me:$LINENO: result: $BASH_SHELL" >&5
5223 echo "${ECHO_T}$BASH_SHELL" >&6; }
5224 else
5225 { echo "$as_me:$LINENO: result: no" >&5
5226 echo "${ECHO_T}no" >&6; }
5230 if test "$BASH_SHELL" != no &&
5231 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5232 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5233 libc_cv_have_bash2=yes
5234 else
5235 libc_cv_have_bash2=no
5239 if test "$BASH_SHELL" = no; then
5240 # Extract the first word of "ksh", so it can be a program name with args.
5241 set dummy ksh; ac_word=$2
5242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5244 if test "${ac_cv_path_KSH+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247 case $KSH in
5248 [\\/]* | ?:[\\/]*)
5249 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5263 done
5264 done
5265 IFS=$as_save_IFS
5267 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5269 esac
5271 KSH=$ac_cv_path_KSH
5272 if test -n "$KSH"; then
5273 { echo "$as_me:$LINENO: result: $KSH" >&5
5274 echo "${ECHO_T}$KSH" >&6; }
5275 else
5276 { echo "$as_me:$LINENO: result: no" >&5
5277 echo "${ECHO_T}no" >&6; }
5281 if test "$KSH" = no; then
5282 libc_cv_have_ksh=no
5283 else
5284 libc_cv_have_ksh=yes
5286 else
5287 KSH="$BASH_SHELL"
5289 libc_cv_have_ksh=yes
5293 for ac_prog in gawk mawk nawk awk
5295 # Extract the first word of "$ac_prog", so it can be a program name with args.
5296 set dummy $ac_prog; ac_word=$2
5297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5299 if test "${ac_cv_prog_AWK+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 else
5302 if test -n "$AWK"; then
5303 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5304 else
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5312 ac_cv_prog_AWK="$ac_prog"
5313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 break 2
5316 done
5317 done
5318 IFS=$as_save_IFS
5322 AWK=$ac_cv_prog_AWK
5323 if test -n "$AWK"; then
5324 { echo "$as_me:$LINENO: result: $AWK" >&5
5325 echo "${ECHO_T}$AWK" >&6; }
5326 else
5327 { echo "$as_me:$LINENO: result: no" >&5
5328 echo "${ECHO_T}no" >&6; }
5332 test -n "$AWK" && break
5333 done
5335 # Extract the first word of "perl", so it can be a program name with args.
5336 set dummy perl; ac_word=$2
5337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5339 if test "${ac_cv_path_PERL+set}" = set; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5341 else
5342 case $PERL in
5343 [\\/]* | ?:[\\/]*)
5344 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5358 done
5359 done
5360 IFS=$as_save_IFS
5362 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5364 esac
5366 PERL=$ac_cv_path_PERL
5367 if test -n "$PERL"; then
5368 { echo "$as_me:$LINENO: result: $PERL" >&5
5369 echo "${ECHO_T}$PERL" >&6; }
5370 else
5371 { echo "$as_me:$LINENO: result: no" >&5
5372 echo "${ECHO_T}no" >&6; }
5376 if test "$PERL" != no &&
5377 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5378 PERL=no
5380 # Extract the first word of "install-info", so it can be a program name with args.
5381 set dummy install-info; ac_word=$2
5382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5384 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 else
5387 case $INSTALL_INFO in
5388 [\\/]* | ?:[\\/]*)
5389 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5394 for as_dir in $as_dummy
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5400 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 break 2
5404 done
5405 done
5406 IFS=$as_save_IFS
5408 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5410 esac
5412 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5413 if test -n "$INSTALL_INFO"; then
5414 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5415 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5416 else
5417 { echo "$as_me:$LINENO: result: no" >&5
5418 echo "${ECHO_T}no" >&6; }
5422 # Extract the first word of "bison", so it can be a program name with args.
5423 set dummy bison; ac_word=$2
5424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5426 if test "${ac_cv_path_BISON+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429 case $BISON in
5430 [\\/]* | ?:[\\/]*)
5431 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5436 for as_dir in $as_dummy
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5442 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5446 done
5447 done
5448 IFS=$as_save_IFS
5450 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5452 esac
5454 BISON=$ac_cv_path_BISON
5455 if test -n "$BISON"; then
5456 { echo "$as_me:$LINENO: result: $BISON" >&5
5457 echo "${ECHO_T}$BISON" >&6; }
5458 else
5459 { echo "$as_me:$LINENO: result: no" >&5
5460 echo "${ECHO_T}no" >&6; }
5465 { echo "$as_me:$LINENO: checking for signed size_t type" >&5
5466 echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6; }
5467 if test "${libc_cv_signed_size_t+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 else
5470 echo '#include <stddef.h>
5471 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5472 if eval "$ac_cpp conftest.c 2>/dev/null" \
5473 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5474 libc_cv_signed_size_t=no
5475 else
5476 libc_cv_signed_size_t=yes
5478 rm -f conftest*
5480 { echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
5481 echo "${ECHO_T}$libc_cv_signed_size_t" >&6; }
5482 if test $libc_cv_signed_size_t = yes; then
5483 cat >> confdefs.h <<\EOF
5484 #undef __SIZE_TYPE__
5485 #define __SIZE_TYPE__ unsigned
5490 { echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
5491 echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6; }
5492 if test "${libc_cv_friendly_stddef+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 else
5495 cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h. */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5501 #define __need_size_t
5502 #define __need_wchar_t
5503 #include <stddef.h>
5504 #define __need_NULL
5505 #include <stddef.h>
5507 main ()
5509 size_t size; wchar_t wchar;
5510 #ifdef offsetof
5511 #error stddef.h ignored __need_*
5512 #endif
5513 if (&size == NULL || &wchar == NULL) abort ();
5515 return 0;
5517 _ACEOF
5518 rm -f conftest.$ac_objext
5519 if { (ac_try="$ac_compile"
5520 case "(($ac_try" in
5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522 *) ac_try_echo=$ac_try;;
5523 esac
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525 (eval "$ac_compile") 2>conftest.er1
5526 ac_status=$?
5527 grep -v '^ *+' conftest.er1 >conftest.err
5528 rm -f conftest.er1
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } && {
5532 test -z "$ac_c_werror_flag" ||
5533 test ! -s conftest.err
5534 } && test -s conftest.$ac_objext; then
5535 libc_cv_friendly_stddef=yes
5536 else
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5540 libc_cv_friendly_stddef=no
5543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5545 { echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
5546 echo "${ECHO_T}$libc_cv_friendly_stddef" >&6; }
5547 if test $libc_cv_friendly_stddef = yes; then
5548 config_vars="$config_vars
5549 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5552 { echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
5553 echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6; }
5554 if test "${libc_cv_need_minus_P+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 else
5557 cat > conftest.S <<EOF
5558 #include "confdefs.h"
5559 /* Nothing whatsoever. */
5561 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563 (eval $ac_try) 2>&5
5564 ac_status=$?
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }; }; then
5567 libc_cv_need_minus_P=no
5568 else
5569 libc_cv_need_minus_P=yes
5571 rm -f conftest*
5573 { echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
5574 echo "${ECHO_T}$libc_cv_need_minus_P" >&6; }
5575 if test $libc_cv_need_minus_P = yes; then
5576 config_vars="$config_vars
5577 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5580 { echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
5581 echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6; }
5582 if test "${libc_cv_dot_text+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585 cat > conftest.s <<EOF
5586 .text
5588 libc_cv_dot_text=
5589 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 (eval $ac_try) 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; }; then
5595 libc_cv_dot_text=.text
5597 rm -f conftest*
5600 if test -z "$libc_cv_dot_text"; then
5601 { echo "$as_me:$LINENO: result: no" >&5
5602 echo "${ECHO_T}no" >&6; }
5603 else
5604 { echo "$as_me:$LINENO: result: yes" >&5
5605 echo "${ECHO_T}yes" >&6; }
5608 { echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
5609 echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6; }
5610 if test "${libc_cv_asm_global_directive+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613 libc_cv_asm_global_directive=UNKNOWN
5614 for ac_globl in .globl .global .EXPORT; do
5615 cat > conftest.s <<EOF
5616 ${libc_cv_dot_text}
5617 ${ac_globl} foo
5618 foo:
5620 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622 (eval $ac_try) 2>&5
5623 ac_status=$?
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; }; then
5626 libc_cv_asm_global_directive=${ac_globl}
5628 rm -f conftest*
5629 test $libc_cv_asm_global_directive != UNKNOWN && break
5630 done
5632 { echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
5633 echo "${ECHO_T}$libc_cv_asm_global_directive" >&6; }
5634 if test $libc_cv_asm_global_directive = UNKNOWN; then
5635 { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
5636 echo "$as_me: error: cannot determine asm global directive" >&2;}
5637 { (exit 1); exit 1; }; }
5638 else
5639 cat >>confdefs.h <<_ACEOF
5640 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
5641 _ACEOF
5645 { echo "$as_me:$LINENO: checking for .set assembler directive" >&5
5646 echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6; }
5647 if test "${libc_cv_asm_set_directive+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650 cat > conftest.s <<EOF
5651 ${libc_cv_dot_text}
5652 foo:
5653 .set glibc_conftest_frobozz,foo
5654 $libc_cv_asm_global_directive glibc_conftest_frobozz
5656 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5657 # (but it doesn't work), so we must do a linking check to be sure.
5658 cat > conftest1.c <<\EOF
5659 extern int glibc_conftest_frobozz;
5660 void _start() { glibc_conftest_frobozz = 1; }
5662 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5663 -nostartfiles -nostdlib \
5664 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5665 libc_cv_asm_set_directive=yes
5666 else
5667 libc_cv_asm_set_directive=no
5669 rm -f conftest*
5671 { echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
5672 echo "${ECHO_T}$libc_cv_asm_set_directive" >&6; }
5673 if test $libc_cv_asm_set_directive = yes; then
5674 cat >>confdefs.h <<\_ACEOF
5675 #define HAVE_ASM_SET_DIRECTIVE 1
5676 _ACEOF
5680 { echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
5681 echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6; }
5682 if test "${libc_cv_asm_type_prefix+set}" = set; then
5683 echo $ECHO_N "(cached) $ECHO_C" >&6
5684 else
5685 libc_cv_asm_type_prefix=no
5686 for ac_try_prefix in '@' '%' '#'; do
5687 cat > conftest.s <<EOF
5688 ${libc_cv_dot_text}
5689 ${libc_cv_asm_global_directive} foo
5690 .type foo, ${ac_try_prefix}object
5691 .size foo, 1
5692 foo:
5693 .byte 1
5695 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 (eval $ac_try) 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; }; then
5701 libc_cv_asm_type_prefix=${ac_try_prefix}
5703 rm -f conftest*
5704 test "x$libc_cv_asm_type_prefix" != xno && break
5705 done
5707 { echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
5708 echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6; }
5709 if test "x$libc_cv_asm_type_prefix" != xno; then
5710 cat >>confdefs.h <<_ACEOF
5711 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
5712 _ACEOF
5716 # For the multi-arch option we need support in the assembler.
5717 if test "$multi_arch" = yes; then
5718 if test "x$libc_cv_asm_type_prefix" != xno; then
5719 { echo "$as_me:$LINENO: checking for assembler gnu_indirect_function symbol type support" >&5
5720 echo $ECHO_N "checking for assembler gnu_indirect_function symbol type support... $ECHO_C" >&6; }
5721 if test "${libc_cv_asm_gnu_indirect_function+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724 cat > conftest.s <<EOF
5725 .type foo,%gnu_indirect_function
5727 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
5728 then
5729 libc_cv_asm_gnu_indirect_function=yes
5730 else
5731 libc_cv_asm_gnu_indirect_function=no
5733 rm -f conftest*
5735 { echo "$as_me:$LINENO: result: $libc_cv_asm_gnu_indirect_function" >&5
5736 echo "${ECHO_T}$libc_cv_asm_gnu_indirect_function" >&6; }
5737 else
5738 libc_cv_asm_gnu_indirect_function=no
5740 if test x"$libc_cv_asm_gnu_indirect_function" != xyes; then
5741 { { echo "$as_me:$LINENO: error: --enable-multi-arch support requires assembler and linker support" >&5
5742 echo "$as_me: error: --enable-multi-arch support requires assembler and linker support" >&2;}
5743 { (exit 1); exit 1; }; }
5747 { echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
5748 echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6; }
5749 if test "${libc_cv_asm_symver_directive+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752 cat > conftest.s <<EOF
5753 ${libc_cv_dot_text}
5754 _sym:
5755 .symver _sym,sym@VERS
5757 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5758 libc_cv_asm_symver_directive=yes
5759 else
5760 libc_cv_asm_symver_directive=no
5762 rm -f conftest*
5764 { echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
5765 echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6; }
5766 { echo "$as_me:$LINENO: checking for ld --version-script" >&5
5767 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6; }
5768 if test "${libc_cv_ld_version_script_option+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771 if test $libc_cv_asm_symver_directive = yes; then
5772 cat > conftest.s <<EOF
5773 ${libc_cv_dot_text}
5774 _sym:
5775 .symver _sym,sym@VERS
5777 cat > conftest.map <<EOF
5778 VERS_1 {
5779 global: sym;
5782 VERS_2 {
5783 global: sym;
5784 } VERS_1;
5786 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5787 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
5788 -o conftest.so conftest.o
5789 -nostartfiles -nostdlib
5790 -Wl,--version-script,conftest.map
5791 1>&5'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793 (eval $ac_try) 2>&5
5794 ac_status=$?
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; };
5797 then
5798 libc_cv_ld_version_script_option=yes
5799 else
5800 libc_cv_ld_version_script_option=no
5802 else
5803 libc_cv_ld_version_script_option=no
5805 else
5806 libc_cv_ld_version_script_option=no
5808 rm -f conftest*
5810 { echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
5811 echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6; }
5812 if test $shared != no &&
5813 test $libc_cv_asm_symver_directive = yes &&
5814 test $libc_cv_ld_version_script_option = yes &&
5815 test $enable_versioning = yes; then
5816 VERSIONING=yes
5817 cat >>confdefs.h <<\_ACEOF
5818 #define DO_VERSIONING 1
5819 _ACEOF
5821 else
5822 VERSIONING=no
5826 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
5827 echo "\
5828 *** WARNING: You should not compile GNU libc without versioning. Not using
5829 *** versioning will introduce incompatibilities so that old binaries
5830 *** will not run anymore.
5831 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
5833 if test $elf = yes; then
5834 { echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
5835 echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6; }
5836 if test "${libc_cv_asm_previous_directive+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839 cat > conftest.s <<EOF
5840 .section foo_section
5841 .previous
5843 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 (eval $ac_try) 2>&5
5846 ac_status=$?
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; }; then
5849 libc_cv_asm_previous_directive=yes
5850 else
5851 libc_cv_asm_previous_directive=no
5853 rm -f conftest*
5855 { echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
5856 echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6; }
5857 if test $libc_cv_asm_previous_directive = yes; then
5858 cat >>confdefs.h <<\_ACEOF
5859 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
5860 _ACEOF
5862 else
5863 { echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
5864 echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6; }
5865 if test "${libc_cv_asm_popsection_directive+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868 cat > conftest.s <<EOF
5869 .pushsection foo_section
5870 .popsection
5872 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 (eval $ac_try) 2>&5
5875 ac_status=$?
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
5878 libc_cv_asm_popsection_directive=yes
5879 else
5880 libc_cv_asm_popsection_directive=no
5882 rm -f conftest*
5884 { echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
5885 echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6; }
5886 if test $libc_cv_asm_popsection_directive = yes; then
5887 cat >>confdefs.h <<\_ACEOF
5888 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
5889 _ACEOF
5893 { echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
5894 echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6; }
5895 if test "${libc_cv_asm_protected_directive+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898 cat > conftest.s <<EOF
5899 .protected foo
5900 foo:
5901 .hidden bar
5902 bar:
5904 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906 (eval $ac_try) 2>&5
5907 ac_status=$?
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }; }; then
5910 libc_cv_asm_protected_directive=yes
5911 else
5912 { { echo "$as_me:$LINENO: error: assembler support for symbol visibility is required" >&5
5913 echo "$as_me: error: assembler support for symbol visibility is required" >&2;}
5914 { (exit 1); exit 1; }; }
5916 rm -f conftest*
5918 { echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
5919 echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6; }
5921 if test $libc_cv_asm_protected_directive = yes; then
5922 { echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
5923 echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6; }
5924 if test "${libc_cv_visibility_attribute+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927 cat > conftest.c <<EOF
5928 int foo __attribute__ ((visibility ("hidden"))) = 1;
5929 int bar __attribute__ ((visibility ("protected"))) = 1;
5931 libc_cv_visibility_attribute=no
5932 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934 (eval $ac_try) 2>&5
5935 ac_status=$?
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
5938 if grep '\.hidden.*foo' conftest.s >/dev/null; then
5939 if grep '\.protected.*bar' conftest.s >/dev/null; then
5940 libc_cv_visibility_attribute=yes
5944 rm -f conftest.cs
5947 { echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
5948 echo "${ECHO_T}$libc_cv_visibility_attribute" >&6; }
5949 if test $libc_cv_visibility_attribute != yes; then
5950 { { echo "$as_me:$LINENO: error: compiler support for visibility attribute is required" >&5
5951 echo "$as_me: error: compiler support for visibility attribute is required" >&2;}
5952 { (exit 1); exit 1; }; }
5956 if test $libc_cv_visibility_attribute = yes; then
5957 { echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
5958 echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6; }
5959 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962 cat > conftest.c <<EOF
5963 int foo (int x);
5964 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
5965 int bar (int x) { return x; }
5967 libc_cv_broken_visibility_attribute=yes
5968 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
5969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970 (eval $ac_try) 2>&5
5971 ac_status=$?
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; }; then
5974 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
5975 libc_cv_broken_visibility_attribute=no
5978 rm -f conftest.c conftest.s
5981 { echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
5982 echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6; }
5983 if test $libc_cv_broken_visibility_attribute = yes; then
5984 { { echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
5985 echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
5986 { (exit 1); exit 1; }; }
5990 { echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
5991 echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6; }
5992 if test "${libc_cv_broken_alias_attribute+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 cat > conftest.c <<EOF
5996 extern int foo (int x) __asm ("xyzzy");
5997 int bar (int x) { return x; }
5998 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5999 extern int dfoo;
6000 extern __typeof (dfoo) dfoo __asm ("abccb");
6001 int dfoo = 1;
6003 libc_cv_broken_alias_attribute=yes
6004 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 (eval $ac_try) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; }; then
6010 if grep 'xyzzy' conftest.s >/dev/null &&
6011 grep 'abccb' conftest.s >/dev/null; then
6012 libc_cv_broken_alias_attribute=no
6015 rm -f conftest.c conftest.s
6018 { echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
6019 echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6; }
6020 if test $libc_cv_broken_alias_attribute = yes; then
6021 { { echo "$as_me:$LINENO: error: working alias attribute support required" >&5
6022 echo "$as_me: error: working alias attribute support required" >&2;}
6023 { (exit 1); exit 1; }; }
6026 if test $libc_cv_visibility_attribute = yes; then
6027 { echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
6028 echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6; }
6029 if test "${libc_cv_have_sdata_section+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032 echo "int i;" > conftest.c
6033 libc_cv_have_sdata_section=no
6034 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
6035 | grep '\.sdata' >/dev/null; then
6036 libc_cv_have_sdata_section=yes
6038 rm -f conftest.c conftest.so
6041 { echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
6042 echo "${ECHO_T}$libc_cv_have_sdata_section" >&6; }
6043 if test $libc_cv_have_sdata_section = yes; then
6044 cat >>confdefs.h <<\_ACEOF
6045 #define HAVE_SDATA_SECTION 1
6046 _ACEOF
6051 { echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
6052 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6; }
6053 if test "${libc_cv_initfini_array+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056 cat > conftest.c <<EOF
6057 int _start (void) { return 0; }
6058 int __start (void) { return 0; }
6059 int foo (void) { return 1; }
6060 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
6062 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
6063 -static -nostartfiles -nostdlib 1>&5'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }
6069 then
6070 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
6071 libc_cv_initfini_array=yes
6072 else
6073 libc_cv_initfini_array=no
6075 else
6076 libc_cv_initfini_array=no
6078 rm -f conftest*
6080 { echo "$as_me:$LINENO: result: $libc_cv_initfini_array" >&5
6081 echo "${ECHO_T}$libc_cv_initfini_array" >&6; }
6082 if test $libc_cv_initfini_array != yes; then
6083 { { echo "$as_me:$LINENO: error: Need linker with .init_array/.fini_array support." >&5
6084 echo "$as_me: error: Need linker with .init_array/.fini_array support." >&2;}
6085 { (exit 1); exit 1; }; }
6088 { echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
6089 echo $ECHO_N "checking for libunwind-support in compiler... $ECHO_C" >&6; }
6090 if test "${libc_cv_cc_with_libunwind+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6094 cat > conftest.c <<EOF
6095 int main (void) { return 0; }
6097 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6098 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6099 libc_cv_cc_with_libunwind=yes
6100 else
6101 libc_cv_cc_with_libunwind=no
6103 rm -f conftest*
6105 { echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
6106 echo "${ECHO_T}$libc_cv_cc_with_libunwind" >&6; }
6108 if test $libc_cv_cc_with_libunwind = yes; then
6109 cat >>confdefs.h <<\_ACEOF
6110 #define HAVE_CC_WITH_LIBUNWIND 1
6111 _ACEOF
6115 { echo "$as_me:$LINENO: checking for -z nodelete option" >&5
6116 echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6; }
6117 if test "${libc_cv_z_nodelete+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120 cat > conftest.c <<EOF
6121 int _start (void) { return 42; }
6123 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6124 -fPIC -shared -o conftest.so conftest.c
6125 -nostartfiles -nostdlib
6126 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 (eval $ac_try) 2>&5
6129 ac_status=$?
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; }
6132 then
6133 libc_cv_z_nodelete=yes
6134 else
6135 { { echo "$as_me:$LINENO: error: linker with -z nodelete support required" >&5
6136 echo "$as_me: error: linker with -z nodelete support required" >&2;}
6137 { (exit 1); exit 1; }; }
6139 rm -f conftest*
6141 { echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
6142 echo "${ECHO_T}$libc_cv_z_nodelete" >&6; }
6144 { echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
6145 echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6; }
6146 if test "${libc_cv_z_nodlopen+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149 cat > conftest.c <<EOF
6150 int _start (void) { return 42; }
6152 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6153 -fPIC -shared -o conftest.so conftest.c
6154 -nostartfiles -nostdlib
6155 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 (eval $ac_try) 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }
6161 then
6162 libc_cv_z_nodlopen=yes
6163 else
6164 { { echo "$as_me:$LINENO: error: linker with -z nodlopen support required" >&5
6165 echo "$as_me: error: linker with -z nodlopen support required" >&2;}
6166 { (exit 1); exit 1; }; }
6168 rm -f conftest*
6170 { echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
6171 echo "${ECHO_T}$libc_cv_z_nodlopen" >&6; }
6173 { echo "$as_me:$LINENO: checking for -z initfirst option" >&5
6174 echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6; }
6175 if test "${libc_cv_z_initfirst+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178 cat > conftest.c <<EOF
6179 int _start (void) { return 42; }
6181 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6182 -fPIC -shared -o conftest.so conftest.c
6183 -nostartfiles -nostdlib
6184 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 (eval $ac_try) 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; }
6190 then
6191 libc_cv_z_initfirst=yes
6192 else
6193 { { echo "$as_me:$LINENO: error: linker with -z initfirst support required" >&5
6194 echo "$as_me: error: linker with -z initfirst support required" >&2;}
6195 { (exit 1); exit 1; }; }
6197 rm -f conftest*
6199 { echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
6200 echo "${ECHO_T}$libc_cv_z_initfirst" >&6; }
6202 case "$base_machine" in
6203 i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*)
6204 { echo "$as_me:$LINENO: checking for -z relro option" >&5
6205 echo $ECHO_N "checking for -z relro option... $ECHO_C" >&6; }
6206 if test "${libc_cv_z_relro+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209 libc_cv_z_relro=no
6210 if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 (eval $ac_try) 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; }
6216 then
6217 if { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 (eval $ac_try) 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; }
6223 then
6224 libc_cv_z_relro=yes
6228 { echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
6229 echo "${ECHO_T}$libc_cv_z_relro" >&6; }
6230 if test "$libc_cv_z_relro" = no; then
6231 { { echo "$as_me:$LINENO: error: linker with -z relro support required" >&5
6232 echo "$as_me: error: linker with -z relro support required" >&2;}
6233 { (exit 1); exit 1; }; }
6236 *) ;;
6237 esac
6239 { echo "$as_me:$LINENO: checking for -Bgroup option" >&5
6240 echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6; }
6241 if test "${libc_cv_Bgroup+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244 cat > conftest.c <<EOF
6245 int _start (void) { return 42; }
6247 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6248 -fPIC -shared -o conftest.so conftest.c
6249 -Wl,-Bgroup -nostdlib 1>&5'
6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 (eval $ac_try) 2>&5
6252 ac_status=$?
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }
6255 then
6256 libc_cv_Bgroup=yes
6257 else
6258 libc_cv_Bgroup=no
6260 rm -f conftest*
6262 { echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
6263 echo "${ECHO_T}$libc_cv_Bgroup" >&6; }
6266 { echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
6267 echo $ECHO_N "checking for libgcc_s suffix... $ECHO_C" >&6; }
6268 if test "${libc_cv_libgcc_s_suffix+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6270 else
6271 cat > conftest.c <<EOF
6272 int main (void) { return 0; }
6274 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6275 -fPIC -shared -shared-libgcc -o conftest.so \
6276 conftest.c -v 2>&1 >/dev/null \
6277 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6278 rm -f conftest*
6280 { echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
6281 echo "${ECHO_T}$libc_cv_libgcc_s_suffix" >&6; }
6284 { echo "$as_me:$LINENO: checking for --as-needed option" >&5
6285 echo $ECHO_N "checking for --as-needed option... $ECHO_C" >&6; }
6286 if test "${libc_cv_as_needed+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 else
6289 cat > conftest.c <<EOF
6290 int main (void) { return 0; }
6292 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6293 -fPIC -shared -o conftest.so conftest.c
6294 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6295 -nostdlib 1>&5'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 (eval $ac_try) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; }
6301 then
6302 libc_cv_as_needed=yes
6303 else
6304 libc_cv_as_needed=no
6306 rm -f conftest*
6308 { echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
6309 echo "${ECHO_T}$libc_cv_as_needed" >&6; }
6312 ASFLAGS_config=
6313 { echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
6314 echo $ECHO_N "checking whether --noexecstack is desirable for .S files... $ECHO_C" >&6; }
6315 if test "${libc_cv_as_noexecstack+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318 cat > conftest.c <<EOF
6319 void foo (void) { }
6321 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6322 -S -o conftest.s conftest.c 1>&5'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 (eval $ac_try) 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; } \
6328 && grep -q .note.GNU-stack conftest.s \
6329 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6330 -c -o conftest.o conftest.s 1>&5'
6331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 (eval $ac_try) 2>&5
6333 ac_status=$?
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; }
6336 then
6337 libc_cv_as_noexecstack=yes
6338 else
6339 libc_cv_as_noexecstack=no
6341 rm -f conftest*
6343 { echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
6344 echo "${ECHO_T}$libc_cv_as_noexecstack" >&6; }
6345 if test $libc_cv_as_noexecstack = yes; then
6346 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6350 { echo "$as_me:$LINENO: checking for -z combreloc" >&5
6351 echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6; }
6352 if test "${libc_cv_z_combreloc+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355 cat > conftest.c <<EOF
6356 extern int bar (int);
6357 extern int mumble;
6358 int foo (void) { return bar (mumble); }
6360 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6361 -fPIC -shared -o conftest.so conftest.c
6362 -nostdlib -nostartfiles
6363 -Wl,-z,combreloc 1>&5'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 (eval $ac_try) 2>&5
6366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; }
6369 then
6370 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6371 libc_cv_z_combreloc=yes
6372 else
6373 libc_cv_z_combreloc=no
6375 else
6376 libc_cv_z_combreloc=no
6378 rm -f conftest*
6380 { echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
6381 echo "${ECHO_T}$libc_cv_z_combreloc" >&6; }
6382 if test "$libc_cv_z_combreloc" = yes; then
6383 cat >>confdefs.h <<\_ACEOF
6384 #define HAVE_Z_COMBRELOC 1
6385 _ACEOF
6390 { echo "$as_me:$LINENO: checking for -z execstack" >&5
6391 echo $ECHO_N "checking for -z execstack... $ECHO_C" >&6; }
6392 if test "${libc_cv_z_execstack+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395 cat > conftest.c <<EOF
6396 int _start (void) { return 42; }
6398 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6399 -fPIC -shared -o conftest.so conftest.c
6400 -Wl,-z,execstack -nostdlib
6401 1>&5'
6402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 (eval $ac_try) 2>&5
6404 ac_status=$?
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }; }
6407 then
6408 libc_cv_z_execstack=yes
6409 else
6410 libc_cv_z_execstack=no
6412 rm -f conftest*
6414 { echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
6415 echo "${ECHO_T}$libc_cv_z_execstack" >&6; }
6418 { echo "$as_me:$LINENO: checking for -fpie" >&5
6419 echo $ECHO_N "checking for -fpie... $ECHO_C" >&6; }
6420 if test "${libc_cv_fpie+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 else
6423 cat > conftest.c <<EOF
6424 int foo;
6425 main () { return 0;}
6427 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6428 -o conftest conftest.c 1>&5'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430 (eval $ac_try) 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }
6434 then
6435 libc_cv_fpie=yes
6436 else
6437 libc_cv_fpie=no
6439 rm -f conftest*
6441 { echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
6442 echo "${ECHO_T}$libc_cv_fpie" >&6; }
6446 { echo "$as_me:$LINENO: checking for --hash-style option" >&5
6447 echo $ECHO_N "checking for --hash-style option... $ECHO_C" >&6; }
6448 if test "${libc_cv_hashstyle+set}" = set; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 else
6451 cat > conftest.c <<EOF
6452 int _start (void) { return 42; }
6454 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6455 -fPIC -shared -o conftest.so conftest.c
6456 -Wl,--hash-style=both -nostdlib 1>&5'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 (eval $ac_try) 2>&5
6459 ac_status=$?
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }
6462 then
6463 libc_cv_hashstyle=yes
6464 else
6465 libc_cv_hashstyle=no
6467 rm -f conftest*
6469 { echo "$as_me:$LINENO: result: $libc_cv_hashstyle" >&5
6470 echo "${ECHO_T}$libc_cv_hashstyle" >&6; }
6474 { echo "$as_me:$LINENO: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6475 echo $ECHO_N "checking for -fno-toplevel-reorder -fno-section-anchors... $ECHO_C" >&6; }
6476 if test "${libc_cv_fno_toplevel_reorder+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 else
6479 cat > conftest.c <<EOF
6480 int foo;
6482 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6483 conftest.c 1>&5'
6484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485 (eval $ac_try) 2>&5
6486 ac_status=$?
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; }
6489 then
6490 libc_cv_fno_toplevel_reorder=yes
6491 else
6492 libc_cv_fno_toplevel_reorder=no
6494 rm -f conftest*
6496 { echo "$as_me:$LINENO: result: $libc_cv_fno_toplevel_reorder" >&5
6497 echo "${ECHO_T}$libc_cv_fno_toplevel_reorder" >&6; }
6498 if test $libc_cv_fno_toplevel_reorder = yes; then
6499 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6500 else
6501 fno_unit_at_a_time=-fno-unit-at-a-time
6505 { echo "$as_me:$LINENO: checking for -fstack-protector" >&5
6506 echo $ECHO_N "checking for -fstack-protector... $ECHO_C" >&6; }
6507 if test "${libc_cv_ssp+set}" = set; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510 cat > conftest.c <<EOF
6511 int foo;
6512 main () { return 0;}
6514 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
6515 -o conftest conftest.c 1>&5'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 (eval $ac_try) 2>&5
6518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }
6521 then
6522 libc_cv_ssp=yes
6523 else
6524 libc_cv_ssp=no
6526 rm -f conftest*
6528 { echo "$as_me:$LINENO: result: $libc_cv_ssp" >&5
6529 echo "${ECHO_T}$libc_cv_ssp" >&6; }
6532 { echo "$as_me:$LINENO: checking for -fgnu89-inline" >&5
6533 echo $ECHO_N "checking for -fgnu89-inline... $ECHO_C" >&6; }
6534 if test "${libc_cv_gnu89_inline+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 else
6537 cat > conftest.c <<EOF
6538 int foo;
6539 #ifdef __GNUC_GNU_INLINE__
6540 main () { return 0;}
6541 #else
6542 #error
6543 #endif
6545 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6546 -o conftest.s conftest.c 1>&5'
6547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 (eval $ac_try) 2>&5
6549 ac_status=$?
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; }
6552 then
6553 libc_cv_gnu89_inline=yes
6554 else
6555 libc_cv_gnu89_inline=no
6557 rm -f conftest*
6559 { echo "$as_me:$LINENO: result: $libc_cv_gnu89_inline" >&5
6560 echo "${ECHO_T}$libc_cv_gnu89_inline" >&6; }
6561 if test $libc_cv_gnu89_inline = yes; then
6562 libc_cv_gnu89_inline=-fgnu89-inline
6563 else
6564 libc_cv_gnu89_inline=
6568 if test $elf != yes; then
6569 { echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
6570 echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6; }
6571 if test "${libc_cv_have_initfini+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 else
6574 cat >conftest.$ac_ext <<_ACEOF
6575 /* confdefs.h. */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6582 main ()
6584 asm (".section .init");
6585 asm (".section .fini");
6586 asm ("${libc_cv_dot_text}");
6588 return 0;
6590 _ACEOF
6591 rm -f conftest.$ac_objext
6592 if { (ac_try="$ac_compile"
6593 case "(($ac_try" in
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6596 esac
6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598 (eval "$ac_compile") 2>conftest.er1
6599 ac_status=$?
6600 grep -v '^ *+' conftest.er1 >conftest.err
6601 rm -f conftest.er1
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } && {
6605 test -z "$ac_c_werror_flag" ||
6606 test ! -s conftest.err
6607 } && test -s conftest.$ac_objext; then
6608 libc_cv_have_initfini=yes
6609 else
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6613 libc_cv_have_initfini=no
6616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 { echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
6619 echo "${ECHO_T}$libc_cv_have_initfini" >&6; }
6620 if test $libc_cv_have_initfini = yes; then
6621 cat >>confdefs.h <<\_ACEOF
6622 #define HAVE_INITFINI 1
6623 _ACEOF
6628 if test $elf = yes; then
6629 { echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
6630 echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6; }
6631 if test "${libc_cv_have_section_quotes+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 else
6634 cat > conftest.c <<EOF
6635 static const int foo
6636 __attribute__ ((section ("bar"))) = 1;
6638 if ${CC-cc} -S conftest.c -o conftest.s; then
6639 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6640 libc_cv_have_section_quotes=yes
6641 else
6642 libc_cv_have_section_quotes=no
6644 else
6645 libc_cv_have_section_quotes=unknown
6647 rm -f conftest.cs
6650 { echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
6651 echo "${ECHO_T}$libc_cv_have_section_quotes" >&6; }
6652 if test $libc_cv_have_section_quotes = yes; then
6653 cat >>confdefs.h <<\_ACEOF
6654 #define HAVE_SECTION_QUOTES 1
6655 _ACEOF
6662 if test $elf = yes; then
6663 libc_cv_asm_underscores=no
6664 else
6665 if test $ac_cv_prog_cc_works = yes; then
6666 { echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6667 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6; }
6668 if test "${libc_cv_asm_underscores+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671 cat >conftest.$ac_ext <<_ACEOF
6672 /* confdefs.h. */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 asm ("_glibc_foobar:");
6679 main ()
6681 glibc_foobar ();
6683 return 0;
6685 _ACEOF
6686 rm -f conftest.$ac_objext conftest$ac_exeext
6687 if { (ac_try="$ac_link"
6688 case "(($ac_try" in
6689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6690 *) ac_try_echo=$ac_try;;
6691 esac
6692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6693 (eval "$ac_link") 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } && {
6700 test -z "$ac_c_werror_flag" ||
6701 test ! -s conftest.err
6702 } && test -s conftest$ac_exeext &&
6703 $as_test_x conftest$ac_exeext; then
6704 libc_cv_asm_underscores=yes
6705 else
6706 echo "$as_me: failed program was:" >&5
6707 sed 's/^/| /' conftest.$ac_ext >&5
6709 libc_cv_asm_underscores=no
6712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6713 conftest$ac_exeext conftest.$ac_ext
6715 { echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
6716 echo "${ECHO_T}$libc_cv_asm_underscores" >&6; }
6717 else
6718 { echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6719 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6; }
6720 if test "${libc_cv_asm_underscores+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723 cat > conftest.$ac_ext <<EOF
6724 #line $LINENO "configure"
6725 #include "confdefs.h"
6726 void underscore_test(void) {
6727 return; }
6729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6730 (eval $ac_compile) 2>&5
6731 ac_status=$?
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); }; then
6734 if grep _underscore_test conftest* >/dev/null; then
6735 rm -f conftest*
6736 libc_cv_asm_underscores=yes
6737 else
6738 rm -f conftest*
6739 libc_cv_asm_underscores=no
6741 else
6742 echo "configure: failed program was:" >&5
6743 cat conftest.$ac_ext >&5
6744 rm -f conftest*
6745 libc_cv_asm_underscores=no
6747 rm -f conftest*
6749 { echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
6750 echo "${ECHO_T}$libc_cv_asm_underscores" >&6; }
6753 if test $libc_cv_asm_underscores = no; then
6754 cat >>confdefs.h <<\_ACEOF
6755 #define NO_UNDERSCORES 1
6756 _ACEOF
6760 if test $elf = yes; then
6761 libc_cv_weak_symbols=yes
6764 { echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
6765 echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6; }
6766 if test "${libc_cv_asm_weak_directive+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769 cat > conftest.s <<EOF
6770 ${libc_cv_dot_text}
6771 ${libc_cv_asm_global_directive} foo
6772 foo:
6773 .weak foo
6774 .weak bar; bar = foo
6776 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778 (eval $ac_try) 2>&5
6779 ac_status=$?
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); }; }; then
6782 libc_cv_asm_weak_directive=yes
6783 else
6784 libc_cv_asm_weak_directive=no
6786 rm -f conftest*
6788 { echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
6789 echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6; }
6791 if test $libc_cv_asm_weak_directive = no; then
6792 { echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
6793 echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6; }
6794 if test "${libc_cv_asm_weakext_directive+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797 cat > conftest.s <<EOF
6798 ${libc_cv_dot_text}
6799 ${libc_cv_asm_global_directive} foo
6800 foo:
6801 .weakext bar foo
6802 .weakext baz
6803 ${libc_cv_asm_global_directive} baz
6804 baz:
6806 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 (eval $ac_try) 2>&5
6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; }; then
6812 libc_cv_asm_weakext_directive=yes
6813 else
6814 libc_cv_asm_weakext_directive=no
6816 rm -f conftest*
6818 { echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
6819 echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6; }
6821 fi # no .weak
6823 if test $libc_cv_asm_weak_directive = yes; then
6824 cat >>confdefs.h <<\_ACEOF
6825 #define HAVE_ASM_WEAK_DIRECTIVE 1
6826 _ACEOF
6828 elif test $libc_cv_asm_weakext_directive = yes; then
6829 cat >>confdefs.h <<\_ACEOF
6830 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
6831 _ACEOF
6835 { echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
6836 echo $ECHO_N "checking whether CFI directives are supported... $ECHO_C" >&6; }
6837 if test "${libc_cv_asm_cfi_directives+set}" = set; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 else
6840 case $machine in
6841 sparc/sparc64*) cfi_offset=2047;;
6842 *) cfi_offset=0;;
6843 esac
6844 cat > conftest.s <<EOF
6845 .text
6846 .type func,%function
6847 func:
6848 .cfi_startproc
6849 .cfi_remember_state
6850 .cfi_rel_offset 1, $cfi_offset
6851 .cfi_endproc
6853 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 (eval $ac_try) 2>&5
6856 ac_status=$?
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; }; then
6859 libc_cv_asm_cfi_directives=yes
6860 else
6861 libc_cv_asm_cfi_directives=no
6863 rm -f conftest*
6865 { echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
6866 echo "${ECHO_T}$libc_cv_asm_cfi_directives" >&6; }
6867 if test $libc_cv_asm_cfi_directives = yes; then
6868 cat >>confdefs.h <<\_ACEOF
6869 #define HAVE_ASM_CFI_DIRECTIVES 1
6870 _ACEOF
6874 { echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
6875 echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6; }
6876 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879 cat > conftest.c <<\EOF
6880 _start () {}
6881 int __eh_pc;
6882 __throw () {}
6884 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6885 -nostdlib -nostartfiles -Wl,--no-whole-archive
6886 -o conftest conftest.c 1>&5'
6887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888 (eval $ac_try) 2>&5
6889 ac_status=$?
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; }; then
6892 libc_cv_ld_no_whole_archive=yes
6893 else
6894 libc_cv_ld_no_whole_archive=no
6896 rm -f conftest*
6898 { echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
6899 echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6; }
6900 if test $libc_cv_ld_no_whole_archive = yes; then
6901 no_whole_archive=-Wl,--no-whole-archive
6904 { echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
6905 echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6; }
6906 if test "${libc_cv_gcc_exceptions+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 else
6909 cat > conftest.c <<\EOF
6910 _start () {}
6911 int __eh_pc;
6912 __throw () {}
6914 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6915 -nostdlib -nostartfiles -fexceptions
6916 -o conftest conftest.c 1>&5'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 (eval $ac_try) 2>&5
6919 ac_status=$?
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 libc_cv_gcc_exceptions=yes
6923 else
6924 libc_cv_gcc_exceptions=no
6926 rm -f conftest*
6928 { echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
6929 echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6; }
6930 if test $libc_cv_gcc_exceptions = yes; then
6931 exceptions=-fexceptions
6934 if test "$host_cpu" = powerpc ; then
6935 # Check for a bug present in at least versions 2.8.x of GCC
6936 # and versions 1.0.x of EGCS.
6937 { echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
6938 echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6; }
6939 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 else
6942 cat >conftest.$ac_ext <<_ACEOF
6943 /* confdefs.h. */
6944 _ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6948 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
6950 main ()
6954 return 0;
6956 _ACEOF
6957 rm -f conftest.$ac_objext
6958 if { (ac_try="$ac_compile"
6959 case "(($ac_try" in
6960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6961 *) ac_try_echo=$ac_try;;
6962 esac
6963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6964 (eval "$ac_compile") 2>conftest.er1
6965 ac_status=$?
6966 grep -v '^ *+' conftest.er1 >conftest.err
6967 rm -f conftest.er1
6968 cat conftest.err >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } && {
6971 test -z "$ac_c_werror_flag" ||
6972 test ! -s conftest.err
6973 } && test -s conftest.$ac_objext; then
6974 libc_cv_c_asmcr0_bug='no'
6975 else
6976 echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6979 libc_cv_c_asmcr0_bug='yes'
6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984 { echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
6985 echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6; }
6986 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
6987 cat >>confdefs.h <<\_ACEOF
6988 #define BROKEN_PPC_ASM_CR0 1
6989 _ACEOF
6994 { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
6995 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
6996 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 else
6999 cat > conftest.c <<EOF
7000 #line $LINENO "configure"
7001 int foo (int a)
7003 a = __builtin_expect (a, 10);
7004 return a == 10 ? 0 : 1;
7007 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
7008 -o conftest conftest.c -lgcc >&5'
7009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010 (eval $ac_try) 2>&5
7011 ac_status=$?
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); }; }; then
7014 libc_cv_gcc_builtin_expect=yes
7015 else
7016 libc_cv_gcc_builtin_expect=no
7018 rm -f conftest*
7020 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
7021 echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6; }
7022 if test "$libc_cv_gcc_builtin_expect" = yes; then
7023 cat >>confdefs.h <<\_ACEOF
7024 #define HAVE_BUILTIN_EXPECT 1
7025 _ACEOF
7029 { echo "$as_me:$LINENO: checking for __builtin_memset" >&5
7030 echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6; }
7031 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 else
7034 cat > conftest.c <<\EOF
7035 void zero (void *x)
7037 __builtin_memset (x, 0, 1000);
7040 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
7041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 (eval $ac_try) 2>&5
7043 ac_status=$?
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); }; };
7046 then
7047 libc_cv_gcc_builtin_memset=no
7048 else
7049 libc_cv_gcc_builtin_memset=yes
7051 rm -f conftest*
7053 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
7054 echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6; }
7055 if test "$libc_cv_gcc_builtin_memset" = yes ; then
7056 cat >>confdefs.h <<\_ACEOF
7057 #define HAVE_BUILTIN_MEMSET 1
7058 _ACEOF
7062 { echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
7063 echo $ECHO_N "checking for redirection of built-in functions... $ECHO_C" >&6; }
7064 if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 else
7067 cat > conftest.c <<\EOF
7068 extern char *strstr (const char *, const char *) __asm ("my_strstr");
7069 char *foo (const char *a, const char *b)
7071 return __builtin_strstr (a, b);
7074 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
7075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 (eval $ac_try) 2>&5
7077 ac_status=$?
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; };
7080 then
7081 libc_cv_gcc_builtin_redirection=yes
7082 else
7083 libc_cv_gcc_builtin_redirection=no
7085 rm -f conftest*
7087 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
7088 echo "${ECHO_T}$libc_cv_gcc_builtin_redirection" >&6; }
7089 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
7090 cat >>confdefs.h <<\_ACEOF
7091 #define HAVE_BUILTIN_REDIRECTION 1
7092 _ACEOF
7096 if test "x$use__thread" != xno; then
7097 { echo "$as_me:$LINENO: checking for __thread" >&5
7098 echo $ECHO_N "checking for __thread... $ECHO_C" >&6; }
7099 if test "${libc_cv_gcc___thread+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 else
7102 cat > conftest.c <<\EOF
7103 __thread int a = 42;
7105 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
7106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107 (eval $ac_try) 2>&5
7108 ac_status=$?
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }; }; then
7111 libc_cv_gcc___thread=yes
7112 else
7113 libc_cv_gcc___thread=no
7115 rm -f conftest*
7117 { echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
7118 echo "${ECHO_T}$libc_cv_gcc___thread" >&6; }
7119 if test "$libc_cv_gcc___thread" = yes; then
7120 cat >>confdefs.h <<\_ACEOF
7121 #define HAVE___THREAD 1
7122 _ACEOF
7125 else
7126 libc_cv_gcc___thread=no
7129 if test "$libc_cv_gcc___thread" = yes; then
7130 { echo "$as_me:$LINENO: checking for tls_model attribute" >&5
7131 echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6; }
7132 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 else
7135 cat > conftest.c <<\EOF
7136 extern __thread int a __attribute__((tls_model ("initial-exec")));
7138 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 (eval $ac_try) 2>&5
7141 ac_status=$?
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; }; then
7144 libc_cv_gcc_tls_model_attr=yes
7145 else
7146 libc_cv_gcc_tls_model_attr=no
7148 rm -f conftest*
7150 { echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
7151 echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6; }
7152 if test "$libc_cv_gcc_tls_model_attr" = yes; then
7153 cat >>confdefs.h <<\_ACEOF
7154 #define HAVE_TLS_MODEL_ATTRIBUTE 1
7155 _ACEOF
7160 if test -n "$submachine"; then
7161 { echo "$as_me:$LINENO: checking for compiler option for CPU variant" >&5
7162 echo $ECHO_N "checking for compiler option for CPU variant... $ECHO_C" >&6; }
7163 if test "${libc_cv_cc_submachine+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 libc_cv_cc_submachine=no
7167 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7168 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 (eval $ac_try) 2>&5
7171 ac_status=$?
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; }; then
7174 libc_cv_cc_submachine="$opt"
7175 break
7177 done
7179 { echo "$as_me:$LINENO: result: $libc_cv_cc_submachine" >&5
7180 echo "${ECHO_T}$libc_cv_cc_submachine" >&6; }
7181 if test "x$libc_cv_cc_submachine" = xno; then
7182 { { echo "$as_me:$LINENO: error: ${CC-cc} does not support $submachine" >&5
7183 echo "$as_me: error: ${CC-cc} does not support $submachine" >&2;}
7184 { (exit 1); exit 1; }; }
7189 { echo "$as_me:$LINENO: checking for libgd" >&5
7190 echo $ECHO_N "checking for libgd... $ECHO_C" >&6; }
7191 if test "$with_gd" != "no"; then
7192 old_CFLAGS="$CFLAGS"
7193 CFLAGS="$CFLAGS $libgd_include"
7194 old_LDFLAGS="$LDFLAGS"
7195 LDFLAGS="$LDFLAGS $libgd_ldflags"
7196 old_LIBS="$LIBS"
7197 LIBS="$LIBS -lgd -lpng -lz -lm"
7198 cat >conftest.$ac_ext <<_ACEOF
7199 /* confdefs.h. */
7200 _ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7204 #include <gd.h>
7206 main ()
7208 gdImagePng (0, 0)
7210 return 0;
7212 _ACEOF
7213 rm -f conftest.$ac_objext conftest$ac_exeext
7214 if { (ac_try="$ac_link"
7215 case "(($ac_try" in
7216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7217 *) ac_try_echo=$ac_try;;
7218 esac
7219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7220 (eval "$ac_link") 2>conftest.er1
7221 ac_status=$?
7222 grep -v '^ *+' conftest.er1 >conftest.err
7223 rm -f conftest.er1
7224 cat conftest.err >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } && {
7227 test -z "$ac_c_werror_flag" ||
7228 test ! -s conftest.err
7229 } && test -s conftest$ac_exeext &&
7230 $as_test_x conftest$ac_exeext; then
7231 LIBGD=yes
7232 else
7233 echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.$ac_ext >&5
7236 LIBGD=no
7239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7240 conftest$ac_exeext conftest.$ac_ext
7241 CFLAGS="$old_CFLAGS"
7242 LDFLAGS="$old_LDFLAGS"
7243 LIBS="$old_LIBS"
7244 else
7245 LIBGD=no
7247 { echo "$as_me:$LINENO: result: $LIBGD" >&5
7248 echo "${ECHO_T}$LIBGD" >&6; }
7251 # SELinux detection
7252 if test x$with_selinux = xno ; then
7253 have_selinux=no;
7254 else
7255 # See if we have the SELinux library
7256 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
7257 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
7258 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 else
7261 ac_check_lib_save_LIBS=$LIBS
7262 LIBS="-lselinux $LIBS"
7263 cat >conftest.$ac_ext <<_ACEOF
7264 /* confdefs.h. */
7265 _ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h. */
7270 /* Override any GCC internal prototype to avoid an error.
7271 Use char because int might match the return type of a GCC
7272 builtin and then its argument prototype would still apply. */
7273 #ifdef __cplusplus
7274 extern "C"
7275 #endif
7276 char is_selinux_enabled ();
7278 main ()
7280 return is_selinux_enabled ();
7282 return 0;
7284 _ACEOF
7285 rm -f conftest.$ac_objext conftest$ac_exeext
7286 if { (ac_try="$ac_link"
7287 case "(($ac_try" in
7288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7290 esac
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292 (eval "$ac_link") 2>conftest.er1
7293 ac_status=$?
7294 grep -v '^ *+' conftest.er1 >conftest.err
7295 rm -f conftest.er1
7296 cat conftest.err >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } && {
7299 test -z "$ac_c_werror_flag" ||
7300 test ! -s conftest.err
7301 } && test -s conftest$ac_exeext &&
7302 $as_test_x conftest$ac_exeext; then
7303 ac_cv_lib_selinux_is_selinux_enabled=yes
7304 else
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7308 ac_cv_lib_selinux_is_selinux_enabled=no
7311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7312 conftest$ac_exeext conftest.$ac_ext
7313 LIBS=$ac_check_lib_save_LIBS
7315 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7316 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7317 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
7318 have_selinux=yes
7319 else
7320 have_selinux=no
7323 # See if we have the SELinux header with the NSCD permissions in it.
7324 if test x$have_selinux = xyes ; then
7325 { echo "$as_me:$LINENO: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7326 echo $ECHO_N "checking for NSCD Flask permissions in selinux/av_permissions.h... $ECHO_C" >&6; }
7327 cat >conftest.$ac_ext <<_ACEOF
7328 /* confdefs.h. */
7329 _ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7333 #include <selinux/av_permissions.h>
7335 main ()
7337 #ifdef NSCD__SHMEMHOST
7338 return 0;
7339 #else
7340 #error NSCD__SHMEMHOST not defined
7341 #endif
7343 return 0;
7345 _ACEOF
7346 rm -f conftest.$ac_objext
7347 if { (ac_try="$ac_compile"
7348 case "(($ac_try" in
7349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350 *) ac_try_echo=$ac_try;;
7351 esac
7352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7353 (eval "$ac_compile") 2>conftest.er1
7354 ac_status=$?
7355 grep -v '^ *+' conftest.er1 >conftest.err
7356 rm -f conftest.er1
7357 cat conftest.err >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } && {
7360 test -z "$ac_c_werror_flag" ||
7361 test ! -s conftest.err
7362 } && test -s conftest.$ac_objext; then
7363 have_selinux=yes
7364 else
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7368 have_selinux=no
7371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7372 { echo "$as_me:$LINENO: result: $have_selinux" >&5
7373 echo "${ECHO_T}$have_selinux" >&6; }
7376 if test x$with_selinux = xyes ; then
7377 if test x$have_selinux = xno ; then
7378 { { echo "$as_me:$LINENO: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&5
7379 echo "$as_me: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&2;}
7380 { (exit 1); exit 1; }; }
7384 # Check if we're building with SELinux support.
7385 if test "x$have_selinux" = xyes; then
7387 cat >>confdefs.h <<\_ACEOF
7388 #define HAVE_SELINUX 1
7389 _ACEOF
7392 # See if we have the libaudit library
7393 { echo "$as_me:$LINENO: checking for audit_log_user_avc_message in -laudit" >&5
7394 echo $ECHO_N "checking for audit_log_user_avc_message in -laudit... $ECHO_C" >&6; }
7395 if test "${ac_cv_lib_audit_audit_log_user_avc_message+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7397 else
7398 ac_check_lib_save_LIBS=$LIBS
7399 LIBS="-laudit $LIBS"
7400 cat >conftest.$ac_ext <<_ACEOF
7401 /* confdefs.h. */
7402 _ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h. */
7407 /* Override any GCC internal prototype to avoid an error.
7408 Use char because int might match the return type of a GCC
7409 builtin and then its argument prototype would still apply. */
7410 #ifdef __cplusplus
7411 extern "C"
7412 #endif
7413 char audit_log_user_avc_message ();
7415 main ()
7417 return audit_log_user_avc_message ();
7419 return 0;
7421 _ACEOF
7422 rm -f conftest.$ac_objext conftest$ac_exeext
7423 if { (ac_try="$ac_link"
7424 case "(($ac_try" in
7425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7426 *) ac_try_echo=$ac_try;;
7427 esac
7428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7429 (eval "$ac_link") 2>conftest.er1
7430 ac_status=$?
7431 grep -v '^ *+' conftest.er1 >conftest.err
7432 rm -f conftest.er1
7433 cat conftest.err >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); } && {
7436 test -z "$ac_c_werror_flag" ||
7437 test ! -s conftest.err
7438 } && test -s conftest$ac_exeext &&
7439 $as_test_x conftest$ac_exeext; then
7440 ac_cv_lib_audit_audit_log_user_avc_message=yes
7441 else
7442 echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7445 ac_cv_lib_audit_audit_log_user_avc_message=no
7448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7449 conftest$ac_exeext conftest.$ac_ext
7450 LIBS=$ac_check_lib_save_LIBS
7452 { echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7453 echo "${ECHO_T}$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7454 if test $ac_cv_lib_audit_audit_log_user_avc_message = yes; then
7455 have_libaudit=yes
7456 else
7457 have_libaudit=no
7460 if test "x$have_libaudit" = xyes; then
7462 cat >>confdefs.h <<\_ACEOF
7463 #define HAVE_LIBAUDIT 1
7464 _ACEOF
7469 # See if we have the libcap library
7470 { echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
7471 echo $ECHO_N "checking for cap_init in -lcap... $ECHO_C" >&6; }
7472 if test "${ac_cv_lib_cap_cap_init+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475 ac_check_lib_save_LIBS=$LIBS
7476 LIBS="-lcap $LIBS"
7477 cat >conftest.$ac_ext <<_ACEOF
7478 /* confdefs.h. */
7479 _ACEOF
7480 cat confdefs.h >>conftest.$ac_ext
7481 cat >>conftest.$ac_ext <<_ACEOF
7482 /* end confdefs.h. */
7484 /* Override any GCC internal prototype to avoid an error.
7485 Use char because int might match the return type of a GCC
7486 builtin and then its argument prototype would still apply. */
7487 #ifdef __cplusplus
7488 extern "C"
7489 #endif
7490 char cap_init ();
7492 main ()
7494 return cap_init ();
7496 return 0;
7498 _ACEOF
7499 rm -f conftest.$ac_objext conftest$ac_exeext
7500 if { (ac_try="$ac_link"
7501 case "(($ac_try" in
7502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503 *) ac_try_echo=$ac_try;;
7504 esac
7505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7506 (eval "$ac_link") 2>conftest.er1
7507 ac_status=$?
7508 grep -v '^ *+' conftest.er1 >conftest.err
7509 rm -f conftest.er1
7510 cat conftest.err >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } && {
7513 test -z "$ac_c_werror_flag" ||
7514 test ! -s conftest.err
7515 } && test -s conftest$ac_exeext &&
7516 $as_test_x conftest$ac_exeext; then
7517 ac_cv_lib_cap_cap_init=yes
7518 else
7519 echo "$as_me: failed program was:" >&5
7520 sed 's/^/| /' conftest.$ac_ext >&5
7522 ac_cv_lib_cap_cap_init=no
7525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7526 conftest$ac_exeext conftest.$ac_ext
7527 LIBS=$ac_check_lib_save_LIBS
7529 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
7530 echo "${ECHO_T}$ac_cv_lib_cap_cap_init" >&6; }
7531 if test $ac_cv_lib_cap_cap_init = yes; then
7532 have_libcap=yes
7533 else
7534 have_libcap=no
7537 if test "x$have_libcap" = xyes; then
7539 cat >>confdefs.h <<\_ACEOF
7540 #define HAVE_LIBCAP 1
7541 _ACEOF
7549 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7550 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7551 if test "${ac_cv_path_GREP+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554 # Extract the first word of "grep ggrep" to use in msg output
7555 if test -z "$GREP"; then
7556 set dummy grep ggrep; ac_prog_name=$2
7557 if test "${ac_cv_path_GREP+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560 ac_path_GREP_found=false
7561 # Loop through the user's path and test for each of PROGNAME-LIST
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7565 IFS=$as_save_IFS
7566 test -z "$as_dir" && as_dir=.
7567 for ac_prog in grep ggrep; do
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7570 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7571 # Check for GNU ac_path_GREP and select it if it is found.
7572 # Check for GNU $ac_path_GREP
7573 case `"$ac_path_GREP" --version 2>&1` in
7574 *GNU*)
7575 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7577 ac_count=0
7578 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7579 while :
7581 cat "conftest.in" "conftest.in" >"conftest.tmp"
7582 mv "conftest.tmp" "conftest.in"
7583 cp "conftest.in" "conftest.nl"
7584 echo 'GREP' >> "conftest.nl"
7585 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7586 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7587 ac_count=`expr $ac_count + 1`
7588 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7589 # Best one so far, save it but keep looking for a better one
7590 ac_cv_path_GREP="$ac_path_GREP"
7591 ac_path_GREP_max=$ac_count
7593 # 10*(2^10) chars as input seems more than enough
7594 test $ac_count -gt 10 && break
7595 done
7596 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7597 esac
7600 $ac_path_GREP_found && break 3
7601 done
7602 done
7604 done
7605 IFS=$as_save_IFS
7610 GREP="$ac_cv_path_GREP"
7611 if test -z "$GREP"; then
7612 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7613 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7614 { (exit 1); exit 1; }; }
7617 else
7618 ac_cv_path_GREP=$GREP
7623 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7624 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7625 GREP="$ac_cv_path_GREP"
7628 { echo "$as_me:$LINENO: checking for egrep" >&5
7629 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7630 if test "${ac_cv_path_EGREP+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7632 else
7633 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7634 then ac_cv_path_EGREP="$GREP -E"
7635 else
7636 # Extract the first word of "egrep" to use in msg output
7637 if test -z "$EGREP"; then
7638 set dummy egrep; ac_prog_name=$2
7639 if test "${ac_cv_path_EGREP+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 else
7642 ac_path_EGREP_found=false
7643 # Loop through the user's path and test for each of PROGNAME-LIST
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7647 IFS=$as_save_IFS
7648 test -z "$as_dir" && as_dir=.
7649 for ac_prog in egrep; do
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7652 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7653 # Check for GNU ac_path_EGREP and select it if it is found.
7654 # Check for GNU $ac_path_EGREP
7655 case `"$ac_path_EGREP" --version 2>&1` in
7656 *GNU*)
7657 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7659 ac_count=0
7660 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7661 while :
7663 cat "conftest.in" "conftest.in" >"conftest.tmp"
7664 mv "conftest.tmp" "conftest.in"
7665 cp "conftest.in" "conftest.nl"
7666 echo 'EGREP' >> "conftest.nl"
7667 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7668 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7669 ac_count=`expr $ac_count + 1`
7670 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7671 # Best one so far, save it but keep looking for a better one
7672 ac_cv_path_EGREP="$ac_path_EGREP"
7673 ac_path_EGREP_max=$ac_count
7675 # 10*(2^10) chars as input seems more than enough
7676 test $ac_count -gt 10 && break
7677 done
7678 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7679 esac
7682 $ac_path_EGREP_found && break 3
7683 done
7684 done
7686 done
7687 IFS=$as_save_IFS
7692 EGREP="$ac_cv_path_EGREP"
7693 if test -z "$EGREP"; then
7694 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7695 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7696 { (exit 1); exit 1; }; }
7699 else
7700 ac_cv_path_EGREP=$EGREP
7706 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7707 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7708 EGREP="$ac_cv_path_EGREP"
7711 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7712 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7713 if test "${ac_cv_header_stdc+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 else
7716 cat >conftest.$ac_ext <<_ACEOF
7717 /* confdefs.h. */
7718 _ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7722 #include <stdlib.h>
7723 #include <stdarg.h>
7724 #include <string.h>
7725 #include <float.h>
7728 main ()
7732 return 0;
7734 _ACEOF
7735 rm -f conftest.$ac_objext
7736 if { (ac_try="$ac_compile"
7737 case "(($ac_try" in
7738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7739 *) ac_try_echo=$ac_try;;
7740 esac
7741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7742 (eval "$ac_compile") 2>conftest.er1
7743 ac_status=$?
7744 grep -v '^ *+' conftest.er1 >conftest.err
7745 rm -f conftest.er1
7746 cat conftest.err >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } && {
7749 test -z "$ac_c_werror_flag" ||
7750 test ! -s conftest.err
7751 } && test -s conftest.$ac_objext; then
7752 ac_cv_header_stdc=yes
7753 else
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7757 ac_cv_header_stdc=no
7760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7762 if test $ac_cv_header_stdc = yes; then
7763 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7764 cat >conftest.$ac_ext <<_ACEOF
7765 /* confdefs.h. */
7766 _ACEOF
7767 cat confdefs.h >>conftest.$ac_ext
7768 cat >>conftest.$ac_ext <<_ACEOF
7769 /* end confdefs.h. */
7770 #include <string.h>
7772 _ACEOF
7773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7774 $EGREP "memchr" >/dev/null 2>&1; then
7776 else
7777 ac_cv_header_stdc=no
7779 rm -f conftest*
7783 if test $ac_cv_header_stdc = yes; then
7784 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7785 cat >conftest.$ac_ext <<_ACEOF
7786 /* confdefs.h. */
7787 _ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h. */
7791 #include <stdlib.h>
7793 _ACEOF
7794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7795 $EGREP "free" >/dev/null 2>&1; then
7797 else
7798 ac_cv_header_stdc=no
7800 rm -f conftest*
7804 if test $ac_cv_header_stdc = yes; then
7805 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7806 if test "$cross_compiling" = yes; then
7808 else
7809 cat >conftest.$ac_ext <<_ACEOF
7810 /* confdefs.h. */
7811 _ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h. */
7815 #include <ctype.h>
7816 #include <stdlib.h>
7817 #if ((' ' & 0x0FF) == 0x020)
7818 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7819 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7820 #else
7821 # define ISLOWER(c) \
7822 (('a' <= (c) && (c) <= 'i') \
7823 || ('j' <= (c) && (c) <= 'r') \
7824 || ('s' <= (c) && (c) <= 'z'))
7825 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7826 #endif
7828 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7830 main ()
7832 int i;
7833 for (i = 0; i < 256; i++)
7834 if (XOR (islower (i), ISLOWER (i))
7835 || toupper (i) != TOUPPER (i))
7836 return 2;
7837 return 0;
7839 _ACEOF
7840 rm -f conftest$ac_exeext
7841 if { (ac_try="$ac_link"
7842 case "(($ac_try" in
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7845 esac
7846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847 (eval "$ac_link") 2>&5
7848 ac_status=$?
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7851 { (case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7854 esac
7855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7856 (eval "$ac_try") 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; }; then
7861 else
7862 echo "$as_me: program exited with status $ac_status" >&5
7863 echo "$as_me: failed program was:" >&5
7864 sed 's/^/| /' conftest.$ac_ext >&5
7866 ( exit $ac_status )
7867 ac_cv_header_stdc=no
7869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7875 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7876 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7877 if test $ac_cv_header_stdc = yes; then
7879 cat >>confdefs.h <<\_ACEOF
7880 #define STDC_HEADERS 1
7881 _ACEOF
7885 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7895 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7896 inttypes.h stdint.h unistd.h
7898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904 cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h. */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7910 $ac_includes_default
7912 #include <$ac_header>
7913 _ACEOF
7914 rm -f conftest.$ac_objext
7915 if { (ac_try="$ac_compile"
7916 case "(($ac_try" in
7917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7919 esac
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921 (eval "$ac_compile") 2>conftest.er1
7922 ac_status=$?
7923 grep -v '^ *+' conftest.er1 >conftest.err
7924 rm -f conftest.er1
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } && {
7928 test -z "$ac_c_werror_flag" ||
7929 test ! -s conftest.err
7930 } && test -s conftest.$ac_objext; then
7931 eval "$as_ac_Header=yes"
7932 else
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7936 eval "$as_ac_Header=no"
7939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7941 ac_res=`eval echo '${'$as_ac_Header'}'`
7942 { echo "$as_me:$LINENO: result: $ac_res" >&5
7943 echo "${ECHO_T}$ac_res" >&6; }
7944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7945 cat >>confdefs.h <<_ACEOF
7946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7947 _ACEOF
7951 done
7954 { echo "$as_me:$LINENO: checking for long double" >&5
7955 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
7956 if test "${ac_cv_type_long_double+set}" = set; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 else
7959 cat >conftest.$ac_ext <<_ACEOF
7960 /* confdefs.h. */
7961 _ACEOF
7962 cat confdefs.h >>conftest.$ac_ext
7963 cat >>conftest.$ac_ext <<_ACEOF
7964 /* end confdefs.h. */
7965 $ac_includes_default
7966 typedef long double ac__type_new_;
7968 main ()
7970 if ((ac__type_new_ *) 0)
7971 return 0;
7972 if (sizeof (ac__type_new_))
7973 return 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_cv_type_long_double=yes
7996 else
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
8000 ac_cv_type_long_double=no
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8005 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
8006 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
8008 # The cast to long int works around a bug in the HP C Compiler
8009 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8010 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8011 # This bug is HP SR number 8606223364.
8012 { echo "$as_me:$LINENO: checking size of long double" >&5
8013 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
8014 if test "${ac_cv_sizeof_long_double+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 else
8017 if test "$cross_compiling" = yes; then
8018 # Depending upon the size, compute the lo and hi bounds.
8019 cat >conftest.$ac_ext <<_ACEOF
8020 /* confdefs.h. */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 $ac_includes_default
8026 typedef long double ac__type_sizeof_;
8028 main ()
8030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8031 test_array [0] = 0
8034 return 0;
8036 _ACEOF
8037 rm -f conftest.$ac_objext
8038 if { (ac_try="$ac_compile"
8039 case "(($ac_try" in
8040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8042 esac
8043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_compile") 2>conftest.er1
8045 ac_status=$?
8046 grep -v '^ *+' conftest.er1 >conftest.err
8047 rm -f conftest.er1
8048 cat conftest.err >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } && {
8051 test -z "$ac_c_werror_flag" ||
8052 test ! -s conftest.err
8053 } && test -s conftest.$ac_objext; then
8054 ac_lo=0 ac_mid=0
8055 while :; do
8056 cat >conftest.$ac_ext <<_ACEOF
8057 /* confdefs.h. */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8062 $ac_includes_default
8063 typedef long double ac__type_sizeof_;
8065 main ()
8067 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8068 test_array [0] = 0
8071 return 0;
8073 _ACEOF
8074 rm -f conftest.$ac_objext
8075 if { (ac_try="$ac_compile"
8076 case "(($ac_try" in
8077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8078 *) ac_try_echo=$ac_try;;
8079 esac
8080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8081 (eval "$ac_compile") 2>conftest.er1
8082 ac_status=$?
8083 grep -v '^ *+' conftest.er1 >conftest.err
8084 rm -f conftest.er1
8085 cat conftest.err >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } && {
8088 test -z "$ac_c_werror_flag" ||
8089 test ! -s conftest.err
8090 } && test -s conftest.$ac_objext; then
8091 ac_hi=$ac_mid; break
8092 else
8093 echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8096 ac_lo=`expr $ac_mid + 1`
8097 if test $ac_lo -le $ac_mid; then
8098 ac_lo= ac_hi=
8099 break
8101 ac_mid=`expr 2 '*' $ac_mid + 1`
8104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8105 done
8106 else
8107 echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8110 cat >conftest.$ac_ext <<_ACEOF
8111 /* confdefs.h. */
8112 _ACEOF
8113 cat confdefs.h >>conftest.$ac_ext
8114 cat >>conftest.$ac_ext <<_ACEOF
8115 /* end confdefs.h. */
8116 $ac_includes_default
8117 typedef long double ac__type_sizeof_;
8119 main ()
8121 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8122 test_array [0] = 0
8125 return 0;
8127 _ACEOF
8128 rm -f conftest.$ac_objext
8129 if { (ac_try="$ac_compile"
8130 case "(($ac_try" in
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8133 esac
8134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135 (eval "$ac_compile") 2>conftest.er1
8136 ac_status=$?
8137 grep -v '^ *+' conftest.er1 >conftest.err
8138 rm -f conftest.er1
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } && {
8142 test -z "$ac_c_werror_flag" ||
8143 test ! -s conftest.err
8144 } && test -s conftest.$ac_objext; then
8145 ac_hi=-1 ac_mid=-1
8146 while :; do
8147 cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h. */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 $ac_includes_default
8154 typedef long double ac__type_sizeof_;
8156 main ()
8158 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8159 test_array [0] = 0
8162 return 0;
8164 _ACEOF
8165 rm -f conftest.$ac_objext
8166 if { (ac_try="$ac_compile"
8167 case "(($ac_try" in
8168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8170 esac
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172 (eval "$ac_compile") 2>conftest.er1
8173 ac_status=$?
8174 grep -v '^ *+' conftest.er1 >conftest.err
8175 rm -f conftest.er1
8176 cat conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && {
8179 test -z "$ac_c_werror_flag" ||
8180 test ! -s conftest.err
8181 } && test -s conftest.$ac_objext; then
8182 ac_lo=$ac_mid; break
8183 else
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8187 ac_hi=`expr '(' $ac_mid ')' - 1`
8188 if test $ac_mid -le $ac_hi; then
8189 ac_lo= ac_hi=
8190 break
8192 ac_mid=`expr 2 '*' $ac_mid`
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196 done
8197 else
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8201 ac_lo= ac_hi=
8204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 # Binary search between lo and hi bounds.
8209 while test "x$ac_lo" != "x$ac_hi"; do
8210 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8211 cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h. */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8217 $ac_includes_default
8218 typedef long double ac__type_sizeof_;
8220 main ()
8222 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8223 test_array [0] = 0
8226 return 0;
8228 _ACEOF
8229 rm -f conftest.$ac_objext
8230 if { (ac_try="$ac_compile"
8231 case "(($ac_try" in
8232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233 *) ac_try_echo=$ac_try;;
8234 esac
8235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8236 (eval "$ac_compile") 2>conftest.er1
8237 ac_status=$?
8238 grep -v '^ *+' conftest.er1 >conftest.err
8239 rm -f conftest.er1
8240 cat conftest.err >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } && {
8243 test -z "$ac_c_werror_flag" ||
8244 test ! -s conftest.err
8245 } && test -s conftest.$ac_objext; then
8246 ac_hi=$ac_mid
8247 else
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8251 ac_lo=`expr '(' $ac_mid ')' + 1`
8254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8255 done
8256 case $ac_lo in
8257 ?*) ac_cv_sizeof_long_double=$ac_lo;;
8258 '') if test "$ac_cv_type_long_double" = yes; then
8259 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8260 See \`config.log' for more details." >&5
8261 echo "$as_me: error: cannot compute sizeof (long double)
8262 See \`config.log' for more details." >&2;}
8263 { (exit 77); exit 77; }; }
8264 else
8265 ac_cv_sizeof_long_double=0
8266 fi ;;
8267 esac
8268 else
8269 cat >conftest.$ac_ext <<_ACEOF
8270 /* confdefs.h. */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8275 $ac_includes_default
8276 typedef long double ac__type_sizeof_;
8277 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8278 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8279 #include <stdio.h>
8280 #include <stdlib.h>
8282 main ()
8285 FILE *f = fopen ("conftest.val", "w");
8286 if (! f)
8287 return 1;
8288 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8290 long int i = longval ();
8291 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8292 return 1;
8293 fprintf (f, "%ld\n", i);
8295 else
8297 unsigned long int i = ulongval ();
8298 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8299 return 1;
8300 fprintf (f, "%lu\n", i);
8302 return ferror (f) || fclose (f) != 0;
8305 return 0;
8307 _ACEOF
8308 rm -f conftest$ac_exeext
8309 if { (ac_try="$ac_link"
8310 case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8313 esac
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_link") 2>&5
8316 ac_status=$?
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8319 { (case "(($ac_try" in
8320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8321 *) ac_try_echo=$ac_try;;
8322 esac
8323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8324 (eval "$ac_try") 2>&5
8325 ac_status=$?
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; }; then
8328 ac_cv_sizeof_long_double=`cat conftest.val`
8329 else
8330 echo "$as_me: program exited with status $ac_status" >&5
8331 echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8334 ( exit $ac_status )
8335 if test "$ac_cv_type_long_double" = yes; then
8336 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8337 See \`config.log' for more details." >&5
8338 echo "$as_me: error: cannot compute sizeof (long double)
8339 See \`config.log' for more details." >&2;}
8340 { (exit 77); exit 77; }; }
8341 else
8342 ac_cv_sizeof_long_double=0
8345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8347 rm -f conftest.val
8349 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
8350 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
8354 cat >>confdefs.h <<_ACEOF
8355 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8356 _ACEOF
8359 sizeof_long_double=$ac_cv_sizeof_long_double
8362 ### End of automated tests.
8363 ### Now run sysdeps configure fragments.
8365 # They also can set these variables.
8366 use_ldconfig=no
8367 ldd_rewrite_script=no
8368 libc_cv_sysconfdir=$sysconfdir
8369 libc_cv_gcc_unwind_find_fde=no
8370 libc_cv_idn=no
8372 # Iterate over all the sysdep directories we will use, running their
8373 # configure fragments, and looking for a uname implementation.
8374 uname=
8375 for dir in $sysnames; do
8376 case $dir in
8377 /*) dest=$dir ;;
8378 *) dest=$srcdir/$dir ;;
8379 esac
8380 if test -r $dest/configure; then
8381 { echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
8382 echo "${ECHO_T}running configure fragment for $dir" >&6; }
8383 . $dest/configure
8386 if test -z "$uname"; then
8387 if test -r $dest/uname.c ||
8388 test -r $dest/uname.S ||
8389 { test -r $dest/syscalls.list &&
8390 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
8391 uname=$dir
8394 done
8396 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
8397 cat >>confdefs.h <<\_ACEOF
8398 #define EXPORT_UNWIND_FIND_FDE 1
8399 _ACEOF
8404 # If we will use the generic uname implementation, we must figure out what
8405 # it will say by examining the system, and write the results in config-name.h.
8406 if test "$uname" = "sysdeps/generic"; then
8408 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
8409 if test $uname_sysname != $config_os; then
8410 config_release=`echo $config_os | sed s/$uname_sysname//`
8413 { echo "$as_me:$LINENO: checking OS release for uname" >&5
8414 echo $ECHO_N "checking OS release for uname... $ECHO_C" >&6; }
8415 if test "${libc_cv_uname_release+set}" = set; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 else
8418 if test -r /vmunix; then
8419 kernel_id=`strings /vmunix | grep UNIX`
8420 elif test -r /dynix; then
8421 kernel_id=`strings /dynix | grep DYNIX`
8422 else
8423 kernel_id=
8426 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
8427 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
8428 != x$config_release; then
8429 # The configuration release is a substring of the kernel release.
8430 libc_cv_uname_release=$kernel_release
8431 elif test x$config_release != x; then
8432 libc_cv_uname_release=$config_release
8433 elif test x$kernel_release != x; then
8434 libc_cv_uname_release=$kernel_release
8435 else
8436 libc_cv_uname_release=unknown
8439 { echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
8440 echo "${ECHO_T}$libc_cv_uname_release" >&6; }
8441 uname_release="$libc_cv_uname_release"
8443 { echo "$as_me:$LINENO: checking OS version for uname" >&5
8444 echo $ECHO_N "checking OS version for uname... $ECHO_C" >&6; }
8445 if test "${libc_cv_uname_version+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448 if test -r /vmunix; then
8449 kernel_id=`strings /vmunix | grep UNIX`
8450 elif test -r /dynix; then
8451 kernel_id=`strings /dynix | grep DYNIX`
8452 else
8453 kernel_id=
8456 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
8457 if test -n "$kernel_version"; then
8458 libc_cv_uname_version="$kernel_version"
8459 else
8460 libc_cv_uname_version=unknown
8463 { echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
8464 echo "${ECHO_T}$libc_cv_uname_version" >&6; }
8465 uname_version="$libc_cv_uname_version"
8467 config_uname=config-name.h:config-name.in
8468 else
8469 # For non-generic uname, we don't need to create config-name.h at all.
8470 config_uname=
8473 cat >>confdefs.h <<\_ACEOF
8474 #define USE_IN_LIBIO 1
8475 _ACEOF
8478 # Test for old glibc 2.0.x headers so that they can be removed properly
8479 # Search only in includedir.
8480 { echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
8481 echo $ECHO_N "checking for old glibc 2.0.x headers... $ECHO_C" >&6; }
8482 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
8483 then
8484 old_glibc_headers=yes
8485 else
8486 old_glibc_headers=no
8488 { echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
8489 echo "${ECHO_T}$old_glibc_headers" >&6; }
8490 if test ${old_glibc_headers} = yes; then
8491 { echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
8492 echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
8493 { echo "$as_me:$LINENO: WARNING: *** be removed." >&5
8494 echo "$as_me: WARNING: *** be removed." >&2;}
8510 if test $elf = yes; then
8511 cat >>confdefs.h <<\_ACEOF
8512 #define HAVE_ELF 1
8513 _ACEOF
8516 if test $xcoff = yes; then
8517 cat >>confdefs.h <<\_ACEOF
8518 #define HAVE_XCOFF 1
8519 _ACEOF
8525 if test $shared = default; then
8526 shared=$elf
8529 { echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
8530 echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6; }
8531 if test "${pic_default+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 else
8534 pic_default=yes
8535 cat > conftest.c <<EOF
8536 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
8537 # error PIC is default.
8538 #endif
8540 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
8541 pic_default=no
8543 rm -f conftest.*
8545 { echo "$as_me:$LINENO: result: $pic_default" >&5
8546 echo "${ECHO_T}$pic_default" >&6; }
8559 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
8560 config_makefile=
8561 else
8562 config_makefile=Makefile
8565 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
8566 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8570 ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
8572 ac_config_commands="$ac_config_commands default"
8574 cat >confcache <<\_ACEOF
8575 # This file is a shell script that caches the results of configure
8576 # tests run on this system so they can be shared between configure
8577 # scripts and configure runs, see configure's option --config-cache.
8578 # It is not useful on other systems. If it contains results you don't
8579 # want to keep, you may remove or edit it.
8581 # config.status only pays attention to the cache file if you give it
8582 # the --recheck option to rerun configure.
8584 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8585 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8586 # following values.
8588 _ACEOF
8590 # The following way of writing the cache mishandles newlines in values,
8591 # but we know of no workaround that is simple, portable, and efficient.
8592 # So, we kill variables containing newlines.
8593 # Ultrix sh set writes to stderr and can't be redirected directly,
8594 # and sets the high bit in the cache file unless we assign to the vars.
8596 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8597 eval ac_val=\$$ac_var
8598 case $ac_val in #(
8599 *${as_nl}*)
8600 case $ac_var in #(
8601 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8602 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8603 esac
8604 case $ac_var in #(
8605 _ | IFS | as_nl) ;; #(
8606 *) $as_unset $ac_var ;;
8607 esac ;;
8608 esac
8609 done
8611 (set) 2>&1 |
8612 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8613 *${as_nl}ac_space=\ *)
8614 # `set' does not quote correctly, so add quotes (double-quote
8615 # substitution turns \\\\ into \\, and sed turns \\ into \).
8616 sed -n \
8617 "s/'/'\\\\''/g;
8618 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8619 ;; #(
8621 # `set' quotes correctly as required by POSIX, so do not add quotes.
8622 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8624 esac |
8625 sort
8627 sed '
8628 /^ac_cv_env_/b end
8629 t clear
8630 :clear
8631 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8632 t end
8633 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8634 :end' >>confcache
8635 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8636 if test -w "$cache_file"; then
8637 test "x$cache_file" != "x/dev/null" &&
8638 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8639 echo "$as_me: updating cache $cache_file" >&6;}
8640 cat confcache >$cache_file
8641 else
8642 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8643 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8646 rm -f confcache
8648 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8649 # Let make expand exec_prefix.
8650 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8652 DEFS=-DHAVE_CONFIG_H
8654 ac_libobjs=
8655 ac_ltlibobjs=
8656 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8657 # 1. Remove the extension, and $U if already installed.
8658 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8659 ac_i=`echo "$ac_i" | sed "$ac_script"`
8660 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8661 # will be set to the directory where LIBOBJS objects are built.
8662 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8663 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8664 done
8665 LIBOBJS=$ac_libobjs
8667 LTLIBOBJS=$ac_ltlibobjs
8671 : ${CONFIG_STATUS=./config.status}
8672 ac_clean_files_save=$ac_clean_files
8673 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8674 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8675 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8676 cat >$CONFIG_STATUS <<_ACEOF
8677 #! $SHELL
8678 # Generated by $as_me.
8679 # Run this file to recreate the current configuration.
8680 # Compiler output produced by configure, useful for debugging
8681 # configure, is in config.log if it exists.
8683 debug=false
8684 ac_cs_recheck=false
8685 ac_cs_silent=false
8686 SHELL=\${CONFIG_SHELL-$SHELL}
8687 _ACEOF
8689 cat >>$CONFIG_STATUS <<\_ACEOF
8690 ## --------------------- ##
8691 ## M4sh Initialization. ##
8692 ## --------------------- ##
8694 # Be more Bourne compatible
8695 DUALCASE=1; export DUALCASE # for MKS sh
8696 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8697 emulate sh
8698 NULLCMD=:
8699 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8700 # is contrary to our usage. Disable this feature.
8701 alias -g '${1+"$@"}'='"$@"'
8702 setopt NO_GLOB_SUBST
8703 else
8704 case `(set -o) 2>/dev/null` in
8705 *posix*) set -o posix ;;
8706 esac
8713 # PATH needs CR
8714 # Avoid depending upon Character Ranges.
8715 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8716 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8717 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8718 as_cr_digits='0123456789'
8719 as_cr_alnum=$as_cr_Letters$as_cr_digits
8721 # The user is always right.
8722 if test "${PATH_SEPARATOR+set}" != set; then
8723 echo "#! /bin/sh" >conf$$.sh
8724 echo "exit 0" >>conf$$.sh
8725 chmod +x conf$$.sh
8726 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8727 PATH_SEPARATOR=';'
8728 else
8729 PATH_SEPARATOR=:
8731 rm -f conf$$.sh
8734 # Support unset when possible.
8735 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8736 as_unset=unset
8737 else
8738 as_unset=false
8742 # IFS
8743 # We need space, tab and new line, in precisely that order. Quoting is
8744 # there to prevent editors from complaining about space-tab.
8745 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8746 # splitting by setting IFS to empty value.)
8747 as_nl='
8749 IFS=" "" $as_nl"
8751 # Find who we are. Look in the path if we contain no directory separator.
8752 case $0 in
8753 *[\\/]* ) as_myself=$0 ;;
8754 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755 for as_dir in $PATH
8757 IFS=$as_save_IFS
8758 test -z "$as_dir" && as_dir=.
8759 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8760 done
8761 IFS=$as_save_IFS
8764 esac
8765 # We did not find ourselves, most probably we were run as `sh COMMAND'
8766 # in which case we are not to be found in the path.
8767 if test "x$as_myself" = x; then
8768 as_myself=$0
8770 if test ! -f "$as_myself"; then
8771 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8772 { (exit 1); exit 1; }
8775 # Work around bugs in pre-3.0 UWIN ksh.
8776 for as_var in ENV MAIL MAILPATH
8777 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8778 done
8779 PS1='$ '
8780 PS2='> '
8781 PS4='+ '
8783 # NLS nuisances.
8784 for as_var in \
8785 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8786 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8787 LC_TELEPHONE LC_TIME
8789 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8790 eval $as_var=C; export $as_var
8791 else
8792 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8794 done
8796 # Required to use basename.
8797 if expr a : '\(a\)' >/dev/null 2>&1 &&
8798 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8799 as_expr=expr
8800 else
8801 as_expr=false
8804 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8805 as_basename=basename
8806 else
8807 as_basename=false
8811 # Name of the executable.
8812 as_me=`$as_basename -- "$0" ||
8813 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8814 X"$0" : 'X\(//\)$' \| \
8815 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8816 echo X/"$0" |
8817 sed '/^.*\/\([^/][^/]*\)\/*$/{
8818 s//\1/
8821 /^X\/\(\/\/\)$/{
8822 s//\1/
8825 /^X\/\(\/\).*/{
8826 s//\1/
8829 s/.*/./; q'`
8831 # CDPATH.
8832 $as_unset CDPATH
8836 as_lineno_1=$LINENO
8837 as_lineno_2=$LINENO
8838 test "x$as_lineno_1" != "x$as_lineno_2" &&
8839 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8841 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8842 # uniformly replaced by the line number. The first 'sed' inserts a
8843 # line-number line after each line using $LINENO; the second 'sed'
8844 # does the real work. The second script uses 'N' to pair each
8845 # line-number line with the line containing $LINENO, and appends
8846 # trailing '-' during substitution so that $LINENO is not a special
8847 # case at line end.
8848 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8849 # scripts with optimization help from Paolo Bonzini. Blame Lee
8850 # E. McMahon (1931-1989) for sed's syntax. :-)
8851 sed -n '
8853 /[$]LINENO/=
8854 ' <$as_myself |
8855 sed '
8856 s/[$]LINENO.*/&-/
8857 t lineno
8859 :lineno
8861 :loop
8862 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8863 t loop
8864 s/-\n.*//
8865 ' >$as_me.lineno &&
8866 chmod +x "$as_me.lineno" ||
8867 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8868 { (exit 1); exit 1; }; }
8870 # Don't try to exec as it changes $[0], causing all sort of problems
8871 # (the dirname of $[0] is not the place where we might find the
8872 # original and so on. Autoconf is especially sensitive to this).
8873 . "./$as_me.lineno"
8874 # Exit status is that of the last command.
8875 exit
8879 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8880 as_dirname=dirname
8881 else
8882 as_dirname=false
8885 ECHO_C= ECHO_N= ECHO_T=
8886 case `echo -n x` in
8887 -n*)
8888 case `echo 'x\c'` in
8889 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8890 *) ECHO_C='\c';;
8891 esac;;
8893 ECHO_N='-n';;
8894 esac
8896 if expr a : '\(a\)' >/dev/null 2>&1 &&
8897 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8898 as_expr=expr
8899 else
8900 as_expr=false
8903 rm -f conf$$ conf$$.exe conf$$.file
8904 if test -d conf$$.dir; then
8905 rm -f conf$$.dir/conf$$.file
8906 else
8907 rm -f conf$$.dir
8908 mkdir conf$$.dir
8910 echo >conf$$.file
8911 if ln -s conf$$.file conf$$ 2>/dev/null; then
8912 as_ln_s='ln -s'
8913 # ... but there are two gotchas:
8914 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8915 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8916 # In both cases, we have to default to `cp -p'.
8917 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8918 as_ln_s='cp -p'
8919 elif ln conf$$.file conf$$ 2>/dev/null; then
8920 as_ln_s=ln
8921 else
8922 as_ln_s='cp -p'
8924 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8925 rmdir conf$$.dir 2>/dev/null
8927 if mkdir -p . 2>/dev/null; then
8928 as_mkdir_p=:
8929 else
8930 test -d ./-p && rmdir ./-p
8931 as_mkdir_p=false
8934 if test -x / >/dev/null 2>&1; then
8935 as_test_x='test -x'
8936 else
8937 if ls -dL / >/dev/null 2>&1; then
8938 as_ls_L_option=L
8939 else
8940 as_ls_L_option=
8942 as_test_x='
8943 eval sh -c '\''
8944 if test -d "$1"; then
8945 test -d "$1/.";
8946 else
8947 case $1 in
8948 -*)set "./$1";;
8949 esac;
8950 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8951 ???[sx]*):;;*)false;;esac;fi
8952 '\'' sh
8955 as_executable_p=$as_test_x
8957 # Sed expression to map a string onto a valid CPP name.
8958 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8960 # Sed expression to map a string onto a valid variable name.
8961 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8964 exec 6>&1
8966 # Save the log message, to keep $[0] and so on meaningful, and to
8967 # report actual input values of CONFIG_FILES etc. instead of their
8968 # values after options handling.
8969 ac_log="
8970 This file was extended by GNU C Library $as_me (see version.h), which was
8971 generated by GNU Autoconf 2.61. Invocation command line was
8973 CONFIG_FILES = $CONFIG_FILES
8974 CONFIG_HEADERS = $CONFIG_HEADERS
8975 CONFIG_LINKS = $CONFIG_LINKS
8976 CONFIG_COMMANDS = $CONFIG_COMMANDS
8977 $ $0 $@
8979 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8982 _ACEOF
8984 cat >>$CONFIG_STATUS <<_ACEOF
8985 # Files that config.status was made for.
8986 config_files="$ac_config_files"
8987 config_headers="$ac_config_headers"
8988 config_commands="$ac_config_commands"
8990 _ACEOF
8992 cat >>$CONFIG_STATUS <<\_ACEOF
8993 ac_cs_usage="\
8994 \`$as_me' instantiates files from templates according to the
8995 current configuration.
8997 Usage: $0 [OPTIONS] [FILE]...
8999 -h, --help print this help, then exit
9000 -V, --version print version number and configuration settings, then exit
9001 -q, --quiet do not print progress messages
9002 -d, --debug don't remove temporary files
9003 --recheck update $as_me by reconfiguring in the same conditions
9004 --file=FILE[:TEMPLATE]
9005 instantiate the configuration file FILE
9006 --header=FILE[:TEMPLATE]
9007 instantiate the configuration header FILE
9009 Configuration files:
9010 $config_files
9012 Configuration headers:
9013 $config_headers
9015 Configuration commands:
9016 $config_commands
9018 Report bugs to <bug-autoconf@gnu.org>."
9020 _ACEOF
9021 cat >>$CONFIG_STATUS <<_ACEOF
9022 ac_cs_version="\\
9023 GNU C Library config.status (see version.h)
9024 configured by $0, generated by GNU Autoconf 2.61,
9025 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9027 Copyright (C) 2006 Free Software Foundation, Inc.
9028 This config.status script is free software; the Free Software Foundation
9029 gives unlimited permission to copy, distribute and modify it."
9031 ac_pwd='$ac_pwd'
9032 srcdir='$srcdir'
9033 INSTALL='$INSTALL'
9034 _ACEOF
9036 cat >>$CONFIG_STATUS <<\_ACEOF
9037 # If no file are specified by the user, then we need to provide default
9038 # value. By we need to know if files were specified by the user.
9039 ac_need_defaults=:
9040 while test $# != 0
9042 case $1 in
9043 --*=*)
9044 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9045 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9046 ac_shift=:
9049 ac_option=$1
9050 ac_optarg=$2
9051 ac_shift=shift
9053 esac
9055 case $ac_option in
9056 # Handling of the options.
9057 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9058 ac_cs_recheck=: ;;
9059 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9060 echo "$ac_cs_version"; exit ;;
9061 --debug | --debu | --deb | --de | --d | -d )
9062 debug=: ;;
9063 --file | --fil | --fi | --f )
9064 $ac_shift
9065 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9066 ac_need_defaults=false;;
9067 --header | --heade | --head | --hea )
9068 $ac_shift
9069 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9070 ac_need_defaults=false;;
9071 --he | --h)
9072 # Conflict between --help and --header
9073 { echo "$as_me: error: ambiguous option: $1
9074 Try \`$0 --help' for more information." >&2
9075 { (exit 1); exit 1; }; };;
9076 --help | --hel | -h )
9077 echo "$ac_cs_usage"; exit ;;
9078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9079 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9080 ac_cs_silent=: ;;
9082 # This is an error.
9083 -*) { echo "$as_me: error: unrecognized option: $1
9084 Try \`$0 --help' for more information." >&2
9085 { (exit 1); exit 1; }; } ;;
9087 *) ac_config_targets="$ac_config_targets $1"
9088 ac_need_defaults=false ;;
9090 esac
9091 shift
9092 done
9094 ac_configure_extra_args=
9096 if $ac_cs_silent; then
9097 exec 6>/dev/null
9098 ac_configure_extra_args="$ac_configure_extra_args --silent"
9101 _ACEOF
9102 cat >>$CONFIG_STATUS <<_ACEOF
9103 if \$ac_cs_recheck; then
9104 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9105 CONFIG_SHELL=$SHELL
9106 export CONFIG_SHELL
9107 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9110 _ACEOF
9111 cat >>$CONFIG_STATUS <<\_ACEOF
9112 exec 5>>config.log
9114 echo
9115 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9116 ## Running $as_me. ##
9117 _ASBOX
9118 echo "$ac_log"
9119 } >&5
9121 _ACEOF
9122 cat >>$CONFIG_STATUS <<_ACEOF
9124 # INIT-COMMANDS
9126 config_vars='$config_vars'
9128 _ACEOF
9130 cat >>$CONFIG_STATUS <<\_ACEOF
9132 # Handling of arguments.
9133 for ac_config_target in $ac_config_targets
9135 case $ac_config_target in
9136 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9137 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
9138 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
9139 "${config_uname}") CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
9140 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9142 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9143 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9144 { (exit 1); exit 1; }; };;
9145 esac
9146 done
9149 # If the user did not use the arguments to specify the items to instantiate,
9150 # then the envvar interface is used. Set only those that are not.
9151 # We use the long form for the default assignment because of an extremely
9152 # bizarre bug on SunOS 4.1.3.
9153 if $ac_need_defaults; then
9154 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9155 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9156 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9159 # Have a temporary directory for convenience. Make it in the build tree
9160 # simply because there is no reason against having it here, and in addition,
9161 # creating and moving files from /tmp can sometimes cause problems.
9162 # Hook for its removal unless debugging.
9163 # Note that there is a small window in which the directory will not be cleaned:
9164 # after its creation but before its name has been assigned to `$tmp'.
9165 $debug ||
9167 tmp=
9168 trap 'exit_status=$?
9169 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9171 trap '{ (exit 1); exit 1; }' 1 2 13 15
9173 # Create a (secure) tmp directory for tmp files.
9176 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9177 test -n "$tmp" && test -d "$tmp"
9178 } ||
9180 tmp=./conf$$-$RANDOM
9181 (umask 077 && mkdir "$tmp")
9182 } ||
9184 echo "$me: cannot create a temporary directory in ." >&2
9185 { (exit 1); exit 1; }
9189 # Set up the sed scripts for CONFIG_FILES section.
9192 # No need to generate the scripts if there are no CONFIG_FILES.
9193 # This happens for instance when ./config.status config.h
9194 if test -n "$CONFIG_FILES"; then
9196 _ACEOF
9200 ac_delim='%!_!# '
9201 for ac_last_try in false false false false false :; do
9202 cat >conf$$subs.sed <<_ACEOF
9203 SHELL!$SHELL$ac_delim
9204 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9205 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9206 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9207 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9208 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9209 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9210 exec_prefix!$exec_prefix$ac_delim
9211 prefix!$prefix$ac_delim
9212 program_transform_name!$program_transform_name$ac_delim
9213 bindir!$bindir$ac_delim
9214 sbindir!$sbindir$ac_delim
9215 libexecdir!$libexecdir$ac_delim
9216 datarootdir!$datarootdir$ac_delim
9217 datadir!$datadir$ac_delim
9218 sysconfdir!$sysconfdir$ac_delim
9219 sharedstatedir!$sharedstatedir$ac_delim
9220 localstatedir!$localstatedir$ac_delim
9221 includedir!$includedir$ac_delim
9222 oldincludedir!$oldincludedir$ac_delim
9223 docdir!$docdir$ac_delim
9224 infodir!$infodir$ac_delim
9225 htmldir!$htmldir$ac_delim
9226 dvidir!$dvidir$ac_delim
9227 pdfdir!$pdfdir$ac_delim
9228 psdir!$psdir$ac_delim
9229 libdir!$libdir$ac_delim
9230 localedir!$localedir$ac_delim
9231 mandir!$mandir$ac_delim
9232 DEFS!$DEFS$ac_delim
9233 ECHO_C!$ECHO_C$ac_delim
9234 ECHO_N!$ECHO_N$ac_delim
9235 ECHO_T!$ECHO_T$ac_delim
9236 LIBS!$LIBS$ac_delim
9237 build_alias!$build_alias$ac_delim
9238 host_alias!$host_alias$ac_delim
9239 target_alias!$target_alias$ac_delim
9240 with_fp!$with_fp$ac_delim
9241 with_cvs!$with_cvs$ac_delim
9242 enable_check_abi!$enable_check_abi$ac_delim
9243 oldest_abi!$oldest_abi$ac_delim
9244 bindnow!$bindnow$ac_delim
9245 force_install!$force_install$ac_delim
9246 all_warnings!$all_warnings$ac_delim
9247 multi_arch!$multi_arch$ac_delim
9248 experimental_malloc!$experimental_malloc$ac_delim
9249 build!$build$ac_delim
9250 build_cpu!$build_cpu$ac_delim
9251 build_vendor!$build_vendor$ac_delim
9252 build_os!$build_os$ac_delim
9253 host!$host$ac_delim
9254 host_cpu!$host_cpu$ac_delim
9255 host_vendor!$host_vendor$ac_delim
9256 host_os!$host_os$ac_delim
9257 subdirs!$subdirs$ac_delim
9258 add_ons!$add_ons$ac_delim
9259 add_on_subdirs!$add_on_subdirs$ac_delim
9260 base_machine!$base_machine$ac_delim
9261 submachine!$submachine$ac_delim
9262 sysnames!$sysnames$ac_delim
9263 sysdeps_add_ons!$sysdeps_add_ons$ac_delim
9264 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9265 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9266 INSTALL_DATA!$INSTALL_DATA$ac_delim
9267 LN_S!$LN_S$ac_delim
9268 CC!$CC$ac_delim
9269 CFLAGS!$CFLAGS$ac_delim
9270 LDFLAGS!$LDFLAGS$ac_delim
9271 CPPFLAGS!$CPPFLAGS$ac_delim
9272 ac_ct_CC!$ac_ct_CC$ac_delim
9273 OBJEXT!$OBJEXT$ac_delim
9274 BUILD_CC!$BUILD_CC$ac_delim
9275 cross_compiling!$cross_compiling$ac_delim
9276 CPP!$CPP$ac_delim
9277 CXX!$CXX$ac_delim
9278 CXXFLAGS!$CXXFLAGS$ac_delim
9279 ac_ct_CXX!$ac_ct_CXX$ac_delim
9280 AR!$AR$ac_delim
9281 OBJDUMP!$OBJDUMP$ac_delim
9282 RANLIB!$RANLIB$ac_delim
9283 MIG!$MIG$ac_delim
9284 AS!$AS$ac_delim
9285 LD!$LD$ac_delim
9286 PWD_P!$PWD_P$ac_delim
9287 MAKE!$MAKE$ac_delim
9288 MSGFMT!$MSGFMT$ac_delim
9289 MAKEINFO!$MAKEINFO$ac_delim
9290 SED!$SED$ac_delim
9291 AUTOCONF!$AUTOCONF$ac_delim
9292 SYSINCLUDES!$SYSINCLUDES$ac_delim
9293 CXX_SYSINCLUDES!$CXX_SYSINCLUDES$ac_delim
9294 libc_cv_gcc_static_libgcc!$libc_cv_gcc_static_libgcc$ac_delim
9295 BASH_SHELL!$BASH_SHELL$ac_delim
9296 libc_cv_have_bash2!$libc_cv_have_bash2$ac_delim
9297 KSH!$KSH$ac_delim
9298 libc_cv_have_ksh!$libc_cv_have_ksh$ac_delim
9299 AWK!$AWK$ac_delim
9300 _ACEOF
9302 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
9303 break
9304 elif $ac_last_try; then
9305 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9306 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9307 { (exit 1); exit 1; }; }
9308 else
9309 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9311 done
9313 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9314 if test -n "$ac_eof"; then
9315 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9316 ac_eof=`expr $ac_eof + 1`
9319 cat >>$CONFIG_STATUS <<_ACEOF
9320 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9321 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9322 _ACEOF
9323 sed '
9324 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9325 s/^/s,@/; s/!/@,|#_!!_#|/
9328 s/'"$ac_delim"'$/,g/; t
9329 s/$/\\/; p
9330 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9331 ' >>$CONFIG_STATUS <conf$$subs.sed
9332 rm -f conf$$subs.sed
9333 cat >>$CONFIG_STATUS <<_ACEOF
9334 CEOF$ac_eof
9335 _ACEOF
9338 ac_delim='%!_!# '
9339 for ac_last_try in false false false false false :; do
9340 cat >conf$$subs.sed <<_ACEOF
9341 PERL!$PERL$ac_delim
9342 INSTALL_INFO!$INSTALL_INFO$ac_delim
9343 BISON!$BISON$ac_delim
9344 VERSIONING!$VERSIONING$ac_delim
9345 libc_cv_cc_with_libunwind!$libc_cv_cc_with_libunwind$ac_delim
9346 libc_cv_Bgroup!$libc_cv_Bgroup$ac_delim
9347 libc_cv_libgcc_s_suffix!$libc_cv_libgcc_s_suffix$ac_delim
9348 libc_cv_as_needed!$libc_cv_as_needed$ac_delim
9349 ASFLAGS_config!$ASFLAGS_config$ac_delim
9350 libc_cv_z_combreloc!$libc_cv_z_combreloc$ac_delim
9351 libc_cv_z_execstack!$libc_cv_z_execstack$ac_delim
9352 libc_cv_fpie!$libc_cv_fpie$ac_delim
9353 libc_cv_hashstyle!$libc_cv_hashstyle$ac_delim
9354 fno_unit_at_a_time!$fno_unit_at_a_time$ac_delim
9355 libc_cv_ssp!$libc_cv_ssp$ac_delim
9356 libc_cv_gnu89_inline!$libc_cv_gnu89_inline$ac_delim
9357 libc_cv_have_initfini!$libc_cv_have_initfini$ac_delim
9358 no_whole_archive!$no_whole_archive$ac_delim
9359 exceptions!$exceptions$ac_delim
9360 libc_cv_cc_submachine!$libc_cv_cc_submachine$ac_delim
9361 LIBGD!$LIBGD$ac_delim
9362 have_libaudit!$have_libaudit$ac_delim
9363 have_libcap!$have_libcap$ac_delim
9364 have_selinux!$have_selinux$ac_delim
9365 GREP!$GREP$ac_delim
9366 EGREP!$EGREP$ac_delim
9367 sizeof_long_double!$sizeof_long_double$ac_delim
9368 libc_cv_gcc_unwind_find_fde!$libc_cv_gcc_unwind_find_fde$ac_delim
9369 uname_sysname!$uname_sysname$ac_delim
9370 uname_release!$uname_release$ac_delim
9371 uname_version!$uname_version$ac_delim
9372 old_glibc_headers!$old_glibc_headers$ac_delim
9373 libc_cv_slibdir!$libc_cv_slibdir$ac_delim
9374 libc_cv_localedir!$libc_cv_localedir$ac_delim
9375 libc_cv_sysconfdir!$libc_cv_sysconfdir$ac_delim
9376 libc_cv_rootsbindir!$libc_cv_rootsbindir$ac_delim
9377 libc_cv_forced_unwind!$libc_cv_forced_unwind$ac_delim
9378 libc_cv_cpp_asm_debuginfo!$libc_cv_cpp_asm_debuginfo$ac_delim
9379 use_ldconfig!$use_ldconfig$ac_delim
9380 ldd_rewrite_script!$ldd_rewrite_script$ac_delim
9381 elf!$elf$ac_delim
9382 xcoff!$xcoff$ac_delim
9383 static!$static$ac_delim
9384 shared!$shared$ac_delim
9385 pic_default!$pic_default$ac_delim
9386 profile!$profile$ac_delim
9387 omitfp!$omitfp$ac_delim
9388 bounded!$bounded$ac_delim
9389 static_nss!$static_nss$ac_delim
9390 nopic_initfini!$nopic_initfini$ac_delim
9391 DEFINES!$DEFINES$ac_delim
9392 mach_interface_list!$mach_interface_list$ac_delim
9393 VERSION!$VERSION$ac_delim
9394 RELEASE!$RELEASE$ac_delim
9395 LIBOBJS!$LIBOBJS$ac_delim
9396 LTLIBOBJS!$LTLIBOBJS$ac_delim
9397 _ACEOF
9399 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 56; then
9400 break
9401 elif $ac_last_try; then
9402 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9403 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9404 { (exit 1); exit 1; }; }
9405 else
9406 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9408 done
9410 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9411 if test -n "$ac_eof"; then
9412 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9413 ac_eof=`expr $ac_eof + 1`
9416 cat >>$CONFIG_STATUS <<_ACEOF
9417 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
9418 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9419 _ACEOF
9420 sed '
9421 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9422 s/^/s,@/; s/!/@,|#_!!_#|/
9425 s/'"$ac_delim"'$/,g/; t
9426 s/$/\\/; p
9427 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9428 ' >>$CONFIG_STATUS <conf$$subs.sed
9429 rm -f conf$$subs.sed
9430 cat >>$CONFIG_STATUS <<_ACEOF
9431 :end
9432 s/|#_!!_#|//g
9433 CEOF$ac_eof
9434 _ACEOF
9437 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9438 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9439 # trailing colons and then remove the whole line if VPATH becomes empty
9440 # (actually we leave an empty line to preserve line numbers).
9441 if test "x$srcdir" = x.; then
9442 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9443 s/:*\$(srcdir):*/:/
9444 s/:*\${srcdir}:*/:/
9445 s/:*@srcdir@:*/:/
9446 s/^\([^=]*=[ ]*\):*/\1/
9447 s/:*$//
9448 s/^[^=]*=[ ]*$//
9452 cat >>$CONFIG_STATUS <<\_ACEOF
9453 fi # test -n "$CONFIG_FILES"
9456 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
9458 case $ac_tag in
9459 :[FHLC]) ac_mode=$ac_tag; continue;;
9460 esac
9461 case $ac_mode$ac_tag in
9462 :[FHL]*:*);;
9463 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9464 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9465 { (exit 1); exit 1; }; };;
9466 :[FH]-) ac_tag=-:-;;
9467 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9468 esac
9469 ac_save_IFS=$IFS
9470 IFS=:
9471 set x $ac_tag
9472 IFS=$ac_save_IFS
9473 shift
9474 ac_file=$1
9475 shift
9477 case $ac_mode in
9478 :L) ac_source=$1;;
9479 :[FH])
9480 ac_file_inputs=
9481 for ac_f
9483 case $ac_f in
9484 -) ac_f="$tmp/stdin";;
9485 *) # Look for the file first in the build tree, then in the source tree
9486 # (if the path is not absolute). The absolute path cannot be DOS-style,
9487 # because $ac_f cannot contain `:'.
9488 test -f "$ac_f" ||
9489 case $ac_f in
9490 [\\/$]*) false;;
9491 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9492 esac ||
9493 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9494 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9495 { (exit 1); exit 1; }; };;
9496 esac
9497 ac_file_inputs="$ac_file_inputs $ac_f"
9498 done
9500 # Let's still pretend it is `configure' which instantiates (i.e., don't
9501 # use $as_me), people would be surprised to read:
9502 # /* config.h. Generated by config.status. */
9503 configure_input="Generated from "`IFS=:
9504 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9505 if test x"$ac_file" != x-; then
9506 configure_input="$ac_file. $configure_input"
9507 { echo "$as_me:$LINENO: creating $ac_file" >&5
9508 echo "$as_me: creating $ac_file" >&6;}
9511 case $ac_tag in
9512 *:-:* | *:-) cat >"$tmp/stdin";;
9513 esac
9515 esac
9517 ac_dir=`$as_dirname -- "$ac_file" ||
9518 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9519 X"$ac_file" : 'X\(//\)[^/]' \| \
9520 X"$ac_file" : 'X\(//\)$' \| \
9521 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9522 echo X"$ac_file" |
9523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9524 s//\1/
9527 /^X\(\/\/\)[^/].*/{
9528 s//\1/
9531 /^X\(\/\/\)$/{
9532 s//\1/
9535 /^X\(\/\).*/{
9536 s//\1/
9539 s/.*/./; q'`
9540 { as_dir="$ac_dir"
9541 case $as_dir in #(
9542 -*) as_dir=./$as_dir;;
9543 esac
9544 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9545 as_dirs=
9546 while :; do
9547 case $as_dir in #(
9548 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9549 *) as_qdir=$as_dir;;
9550 esac
9551 as_dirs="'$as_qdir' $as_dirs"
9552 as_dir=`$as_dirname -- "$as_dir" ||
9553 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9554 X"$as_dir" : 'X\(//\)[^/]' \| \
9555 X"$as_dir" : 'X\(//\)$' \| \
9556 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9557 echo X"$as_dir" |
9558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9559 s//\1/
9562 /^X\(\/\/\)[^/].*/{
9563 s//\1/
9566 /^X\(\/\/\)$/{
9567 s//\1/
9570 /^X\(\/\).*/{
9571 s//\1/
9574 s/.*/./; q'`
9575 test -d "$as_dir" && break
9576 done
9577 test -z "$as_dirs" || eval "mkdir $as_dirs"
9578 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9579 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9580 { (exit 1); exit 1; }; }; }
9581 ac_builddir=.
9583 case "$ac_dir" in
9584 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9586 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9587 # A ".." for each directory in $ac_dir_suffix.
9588 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9589 case $ac_top_builddir_sub in
9590 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9591 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9592 esac ;;
9593 esac
9594 ac_abs_top_builddir=$ac_pwd
9595 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9596 # for backward compatibility:
9597 ac_top_builddir=$ac_top_build_prefix
9599 case $srcdir in
9600 .) # We are building in place.
9601 ac_srcdir=.
9602 ac_top_srcdir=$ac_top_builddir_sub
9603 ac_abs_top_srcdir=$ac_pwd ;;
9604 [\\/]* | ?:[\\/]* ) # Absolute name.
9605 ac_srcdir=$srcdir$ac_dir_suffix;
9606 ac_top_srcdir=$srcdir
9607 ac_abs_top_srcdir=$srcdir ;;
9608 *) # Relative name.
9609 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9610 ac_top_srcdir=$ac_top_build_prefix$srcdir
9611 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9612 esac
9613 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9616 case $ac_mode in
9619 # CONFIG_FILE
9622 case $INSTALL in
9623 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9624 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9625 esac
9626 _ACEOF
9628 cat >>$CONFIG_STATUS <<\_ACEOF
9629 # If the template does not know about datarootdir, expand it.
9630 # FIXME: This hack should be removed a few years after 2.60.
9631 ac_datarootdir_hack=; ac_datarootdir_seen=
9633 case `sed -n '/datarootdir/ {
9637 /@datadir@/p
9638 /@docdir@/p
9639 /@infodir@/p
9640 /@localedir@/p
9641 /@mandir@/p
9642 ' $ac_file_inputs` in
9643 *datarootdir*) ac_datarootdir_seen=yes;;
9644 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9645 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9646 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9647 _ACEOF
9648 cat >>$CONFIG_STATUS <<_ACEOF
9649 ac_datarootdir_hack='
9650 s&@datadir@&$datadir&g
9651 s&@docdir@&$docdir&g
9652 s&@infodir@&$infodir&g
9653 s&@localedir@&$localedir&g
9654 s&@mandir@&$mandir&g
9655 s&\\\${datarootdir}&$datarootdir&g' ;;
9656 esac
9657 _ACEOF
9659 # Neutralize VPATH when `$srcdir' = `.'.
9660 # Shell code in configure.ac might set extrasub.
9661 # FIXME: do we really want to maintain this feature?
9662 cat >>$CONFIG_STATUS <<_ACEOF
9663 sed "$ac_vpsub
9664 $extrasub
9665 _ACEOF
9666 cat >>$CONFIG_STATUS <<\_ACEOF
9668 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9669 s&@configure_input@&$configure_input&;t t
9670 s&@top_builddir@&$ac_top_builddir_sub&;t t
9671 s&@srcdir@&$ac_srcdir&;t t
9672 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9673 s&@top_srcdir@&$ac_top_srcdir&;t t
9674 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9675 s&@builddir@&$ac_builddir&;t t
9676 s&@abs_builddir@&$ac_abs_builddir&;t t
9677 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9678 s&@INSTALL@&$ac_INSTALL&;t t
9679 $ac_datarootdir_hack
9680 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
9682 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9683 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9684 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9685 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9686 which seems to be undefined. Please make sure it is defined." >&5
9687 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9688 which seems to be undefined. Please make sure it is defined." >&2;}
9690 rm -f "$tmp/stdin"
9691 case $ac_file in
9692 -) cat "$tmp/out"; rm -f "$tmp/out";;
9693 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9694 esac
9698 # CONFIG_HEADER
9700 _ACEOF
9702 # Transform confdefs.h into a sed script `conftest.defines', that
9703 # substitutes the proper values into config.h.in to produce config.h.
9704 rm -f conftest.defines conftest.tail
9705 # First, append a space to every undef/define line, to ease matching.
9706 echo 's/$/ /' >conftest.defines
9707 # Then, protect against being on the right side of a sed subst, or in
9708 # an unquoted here document, in config.status. If some macros were
9709 # called several times there might be several #defines for the same
9710 # symbol, which is useless. But do not sort them, since the last
9711 # AC_DEFINE must be honored.
9712 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9713 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9714 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9715 # PARAMS is the parameter list in the macro definition--in most cases, it's
9716 # just an empty string.
9717 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9718 ac_dB='\\)[ (].*,\\1define\\2'
9719 ac_dC=' '
9720 ac_dD=' ,'
9722 uniq confdefs.h |
9723 sed -n '
9724 t rset
9725 :rset
9726 s/^[ ]*#[ ]*define[ ][ ]*//
9727 t ok
9730 s/[\\&,]/\\&/g
9731 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9732 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9733 ' >>conftest.defines
9735 # Remove the space that was appended to ease matching.
9736 # Then replace #undef with comments. This is necessary, for
9737 # example, in the case of _POSIX_SOURCE, which is predefined and required
9738 # on some systems where configure will not decide to define it.
9739 # (The regexp can be short, since the line contains either #define or #undef.)
9740 echo 's/ $//
9741 s,^[ #]*u.*,/* & */,' >>conftest.defines
9743 # Break up conftest.defines:
9744 ac_max_sed_lines=50
9746 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9747 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9748 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9749 # et cetera.
9750 ac_in='$ac_file_inputs'
9751 ac_out='"$tmp/out1"'
9752 ac_nxt='"$tmp/out2"'
9754 while :
9756 # Write a here document:
9757 cat >>$CONFIG_STATUS <<_ACEOF
9758 # First, check the format of the line:
9759 cat >"\$tmp/defines.sed" <<\\CEOF
9760 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9761 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9763 :def
9764 _ACEOF
9765 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9766 echo 'CEOF
9767 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9768 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9769 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9770 grep . conftest.tail >/dev/null || break
9771 rm -f conftest.defines
9772 mv conftest.tail conftest.defines
9773 done
9774 rm -f conftest.defines conftest.tail
9776 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9777 cat >>$CONFIG_STATUS <<\_ACEOF
9778 if test x"$ac_file" != x-; then
9779 echo "/* $configure_input */" >"$tmp/config.h"
9780 cat "$ac_result" >>"$tmp/config.h"
9781 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9782 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9783 echo "$as_me: $ac_file is unchanged" >&6;}
9784 else
9785 rm -f $ac_file
9786 mv "$tmp/config.h" $ac_file
9788 else
9789 echo "/* $configure_input */"
9790 cat "$ac_result"
9792 rm -f "$tmp/out12"
9795 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9796 echo "$as_me: executing $ac_file commands" >&6;}
9798 esac
9801 case $ac_file$ac_mode in
9802 "default":C)
9803 case $CONFIG_FILES in *config.make*)
9804 echo "$config_vars" >> config.make;;
9805 esac
9806 test -d bits || mkdir bits ;;
9808 esac
9809 done # for ac_tag
9812 { (exit 0); exit 0; }
9813 _ACEOF
9814 chmod +x $CONFIG_STATUS
9815 ac_clean_files=$ac_clean_files_save
9818 # configure is writing to config.log, and then calls config.status.
9819 # config.status does its own redirection, appending to config.log.
9820 # Unfortunately, on DOS this fails, as config.log is still kept open
9821 # by configure, so config.status won't be able to write to it; its
9822 # output is simply discarded. So we exec the FD to /dev/null,
9823 # effectively closing config.log, so it can be properly (re)opened and
9824 # appended to by config.status. When coming back to configure, we
9825 # need to make the FD available again.
9826 if test "$no_create" != yes; then
9827 ac_cs_success=:
9828 ac_config_status_args=
9829 test "$silent" = yes &&
9830 ac_config_status_args="$ac_config_status_args --quiet"
9831 exec 5>/dev/null
9832 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9833 exec 5>>config.log
9834 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9835 # would make configure fail if this is the last instruction.
9836 $ac_cs_success || { (exit 1); exit 1; }
9840 # CONFIG_SUBDIRS section.
9842 if test "$no_recursion" != yes; then
9844 # Remove --cache-file and --srcdir arguments so they do not pile up.
9845 ac_sub_configure_args=
9846 ac_prev=
9847 eval "set x $ac_configure_args"
9848 shift
9849 for ac_arg
9851 if test -n "$ac_prev"; then
9852 ac_prev=
9853 continue
9855 case $ac_arg in
9856 -cache-file | --cache-file | --cache-fil | --cache-fi \
9857 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9858 ac_prev=cache_file ;;
9859 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9860 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9861 | --c=*)
9863 --config-cache | -C)
9865 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9866 ac_prev=srcdir ;;
9867 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9869 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9870 ac_prev=prefix ;;
9871 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9874 case $ac_arg in
9875 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9876 esac
9877 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
9878 esac
9879 done
9881 # Always prepend --prefix to ensure using the same prefix
9882 # in subdir configurations.
9883 ac_arg="--prefix=$prefix"
9884 case $ac_arg in
9885 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9886 esac
9887 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9889 # Pass --silent
9890 if test "$silent" = yes; then
9891 ac_sub_configure_args="--silent $ac_sub_configure_args"
9894 ac_popdir=`pwd`
9895 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9897 # Do not complain, so a configure script can configure whichever
9898 # parts of a large source tree are present.
9899 test -d "$srcdir/$ac_dir" || continue
9901 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9902 echo "$as_me:$LINENO: $ac_msg" >&5
9903 echo "$ac_msg" >&6
9904 { as_dir="$ac_dir"
9905 case $as_dir in #(
9906 -*) as_dir=./$as_dir;;
9907 esac
9908 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9909 as_dirs=
9910 while :; do
9911 case $as_dir in #(
9912 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9913 *) as_qdir=$as_dir;;
9914 esac
9915 as_dirs="'$as_qdir' $as_dirs"
9916 as_dir=`$as_dirname -- "$as_dir" ||
9917 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9918 X"$as_dir" : 'X\(//\)[^/]' \| \
9919 X"$as_dir" : 'X\(//\)$' \| \
9920 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9921 echo X"$as_dir" |
9922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9923 s//\1/
9926 /^X\(\/\/\)[^/].*/{
9927 s//\1/
9930 /^X\(\/\/\)$/{
9931 s//\1/
9934 /^X\(\/\).*/{
9935 s//\1/
9938 s/.*/./; q'`
9939 test -d "$as_dir" && break
9940 done
9941 test -z "$as_dirs" || eval "mkdir $as_dirs"
9942 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9943 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9944 { (exit 1); exit 1; }; }; }
9945 ac_builddir=.
9947 case "$ac_dir" in
9948 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9950 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9951 # A ".." for each directory in $ac_dir_suffix.
9952 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9953 case $ac_top_builddir_sub in
9954 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9955 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9956 esac ;;
9957 esac
9958 ac_abs_top_builddir=$ac_pwd
9959 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9960 # for backward compatibility:
9961 ac_top_builddir=$ac_top_build_prefix
9963 case $srcdir in
9964 .) # We are building in place.
9965 ac_srcdir=.
9966 ac_top_srcdir=$ac_top_builddir_sub
9967 ac_abs_top_srcdir=$ac_pwd ;;
9968 [\\/]* | ?:[\\/]* ) # Absolute name.
9969 ac_srcdir=$srcdir$ac_dir_suffix;
9970 ac_top_srcdir=$srcdir
9971 ac_abs_top_srcdir=$srcdir ;;
9972 *) # Relative name.
9973 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9974 ac_top_srcdir=$ac_top_build_prefix$srcdir
9975 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9976 esac
9977 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9980 cd "$ac_dir"
9982 # Check for guested configure; otherwise get Cygnus style configure.
9983 if test -f "$ac_srcdir/configure.gnu"; then
9984 ac_sub_configure=$ac_srcdir/configure.gnu
9985 elif test -f "$ac_srcdir/configure"; then
9986 ac_sub_configure=$ac_srcdir/configure
9987 elif test -f "$ac_srcdir/configure.in"; then
9988 # This should be Cygnus configure.
9989 ac_sub_configure=$ac_aux_dir/configure
9990 else
9991 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
9992 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9993 ac_sub_configure=
9996 # The recursion is here.
9997 if test -n "$ac_sub_configure"; then
9998 # Make the cache file name correct relative to the subdirectory.
9999 case $cache_file in
10000 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10001 *) # Relative name.
10002 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10003 esac
10005 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10006 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10007 # The eval makes quoting arguments work.
10008 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10009 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10010 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
10011 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
10012 { (exit 1); exit 1; }; }
10015 cd "$ac_popdir"
10016 done