powerpc: POWER7 optimizations
[glibc.git] / configure
blob2ab9ebef01da2e6884e2e28d8315e4af341c9ec8
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 subdirs
664 build
665 build_cpu
666 build_vendor
667 build_os
668 host
669 host_cpu
670 host_vendor
671 host_os
672 add_ons
673 add_on_subdirs
674 base_machine
675 submachine
676 sysnames
677 sysdeps_add_ons
678 INSTALL_PROGRAM
679 INSTALL_SCRIPT
680 INSTALL_DATA
681 LN_S
683 CFLAGS
684 LDFLAGS
685 CPPFLAGS
686 ac_ct_CC
687 OBJEXT
688 BUILD_CC
689 cross_compiling
692 CXXFLAGS
693 ac_ct_CXX
695 OBJDUMP
696 RANLIB
700 PWD_P
701 MAKE
702 MSGFMT
703 MAKEINFO
705 AUTOCONF
706 SYSINCLUDES
707 CXX_SYSINCLUDES
708 libc_cv_gcc_static_libgcc
709 BASH_SHELL
710 libc_cv_have_bash2
712 libc_cv_have_ksh
714 PERL
715 INSTALL_INFO
716 BISON
717 VERSIONING
718 libc_cv_cc_with_libunwind
719 libc_cv_Bgroup
720 libc_cv_libgcc_s_suffix
721 libc_cv_as_needed
722 ASFLAGS_config
723 libc_cv_z_combreloc
724 libc_cv_z_execstack
725 libc_cv_fpie
726 libc_cv_hashstyle
727 fno_unit_at_a_time
728 libc_cv_ssp
729 libc_cv_gnu89_inline
730 libc_cv_have_initfini
731 no_whole_archive
732 exceptions
733 libc_cv_cc_submachine
734 LIBGD
735 have_libaudit
736 have_libcap
737 have_selinux
738 GREP
739 EGREP
740 sizeof_long_double
741 libc_cv_gcc_unwind_find_fde
742 uname_sysname
743 uname_release
744 uname_version
745 old_glibc_headers
746 libc_cv_slibdir
747 libc_cv_localedir
748 libc_cv_sysconfdir
749 libc_cv_rootsbindir
750 libc_cv_forced_unwind
751 use_ldconfig
752 ldd_rewrite_script
754 xcoff
755 static
756 shared
757 pic_default
758 profile
759 omitfp
760 bounded
761 static_nss
762 nopic_initfini
763 DEFINES
764 mach_interface_list
765 VERSION
766 RELEASE
767 LIBOBJS
768 LTLIBOBJS'
769 ac_subst_files=''
770 ac_precious_vars='build_alias
771 host_alias
772 target_alias
774 CFLAGS
775 LDFLAGS
776 LIBS
777 CPPFLAGS
780 CXXFLAGS
781 CCC'
782 ac_subdirs_all='
785 # Initialize some variables set by options.
786 ac_init_help=
787 ac_init_version=false
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
831 ac_prev=
832 ac_dashdash=
833 for ac_option
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
838 ac_prev=
839 continue
842 case $ac_option in
843 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 *) ac_optarg=yes ;;
845 esac
847 # Accept the important Cygnus configure options, so we can diagnose typos.
849 case $ac_dashdash$ac_option in
851 ac_dashdash=yes ;;
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
854 ac_prev=bindir ;;
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 bindir=$ac_optarg ;;
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
870 --config-cache | -C)
871 cache_file=config.cache ;;
873 -datadir | --datadir | --datadi | --datad)
874 ac_prev=datadir ;;
875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
876 datadir=$ac_optarg ;;
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
885 -disable-* | --disable-*)
886 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
889 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
890 { (exit 1); exit 1; }; }
891 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
892 eval enable_$ac_feature=no ;;
894 -docdir | --docdir | --docdi | --doc | --do)
895 ac_prev=docdir ;;
896 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897 docdir=$ac_optarg ;;
899 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
900 ac_prev=dvidir ;;
901 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902 dvidir=$ac_optarg ;;
904 -enable-* | --enable-*)
905 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
908 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909 { (exit 1); exit 1; }; }
910 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
911 eval enable_$ac_feature=\$ac_optarg ;;
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 | --exec | --exe | --ex)
916 ac_prev=exec_prefix ;;
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 | --exec=* | --exe=* | --ex=*)
920 exec_prefix=$ac_optarg ;;
922 -gas | --gas | --ga | --g)
923 # Obsolete; use --with-gas.
924 with_gas=yes ;;
926 -help | --help | --hel | --he | -h)
927 ac_init_help=long ;;
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 ac_init_help=recursive ;;
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 ac_init_help=short ;;
933 -host | --host | --hos | --ho)
934 ac_prev=host_alias ;;
935 -host=* | --host=* | --hos=* | --ho=*)
936 host_alias=$ac_optarg ;;
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939 ac_prev=htmldir ;;
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941 | --ht=*)
942 htmldir=$ac_optarg ;;
944 -includedir | --includedir | --includedi | --included | --include \
945 | --includ | --inclu | --incl | --inc)
946 ac_prev=includedir ;;
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
949 includedir=$ac_optarg ;;
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
952 ac_prev=infodir ;;
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 infodir=$ac_optarg ;;
956 -libdir | --libdir | --libdi | --libd)
957 ac_prev=libdir ;;
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 libdir=$ac_optarg ;;
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 | --libexe | --libex | --libe)
963 ac_prev=libexecdir ;;
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 | --libexe=* | --libex=* | --libe=*)
966 libexecdir=$ac_optarg ;;
968 -localedir | --localedir | --localedi | --localed | --locale)
969 ac_prev=localedir ;;
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 localedir=$ac_optarg ;;
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
974 | --localstate | --localstat | --localsta | --localst | --locals)
975 ac_prev=localstatedir ;;
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 localstatedir=$ac_optarg ;;
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981 ac_prev=mandir ;;
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 mandir=$ac_optarg ;;
985 -nfp | --nfp | --nf)
986 # Obsolete; use --without-fp.
987 with_fp=no ;;
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n)
991 no_create=yes ;;
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 no_recursion=yes ;;
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 | --oldin | --oldi | --old | --ol | --o)
1000 ac_prev=oldincludedir ;;
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 oldincludedir=$ac_optarg ;;
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007 ac_prev=prefix ;;
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 prefix=$ac_optarg ;;
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 | --program-pre | --program-pr | --program-p)
1013 ac_prev=program_prefix ;;
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 program_prefix=$ac_optarg ;;
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 | --program-suf | --program-su | --program-s)
1020 ac_prev=program_suffix ;;
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 program_suffix=$ac_optarg ;;
1025 -program-transform-name | --program-transform-name \
1026 | --program-transform-nam | --program-transform-na \
1027 | --program-transform-n | --program-transform- \
1028 | --program-transform | --program-transfor \
1029 | --program-transfo | --program-transf \
1030 | --program-trans | --program-tran \
1031 | --progr-tra | --program-tr | --program-t)
1032 ac_prev=program_transform_name ;;
1033 -program-transform-name=* | --program-transform-name=* \
1034 | --program-transform-nam=* | --program-transform-na=* \
1035 | --program-transform-n=* | --program-transform-=* \
1036 | --program-transform=* | --program-transfor=* \
1037 | --program-transfo=* | --program-transf=* \
1038 | --program-trans=* | --program-tran=* \
1039 | --progr-tra=* | --program-tr=* | --program-t=*)
1040 program_transform_name=$ac_optarg ;;
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043 ac_prev=pdfdir ;;
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 pdfdir=$ac_optarg ;;
1047 -psdir | --psdir | --psdi | --psd | --ps)
1048 ac_prev=psdir ;;
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 psdir=$ac_optarg ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1054 silent=yes ;;
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057 ac_prev=sbindir ;;
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059 | --sbi=* | --sb=*)
1060 sbindir=$ac_optarg ;;
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1065 | --sha | --sh)
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070 | --sha=* | --sh=*)
1071 sharedstatedir=$ac_optarg ;;
1073 -site | --site | --sit)
1074 ac_prev=site ;;
1075 -site=* | --site=* | --sit=*)
1076 site=$ac_optarg ;;
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079 ac_prev=srcdir ;;
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 verbose=yes ;;
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1101 -with-* | --with-*)
1102 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105 { echo "$as_me: error: invalid package name: $ac_package" >&2
1106 { (exit 1); exit 1; }; }
1107 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1108 eval with_$ac_package=\$ac_optarg ;;
1110 -without-* | --without-*)
1111 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114 { echo "$as_me: error: invalid package name: $ac_package" >&2
1115 { (exit 1); exit 1; }; }
1116 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1117 eval with_$ac_package=no ;;
1119 --x)
1120 # Obsolete; use --with-x.
1121 with_x=yes ;;
1123 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1124 | --x-incl | --x-inc | --x-in | --x-i)
1125 ac_prev=x_includes ;;
1126 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1127 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1128 x_includes=$ac_optarg ;;
1130 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1131 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1132 ac_prev=x_libraries ;;
1133 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1134 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1135 x_libraries=$ac_optarg ;;
1137 -*) { echo "$as_me: error: unrecognized option: $ac_option
1138 Try \`$0 --help' for more information." >&2
1139 { (exit 1); exit 1; }; }
1142 *=*)
1143 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1146 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1147 { (exit 1); exit 1; }; }
1148 eval $ac_envvar=\$ac_optarg
1149 export $ac_envvar ;;
1152 # FIXME: should be removed in autoconf 3.0.
1153 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1154 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1155 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1156 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1159 esac
1160 done
1162 if test -n "$ac_prev"; then
1163 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1164 { echo "$as_me: error: missing argument to $ac_option" >&2
1165 { (exit 1); exit 1; }; }
1168 # Be sure to have absolute directory names.
1169 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1170 datadir sysconfdir sharedstatedir localstatedir includedir \
1171 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1172 libdir localedir mandir
1174 eval ac_val=\$$ac_var
1175 case $ac_val in
1176 [\\/$]* | ?:[\\/]* ) continue;;
1177 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1178 esac
1179 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1180 { (exit 1); exit 1; }; }
1181 done
1183 # There might be people who depend on the old broken behavior: `$host'
1184 # used to hold the argument of --host etc.
1185 # FIXME: To remove some day.
1186 build=$build_alias
1187 host=$host_alias
1188 target=$target_alias
1190 # FIXME: To remove some day.
1191 if test "x$host_alias" != x; then
1192 if test "x$build_alias" = x; then
1193 cross_compiling=maybe
1194 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1195 If a cross compiler is detected then cross compile mode will be used." >&2
1196 elif test "x$build_alias" != "x$host_alias"; then
1197 cross_compiling=yes
1201 ac_tool_prefix=
1202 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1204 test "$silent" = yes && exec 6>/dev/null
1207 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1208 ac_ls_di=`ls -di .` &&
1209 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1210 { echo "$as_me: error: Working directory cannot be determined" >&2
1211 { (exit 1); exit 1; }; }
1212 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1213 { echo "$as_me: error: pwd does not report name of working directory" >&2
1214 { (exit 1); exit 1; }; }
1217 # Find the source files, if location was not specified.
1218 if test -z "$srcdir"; then
1219 ac_srcdir_defaulted=yes
1220 # Try the directory containing this script, then the parent directory.
1221 ac_confdir=`$as_dirname -- "$0" ||
1222 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1223 X"$0" : 'X\(//\)[^/]' \| \
1224 X"$0" : 'X\(//\)$' \| \
1225 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1226 echo X"$0" |
1227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1228 s//\1/
1231 /^X\(\/\/\)[^/].*/{
1232 s//\1/
1235 /^X\(\/\/\)$/{
1236 s//\1/
1239 /^X\(\/\).*/{
1240 s//\1/
1243 s/.*/./; q'`
1244 srcdir=$ac_confdir
1245 if test ! -r "$srcdir/$ac_unique_file"; then
1246 srcdir=..
1248 else
1249 ac_srcdir_defaulted=no
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1253 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1254 { (exit 1); exit 1; }; }
1256 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1257 ac_abs_confdir=`(
1258 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1259 { (exit 1); exit 1; }; }
1260 pwd)`
1261 # When building in place, set srcdir=.
1262 if test "$ac_abs_confdir" = "$ac_pwd"; then
1263 srcdir=.
1265 # Remove unnecessary trailing slashes from srcdir.
1266 # Double slashes in file names in object file debugging info
1267 # mess up M-x gdb in Emacs.
1268 case $srcdir in
1269 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270 esac
1271 for ac_var in $ac_precious_vars; do
1272 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_env_${ac_var}_value=\$${ac_var}
1274 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1276 done
1279 # Report the --help message.
1281 if test "$ac_init_help" = "long"; then
1282 # Omit some internal or obsolete options to make the list less imposing.
1283 # This message is too long to be a string in the A/UX 3.1 sh.
1284 cat <<_ACEOF
1285 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1287 Usage: $0 [OPTION]... [VAR=VALUE]...
1289 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290 VAR=VALUE. See below for descriptions of some of the useful variables.
1292 Defaults for the options are specified in brackets.
1294 Configuration:
1295 -h, --help display this help and exit
1296 --help=short display options specific to this package
1297 --help=recursive display the short help of all the included packages
1298 -V, --version display version information and exit
1299 -q, --quiet, --silent do not print \`checking...' messages
1300 --cache-file=FILE cache test results in FILE [disabled]
1301 -C, --config-cache alias for \`--cache-file=config.cache'
1302 -n, --no-create do not create output files
1303 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1305 Installation directories:
1306 --prefix=PREFIX install architecture-independent files in PREFIX
1307 [$ac_default_prefix]
1308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1309 [PREFIX]
1311 By default, \`make install' will install all the files in
1312 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1313 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314 for instance \`--prefix=\$HOME'.
1316 For better control, use the options below.
1318 Fine tuning of the installation directories:
1319 --bindir=DIR user executables [EPREFIX/bin]
1320 --sbindir=DIR system admin executables [EPREFIX/sbin]
1321 --libexecdir=DIR program executables [EPREFIX/libexec]
1322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1324 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1325 --libdir=DIR object code libraries [EPREFIX/lib]
1326 --includedir=DIR C header files [PREFIX/include]
1327 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1330 --infodir=DIR info documentation [DATAROOTDIR/info]
1331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1332 --mandir=DIR man documentation [DATAROOTDIR/man]
1333 --docdir=DIR documentation root [DATAROOTDIR/doc/c-library]
1334 --htmldir=DIR html documentation [DOCDIR]
1335 --dvidir=DIR dvi documentation [DOCDIR]
1336 --pdfdir=DIR pdf documentation [DOCDIR]
1337 --psdir=DIR ps documentation [DOCDIR]
1338 _ACEOF
1340 cat <<\_ACEOF
1342 System types:
1343 --build=BUILD configure for building on BUILD [guessed]
1344 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1345 _ACEOF
1348 if test -n "$ac_init_help"; then
1349 case $ac_init_help in
1350 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1351 esac
1352 cat <<\_ACEOF
1354 Optional Features:
1355 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1356 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1357 --disable-sanity-checks really do not use threads (should not be used except
1358 in special situations) [default=yes]
1359 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1360 [default=no]
1361 --enable-shared build shared library [default=yes if GNU ld & ELF]
1362 --enable-profile build profiled library [default=no]
1363 --enable-omitfp build undebuggable optimized library [default=no]
1364 --enable-bounded build with runtime bounds checking [default=no]
1365 --disable-versioning do not include versioning information in the library
1366 objects [default=yes if supported]
1367 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1368 [default=glibc default]
1369 --enable-stackguard-randomization
1370 initialize __stack_chk_guard canary with a random
1371 number at program start
1372 --enable-add-ons[=DIRS...]
1373 configure and build add-ons in DIR1,DIR2,... search
1374 for add-ons if no parameter given
1375 --disable-hidden-plt do not hide internal function calls to avoid PLT
1376 --enable-bind-now disable lazy relocations in DSOs
1377 --enable-static-nss build static NSS modules [default=no]
1378 --disable-force-install don't force installation of files from this package,
1379 even if they are older than the installed files
1380 --enable-kernel=VERSION compile for compatibility with kernel not older than
1381 VERSION
1382 --enable-all-warnings enable all useful warnings gcc can issue
1384 Optional Packages:
1385 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1386 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1387 --with-gd=DIR find libgd include dir and library with prefix DIR
1388 --with-gd-include=DIR find libgd include files in DIR
1389 --with-gd-lib=DIR find libgd library files in DIR
1390 --with-fp if using floating-point hardware [default=yes]
1391 --with-binutils=PATH specify location of binutils (as and ld)
1392 --with-elf if using the ELF object format
1393 --with-selinux if building with SELinux support
1394 --with-xcoff if using the XCOFF object format
1395 --without-cvs if CVS should not be used
1396 --with-headers=PATH location of system headers to use (for example
1397 /usr/src/linux/include) [default=compiler default]
1398 --with-tls enable support for TLS
1399 --without-__thread do not use TLS features even when supporting them
1400 --with-cpu=CPU select code for CPU variant
1402 Some influential environment variables:
1403 CC C compiler command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406 nonstandard directory <lib dir>
1407 LIBS libraries to pass to the linker, e.g. -l<library>
1408 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1409 you have headers in a nonstandard directory <include dir>
1410 CPP C preprocessor
1411 CXX C++ compiler command
1412 CXXFLAGS C++ compiler flags
1414 Use these variables to override the choices made by `configure' or to help
1415 it to find libraries and programs with nonstandard names/locations.
1417 Report bugs to <glibc>.
1418 _ACEOF
1419 ac_status=$?
1422 if test "$ac_init_help" = "recursive"; then
1423 # If there are subdirs, report their specific --help.
1424 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1425 test -d "$ac_dir" || continue
1426 ac_builddir=.
1428 case "$ac_dir" in
1429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1432 # A ".." for each directory in $ac_dir_suffix.
1433 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1434 case $ac_top_builddir_sub in
1435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437 esac ;;
1438 esac
1439 ac_abs_top_builddir=$ac_pwd
1440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441 # for backward compatibility:
1442 ac_top_builddir=$ac_top_build_prefix
1444 case $srcdir in
1445 .) # We are building in place.
1446 ac_srcdir=.
1447 ac_top_srcdir=$ac_top_builddir_sub
1448 ac_abs_top_srcdir=$ac_pwd ;;
1449 [\\/]* | ?:[\\/]* ) # Absolute name.
1450 ac_srcdir=$srcdir$ac_dir_suffix;
1451 ac_top_srcdir=$srcdir
1452 ac_abs_top_srcdir=$srcdir ;;
1453 *) # Relative name.
1454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455 ac_top_srcdir=$ac_top_build_prefix$srcdir
1456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457 esac
1458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1460 cd "$ac_dir" || { ac_status=$?; continue; }
1461 # Check for guested configure.
1462 if test -f "$ac_srcdir/configure.gnu"; then
1463 echo &&
1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465 elif test -f "$ac_srcdir/configure"; then
1466 echo &&
1467 $SHELL "$ac_srcdir/configure" --help=recursive
1468 else
1469 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470 fi || ac_status=$?
1471 cd "$ac_pwd" || { ac_status=$?; break; }
1472 done
1475 test -n "$ac_init_help" && exit $ac_status
1476 if $ac_init_version; then
1477 cat <<\_ACEOF
1478 GNU C Library configure (see version.h)
1479 generated by GNU Autoconf 2.61
1481 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1482 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1483 This configure script is free software; the Free Software Foundation
1484 gives unlimited permission to copy, distribute and modify it.
1485 _ACEOF
1486 exit
1488 cat >config.log <<_ACEOF
1489 This file contains any messages produced by compilers while
1490 running configure, to aid debugging if configure makes a mistake.
1492 It was created by GNU C Library $as_me (see version.h), which was
1493 generated by GNU Autoconf 2.61. Invocation command line was
1495 $ $0 $@
1497 _ACEOF
1498 exec 5>>config.log
1500 cat <<_ASUNAME
1501 ## --------- ##
1502 ## Platform. ##
1503 ## --------- ##
1505 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1506 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1507 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1508 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1509 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1511 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1512 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1514 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1515 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1516 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1517 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1518 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1519 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1520 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1522 _ASUNAME
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 for as_dir in $PATH
1527 IFS=$as_save_IFS
1528 test -z "$as_dir" && as_dir=.
1529 echo "PATH: $as_dir"
1530 done
1531 IFS=$as_save_IFS
1533 } >&5
1535 cat >&5 <<_ACEOF
1538 ## ----------- ##
1539 ## Core tests. ##
1540 ## ----------- ##
1542 _ACEOF
1545 # Keep a trace of the command line.
1546 # Strip out --no-create and --no-recursion so they do not pile up.
1547 # Strip out --silent because we don't want to record it for future runs.
1548 # Also quote any args containing shell meta-characters.
1549 # Make two passes to allow for proper duplicate-argument suppression.
1550 ac_configure_args=
1551 ac_configure_args0=
1552 ac_configure_args1=
1553 ac_must_keep_next=false
1554 for ac_pass in 1 2
1556 for ac_arg
1558 case $ac_arg in
1559 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1561 | -silent | --silent | --silen | --sile | --sil)
1562 continue ;;
1563 *\'*)
1564 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1565 esac
1566 case $ac_pass in
1567 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1569 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1570 if test $ac_must_keep_next = true; then
1571 ac_must_keep_next=false # Got value, back to normal.
1572 else
1573 case $ac_arg in
1574 *=* | --config-cache | -C | -disable-* | --disable-* \
1575 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1576 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1577 | -with-* | --with-* | -without-* | --without-* | --x)
1578 case "$ac_configure_args0 " in
1579 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1580 esac
1582 -* ) ac_must_keep_next=true ;;
1583 esac
1585 ac_configure_args="$ac_configure_args '$ac_arg'"
1587 esac
1588 done
1589 done
1590 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1591 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1593 # When interrupted or exit'd, cleanup temporary files, and complete
1594 # config.log. We remove comments because anyway the quotes in there
1595 # would cause problems or look ugly.
1596 # WARNING: Use '\'' to represent an apostrophe within the trap.
1597 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1598 trap 'exit_status=$?
1599 # Save into config.log some information that might help in debugging.
1601 echo
1603 cat <<\_ASBOX
1604 ## ---------------- ##
1605 ## Cache variables. ##
1606 ## ---------------- ##
1607 _ASBOX
1608 echo
1609 # The following way of writing the cache mishandles newlines in values,
1611 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1612 eval ac_val=\$$ac_var
1613 case $ac_val in #(
1614 *${as_nl}*)
1615 case $ac_var in #(
1616 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1617 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1618 esac
1619 case $ac_var in #(
1620 _ | IFS | as_nl) ;; #(
1621 *) $as_unset $ac_var ;;
1622 esac ;;
1623 esac
1624 done
1625 (set) 2>&1 |
1626 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1627 *${as_nl}ac_space=\ *)
1628 sed -n \
1629 "s/'\''/'\''\\\\'\'''\''/g;
1630 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1631 ;; #(
1633 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1635 esac |
1636 sort
1638 echo
1640 cat <<\_ASBOX
1641 ## ----------------- ##
1642 ## Output variables. ##
1643 ## ----------------- ##
1644 _ASBOX
1645 echo
1646 for ac_var in $ac_subst_vars
1648 eval ac_val=\$$ac_var
1649 case $ac_val in
1650 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1651 esac
1652 echo "$ac_var='\''$ac_val'\''"
1653 done | sort
1654 echo
1656 if test -n "$ac_subst_files"; then
1657 cat <<\_ASBOX
1658 ## ------------------- ##
1659 ## File substitutions. ##
1660 ## ------------------- ##
1661 _ASBOX
1662 echo
1663 for ac_var in $ac_subst_files
1665 eval ac_val=\$$ac_var
1666 case $ac_val in
1667 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1668 esac
1669 echo "$ac_var='\''$ac_val'\''"
1670 done | sort
1671 echo
1674 if test -s confdefs.h; then
1675 cat <<\_ASBOX
1676 ## ----------- ##
1677 ## confdefs.h. ##
1678 ## ----------- ##
1679 _ASBOX
1680 echo
1681 cat confdefs.h
1682 echo
1684 test "$ac_signal" != 0 &&
1685 echo "$as_me: caught signal $ac_signal"
1686 echo "$as_me: exit $exit_status"
1687 } >&5
1688 rm -f core *.core core.conftest.* &&
1689 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1690 exit $exit_status
1692 for ac_signal in 1 2 13 15; do
1693 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1694 done
1695 ac_signal=0
1697 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1698 rm -f -r conftest* confdefs.h
1700 # Predefined preprocessor variables.
1702 cat >>confdefs.h <<_ACEOF
1703 #define PACKAGE_NAME "$PACKAGE_NAME"
1704 _ACEOF
1707 cat >>confdefs.h <<_ACEOF
1708 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1709 _ACEOF
1712 cat >>confdefs.h <<_ACEOF
1713 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1714 _ACEOF
1717 cat >>confdefs.h <<_ACEOF
1718 #define PACKAGE_STRING "$PACKAGE_STRING"
1719 _ACEOF
1722 cat >>confdefs.h <<_ACEOF
1723 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1724 _ACEOF
1727 # Let the site file select an alternate cache file if it wants to.
1728 # Prefer explicitly selected file to automatically selected ones.
1729 if test -n "$CONFIG_SITE"; then
1730 set x "$CONFIG_SITE"
1731 elif test "x$prefix" != xNONE; then
1732 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1733 else
1734 set x "$ac_default_prefix/share/config.site" \
1735 "$ac_default_prefix/etc/config.site"
1737 shift
1738 for ac_site_file
1740 if test -r "$ac_site_file"; then
1741 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1742 echo "$as_me: loading site script $ac_site_file" >&6;}
1743 sed 's/^/| /' "$ac_site_file" >&5
1744 . "$ac_site_file"
1746 done
1748 if test -r "$cache_file"; then
1749 # Some versions of bash will fail to source /dev/null (special
1750 # files actually), so we avoid doing that.
1751 if test -f "$cache_file"; then
1752 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1753 echo "$as_me: loading cache $cache_file" >&6;}
1754 case $cache_file in
1755 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1756 *) . "./$cache_file";;
1757 esac
1759 else
1760 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1761 echo "$as_me: creating cache $cache_file" >&6;}
1762 >$cache_file
1765 # Check that the precious variables saved in the cache have kept the same
1766 # value.
1767 ac_cache_corrupted=false
1768 for ac_var in $ac_precious_vars; do
1769 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1770 eval ac_new_set=\$ac_env_${ac_var}_set
1771 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1772 eval ac_new_val=\$ac_env_${ac_var}_value
1773 case $ac_old_set,$ac_new_set in
1774 set,)
1775 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1776 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1777 ac_cache_corrupted=: ;;
1778 ,set)
1779 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1780 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1781 ac_cache_corrupted=: ;;
1782 ,);;
1784 if test "x$ac_old_val" != "x$ac_new_val"; then
1785 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1786 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1787 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1788 echo "$as_me: former value: $ac_old_val" >&2;}
1789 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1790 echo "$as_me: current value: $ac_new_val" >&2;}
1791 ac_cache_corrupted=:
1792 fi;;
1793 esac
1794 # Pass precious variables to config.status.
1795 if test "$ac_new_set" = set; then
1796 case $ac_new_val in
1797 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1798 *) ac_arg=$ac_var=$ac_new_val ;;
1799 esac
1800 case " $ac_configure_args " in
1801 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1802 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1803 esac
1805 done
1806 if $ac_cache_corrupted; then
1807 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1808 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1809 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1810 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1811 { (exit 1); exit 1; }; }
1838 ac_ext=c
1839 ac_cpp='$CPP $CPPFLAGS'
1840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1846 ac_config_headers="$ac_config_headers config.h"
1848 ac_aux_dir=
1849 for ac_dir in scripts "$srcdir"/scripts; do
1850 if test -f "$ac_dir/install-sh"; then
1851 ac_aux_dir=$ac_dir
1852 ac_install_sh="$ac_aux_dir/install-sh -c"
1853 break
1854 elif test -f "$ac_dir/install.sh"; then
1855 ac_aux_dir=$ac_dir
1856 ac_install_sh="$ac_aux_dir/install.sh -c"
1857 break
1858 elif test -f "$ac_dir/shtool"; then
1859 ac_aux_dir=$ac_dir
1860 ac_install_sh="$ac_aux_dir/shtool install -c"
1861 break
1863 done
1864 if test -z "$ac_aux_dir"; then
1865 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&5
1866 echo "$as_me: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&2;}
1867 { (exit 1); exit 1; }; }
1870 # These three variables are undocumented and unsupported,
1871 # and are intended to be withdrawn in a future Autoconf release.
1872 # They can cause serious problems if a builder's source tree is in a directory
1873 # whose full name contains unusual characters.
1874 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1875 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1876 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1880 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
1881 { { echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
1882 echo "$as_me: error: you must configure in a separate build directory" >&2;}
1883 { (exit 1); exit 1; }; }
1886 # This will get text that should go into config.make.
1887 config_vars=
1889 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
1891 # Check whether --with-gd was given.
1892 if test "${with_gd+set}" = set; then
1893 withval=$with_gd; case "$with_gd" in
1894 yes|''|no) ;;
1895 *) libgd_include="-I$withval/include"
1896 libgd_ldflags="-L$withval/lib" ;;
1897 esac
1902 # Check whether --with-gd-include was given.
1903 if test "${with_gd_include+set}" = set; then
1904 withval=$with_gd_include; case "$with_gd_include" in
1905 ''|no) ;;
1906 *) libgd_include="-I$withval" ;;
1907 esac
1912 # Check whether --with-gd-lib was given.
1913 if test "${with_gd_lib+set}" = set; then
1914 withval=$with_gd_lib; case "$with_gd_lib" in
1915 ''|no) ;;
1916 *) libgd_ldflags="-L$withval" ;;
1917 esac
1922 if test -n "$libgd_include"; then
1923 config_vars="$config_vars
1924 CFLAGS-memusagestat.c = $libgd_include"
1926 if test -n "$libgd_ldflags"; then
1927 config_vars="$config_vars
1928 libgd-LDFLAGS = $libgd_ldflags"
1932 # Check whether --with-fp was given.
1933 if test "${with_fp+set}" = set; then
1934 withval=$with_fp; with_fp=$withval
1935 else
1936 with_fp=yes
1941 # Check whether --with-binutils was given.
1942 if test "${with_binutils+set}" = set; then
1943 withval=$with_binutils; path_binutils=$withval
1944 else
1945 path_binutils=''
1949 # Check whether --with-elf was given.
1950 if test "${with_elf+set}" = set; then
1951 withval=$with_elf; elf=$withval
1952 else
1953 elf=no
1957 # Check whether --with-selinux was given.
1958 if test "${with_selinux+set}" = set; then
1959 withval=$with_selinux; with_selinux=$withval
1960 else
1961 with_selinux=auto
1965 # Check whether --with-xcoff was given.
1966 if test "${with_xcoff+set}" = set; then
1967 withval=$with_xcoff; xcoff=$withval
1968 else
1969 xcoff=no
1973 # Check whether --with-cvs was given.
1974 if test "${with_cvs+set}" = set; then
1975 withval=$with_cvs; with_cvs=$withval
1976 else
1977 with_cvs=yes
1980 if test "$with_cvs" = yes; then
1981 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
1982 then
1983 with_cvs=no
1989 # Check whether --with-headers was given.
1990 if test "${with_headers+set}" = set; then
1991 withval=$with_headers; sysheaders=$withval
1992 else
1993 sysheaders=''
1997 # Check whether --enable-sanity-checks was given.
1998 if test "${enable_sanity_checks+set}" = set; then
1999 enableval=$enable_sanity_checks; enable_sanity=$enableval
2000 else
2001 enable_sanity=yes
2006 # Check whether --enable-check-abi was given.
2007 if test "${enable_check_abi+set}" = set; then
2008 enableval=$enable_check_abi; enable_check_abi=$enableval
2009 else
2010 enable_check_abi=no
2014 static=yes
2015 # Check whether --enable-shared was given.
2016 if test "${enable_shared+set}" = set; then
2017 enableval=$enable_shared; shared=$enableval
2018 else
2019 shared=default
2022 # Check whether --enable-profile was given.
2023 if test "${enable_profile+set}" = set; then
2024 enableval=$enable_profile; profile=$enableval
2025 else
2026 profile=no
2029 # Check whether --enable-omitfp was given.
2030 if test "${enable_omitfp+set}" = set; then
2031 enableval=$enable_omitfp; omitfp=$enableval
2032 else
2033 omitfp=no
2036 # Check whether --enable-bounded was given.
2037 if test "${enable_bounded+set}" = set; then
2038 enableval=$enable_bounded; bounded=$enableval
2039 else
2040 bounded=no
2043 # Check whether --enable-versioning was given.
2044 if test "${enable_versioning+set}" = set; then
2045 enableval=$enable_versioning; enable_versioning=$enableval
2046 else
2047 enable_versioning=yes
2051 # Check whether --enable-oldest-abi was given.
2052 if test "${enable_oldest_abi+set}" = set; then
2053 enableval=$enable_oldest_abi; oldest_abi=$enableval
2054 else
2055 oldest_abi=no
2058 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
2059 oldest_abi=default
2060 else
2061 cat >>confdefs.h <<_ACEOF
2062 #define GLIBC_OLDEST_ABI "$oldest_abi"
2063 _ACEOF
2068 # Check whether --enable-stackguard-randomization was given.
2069 if test "${enable_stackguard_randomization+set}" = set; then
2070 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
2071 else
2072 enable_stackguard_randomize=no
2075 if test "$enable_stackguard_randomize" = yes; then
2076 cat >>confdefs.h <<\_ACEOF
2077 #define ENABLE_STACKGUARD_RANDOMIZE 1
2078 _ACEOF
2082 # Check whether --enable-add-ons was given.
2083 if test "${enable_add_ons+set}" = set; then
2084 enableval=$enable_add_ons;
2085 else
2086 enable_add_ons=yes
2091 # Check whether --with-tls was given.
2092 if test "${with_tls+set}" = set; then
2093 withval=$with_tls; usetls=$withval
2094 else
2095 usetls=yes
2100 # Check whether --with-__thread was given.
2101 if test "${with___thread+set}" = set; then
2102 withval=$with___thread; use__thread=$withval
2103 else
2104 use__thread=yes
2108 # Check whether --enable-hidden-plt was given.
2109 if test "${enable_hidden_plt+set}" = set; then
2110 enableval=$enable_hidden_plt; hidden=$enableval
2111 else
2112 hidden=yes
2115 if test "x$hidden" = xno; then
2116 cat >>confdefs.h <<\_ACEOF
2117 #define NO_HIDDEN 1
2118 _ACEOF
2122 # Check whether --enable-bind-now was given.
2123 if test "${enable_bind_now+set}" = set; then
2124 enableval=$enable_bind_now; bindnow=$enableval
2125 else
2126 bindnow=no
2131 # Check whether --enable-static-nss was given.
2132 if test "${enable_static_nss+set}" = set; then
2133 enableval=$enable_static_nss; static_nss=$enableval
2134 else
2135 static_nss=no
2138 if test x"$static_nss" = xyes || test x"$shared" = xno; then
2139 static_nss=yes
2140 cat >>confdefs.h <<\_ACEOF
2141 #define DO_STATIC_NSS 1
2142 _ACEOF
2146 # Check whether --enable-force-install was given.
2147 if test "${enable_force_install+set}" = set; then
2148 enableval=$enable_force_install; force_install=$enableval
2149 else
2150 force_install=yes
2155 # Check whether --enable-kernel was given.
2156 if test "${enable_kernel+set}" = set; then
2157 enableval=$enable_kernel; minimum_kernel=$enableval
2160 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
2161 # Better nothing than this.
2162 minimum_kernel=""
2163 else
2164 if test "$minimum_kernel" = current; then
2165 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
2169 # Check whether --enable-all-warnings was given.
2170 if test "${enable_all_warnings+set}" = set; then
2171 enableval=$enable_all_warnings; all_warnings=$enableval
2176 subdirs="$subdirs "
2179 # Make sure we can run config.sub.
2180 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2181 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2182 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2183 { (exit 1); exit 1; }; }
2185 { echo "$as_me:$LINENO: checking build system type" >&5
2186 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2187 if test "${ac_cv_build+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2189 else
2190 ac_build_alias=$build_alias
2191 test "x$ac_build_alias" = x &&
2192 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2193 test "x$ac_build_alias" = x &&
2194 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2195 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2196 { (exit 1); exit 1; }; }
2197 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2198 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2199 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2200 { (exit 1); exit 1; }; }
2203 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2204 echo "${ECHO_T}$ac_cv_build" >&6; }
2205 case $ac_cv_build in
2206 *-*-*) ;;
2207 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2208 echo "$as_me: error: invalid value of canonical build" >&2;}
2209 { (exit 1); exit 1; }; };;
2210 esac
2211 build=$ac_cv_build
2212 ac_save_IFS=$IFS; IFS='-'
2213 set x $ac_cv_build
2214 shift
2215 build_cpu=$1
2216 build_vendor=$2
2217 shift; shift
2218 # Remember, the first character of IFS is used to create $*,
2219 # except with old shells:
2220 build_os=$*
2221 IFS=$ac_save_IFS
2222 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2225 { echo "$as_me:$LINENO: checking host system type" >&5
2226 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2227 if test "${ac_cv_host+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230 if test "x$host_alias" = x; then
2231 ac_cv_host=$ac_cv_build
2232 else
2233 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2234 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2235 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2236 { (exit 1); exit 1; }; }
2240 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2241 echo "${ECHO_T}$ac_cv_host" >&6; }
2242 case $ac_cv_host in
2243 *-*-*) ;;
2244 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2245 echo "$as_me: error: invalid value of canonical host" >&2;}
2246 { (exit 1); exit 1; }; };;
2247 esac
2248 host=$ac_cv_host
2249 ac_save_IFS=$IFS; IFS='-'
2250 set x $ac_cv_host
2251 shift
2252 host_cpu=$1
2253 host_vendor=$2
2254 shift; shift
2255 # Remember, the first character of IFS is used to create $*,
2256 # except with old shells:
2257 host_os=$*
2258 IFS=$ac_save_IFS
2259 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2263 # The way shlib-versions is used to generate soversions.mk uses a
2264 # fairly simplistic model for name recognition that can't distinguish
2265 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
2266 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
2267 # tell. This doesn't get used much beyond that, so it's fairly safe.
2268 case "$host_os" in
2269 linux*)
2271 gnu*)
2272 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
2274 esac
2276 # We keep the original values in `$config_*' and never modify them, so we
2277 # can write them unchanged into config.make. Everything else uses
2278 # $machine, $vendor, and $os, and changes them whenever convenient.
2279 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
2281 # Don't allow vendor == "unknown"
2282 test "$config_vendor" = unknown && config_vendor=
2283 config_os="`echo $config_os | sed 's/^unknown-//'`"
2285 # Some configurations imply other options.
2286 case "$host_os" in
2287 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
2288 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
2290 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
2291 # These systems (almost) always use the ELF format.
2292 elf=yes
2294 aix*)
2295 # These systems are always xcoff
2296 xcoff=yes
2297 elf=no
2299 esac
2301 # The configure fragment of an add-on port can modify these to supplement
2302 # or override the table in the case statement below. No fragment should
2303 # ever change the config_* variables, however.
2304 machine=$config_machine
2305 vendor=$config_vendor
2306 os=$config_os
2307 base_os=''
2309 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
2310 # Unify this here.
2311 if test "$machine" = rs6000; then
2312 machine="powerpc"
2315 # Braindead PowerPC box with absolutely no FPU.
2316 case "$machine-$host_os" in
2317 powerpc*-*soft)
2318 with_fp=no
2320 esac
2322 submachine=
2324 # Check whether --with-cpu was given.
2325 if test "${with_cpu+set}" = set; then
2326 withval=$with_cpu; case "$withval" in
2327 yes|'') { { echo "$as_me:$LINENO: error: --with-cpu requires an argument" >&5
2328 echo "$as_me: error: --with-cpu requires an argument" >&2;}
2329 { (exit 1); exit 1; }; } ;;
2330 no) ;;
2331 *) submachine="$withval" ;;
2332 esac
2337 # An add-on can set this when it wants to disable the sanity check below.
2338 libc_config_ok=no
2340 subdirs="$subdirs "
2343 case "$enable_add_ons" in
2344 ''|no) add_ons= ;;
2345 yes|'*')
2346 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
2347 sed 's@/[^/]*$@@' | sort | uniq`
2348 add_ons_automatic=yes
2350 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
2351 add_ons_automatic=no ;;
2352 esac
2354 configured_add_ons=
2355 add_ons_sfx=
2356 add_ons_pfx=
2357 if test x"$add_ons" != x; then
2358 for f in $add_ons; do
2359 # Some sanity checks
2360 case "$f" in
2361 crypt)
2362 { { echo "$as_me:$LINENO: error:
2363 *** It seems that you're using an old \`crypt' add-on. crypt is now
2364 *** part of glibc and using the old add-on will not work with this
2365 *** release. Start again with fresh sources and without the old
2366 *** \`crypt' add-on." >&5
2367 echo "$as_me: error:
2368 *** It seems that you're using an old \`crypt' add-on. crypt is now
2369 *** part of glibc and using the old add-on will not work with this
2370 *** release. Start again with fresh sources and without the old
2371 *** \`crypt' add-on." >&2;}
2372 { (exit 1); exit 1; }; }
2374 localedata)
2375 { { echo "$as_me:$LINENO: error:
2376 *** It seems that you're using an old \`localedata' add-on. localedata
2377 *** is now part of glibc and using the old add-on will not work with
2378 *** this release. Start again with fresh sources and without the old
2379 *** \`localedata' add-on." >&5
2380 echo "$as_me: error:
2381 *** It seems that you're using an old \`localedata' add-on. localedata
2382 *** is now part of glibc and using the old add-on will not work with
2383 *** this release. Start again with fresh sources and without the old
2384 *** \`localedata' add-on." >&2;}
2385 { (exit 1); exit 1; }; }
2387 esac
2388 done
2390 # Now source each add-on's configure fragment.
2391 # The fragments can use $srcdir/$libc_add_on to find themselves,
2392 # and test $add_ons_automatic to see if they were explicitly requested.
2393 # A fragment can clear (or even change) $libc_add_on to affect
2394 # whether it goes into the list to be actually used in the build.
2395 use_add_ons=
2396 for libc_add_on in $add_ons; do
2397 # Test whether such a directory really exists.
2398 # It can be absolute, or relative to $srcdir, or relative to the build dir.
2399 case "$libc_add_on" in
2401 libc_add_on_srcdir=$libc_add_on
2404 test -d "$srcdir/$libc_add_on" || {
2405 if test -d "$libc_add_on"; then
2406 libc_add_on="`pwd`/$libc_add_on"
2407 else
2408 { { echo "$as_me:$LINENO: error: add-on directory \"$libc_add_on\" does not exist" >&5
2409 echo "$as_me: error: add-on directory \"$libc_add_on\" does not exist" >&2;}
2410 { (exit 1); exit 1; }; }
2413 libc_add_on_srcdir=$srcdir/$libc_add_on
2415 esac
2417 libc_add_on_frag=$libc_add_on_srcdir/configure
2418 libc_add_on_canonical=
2419 libc_add_on_config_subdirs=
2420 if test -r "$libc_add_on_frag"; then
2421 { echo "$as_me:$LINENO: running configure fragment for add-on $libc_add_on" >&5
2422 echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
2423 libc_add_on_canonical=unknown
2424 libc_add_on_subdirs=
2425 . "$libc_add_on_frag"
2426 test -z "$libc_add_on" || {
2427 configured_add_ons="$configured_add_ons $libc_add_on"
2428 if test "x$libc_add_on_canonical" = xunknown; then
2429 { { echo "$as_me:$LINENO: error: fragment must set \$libc_add_on_canonical" >&5
2430 echo "$as_me: error: fragment must set \$libc_add_on_canonical" >&2;}
2431 { (exit 1); exit 1; }; }
2433 for d in $libc_add_on_subdirs; do
2434 case "$libc_add_on" in
2435 /*) subdir_srcdir="$libc_add_on" ;;
2436 *) subdir_srcdir="\$(..)$libc_add_on" ;;
2437 esac
2438 case "$d" in
2440 d="${libc_add_on_canonical:-$libc_add_on}"
2443 subdir_srcdir="$d"
2446 subdir_srcdir="$subdir_srcdir/$d"
2448 esac
2449 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
2450 add_on_subdirs="$add_on_subdirs $d"
2451 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
2452 $d-srcdir = $subdir_srcdir"
2453 done
2454 for d in $libc_add_on_config_subdirs; do
2455 case "$d" in
2456 /*) { { echo "$as_me:$LINENO: error: fragment uses absolute path in \$libc_add_on_config_subdirs" >&5
2457 echo "$as_me: error: fragment uses absolute path in \$libc_add_on_config_subdirs" >&2;}
2458 { (exit 1); exit 1; }; } ;;
2459 esac
2460 if test ! -d "$libc_add_on_srcdir/$d"; then
2461 { { echo "$as_me:$LINENO: error: fragment wants to configure missing directory $d" >&5
2462 echo "$as_me: error: fragment wants to configure missing directory $d" >&2;}
2463 { (exit 1); exit 1; }; }
2465 case "$libc_add_on" in
2466 /*) { { echo "$as_me:$LINENO: error: relative path required for add-on using \$libc_add_on_config_subdirs" >&5
2467 echo "$as_me: error: relative path required for add-on using \$libc_add_on_config_subdirs" >&2;}
2468 { (exit 1); exit 1; }; } ;;
2469 esac
2470 subdirs="$subdirs $libc_add_on/$d"
2471 done
2474 if test -n "$libc_add_on"; then
2475 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
2476 then
2477 { echo "$as_me:$LINENO: checking add-on $libc_add_on for preconfigure fragments" >&5
2478 echo $ECHO_N "checking add-on $libc_add_on for preconfigure fragments... $ECHO_C" >&6; }
2479 for frag in $frags; do
2480 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
2481 echo $ECHO_N "$name $ECHO_C" >&6
2482 . "$frag"
2483 done
2484 { echo "$as_me:$LINENO: result: " >&5
2485 echo "${ECHO_T}" >&6; }
2487 use_add_ons="$use_add_ons $libc_add_on"
2488 add_ons_pfx="$add_ons_pfx $libc_add_on/"
2489 test -z "$libc_add_on_canonical" ||
2490 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
2492 done
2493 # Use echo to strip excess whitespace.
2494 add_ons="`echo $use_add_ons`"
2501 ### I put this here to prevent those annoying emails from people who cannot
2502 ### read and try to compile glibc on unsupported platforms. --drepper
2504 ### By using the undocumented --enable-hacker-mode option for configure
2505 ### one can skip this test to make the configuration not fail for unsupported
2506 ### platforms.
2508 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
2509 case "$machine-$host_os" in
2510 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
2513 echo "*** The GNU C library is currently not available for this platform."
2514 echo "*** So far nobody cared to port it and if there is no volunteer it"
2515 echo "*** might never happen. So, if you have interest to see glibc on"
2516 echo "*** this platform visit"
2517 echo "*** http://www.gnu.org/software/libc/porting.html"
2518 echo "*** and join the group of porters"
2519 exit 1
2521 esac
2524 # Expand the configuration machine name into a subdirectory by architecture
2525 # type and particular chip. If an add-on configure fragment already set
2526 # base_machine, we don't change it.
2527 test -n "$base_machine" || case "$machine" in
2528 a29k | am29000) base_machine=a29k machine=a29k ;;
2529 alpha*) base_machine=alpha machine=alpha/$machine ;;
2530 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
2531 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
2532 i[34567]86) base_machine=i386 machine=i386/$machine ;;
2533 ia64) base_machine=ia64 machine=ia64 ;;
2534 m88???) base_machine=m88k machine=m88k/$machine ;;
2535 m88k) base_machine=m88k machine=m88k/m88100 ;;
2536 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
2537 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
2538 s390) base_machine=s390 machine=s390/s390-32 ;;
2539 s390x) base_machine=s390 machine=s390/s390-64 ;;
2540 sh3*) base_machine=sh machine=sh/sh3 ;;
2541 sh4*) base_machine=sh machine=sh/sh4 ;;
2542 sparc | sparcv[67])
2543 base_machine=sparc machine=sparc/sparc32 ;;
2544 sparcv8 | supersparc | hypersparc)
2545 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
2546 sparcv8plus | sparcv8plusa | sparcv9)
2547 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
2548 sparcv8plusb | sparcv9b)
2549 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
2550 sparcv9v)
2551 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
2552 sparcv9v2)
2553 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
2554 sparc64)
2555 base_machine=sparc machine=sparc/sparc64 ;;
2556 sparc64b)
2557 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
2558 sparc64v)
2559 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
2560 sparc64v2)
2561 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
2562 *) base_machine=$machine ;;
2563 esac
2566 if test "$base_machine" = "i386"; then
2567 cat >>confdefs.h <<\_ACEOF
2568 #define USE_REGPARMS 1
2569 _ACEOF
2573 # Compute the list of sysdep directories for this configuration.
2574 # This can take a while to compute.
2575 sysdep_dir=$srcdir/sysdeps
2576 { echo "$as_me:$LINENO: checking sysdep dirs" >&5
2577 echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6; }
2578 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
2579 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
2581 test "x$base_os" != x || case "$os" in
2582 gnu*)
2583 base_os=mach/hurd ;;
2584 netbsd* | 386bsd* | freebsd* | bsdi*)
2585 base_os=unix/bsd/bsd4.4 ;;
2586 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
2587 base_os=unix/bsd ;;
2588 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
2589 base_os=unix/sysv ;;
2590 irix6*)
2591 base_os=unix/sysv/irix6/$os ;;
2592 solaris[2-9]*)
2593 base_os=unix/sysv/sysv4 ;;
2594 hpux*)
2595 base_os=unix/sysv/hpux/$os ;;
2596 aix4.3*)
2597 base_os=unix/sysv/aix/aix4.3 ;;
2598 none)
2599 base_os=standalone ;;
2600 esac
2602 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
2603 tail=$os
2604 ostry=$os
2605 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
2606 ostry="$ostry /$o"
2607 tail=$o
2608 done
2609 o=`echo $tail | sed 's/[0-9]*$//'`
2610 if test $o != $tail; then
2611 ostry="$ostry /$o"
2613 # For linux-gnu, try linux-gnu, then linux.
2614 o=`echo $tail | sed 's/-.*$//'`
2615 if test $o != $tail; then
2616 ostry="$ostry /$o"
2619 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
2620 base=
2621 tail=$base_os
2622 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
2623 set $b
2624 base="$base /$1"
2625 tail="$2"
2626 done
2628 # For sparc/sparc32, try sparc/sparc32 and then sparc.
2629 mach=
2630 tail=$machine${submachine:+/$submachine}
2631 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
2632 set $m
2633 # Prepend the machine's FPU directory unless --without-fp.
2634 if test "$with_fp" = yes; then
2635 mach="$mach /$1/fpu"
2636 else
2637 mach="$mach /$1/nofpu"
2639 mach="$mach /$1"
2640 tail="$2"
2641 done
2644 # Find what sysdep directories exist.
2645 sysnames_add_ons=
2646 sysnames=
2647 for b in $base ''; do
2648 for m0 in $mach ''; do
2649 for v in /$vendor ''; do
2650 test "$v" = / && continue
2651 for o in /$ostry ''; do
2652 test "$o" = / && continue
2653 for m in $mach ''; do
2654 for d in $add_ons_pfx ''; do
2655 for a in $add_ons_sfx ''; do
2656 if test -n "$m0$m0sub$b$v$o$m$msub"; then
2657 try_srcdir="${srcdir}/"
2658 case "$d" in
2659 /*) try_srcdir= ;;
2660 esac
2661 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
2662 test -n "$enable_debug_configure" &&
2663 echo "$0 DEBUG: try $try" >&2
2664 if test -d "$try_srcdir$try"; then
2665 sysnames="$sysnames $try"
2666 { test -n "$o" || test -n "$b"; } && os_used=t
2667 { test -n "$m" || test -n "$m0"; } && machine_used=t
2668 case x${m0:-$m} in
2669 x*/$submachine) submachine_used=t ;;
2670 esac
2671 if test -n "$d"; then
2672 case "$sysnames_add_ons" in
2673 *" $d "*) ;;
2674 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
2675 esac
2679 done
2680 done
2681 done
2682 done
2683 done
2684 done
2685 done
2687 if test -z "$os_used" && test "$os" != none; then
2688 { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
2689 echo "$as_me: error: Operating system $os is not supported." >&2;}
2690 { (exit 1); exit 1; }; }
2692 if test -z "$machine_used" && test "$machine" != none; then
2693 { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
2694 echo "$as_me: error: The $machine is not supported." >&2;}
2695 { (exit 1); exit 1; }; }
2697 if test -z "$submachine_used" && test -n "$submachine"; then
2698 { { echo "$as_me:$LINENO: error: The $submachine subspecies of $host_cpu is not supported." >&5
2699 echo "$as_me: error: The $submachine subspecies of $host_cpu is not supported." >&2;}
2700 { (exit 1); exit 1; }; }
2704 # We have now validated the configuration.
2707 # If using ELF, look for an `elf' subdirectory of each machine directory.
2708 # We prepend these rather than inserting them whereever the machine appears
2709 # because things specified by the machine's ELF ABI should override
2710 # OS-specific things, and should always be the same for any OS on the
2711 # machine (otherwise what's the point of an ABI?).
2712 if test "$elf" = yes; then
2713 elf_dirs=
2714 for d in $add_ons_pfx ''; do
2715 for m in $mach; do
2716 if test -d $srcdir/${d}sysdeps$m/elf; then
2717 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
2719 done
2720 done
2721 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
2725 # Expand the list of system names into a full list of directories
2726 # from each element's parent name and Implies file (if present).
2727 set $sysnames
2728 names=
2729 while test $# -gt 0; do
2730 name=$1
2731 shift
2733 case " $names " in *" $name "*)
2734 # Already in the list.
2735 continue
2736 esac
2738 # Report each name as we discover it, so there is no long pause in output.
2739 echo $ECHO_N "$name $ECHO_C" >&6
2741 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
2743 case $name in
2744 /*) xsrcdir= ;;
2745 *) xsrcdir=$srcdir/ ;;
2746 esac
2747 test -n "$enable_debug_configure" &&
2748 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
2750 if test -f $xsrcdir$name/Implies; then
2751 # Collect more names from the `Implies' file (removing comments).
2752 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
2753 implied=
2754 for x in $implied_candidate; do
2755 found=no
2756 if test -d $xsrcdir$name_base/$x; then
2757 implied="$implied $name_base/$x";
2758 found=yes
2760 for d in $add_ons_pfx ''; do
2761 try="${d}sysdeps/$x"
2762 case $d in
2763 /*) try_srcdir= ;;
2764 *) try_srcdir=$srcdir/ ;;
2765 esac
2766 test -n "$enable_debug_configure" &&
2767 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
2768 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
2769 then
2770 implied="$implied $try"
2771 found=yes
2772 case "$sysnames_add_ons" in
2773 *" $d "*) ;;
2774 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
2775 esac
2777 done
2778 if test $found = no; then
2779 { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
2780 echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
2782 done
2783 else
2784 implied=
2787 # Add NAME to the list of names.
2788 names="$names $name"
2790 # Find the parent of NAME, using the empty string if it has none.
2791 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
2793 # Add the names implied by NAME, and NAME's parent (if it has one), to
2794 # the list of names to be processed (the argument list). We prepend the
2795 # implied names to the list and append the parent. We want implied
2796 # directories to come before further directories inferred from the
2797 # configuration components; this ensures that for sysv4, unix/common
2798 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
2799 # after sysv4).
2800 sysnames="`echo $implied $* $parent`"
2801 test -n "$sysnames" && set $sysnames
2802 done
2804 # Add the default directories.
2805 default_sysnames=sysdeps/generic
2806 if test "$elf" = yes; then
2807 default_sysnames="sysdeps/generic/elf $default_sysnames"
2809 sysnames="$names $default_sysnames"
2811 # The other names were emitted during the scan.
2812 { echo "$as_me:$LINENO: result: $default_sysnames" >&5
2813 echo "${ECHO_T}$default_sysnames" >&6; }
2815 # Collect the list of add-ons that supply partial sysdeps trees.
2816 sysdeps_add_ons=
2817 for add_on in $add_ons; do
2818 case "$add_on" in
2819 /*) xsrcdir= ;;
2820 *) xsrcdir="$srcdir/" ;;
2821 esac
2823 test -d "$xsrcdir$add_on/sysdeps" || {
2824 case "$configured_add_ons " in
2825 *" $add_on "*) ;;
2826 *|'')
2827 { { echo "$as_me:$LINENO: error: add-on $add_on has no configure fragment or sysdeps tree" >&5
2828 echo "$as_me: error: add-on $add_on has no configure fragment or sysdeps tree" >&2;}
2829 { (exit 1); exit 1; }; }
2831 esac
2832 continue
2835 sysdeps_add_ons="$sysdeps_add_ons $add_on"
2836 case "$sysnames_add_ons" in
2837 *" $add_on/ "*) ;;
2838 *|'')
2839 { echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no sysdeps directories" >&5
2840 echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
2841 continue ;;
2842 esac
2844 found=no
2845 for d in $sysnames; do
2846 case "$d" in
2847 $add_on/sysdeps/*) ;;
2848 *) continue ;;
2849 esac
2850 (cd "$xsrcdir$d" && for f in *[!~]; do
2851 case "$f" in
2852 sys|bits)
2853 for ff in $f/*.h; do
2854 test -d "$ff" || { test -e "$ff" && exit 88; }
2855 done
2858 test -d "$f" || { test -e "$f" && exit 88; }
2860 esac
2861 done)
2862 if test $? -eq 88; then
2863 found=yes
2864 break
2866 done
2867 if test $found = no; then
2868 { echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
2869 echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
2871 done
2875 ### Locate tools.
2877 # Find a good install program. We prefer a C program (faster),
2878 # so one script is as good as another. But avoid the broken or
2879 # incompatible versions:
2880 # SysV /etc/install, /usr/sbin/install
2881 # SunOS /usr/etc/install
2882 # IRIX /sbin/install
2883 # AIX /bin/install
2884 # AmigaOS /C/install, which installs bootblocks on floppy discs
2885 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2886 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2887 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2888 # OS/2's system install, which has a completely different semantic
2889 # ./install, which can be erroneously created by make from ./install.sh.
2890 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2891 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2892 if test -z "$INSTALL"; then
2893 if test "${ac_cv_path_install+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2899 IFS=$as_save_IFS
2900 test -z "$as_dir" && as_dir=.
2901 # Account for people who put trailing slashes in PATH elements.
2902 case $as_dir/ in
2903 ./ | .// | /cC/* | \
2904 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2905 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2906 /usr/ucb/* ) ;;
2908 # OSF1 and SCO ODT 3.0 have their own names for install.
2909 # Don't use installbsd from OSF since it installs stuff as root
2910 # by default.
2911 for ac_prog in ginstall scoinst install; do
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2914 if test $ac_prog = install &&
2915 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2916 # AIX install. It has an incompatible calling convention.
2918 elif test $ac_prog = install &&
2919 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2920 # program-specific install script used by HP pwplus--don't use.
2922 else
2923 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2924 break 3
2927 done
2928 done
2930 esac
2931 done
2932 IFS=$as_save_IFS
2936 if test "${ac_cv_path_install+set}" = set; then
2937 INSTALL=$ac_cv_path_install
2938 else
2939 # As a last resort, use the slow shell script. Don't cache a
2940 # value for INSTALL within a source directory, because that will
2941 # break other packages using the cache if that directory is
2942 # removed, or if the value is a relative name.
2943 INSTALL=$ac_install_sh
2946 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2947 echo "${ECHO_T}$INSTALL" >&6; }
2949 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2950 # It thinks the first close brace ends the variable substitution.
2951 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2953 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2955 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2957 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
2958 # The makefiles need to use a different form to find it in $srcdir.
2959 INSTALL='\$(..)./scripts/install-sh -c'
2961 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
2962 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2963 LN_S=$as_ln_s
2964 if test "$LN_S" = "ln -s"; then
2965 { echo "$as_me:$LINENO: result: yes" >&5
2966 echo "${ECHO_T}yes" >&6; }
2967 else
2968 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2969 echo "${ECHO_T}no, using $LN_S" >&6; }
2973 ac_ext=c
2974 ac_cpp='$CPP $CPPFLAGS'
2975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978 if test -n "$ac_tool_prefix"; then
2979 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2980 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC="$CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
3000 done
3001 done
3002 IFS=$as_save_IFS
3006 CC=$ac_cv_prog_CC
3007 if test -n "$CC"; then
3008 { echo "$as_me:$LINENO: result: $CC" >&5
3009 echo "${ECHO_T}$CC" >&6; }
3010 else
3011 { echo "$as_me:$LINENO: result: no" >&5
3012 echo "${ECHO_T}no" >&6; }
3017 if test -z "$ac_cv_prog_CC"; then
3018 ac_ct_CC=$CC
3019 # Extract the first word of "gcc", so it can be a program name with args.
3020 set dummy gcc; ac_word=$2
3021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3023 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026 if test -n "$ac_ct_CC"; then
3027 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036 ac_cv_prog_ac_ct_CC="gcc"
3037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3040 done
3041 done
3042 IFS=$as_save_IFS
3046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3047 if test -n "$ac_ct_CC"; then
3048 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3049 echo "${ECHO_T}$ac_ct_CC" >&6; }
3050 else
3051 { echo "$as_me:$LINENO: result: no" >&5
3052 echo "${ECHO_T}no" >&6; }
3055 if test "x$ac_ct_CC" = x; then
3056 CC=""
3057 else
3058 case $cross_compiling:$ac_tool_warned in
3059 yes:)
3060 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3061 whose name does not start with the host triplet. If you think this
3062 configuration is useful to you, please write to autoconf@gnu.org." >&5
3063 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3064 whose name does not start with the host triplet. If you think this
3065 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3066 ac_tool_warned=yes ;;
3067 esac
3068 CC=$ac_ct_CC
3070 else
3071 CC="$ac_cv_prog_CC"
3074 if test -z "$CC"; then
3075 if test -n "$ac_tool_prefix"; then
3076 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3077 set dummy ${ac_tool_prefix}cc; ac_word=$2
3078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3080 if test "${ac_cv_prog_CC+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083 if test -n "$CC"; then
3084 ac_cv_prog_CC="$CC" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3089 IFS=$as_save_IFS
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093 ac_cv_prog_CC="${ac_tool_prefix}cc"
3094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 break 2
3097 done
3098 done
3099 IFS=$as_save_IFS
3103 CC=$ac_cv_prog_CC
3104 if test -n "$CC"; then
3105 { echo "$as_me:$LINENO: result: $CC" >&5
3106 echo "${ECHO_T}$CC" >&6; }
3107 else
3108 { echo "$as_me:$LINENO: result: no" >&5
3109 echo "${ECHO_T}no" >&6; }
3115 if test -z "$CC"; then
3116 # Extract the first word of "cc", so it can be a program name with args.
3117 set dummy cc; ac_word=$2
3118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3120 if test "${ac_cv_prog_CC+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123 if test -n "$CC"; then
3124 ac_cv_prog_CC="$CC" # Let the user override the test.
3125 else
3126 ac_prog_rejected=no
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3134 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3135 ac_prog_rejected=yes
3136 continue
3138 ac_cv_prog_CC="cc"
3139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3142 done
3143 done
3144 IFS=$as_save_IFS
3146 if test $ac_prog_rejected = yes; then
3147 # We found a bogon in the path, so make sure we never use it.
3148 set dummy $ac_cv_prog_CC
3149 shift
3150 if test $# != 0; then
3151 # We chose a different compiler from the bogus one.
3152 # However, it has the same basename, so the bogon will be chosen
3153 # first if we set CC to just the basename; use the full file name.
3154 shift
3155 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3160 CC=$ac_cv_prog_CC
3161 if test -n "$CC"; then
3162 { echo "$as_me:$LINENO: result: $CC" >&5
3163 echo "${ECHO_T}$CC" >&6; }
3164 else
3165 { echo "$as_me:$LINENO: result: no" >&5
3166 echo "${ECHO_T}no" >&6; }
3171 if test -z "$CC"; then
3172 if test -n "$ac_tool_prefix"; then
3173 for ac_prog in cl.exe
3175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3179 if test "${ac_cv_prog_CC+set}" = set; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 else
3182 if test -n "$CC"; then
3183 ac_cv_prog_CC="$CC" # Let the user override the test.
3184 else
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3188 IFS=$as_save_IFS
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 break 2
3196 done
3197 done
3198 IFS=$as_save_IFS
3202 CC=$ac_cv_prog_CC
3203 if test -n "$CC"; then
3204 { echo "$as_me:$LINENO: result: $CC" >&5
3205 echo "${ECHO_T}$CC" >&6; }
3206 else
3207 { echo "$as_me:$LINENO: result: no" >&5
3208 echo "${ECHO_T}no" >&6; }
3212 test -n "$CC" && break
3213 done
3215 if test -z "$CC"; then
3216 ac_ct_CC=$CC
3217 for ac_prog in cl.exe
3219 # Extract the first word of "$ac_prog", so it can be a program name with args.
3220 set dummy $ac_prog; ac_word=$2
3221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3223 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226 if test -n "$ac_ct_CC"; then
3227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3228 else
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 for as_dir in $PATH
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236 ac_cv_prog_ac_ct_CC="$ac_prog"
3237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3240 done
3241 done
3242 IFS=$as_save_IFS
3246 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3247 if test -n "$ac_ct_CC"; then
3248 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3249 echo "${ECHO_T}$ac_ct_CC" >&6; }
3250 else
3251 { echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6; }
3256 test -n "$ac_ct_CC" && break
3257 done
3259 if test "x$ac_ct_CC" = x; then
3260 CC=""
3261 else
3262 case $cross_compiling:$ac_tool_warned in
3263 yes:)
3264 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3265 whose name does not start with the host triplet. If you think this
3266 configuration is useful to you, please write to autoconf@gnu.org." >&5
3267 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3268 whose name does not start with the host triplet. If you think this
3269 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3270 ac_tool_warned=yes ;;
3271 esac
3272 CC=$ac_ct_CC
3279 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3280 See \`config.log' for more details." >&5
3281 echo "$as_me: error: no acceptable C compiler found in \$PATH
3282 See \`config.log' for more details." >&2;}
3283 { (exit 1); exit 1; }; }
3285 # Provide some information about the compiler.
3286 echo "$as_me:$LINENO: checking for C compiler version" >&5
3287 ac_compiler=`set X $ac_compile; echo $2`
3288 { (ac_try="$ac_compiler --version >&5"
3289 case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292 esac
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294 (eval "$ac_compiler --version >&5") 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }
3298 { (ac_try="$ac_compiler -v >&5"
3299 case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3302 esac
3303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304 (eval "$ac_compiler -v >&5") 2>&5
3305 ac_status=$?
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }
3308 { (ac_try="$ac_compiler -V >&5"
3309 case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312 esac
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_compiler -V >&5") 2>&5
3315 ac_status=$?
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); }
3319 EXEEXT=
3320 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3321 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3322 if test "${ac_cv_objext+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325 cat >conftest.$ac_ext <<_ACEOF
3326 /* confdefs.h. */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3333 main ()
3337 return 0;
3339 _ACEOF
3340 rm -f conftest.o conftest.obj
3341 if { (ac_try="$ac_compile"
3342 case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345 esac
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_compile") 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; then
3351 for ac_file in conftest.o conftest.obj conftest.*; do
3352 test -f "$ac_file" || continue;
3353 case $ac_file in
3354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3355 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3356 break;;
3357 esac
3358 done
3359 else
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3364 See \`config.log' for more details." >&5
3365 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3366 See \`config.log' for more details." >&2;}
3367 { (exit 1); exit 1; }; }
3370 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3372 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3373 echo "${ECHO_T}$ac_cv_objext" >&6; }
3374 OBJEXT=$ac_cv_objext
3375 ac_objext=$OBJEXT
3376 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3377 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3378 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381 cat >conftest.$ac_ext <<_ACEOF
3382 /* confdefs.h. */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3389 main ()
3391 #ifndef __GNUC__
3392 choke me
3393 #endif
3396 return 0;
3398 _ACEOF
3399 rm -f conftest.$ac_objext
3400 if { (ac_try="$ac_compile"
3401 case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404 esac
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_compile") 2>conftest.er1
3407 ac_status=$?
3408 grep -v '^ *+' conftest.er1 >conftest.err
3409 rm -f conftest.er1
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } && {
3413 test -z "$ac_c_werror_flag" ||
3414 test ! -s conftest.err
3415 } && test -s conftest.$ac_objext; then
3416 ac_compiler_gnu=yes
3417 else
3418 echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3421 ac_compiler_gnu=no
3424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3428 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3429 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3430 GCC=`test $ac_compiler_gnu = yes && echo yes`
3431 ac_test_CFLAGS=${CFLAGS+set}
3432 ac_save_CFLAGS=$CFLAGS
3433 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3434 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3435 if test "${ac_cv_prog_cc_g+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438 ac_save_c_werror_flag=$ac_c_werror_flag
3439 ac_c_werror_flag=yes
3440 ac_cv_prog_cc_g=no
3441 CFLAGS="-g"
3442 cat >conftest.$ac_ext <<_ACEOF
3443 /* confdefs.h. */
3444 _ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3450 main ()
3454 return 0;
3456 _ACEOF
3457 rm -f conftest.$ac_objext
3458 if { (ac_try="$ac_compile"
3459 case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462 esac
3463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3464 (eval "$ac_compile") 2>conftest.er1
3465 ac_status=$?
3466 grep -v '^ *+' conftest.er1 >conftest.err
3467 rm -f conftest.er1
3468 cat conftest.err >&5
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } && {
3471 test -z "$ac_c_werror_flag" ||
3472 test ! -s conftest.err
3473 } && test -s conftest.$ac_objext; then
3474 ac_cv_prog_cc_g=yes
3475 else
3476 echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3479 CFLAGS=""
3480 cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h. */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3488 main ()
3492 return 0;
3494 _ACEOF
3495 rm -f conftest.$ac_objext
3496 if { (ac_try="$ac_compile"
3497 case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500 esac
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_compile") 2>conftest.er1
3503 ac_status=$?
3504 grep -v '^ *+' conftest.er1 >conftest.err
3505 rm -f conftest.er1
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } && {
3509 test -z "$ac_c_werror_flag" ||
3510 test ! -s conftest.err
3511 } && test -s conftest.$ac_objext; then
3513 else
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 ac_c_werror_flag=$ac_save_c_werror_flag
3518 CFLAGS="-g"
3519 cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h. */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3527 main ()
3531 return 0;
3533 _ACEOF
3534 rm -f conftest.$ac_objext
3535 if { (ac_try="$ac_compile"
3536 case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539 esac
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541 (eval "$ac_compile") 2>conftest.er1
3542 ac_status=$?
3543 grep -v '^ *+' conftest.er1 >conftest.err
3544 rm -f conftest.er1
3545 cat conftest.err >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } && {
3548 test -z "$ac_c_werror_flag" ||
3549 test ! -s conftest.err
3550 } && test -s conftest.$ac_objext; then
3551 ac_cv_prog_cc_g=yes
3552 else
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_c_werror_flag=$ac_save_c_werror_flag
3568 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3569 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3570 if test "$ac_test_CFLAGS" = set; then
3571 CFLAGS=$ac_save_CFLAGS
3572 elif test $ac_cv_prog_cc_g = yes; then
3573 if test "$GCC" = yes; then
3574 CFLAGS="-g -O2"
3575 else
3576 CFLAGS="-g"
3578 else
3579 if test "$GCC" = yes; then
3580 CFLAGS="-O2"
3581 else
3582 CFLAGS=
3585 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3586 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3587 if test "${ac_cv_prog_cc_c89+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 else
3590 ac_cv_prog_cc_c89=no
3591 ac_save_CC=$CC
3592 cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h. */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3598 #include <stdarg.h>
3599 #include <stdio.h>
3600 #include <sys/types.h>
3601 #include <sys/stat.h>
3602 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3603 struct buf { int x; };
3604 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3605 static char *e (p, i)
3606 char **p;
3607 int i;
3609 return p[i];
3611 static char *f (char * (*g) (char **, int), char **p, ...)
3613 char *s;
3614 va_list v;
3615 va_start (v,p);
3616 s = g (p, va_arg (v,int));
3617 va_end (v);
3618 return s;
3621 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3622 function prototypes and stuff, but not '\xHH' hex character constants.
3623 These don't provoke an error unfortunately, instead are silently treated
3624 as 'x'. The following induces an error, until -std is added to get
3625 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3626 array size at least. It's necessary to write '\x00'==0 to get something
3627 that's true only with -std. */
3628 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3630 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3631 inside strings and character constants. */
3632 #define FOO(x) 'x'
3633 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3635 int test (int i, double x);
3636 struct s1 {int (*f) (int a);};
3637 struct s2 {int (*f) (double a);};
3638 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3639 int argc;
3640 char **argv;
3642 main ()
3644 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3646 return 0;
3648 _ACEOF
3649 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3650 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3652 CC="$ac_save_CC $ac_arg"
3653 rm -f conftest.$ac_objext
3654 if { (ac_try="$ac_compile"
3655 case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3658 esac
3659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3660 (eval "$ac_compile") 2>conftest.er1
3661 ac_status=$?
3662 grep -v '^ *+' conftest.er1 >conftest.err
3663 rm -f conftest.er1
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } && {
3667 test -z "$ac_c_werror_flag" ||
3668 test ! -s conftest.err
3669 } && test -s conftest.$ac_objext; then
3670 ac_cv_prog_cc_c89=$ac_arg
3671 else
3672 echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3678 rm -f core conftest.err conftest.$ac_objext
3679 test "x$ac_cv_prog_cc_c89" != "xno" && break
3680 done
3681 rm -f conftest.$ac_ext
3682 CC=$ac_save_CC
3685 # AC_CACHE_VAL
3686 case "x$ac_cv_prog_cc_c89" in
3688 { echo "$as_me:$LINENO: result: none needed" >&5
3689 echo "${ECHO_T}none needed" >&6; } ;;
3690 xno)
3691 { echo "$as_me:$LINENO: result: unsupported" >&5
3692 echo "${ECHO_T}unsupported" >&6; } ;;
3694 CC="$CC $ac_cv_prog_cc_c89"
3695 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3696 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3697 esac
3700 ac_ext=c
3701 ac_cpp='$CPP $CPPFLAGS'
3702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706 if test $host != $build; then
3707 for ac_prog in gcc cc
3709 # Extract the first word of "$ac_prog", so it can be a program name with args.
3710 set dummy $ac_prog; ac_word=$2
3711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3713 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716 if test -n "$BUILD_CC"; then
3717 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3718 else
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3726 ac_cv_prog_BUILD_CC="$ac_prog"
3727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 break 2
3730 done
3731 done
3732 IFS=$as_save_IFS
3736 BUILD_CC=$ac_cv_prog_BUILD_CC
3737 if test -n "$BUILD_CC"; then
3738 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3739 echo "${ECHO_T}$BUILD_CC" >&6; }
3740 else
3741 { echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6; }
3746 test -n "$BUILD_CC" && break
3747 done
3751 ac_ext=c
3752 ac_cpp='$CPP $CPPFLAGS'
3753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3757 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3758 # On Suns, sometimes $CPP names a directory.
3759 if test -n "$CPP" && test -d "$CPP"; then
3760 CPP=
3762 if test -z "$CPP"; then
3763 if test "${ac_cv_prog_CPP+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766 # Double quotes because CPP needs to be expanded
3767 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3769 ac_preproc_ok=false
3770 for ac_c_preproc_warn_flag in '' yes
3772 # Use a header file that comes with gcc, so configuring glibc
3773 # with a fresh cross-compiler works.
3774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3775 # <limits.h> exists even on freestanding compilers.
3776 # On the NeXT, cc -E runs the code through the compiler's parser,
3777 # not just through cpp. "Syntax error" is here to catch this case.
3778 cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h. */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3784 #ifdef __STDC__
3785 # include <limits.h>
3786 #else
3787 # include <assert.h>
3788 #endif
3789 Syntax error
3790 _ACEOF
3791 if { (ac_try="$ac_cpp conftest.$ac_ext"
3792 case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795 esac
3796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3798 ac_status=$?
3799 grep -v '^ *+' conftest.er1 >conftest.err
3800 rm -f conftest.er1
3801 cat conftest.err >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); } >/dev/null && {
3804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3805 test ! -s conftest.err
3806 }; then
3808 else
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3812 # Broken: fails on valid input.
3813 continue
3816 rm -f conftest.err conftest.$ac_ext
3818 # OK, works on sane cases. Now check whether nonexistent headers
3819 # can be detected and how.
3820 cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h. */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3826 #include <ac_nonexistent.h>
3827 _ACEOF
3828 if { (ac_try="$ac_cpp conftest.$ac_ext"
3829 case "(($ac_try" in
3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831 *) ac_try_echo=$ac_try;;
3832 esac
3833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } >/dev/null && {
3841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3842 test ! -s conftest.err
3843 }; then
3844 # Broken: success on invalid input.
3845 continue
3846 else
3847 echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3850 # Passes both tests.
3851 ac_preproc_ok=:
3852 break
3855 rm -f conftest.err conftest.$ac_ext
3857 done
3858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3859 rm -f conftest.err conftest.$ac_ext
3860 if $ac_preproc_ok; then
3861 break
3864 done
3865 ac_cv_prog_CPP=$CPP
3868 CPP=$ac_cv_prog_CPP
3869 else
3870 ac_cv_prog_CPP=$CPP
3872 { echo "$as_me:$LINENO: result: $CPP" >&5
3873 echo "${ECHO_T}$CPP" >&6; }
3874 ac_preproc_ok=false
3875 for ac_c_preproc_warn_flag in '' yes
3877 # Use a header file that comes with gcc, so configuring glibc
3878 # with a fresh cross-compiler works.
3879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3880 # <limits.h> exists even on freestanding compilers.
3881 # On the NeXT, cc -E runs the code through the compiler's parser,
3882 # not just through cpp. "Syntax error" is here to catch this case.
3883 cat >conftest.$ac_ext <<_ACEOF
3884 /* confdefs.h. */
3885 _ACEOF
3886 cat confdefs.h >>conftest.$ac_ext
3887 cat >>conftest.$ac_ext <<_ACEOF
3888 /* end confdefs.h. */
3889 #ifdef __STDC__
3890 # include <limits.h>
3891 #else
3892 # include <assert.h>
3893 #endif
3894 Syntax error
3895 _ACEOF
3896 if { (ac_try="$ac_cpp conftest.$ac_ext"
3897 case "(($ac_try" in
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3900 esac
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3903 ac_status=$?
3904 grep -v '^ *+' conftest.er1 >conftest.err
3905 rm -f conftest.er1
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } >/dev/null && {
3909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3910 test ! -s conftest.err
3911 }; then
3913 else
3914 echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3917 # Broken: fails on valid input.
3918 continue
3921 rm -f conftest.err conftest.$ac_ext
3923 # OK, works on sane cases. Now check whether nonexistent headers
3924 # can be detected and how.
3925 cat >conftest.$ac_ext <<_ACEOF
3926 /* confdefs.h. */
3927 _ACEOF
3928 cat confdefs.h >>conftest.$ac_ext
3929 cat >>conftest.$ac_ext <<_ACEOF
3930 /* end confdefs.h. */
3931 #include <ac_nonexistent.h>
3932 _ACEOF
3933 if { (ac_try="$ac_cpp conftest.$ac_ext"
3934 case "(($ac_try" in
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3937 esac
3938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3940 ac_status=$?
3941 grep -v '^ *+' conftest.er1 >conftest.err
3942 rm -f conftest.er1
3943 cat conftest.err >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } >/dev/null && {
3946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3947 test ! -s conftest.err
3948 }; then
3949 # Broken: success on invalid input.
3950 continue
3951 else
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3955 # Passes both tests.
3956 ac_preproc_ok=:
3957 break
3960 rm -f conftest.err conftest.$ac_ext
3962 done
3963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3964 rm -f conftest.err conftest.$ac_ext
3965 if $ac_preproc_ok; then
3967 else
3968 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3969 See \`config.log' for more details." >&5
3970 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3971 See \`config.log' for more details." >&2;}
3972 { (exit 1); exit 1; }; }
3975 ac_ext=c
3976 ac_cpp='$CPP $CPPFLAGS'
3977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3981 # We need the C++ compiler only for testing.
3982 ac_ext=cpp
3983 ac_cpp='$CXXCPP $CPPFLAGS'
3984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3987 if test -z "$CXX"; then
3988 if test -n "$CCC"; then
3989 CXX=$CCC
3990 else
3991 if test -n "$ac_tool_prefix"; then
3992 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3998 if test "${ac_cv_prog_CXX+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 else
4001 if test -n "$CXX"; then
4002 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4003 else
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 for as_dir in $PATH
4007 IFS=$as_save_IFS
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4011 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 break 2
4015 done
4016 done
4017 IFS=$as_save_IFS
4021 CXX=$ac_cv_prog_CXX
4022 if test -n "$CXX"; then
4023 { echo "$as_me:$LINENO: result: $CXX" >&5
4024 echo "${ECHO_T}$CXX" >&6; }
4025 else
4026 { echo "$as_me:$LINENO: result: no" >&5
4027 echo "${ECHO_T}no" >&6; }
4031 test -n "$CXX" && break
4032 done
4034 if test -z "$CXX"; then
4035 ac_ct_CXX=$CXX
4036 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4038 # Extract the first word of "$ac_prog", so it can be a program name with args.
4039 set dummy $ac_prog; ac_word=$2
4040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4042 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045 if test -n "$ac_ct_CXX"; then
4046 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4047 else
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 for as_dir in $PATH
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4055 ac_cv_prog_ac_ct_CXX="$ac_prog"
4056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4057 break 2
4059 done
4060 done
4061 IFS=$as_save_IFS
4065 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4066 if test -n "$ac_ct_CXX"; then
4067 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4068 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4069 else
4070 { echo "$as_me:$LINENO: result: no" >&5
4071 echo "${ECHO_T}no" >&6; }
4075 test -n "$ac_ct_CXX" && break
4076 done
4078 if test "x$ac_ct_CXX" = x; then
4079 CXX="g++"
4080 else
4081 case $cross_compiling:$ac_tool_warned in
4082 yes:)
4083 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4084 whose name does not start with the host triplet. If you think this
4085 configuration is useful to you, please write to autoconf@gnu.org." >&5
4086 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4087 whose name does not start with the host triplet. If you think this
4088 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4089 ac_tool_warned=yes ;;
4090 esac
4091 CXX=$ac_ct_CXX
4097 # Provide some information about the compiler.
4098 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4099 ac_compiler=`set X $ac_compile; echo $2`
4100 { (ac_try="$ac_compiler --version >&5"
4101 case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104 esac
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_compiler --version >&5") 2>&5
4107 ac_status=$?
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }
4110 { (ac_try="$ac_compiler -v >&5"
4111 case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114 esac
4115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116 (eval "$ac_compiler -v >&5") 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }
4120 { (ac_try="$ac_compiler -V >&5"
4121 case "(($ac_try" in
4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123 *) ac_try_echo=$ac_try;;
4124 esac
4125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4126 (eval "$ac_compiler -V >&5") 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }
4131 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4132 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4133 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136 cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h. */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4144 main ()
4146 #ifndef __GNUC__
4147 choke me
4148 #endif
4151 return 0;
4153 _ACEOF
4154 rm -f conftest.$ac_objext
4155 if { (ac_try="$ac_compile"
4156 case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159 esac
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_compile") 2>conftest.er1
4162 ac_status=$?
4163 grep -v '^ *+' conftest.er1 >conftest.err
4164 rm -f conftest.er1
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } && {
4168 test -z "$ac_cxx_werror_flag" ||
4169 test ! -s conftest.err
4170 } && test -s conftest.$ac_objext; then
4171 ac_compiler_gnu=yes
4172 else
4173 echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4176 ac_compiler_gnu=no
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4183 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4184 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4185 GXX=`test $ac_compiler_gnu = yes && echo yes`
4186 ac_test_CXXFLAGS=${CXXFLAGS+set}
4187 ac_save_CXXFLAGS=$CXXFLAGS
4188 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4189 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4190 if test "${ac_cv_prog_cxx_g+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4194 ac_cxx_werror_flag=yes
4195 ac_cv_prog_cxx_g=no
4196 CXXFLAGS="-g"
4197 cat >conftest.$ac_ext <<_ACEOF
4198 /* confdefs.h. */
4199 _ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h. */
4205 main ()
4209 return 0;
4211 _ACEOF
4212 rm -f conftest.$ac_objext
4213 if { (ac_try="$ac_compile"
4214 case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217 esac
4218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_compile") 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } && {
4226 test -z "$ac_cxx_werror_flag" ||
4227 test ! -s conftest.err
4228 } && test -s conftest.$ac_objext; then
4229 ac_cv_prog_cxx_g=yes
4230 else
4231 echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4234 CXXFLAGS=""
4235 cat >conftest.$ac_ext <<_ACEOF
4236 /* confdefs.h. */
4237 _ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4243 main ()
4247 return 0;
4249 _ACEOF
4250 rm -f conftest.$ac_objext
4251 if { (ac_try="$ac_compile"
4252 case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255 esac
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_compile") 2>conftest.er1
4258 ac_status=$?
4259 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -f conftest.er1
4261 cat conftest.err >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } && {
4264 test -z "$ac_cxx_werror_flag" ||
4265 test ! -s conftest.err
4266 } && test -s conftest.$ac_objext; then
4268 else
4269 echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.$ac_ext >&5
4272 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4273 CXXFLAGS="-g"
4274 cat >conftest.$ac_ext <<_ACEOF
4275 /* confdefs.h. */
4276 _ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4282 main ()
4286 return 0;
4288 _ACEOF
4289 rm -f conftest.$ac_objext
4290 if { (ac_try="$ac_compile"
4291 case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294 esac
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_compile") 2>conftest.er1
4297 ac_status=$?
4298 grep -v '^ *+' conftest.er1 >conftest.err
4299 rm -f conftest.er1
4300 cat conftest.err >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); } && {
4303 test -z "$ac_cxx_werror_flag" ||
4304 test ! -s conftest.err
4305 } && test -s conftest.$ac_objext; then
4306 ac_cv_prog_cxx_g=yes
4307 else
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4323 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4324 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4325 if test "$ac_test_CXXFLAGS" = set; then
4326 CXXFLAGS=$ac_save_CXXFLAGS
4327 elif test $ac_cv_prog_cxx_g = yes; then
4328 if test "$GXX" = yes; then
4329 CXXFLAGS="-g -O2"
4330 else
4331 CXXFLAGS="-g"
4333 else
4334 if test "$GXX" = yes; then
4335 CXXFLAGS="-O2"
4336 else
4337 CXXFLAGS=
4340 ac_ext=c
4341 ac_cpp='$CPP $CPPFLAGS'
4342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346 # Was a --with-binutils option given?
4347 if test -n "$path_binutils"; then
4348 # Make absolute; ensure a single trailing slash.
4349 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4350 CC="$CC -B$path_binutils"
4352 AS=`$CC -print-prog-name=as`
4353 LD=`$CC -print-prog-name=ld`
4354 AR=`$CC -print-prog-name=ar`
4356 OBJDUMP=`$CC -print-prog-name=objdump`
4359 # ranlib has to be treated a bit differently since it might not exist at all.
4360 ac_ranlib=`$CC -print-prog-name=ranlib`
4361 if test "x$ac_ranlib" = xranlib; then
4362 # This extra check has to happen since gcc simply echos the parameter in
4363 # case it cannot find the value in its own directories.
4364 if test -n "$ac_tool_prefix"; then
4365 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4366 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4369 if test "${ac_cv_prog_RANLIB+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372 if test -n "$RANLIB"; then
4373 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4374 else
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 for as_dir in $PATH
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4382 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4384 break 2
4386 done
4387 done
4388 IFS=$as_save_IFS
4392 RANLIB=$ac_cv_prog_RANLIB
4393 if test -n "$RANLIB"; then
4394 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4395 echo "${ECHO_T}$RANLIB" >&6; }
4396 else
4397 { echo "$as_me:$LINENO: result: no" >&5
4398 echo "${ECHO_T}no" >&6; }
4403 if test -z "$ac_cv_prog_RANLIB"; then
4404 ac_ct_RANLIB=$RANLIB
4405 # Extract the first word of "ranlib", so it can be a program name with args.
4406 set dummy ranlib; ac_word=$2
4407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4409 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412 if test -n "$ac_ct_RANLIB"; then
4413 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4414 else
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4422 ac_cv_prog_ac_ct_RANLIB="ranlib"
4423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 break 2
4426 done
4427 done
4428 IFS=$as_save_IFS
4432 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4433 if test -n "$ac_ct_RANLIB"; then
4434 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4435 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4436 else
4437 { echo "$as_me:$LINENO: result: no" >&5
4438 echo "${ECHO_T}no" >&6; }
4441 if test "x$ac_ct_RANLIB" = x; then
4442 RANLIB=":"
4443 else
4444 case $cross_compiling:$ac_tool_warned in
4445 yes:)
4446 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4447 whose name does not start with the host triplet. If you think this
4448 configuration is useful to you, please write to autoconf@gnu.org." >&5
4449 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4450 whose name does not start with the host triplet. If you think this
4451 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4452 ac_tool_warned=yes ;;
4453 esac
4454 RANLIB=$ac_ct_RANLIB
4456 else
4457 RANLIB="$ac_cv_prog_RANLIB"
4460 else
4461 RANLIB=$ac_ranlib
4465 # Determine whether we are using GNU binutils.
4466 { echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
4467 echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6; }
4468 if test "${libc_cv_prog_as_gnu+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471 # Most GNU programs take a -v and spit out some text including
4472 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4473 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4474 libc_cv_prog_as_gnu=yes
4475 else
4476 libc_cv_prog_as_gnu=no
4478 rm -fr contest*
4480 { echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
4481 echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6; }
4482 rm -f a.out
4483 gnu_as=$libc_cv_prog_as_gnu
4485 { echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
4486 echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6; }
4487 if test "${libc_cv_prog_ld_gnu+set}" = set; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 else
4490 # Most GNU programs take a -v and spit out some text including
4491 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4492 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4493 libc_cv_prog_ld_gnu=yes
4494 else
4495 libc_cv_prog_ld_gnu=no
4497 rm -fr contest*
4499 { echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
4500 echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6; }
4501 gnu_ld=$libc_cv_prog_ld_gnu
4504 # Accept binutils 2.13 or newer.
4505 for ac_prog in $AS
4507 # Extract the first word of "$ac_prog", so it can be a program name with args.
4508 set dummy $ac_prog; ac_word=$2
4509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4511 if test "${ac_cv_prog_AS+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514 if test -n "$AS"; then
4515 ac_cv_prog_AS="$AS" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4524 ac_cv_prog_AS="$ac_prog"
4525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4528 done
4529 done
4530 IFS=$as_save_IFS
4534 AS=$ac_cv_prog_AS
4535 if test -n "$AS"; then
4536 { echo "$as_me:$LINENO: result: $AS" >&5
4537 echo "${ECHO_T}$AS" >&6; }
4538 else
4539 { echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6; }
4544 test -n "$AS" && break
4545 done
4547 if test -z "$AS"; then
4548 ac_verc_fail=yes
4549 else
4550 # Found it, now check the version.
4551 { echo "$as_me:$LINENO: checking version of $AS" >&5
4552 echo $ECHO_N "checking version of $AS... $ECHO_C" >&6; }
4553 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4554 case $ac_prog_version in
4555 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4556 2.1[3-9]*|[2-9].[2-9]*)
4557 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4558 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4560 esac
4561 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4562 echo "${ECHO_T}$ac_prog_version" >&6; }
4564 if test $ac_verc_fail = yes; then
4565 AS=: critic_missing="$critic_missing as"
4568 for ac_prog in $LD
4570 # Extract the first word of "$ac_prog", so it can be a program name with args.
4571 set dummy $ac_prog; ac_word=$2
4572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574 if test "${ac_cv_prog_LD+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577 if test -n "$LD"; then
4578 ac_cv_prog_LD="$LD" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 ac_cv_prog_LD="$ac_prog"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4591 done
4592 done
4593 IFS=$as_save_IFS
4597 LD=$ac_cv_prog_LD
4598 if test -n "$LD"; then
4599 { echo "$as_me:$LINENO: result: $LD" >&5
4600 echo "${ECHO_T}$LD" >&6; }
4601 else
4602 { echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6; }
4607 test -n "$LD" && break
4608 done
4610 if test -z "$LD"; then
4611 ac_verc_fail=yes
4612 else
4613 # Found it, now check the version.
4614 { echo "$as_me:$LINENO: checking version of $LD" >&5
4615 echo $ECHO_N "checking version of $LD... $ECHO_C" >&6; }
4616 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4617 case $ac_prog_version in
4618 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4619 2.1[3-9]*|[2-9].[2-9]*)
4620 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4621 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4623 esac
4624 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4625 echo "${ECHO_T}$ac_prog_version" >&6; }
4627 if test $ac_verc_fail = yes; then
4628 LD=: critic_missing="$critic_missing ld"
4632 # We need the physical current working directory. We cannot use the
4633 # "pwd -P" shell builtin since that's not portable. Instead we try to
4634 # find a pwd binary. Note that assigning to the PWD environment
4635 # variable might have some interesting side effects, so we don't do
4636 # that.
4637 # Extract the first word of "pwd", so it can be a program name with args.
4638 set dummy pwd; ac_word=$2
4639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4641 if test "${ac_cv_path_PWD_P+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644 case $PWD_P in
4645 [\\/]* | ?:[\\/]*)
4646 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4660 done
4661 done
4662 IFS=$as_save_IFS
4664 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4666 esac
4668 PWD_P=$ac_cv_path_PWD_P
4669 if test -n "$PWD_P"; then
4670 { echo "$as_me:$LINENO: result: $PWD_P" >&5
4671 echo "${ECHO_T}$PWD_P" >&6; }
4672 else
4673 { echo "$as_me:$LINENO: result: no" >&5
4674 echo "${ECHO_T}no" >&6; }
4678 if test "$PWD_P" = no; then
4679 { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
4680 echo "$as_me: error: *** A pwd binary could not be found." >&2;}
4681 { (exit 1); exit 1; }; }
4684 # These programs are version sensitive.
4686 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4688 # Extract the first word of "$ac_prog", so it can be a program name with args.
4689 set dummy $ac_prog; ac_word=$2
4690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4692 if test "${ac_cv_prog_CC+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695 if test -n "$CC"; then
4696 ac_cv_prog_CC="$CC" # Let the user override the test.
4697 else
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4705 ac_cv_prog_CC="$ac_prog"
4706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4709 done
4710 done
4711 IFS=$as_save_IFS
4715 CC=$ac_cv_prog_CC
4716 if test -n "$CC"; then
4717 { echo "$as_me:$LINENO: result: $CC" >&5
4718 echo "${ECHO_T}$CC" >&6; }
4719 else
4720 { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; }
4725 test -n "$CC" && break
4726 done
4728 if test -z "$CC"; then
4729 ac_verc_fail=yes
4730 else
4731 # Found it, now check the version.
4732 { echo "$as_me:$LINENO: checking version of $CC" >&5
4733 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6; }
4734 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
4735 case $ac_prog_version in
4736 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4737 3.4* | 4.[0-9]* )
4738 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4739 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4741 esac
4742 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4743 echo "${ECHO_T}$ac_prog_version" >&6; }
4745 if test $ac_verc_fail = yes; then
4746 critic_missing="$critic_missing gcc"
4749 for ac_prog in gnumake gmake make
4751 # Extract the first word of "$ac_prog", so it can be a program name with args.
4752 set dummy $ac_prog; ac_word=$2
4753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4755 if test "${ac_cv_prog_MAKE+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 else
4758 if test -n "$MAKE"; then
4759 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4760 else
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 for as_dir in $PATH
4764 IFS=$as_save_IFS
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4768 ac_cv_prog_MAKE="$ac_prog"
4769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 break 2
4772 done
4773 done
4774 IFS=$as_save_IFS
4778 MAKE=$ac_cv_prog_MAKE
4779 if test -n "$MAKE"; then
4780 { echo "$as_me:$LINENO: result: $MAKE" >&5
4781 echo "${ECHO_T}$MAKE" >&6; }
4782 else
4783 { echo "$as_me:$LINENO: result: no" >&5
4784 echo "${ECHO_T}no" >&6; }
4788 test -n "$MAKE" && break
4789 done
4791 if test -z "$MAKE"; then
4792 ac_verc_fail=yes
4793 else
4794 # Found it, now check the version.
4795 { echo "$as_me:$LINENO: checking version of $MAKE" >&5
4796 echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6; }
4797 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4798 case $ac_prog_version in
4799 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4800 3.79* | 3.[89]*)
4801 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4802 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4804 esac
4805 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4806 echo "${ECHO_T}$ac_prog_version" >&6; }
4808 if test $ac_verc_fail = yes; then
4809 critic_missing="$critic_missing make"
4813 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4815 # Extract the first word of "$ac_prog", so it can be a program name with args.
4816 set dummy $ac_prog; ac_word=$2
4817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4819 if test "${ac_cv_prog_MSGFMT+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822 if test -n "$MSGFMT"; then
4823 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_MSGFMT="$ac_prog"
4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4836 done
4837 done
4838 IFS=$as_save_IFS
4842 MSGFMT=$ac_cv_prog_MSGFMT
4843 if test -n "$MSGFMT"; then
4844 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4845 echo "${ECHO_T}$MSGFMT" >&6; }
4846 else
4847 { echo "$as_me:$LINENO: result: no" >&5
4848 echo "${ECHO_T}no" >&6; }
4852 test -n "$MSGFMT" && break
4853 done
4855 if test -z "$MSGFMT"; then
4856 ac_verc_fail=yes
4857 else
4858 # Found it, now check the version.
4859 { echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
4860 echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6; }
4861 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4862 case $ac_prog_version in
4863 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4864 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4865 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4866 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4868 esac
4869 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4870 echo "${ECHO_T}$ac_prog_version" >&6; }
4872 if test $ac_verc_fail = yes; then
4873 MSGFMT=: aux_missing="$aux_missing msgfmt"
4876 for ac_prog in makeinfo
4878 # Extract the first word of "$ac_prog", so it can be a program name with args.
4879 set dummy $ac_prog; ac_word=$2
4880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4882 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 else
4885 if test -n "$MAKEINFO"; then
4886 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4887 else
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_prog_MAKEINFO="$ac_prog"
4896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 break 2
4899 done
4900 done
4901 IFS=$as_save_IFS
4905 MAKEINFO=$ac_cv_prog_MAKEINFO
4906 if test -n "$MAKEINFO"; then
4907 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4908 echo "${ECHO_T}$MAKEINFO" >&6; }
4909 else
4910 { echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6; }
4915 test -n "$MAKEINFO" && break
4916 done
4918 if test -z "$MAKEINFO"; then
4919 ac_verc_fail=yes
4920 else
4921 # Found it, now check the version.
4922 { echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
4923 echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6; }
4924 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4925 case $ac_prog_version in
4926 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4927 4.*)
4928 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4929 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4931 esac
4932 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4933 echo "${ECHO_T}$ac_prog_version" >&6; }
4935 if test $ac_verc_fail = yes; then
4936 MAKEINFO=: aux_missing="$aux_missing makeinfo"
4939 for ac_prog in sed
4941 # Extract the first word of "$ac_prog", so it can be a program name with args.
4942 set dummy $ac_prog; ac_word=$2
4943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4945 if test "${ac_cv_prog_SED+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948 if test -n "$SED"; then
4949 ac_cv_prog_SED="$SED" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 ac_cv_prog_SED="$ac_prog"
4959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4962 done
4963 done
4964 IFS=$as_save_IFS
4968 SED=$ac_cv_prog_SED
4969 if test -n "$SED"; then
4970 { echo "$as_me:$LINENO: result: $SED" >&5
4971 echo "${ECHO_T}$SED" >&6; }
4972 else
4973 { echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6; }
4978 test -n "$SED" && break
4979 done
4981 if test -z "$SED"; then
4982 ac_verc_fail=yes
4983 else
4984 # Found it, now check the version.
4985 { echo "$as_me:$LINENO: checking version of $SED" >&5
4986 echo $ECHO_N "checking version of $SED... $ECHO_C" >&6; }
4987 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
4988 case $ac_prog_version in
4989 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4990 3.0[2-9]*|3.[1-9]*|[4-9]*)
4991 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4992 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4994 esac
4995 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4996 echo "${ECHO_T}$ac_prog_version" >&6; }
4998 if test $ac_verc_fail = yes; then
4999 SED=: aux_missing="$aux_missing sed"
5003 for ac_prog in autoconf
5005 # Extract the first word of "$ac_prog", so it can be a program name with args.
5006 set dummy $ac_prog; ac_word=$2
5007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5009 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012 if test -n "$AUTOCONF"; then
5013 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022 ac_cv_prog_AUTOCONF="$ac_prog"
5023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 break 2
5026 done
5027 done
5028 IFS=$as_save_IFS
5032 AUTOCONF=$ac_cv_prog_AUTOCONF
5033 if test -n "$AUTOCONF"; then
5034 { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
5035 echo "${ECHO_T}$AUTOCONF" >&6; }
5036 else
5037 { echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6; }
5042 test -n "$AUTOCONF" && break
5043 done
5044 test -n "$AUTOCONF" || AUTOCONF="no"
5046 case "x$AUTOCONF" in
5047 xno|x|x:) AUTOCONF=no ;;
5049 { echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5050 echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6; }
5051 if test "${libc_cv_autoconf_works+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5055 libc_cv_autoconf_works=yes
5056 else
5057 libc_cv_autoconf_works=no
5060 { echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
5061 echo "${ECHO_T}$libc_cv_autoconf_works" >&6; }
5062 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5064 esac
5065 if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
5066 # If --without-cvs they probably won't change configure.in, so no complaints.
5067 aux_missing="$aux_missing autoconf"
5070 test -n "$critic_missing" && { { echo "$as_me:$LINENO: error:
5071 *** These critical programs are missing or too old:$critic_missing
5072 *** Check the INSTALL file for required versions." >&5
5073 echo "$as_me: error:
5074 *** These critical programs are missing or too old:$critic_missing
5075 *** Check the INSTALL file for required versions." >&2;}
5076 { (exit 1); exit 1; }; }
5078 test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
5079 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5080 *** some features will be disabled.
5081 *** Check the INSTALL file for required versions." >&5
5082 echo "$as_me: WARNING:
5083 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5084 *** some features will be disabled.
5085 *** Check the INSTALL file for required versions." >&2;}
5087 # if using special system headers, find out the compiler's sekrit
5088 # header directory and add that to the list. NOTE: Only does the right
5089 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5090 if test -n "$sysheaders"; then
5091 SYSINCLUDES=-nostdinc
5092 for d in include include-fixed; do
5093 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5094 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5095 done
5096 SYSINCLUDES="$SYSINCLUDES \
5097 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5098 if test -n "$CXX"; then
5099 cxxversion=`$CXX -dumpversion 2>&5` &&
5100 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5101 cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" &&
5102 CXX_SYSINCLUDES="-isystem $cxxheaders \
5103 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5109 # check if ranlib is necessary
5110 { echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
5111 echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6; }
5112 if test "${libc_cv_ranlib_necessary+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115 cat > conftest.c <<EOF
5116 int a;
5117 char b;
5118 void c(void) {}
5120 $CC $CFLAGS $CPPFLAGS -c conftest.c
5121 $AR cr conftest.a conftest.o
5122 cp conftest.a conftest2.a
5123 $RANLIB conftest.a
5124 if cmp -s conftest.a conftest2.a; then
5125 libc_cv_ranlib_necessary=no
5126 else
5127 libc_cv_ranlib_necessary=yes
5129 rm -rf conftest*
5131 { echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
5132 echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6; }
5133 if test "$libc_cv_ranlib_necessary" = no; then
5134 RANLIB=:
5137 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5138 # since this would lead to problems installing/building glibc.
5139 # LD_LIBRARY_PATH contains the current directory if one of the following
5140 # is true:
5141 # - one of the terminals (":" and ";") is the first or last sign
5142 # - two terminals occur directly after each other
5143 # - the path contains an element with a dot in it
5144 { echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
5145 echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6; }
5146 case ${LD_LIBRARY_PATH} in
5147 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5148 ld_library_path_setting="contains current directory"
5151 ld_library_path_setting="ok"
5153 esac
5154 { echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
5155 echo "${ECHO_T}$ld_library_path_setting" >&6; }
5156 if test "$ld_library_path_setting" != "ok"; then
5157 { { echo "$as_me:$LINENO: error:
5158 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5159 *** building glibc. Please change the environment variable
5160 *** and run configure again." >&5
5161 echo "$as_me: error:
5162 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5163 *** building glibc. Please change the environment variable
5164 *** and run configure again." >&2;}
5165 { (exit 1); exit 1; }; }
5168 { echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
5169 echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6; }
5170 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5174 libc_cv_gcc_static_libgcc=
5175 else
5176 libc_cv_gcc_static_libgcc=-static-libgcc
5179 { echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
5180 echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6; }
5183 # Extract the first word of "bash", so it can be a program name with args.
5184 set dummy bash; ac_word=$2
5185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5187 if test "${ac_cv_path_BASH_SHELL+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 else
5190 case $BASH_SHELL in
5191 [\\/]* | ?:[\\/]*)
5192 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 break 2
5206 done
5207 done
5208 IFS=$as_save_IFS
5210 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5212 esac
5214 BASH_SHELL=$ac_cv_path_BASH_SHELL
5215 if test -n "$BASH_SHELL"; then
5216 { echo "$as_me:$LINENO: result: $BASH_SHELL" >&5
5217 echo "${ECHO_T}$BASH_SHELL" >&6; }
5218 else
5219 { echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6; }
5224 if test "$BASH_SHELL" != no &&
5225 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5226 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5227 libc_cv_have_bash2=yes
5228 else
5229 libc_cv_have_bash2=no
5233 if test "$BASH_SHELL" = no; then
5234 # Extract the first word of "ksh", so it can be a program name with args.
5235 set dummy ksh; ac_word=$2
5236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5238 if test "${ac_cv_path_KSH+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241 case $KSH in
5242 [\\/]* | ?:[\\/]*)
5243 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5257 done
5258 done
5259 IFS=$as_save_IFS
5261 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5263 esac
5265 KSH=$ac_cv_path_KSH
5266 if test -n "$KSH"; then
5267 { echo "$as_me:$LINENO: result: $KSH" >&5
5268 echo "${ECHO_T}$KSH" >&6; }
5269 else
5270 { echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6; }
5275 if test "$KSH" = no; then
5276 libc_cv_have_ksh=no
5277 else
5278 libc_cv_have_ksh=yes
5280 else
5281 KSH="$BASH_SHELL"
5283 libc_cv_have_ksh=yes
5287 for ac_prog in gawk mawk nawk awk
5289 # Extract the first word of "$ac_prog", so it can be a program name with args.
5290 set dummy $ac_prog; ac_word=$2
5291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5293 if test "${ac_cv_prog_AWK+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296 if test -n "$AWK"; then
5297 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5298 else
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5302 IFS=$as_save_IFS
5303 test -z "$as_dir" && as_dir=.
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5306 ac_cv_prog_AWK="$ac_prog"
5307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 break 2
5310 done
5311 done
5312 IFS=$as_save_IFS
5316 AWK=$ac_cv_prog_AWK
5317 if test -n "$AWK"; then
5318 { echo "$as_me:$LINENO: result: $AWK" >&5
5319 echo "${ECHO_T}$AWK" >&6; }
5320 else
5321 { echo "$as_me:$LINENO: result: no" >&5
5322 echo "${ECHO_T}no" >&6; }
5326 test -n "$AWK" && break
5327 done
5329 # Extract the first word of "perl", so it can be a program name with args.
5330 set dummy perl; ac_word=$2
5331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5333 if test "${ac_cv_path_PERL+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 else
5336 case $PERL in
5337 [\\/]* | ?:[\\/]*)
5338 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH
5344 IFS=$as_save_IFS
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 break 2
5352 done
5353 done
5354 IFS=$as_save_IFS
5356 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5358 esac
5360 PERL=$ac_cv_path_PERL
5361 if test -n "$PERL"; then
5362 { echo "$as_me:$LINENO: result: $PERL" >&5
5363 echo "${ECHO_T}$PERL" >&6; }
5364 else
5365 { echo "$as_me:$LINENO: result: no" >&5
5366 echo "${ECHO_T}no" >&6; }
5370 if test "$PERL" != no &&
5371 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5372 PERL=no
5374 # Extract the first word of "install-info", so it can be a program name with args.
5375 set dummy install-info; ac_word=$2
5376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5378 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381 case $INSTALL_INFO in
5382 [\\/]* | ?:[\\/]*)
5383 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5388 for as_dir in $as_dummy
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5394 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 break 2
5398 done
5399 done
5400 IFS=$as_save_IFS
5402 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5404 esac
5406 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5407 if test -n "$INSTALL_INFO"; then
5408 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5409 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5410 else
5411 { echo "$as_me:$LINENO: result: no" >&5
5412 echo "${ECHO_T}no" >&6; }
5416 # Extract the first word of "bison", so it can be a program name with args.
5417 set dummy bison; ac_word=$2
5418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5420 if test "${ac_cv_path_BISON+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423 case $BISON in
5424 [\\/]* | ?:[\\/]*)
5425 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5430 for as_dir in $as_dummy
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 break 2
5440 done
5441 done
5442 IFS=$as_save_IFS
5444 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5446 esac
5448 BISON=$ac_cv_path_BISON
5449 if test -n "$BISON"; then
5450 { echo "$as_me:$LINENO: result: $BISON" >&5
5451 echo "${ECHO_T}$BISON" >&6; }
5452 else
5453 { echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6; }
5459 { echo "$as_me:$LINENO: checking for signed size_t type" >&5
5460 echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6; }
5461 if test "${libc_cv_signed_size_t+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464 echo '#include <stddef.h>
5465 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5466 if eval "$ac_cpp conftest.c 2>/dev/null" \
5467 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5468 libc_cv_signed_size_t=no
5469 else
5470 libc_cv_signed_size_t=yes
5472 rm -f conftest*
5474 { echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
5475 echo "${ECHO_T}$libc_cv_signed_size_t" >&6; }
5476 if test $libc_cv_signed_size_t = yes; then
5477 cat >> confdefs.h <<\EOF
5478 #undef __SIZE_TYPE__
5479 #define __SIZE_TYPE__ unsigned
5484 { echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
5485 echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6; }
5486 if test "${libc_cv_friendly_stddef+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489 cat >conftest.$ac_ext <<_ACEOF
5490 /* confdefs.h. */
5491 _ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5495 #define __need_size_t
5496 #define __need_wchar_t
5497 #include <stddef.h>
5498 #define __need_NULL
5499 #include <stddef.h>
5501 main ()
5503 size_t size; wchar_t wchar;
5504 #ifdef offsetof
5505 #error stddef.h ignored __need_*
5506 #endif
5507 if (&size == NULL || &wchar == NULL) abort ();
5509 return 0;
5511 _ACEOF
5512 rm -f conftest.$ac_objext
5513 if { (ac_try="$ac_compile"
5514 case "(($ac_try" in
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516 *) ac_try_echo=$ac_try;;
5517 esac
5518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519 (eval "$ac_compile") 2>conftest.er1
5520 ac_status=$?
5521 grep -v '^ *+' conftest.er1 >conftest.err
5522 rm -f conftest.er1
5523 cat conftest.err >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } && {
5526 test -z "$ac_c_werror_flag" ||
5527 test ! -s conftest.err
5528 } && test -s conftest.$ac_objext; then
5529 libc_cv_friendly_stddef=yes
5530 else
5531 echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5534 libc_cv_friendly_stddef=no
5537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539 { echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
5540 echo "${ECHO_T}$libc_cv_friendly_stddef" >&6; }
5541 if test $libc_cv_friendly_stddef = yes; then
5542 config_vars="$config_vars
5543 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5546 { echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
5547 echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6; }
5548 if test "${libc_cv_need_minus_P+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551 cat > conftest.S <<EOF
5552 #include "confdefs.h"
5553 /* Nothing whatsoever. */
5555 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557 (eval $ac_try) 2>&5
5558 ac_status=$?
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; }; then
5561 libc_cv_need_minus_P=no
5562 else
5563 libc_cv_need_minus_P=yes
5565 rm -f conftest*
5567 { echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
5568 echo "${ECHO_T}$libc_cv_need_minus_P" >&6; }
5569 if test $libc_cv_need_minus_P = yes; then
5570 config_vars="$config_vars
5571 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5574 { echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
5575 echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6; }
5576 if test "${libc_cv_dot_text+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579 cat > conftest.s <<EOF
5580 .text
5582 libc_cv_dot_text=
5583 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 (eval $ac_try) 2>&5
5586 ac_status=$?
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; }; then
5589 libc_cv_dot_text=.text
5591 rm -f conftest*
5594 if test -z "$libc_cv_dot_text"; then
5595 { echo "$as_me:$LINENO: result: no" >&5
5596 echo "${ECHO_T}no" >&6; }
5597 else
5598 { echo "$as_me:$LINENO: result: yes" >&5
5599 echo "${ECHO_T}yes" >&6; }
5602 { echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
5603 echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6; }
5604 if test "${libc_cv_asm_global_directive+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5606 else
5607 libc_cv_asm_global_directive=UNKNOWN
5608 for ac_globl in .globl .global .EXPORT; do
5609 cat > conftest.s <<EOF
5610 ${libc_cv_dot_text}
5611 ${ac_globl} foo
5612 foo:
5614 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616 (eval $ac_try) 2>&5
5617 ac_status=$?
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; }; then
5620 libc_cv_asm_global_directive=${ac_globl}
5622 rm -f conftest*
5623 test $libc_cv_asm_global_directive != UNKNOWN && break
5624 done
5626 { echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
5627 echo "${ECHO_T}$libc_cv_asm_global_directive" >&6; }
5628 if test $libc_cv_asm_global_directive = UNKNOWN; then
5629 { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
5630 echo "$as_me: error: cannot determine asm global directive" >&2;}
5631 { (exit 1); exit 1; }; }
5632 else
5633 cat >>confdefs.h <<_ACEOF
5634 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
5635 _ACEOF
5639 { echo "$as_me:$LINENO: checking for .set assembler directive" >&5
5640 echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6; }
5641 if test "${libc_cv_asm_set_directive+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5643 else
5644 cat > conftest.s <<EOF
5645 ${libc_cv_dot_text}
5646 foo:
5647 .set glibc_conftest_frobozz,foo
5648 $libc_cv_asm_global_directive glibc_conftest_frobozz
5650 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5651 # (but it doesn't work), so we must do a linking check to be sure.
5652 cat > conftest1.c <<\EOF
5653 extern int glibc_conftest_frobozz;
5654 void _start() { glibc_conftest_frobozz = 1; }
5656 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5657 -nostartfiles -nostdlib \
5658 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5659 libc_cv_asm_set_directive=yes
5660 else
5661 libc_cv_asm_set_directive=no
5663 rm -f conftest*
5665 { echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
5666 echo "${ECHO_T}$libc_cv_asm_set_directive" >&6; }
5667 if test $libc_cv_asm_set_directive = yes; then
5668 cat >>confdefs.h <<\_ACEOF
5669 #define HAVE_ASM_SET_DIRECTIVE 1
5670 _ACEOF
5674 { echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
5675 echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6; }
5676 if test "${libc_cv_asm_type_prefix+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 else
5679 libc_cv_asm_type_prefix=no
5680 for ac_try_prefix in '@' '%' '#'; do
5681 cat > conftest.s <<EOF
5682 ${libc_cv_dot_text}
5683 ${libc_cv_asm_global_directive} foo
5684 .type foo, ${ac_try_prefix}object
5685 .size foo, 1
5686 foo:
5687 .byte 1
5689 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691 (eval $ac_try) 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; }; then
5695 libc_cv_asm_type_prefix=${ac_try_prefix}
5697 rm -f conftest*
5698 test "x$libc_cv_asm_type_prefix" != xno && break
5699 done
5701 { echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
5702 echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6; }
5703 if test "x$libc_cv_asm_type_prefix" != xno; then
5704 cat >>confdefs.h <<_ACEOF
5705 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
5706 _ACEOF
5710 { echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
5711 echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6; }
5712 if test "${libc_cv_asm_symver_directive+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715 cat > conftest.s <<EOF
5716 ${libc_cv_dot_text}
5717 _sym:
5718 .symver _sym,sym@VERS
5720 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5721 libc_cv_asm_symver_directive=yes
5722 else
5723 libc_cv_asm_symver_directive=no
5725 rm -f conftest*
5727 { echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
5728 echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6; }
5729 { echo "$as_me:$LINENO: checking for ld --version-script" >&5
5730 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6; }
5731 if test "${libc_cv_ld_version_script_option+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734 if test $libc_cv_asm_symver_directive = yes; then
5735 cat > conftest.s <<EOF
5736 ${libc_cv_dot_text}
5737 _sym:
5738 .symver _sym,sym@VERS
5740 cat > conftest.map <<EOF
5741 VERS_1 {
5742 global: sym;
5745 VERS_2 {
5746 global: sym;
5747 } VERS_1;
5749 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5750 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
5751 -o conftest.so conftest.o
5752 -nostartfiles -nostdlib
5753 -Wl,--version-script,conftest.map
5754 1>&5'
5755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756 (eval $ac_try) 2>&5
5757 ac_status=$?
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); }; };
5760 then
5761 libc_cv_ld_version_script_option=yes
5762 else
5763 libc_cv_ld_version_script_option=no
5765 else
5766 libc_cv_ld_version_script_option=no
5768 else
5769 libc_cv_ld_version_script_option=no
5771 rm -f conftest*
5773 { echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
5774 echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6; }
5775 if test $shared != no &&
5776 test $libc_cv_asm_symver_directive = yes &&
5777 test $libc_cv_ld_version_script_option = yes &&
5778 test $enable_versioning = yes; then
5779 VERSIONING=yes
5780 cat >>confdefs.h <<\_ACEOF
5781 #define DO_VERSIONING 1
5782 _ACEOF
5784 else
5785 VERSIONING=no
5789 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
5790 echo "\
5791 *** WARNING: You should not compile GNU libc without versioning. Not using
5792 *** versioning will introduce incompatibilities so that old binaries
5793 *** will not run anymore.
5794 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
5796 if test $elf = yes; then
5797 { echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
5798 echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6; }
5799 if test "${libc_cv_asm_previous_directive+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802 cat > conftest.s <<EOF
5803 .section foo_section
5804 .previous
5806 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5808 (eval $ac_try) 2>&5
5809 ac_status=$?
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; }; then
5812 libc_cv_asm_previous_directive=yes
5813 else
5814 libc_cv_asm_previous_directive=no
5816 rm -f conftest*
5818 { echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
5819 echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6; }
5820 if test $libc_cv_asm_previous_directive = yes; then
5821 cat >>confdefs.h <<\_ACEOF
5822 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
5823 _ACEOF
5825 else
5826 { echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
5827 echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6; }
5828 if test "${libc_cv_asm_popsection_directive+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 else
5831 cat > conftest.s <<EOF
5832 .pushsection foo_section
5833 .popsection
5835 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 (eval $ac_try) 2>&5
5838 ac_status=$?
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; }; then
5841 libc_cv_asm_popsection_directive=yes
5842 else
5843 libc_cv_asm_popsection_directive=no
5845 rm -f conftest*
5847 { echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
5848 echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6; }
5849 if test $libc_cv_asm_popsection_directive = yes; then
5850 cat >>confdefs.h <<\_ACEOF
5851 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
5852 _ACEOF
5856 { echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
5857 echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6; }
5858 if test "${libc_cv_asm_protected_directive+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861 cat > conftest.s <<EOF
5862 .protected foo
5863 foo:
5864 .hidden bar
5865 bar:
5867 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 (eval $ac_try) 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; }; then
5873 libc_cv_asm_protected_directive=yes
5874 else
5875 { { echo "$as_me:$LINENO: error: assembler support for symbol visibility is required" >&5
5876 echo "$as_me: error: assembler support for symbol visibility is required" >&2;}
5877 { (exit 1); exit 1; }; }
5879 rm -f conftest*
5881 { echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
5882 echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6; }
5884 if test $libc_cv_asm_protected_directive = yes; then
5885 { echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
5886 echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6; }
5887 if test "${libc_cv_visibility_attribute+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890 cat > conftest.c <<EOF
5891 int foo __attribute__ ((visibility ("hidden"))) = 1;
5892 int bar __attribute__ ((visibility ("protected"))) = 1;
5894 libc_cv_visibility_attribute=no
5895 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897 (eval $ac_try) 2>&5
5898 ac_status=$?
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; }; then
5901 if grep '\.hidden.*foo' conftest.s >/dev/null; then
5902 if grep '\.protected.*bar' conftest.s >/dev/null; then
5903 libc_cv_visibility_attribute=yes
5907 rm -f conftest.cs
5910 { echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
5911 echo "${ECHO_T}$libc_cv_visibility_attribute" >&6; }
5912 if test $libc_cv_visibility_attribute != yes; then
5913 { { echo "$as_me:$LINENO: error: compiler support for visibility attribute is required" >&5
5914 echo "$as_me: error: compiler support for visibility attribute is required" >&2;}
5915 { (exit 1); exit 1; }; }
5919 if test $libc_cv_visibility_attribute = yes; then
5920 { echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
5921 echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6; }
5922 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 else
5925 cat > conftest.c <<EOF
5926 int foo (int x);
5927 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
5928 int bar (int x) { return x; }
5930 libc_cv_broken_visibility_attribute=yes
5931 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
5938 libc_cv_broken_visibility_attribute=no
5941 rm -f conftest.c conftest.s
5944 { echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
5945 echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6; }
5946 if test $libc_cv_broken_visibility_attribute = yes; then
5947 { { echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
5948 echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
5949 { (exit 1); exit 1; }; }
5953 { echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
5954 echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6; }
5955 if test "${libc_cv_broken_alias_attribute+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958 cat > conftest.c <<EOF
5959 extern int foo (int x) __asm ("xyzzy");
5960 int bar (int x) { return x; }
5961 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5962 extern int dfoo;
5963 extern __typeof (dfoo) dfoo __asm ("abccb");
5964 int dfoo = 1;
5966 libc_cv_broken_alias_attribute=yes
5967 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969 (eval $ac_try) 2>&5
5970 ac_status=$?
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); }; }; then
5973 if grep 'xyzzy' conftest.s >/dev/null &&
5974 grep 'abccb' conftest.s >/dev/null; then
5975 libc_cv_broken_alias_attribute=no
5978 rm -f conftest.c conftest.s
5981 { echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
5982 echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6; }
5983 if test $libc_cv_broken_alias_attribute = yes; then
5984 { { echo "$as_me:$LINENO: error: working alias attribute support required" >&5
5985 echo "$as_me: error: working alias attribute support required" >&2;}
5986 { (exit 1); exit 1; }; }
5989 if test $libc_cv_visibility_attribute = yes; then
5990 { echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
5991 echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6; }
5992 if test "${libc_cv_have_sdata_section+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 echo "int i;" > conftest.c
5996 libc_cv_have_sdata_section=no
5997 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
5998 | grep '\.sdata' >/dev/null; then
5999 libc_cv_have_sdata_section=yes
6001 rm -f conftest.c conftest.so
6004 { echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
6005 echo "${ECHO_T}$libc_cv_have_sdata_section" >&6; }
6006 if test $libc_cv_have_sdata_section = yes; then
6007 cat >>confdefs.h <<\_ACEOF
6008 #define HAVE_SDATA_SECTION 1
6009 _ACEOF
6014 { echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
6015 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6; }
6016 if test "${libc_cv_initfini_array+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 else
6019 cat > conftest.c <<EOF
6020 int _start (void) { return 0; }
6021 int __start (void) { return 0; }
6022 int foo (void) { return 1; }
6023 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
6025 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
6026 -static -nostartfiles -nostdlib 1>&5'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028 (eval $ac_try) 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }
6032 then
6033 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
6034 libc_cv_initfini_array=yes
6035 else
6036 libc_cv_initfini_array=no
6038 else
6039 libc_cv_initfini_array=no
6041 rm -f conftest*
6043 { echo "$as_me:$LINENO: result: $libc_cv_initfini_array" >&5
6044 echo "${ECHO_T}$libc_cv_initfini_array" >&6; }
6045 if test $libc_cv_initfini_array != yes; then
6046 { { echo "$as_me:$LINENO: error: Need linker with .init_array/.fini_array support." >&5
6047 echo "$as_me: error: Need linker with .init_array/.fini_array support." >&2;}
6048 { (exit 1); exit 1; }; }
6051 { echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
6052 echo $ECHO_N "checking for libunwind-support in compiler... $ECHO_C" >&6; }
6053 if test "${libc_cv_cc_with_libunwind+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6057 cat > conftest.c <<EOF
6058 int main (void) { return 0; }
6060 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6061 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6062 libc_cv_cc_with_libunwind=yes
6063 else
6064 libc_cv_cc_with_libunwind=no
6066 rm -f conftest*
6068 { echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
6069 echo "${ECHO_T}$libc_cv_cc_with_libunwind" >&6; }
6071 if test $libc_cv_cc_with_libunwind = yes; then
6072 cat >>confdefs.h <<\_ACEOF
6073 #define HAVE_CC_WITH_LIBUNWIND 1
6074 _ACEOF
6078 { echo "$as_me:$LINENO: checking for -z nodelete option" >&5
6079 echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6; }
6080 if test "${libc_cv_z_nodelete+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083 cat > conftest.c <<EOF
6084 int _start (void) { return 42; }
6086 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6087 -fPIC -shared -o conftest.so conftest.c
6088 -nostartfiles -nostdlib
6089 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 (eval $ac_try) 2>&5
6092 ac_status=$?
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }
6095 then
6096 libc_cv_z_nodelete=yes
6097 else
6098 { { echo "$as_me:$LINENO: error: linker with -z nodelete support required" >&5
6099 echo "$as_me: error: linker with -z nodelete support required" >&2;}
6100 { (exit 1); exit 1; }; }
6102 rm -f conftest*
6104 { echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
6105 echo "${ECHO_T}$libc_cv_z_nodelete" >&6; }
6107 { echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
6108 echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6; }
6109 if test "${libc_cv_z_nodlopen+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112 cat > conftest.c <<EOF
6113 int _start (void) { return 42; }
6115 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6116 -fPIC -shared -o conftest.so conftest.c
6117 -nostartfiles -nostdlib
6118 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 (eval $ac_try) 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; }
6124 then
6125 libc_cv_z_nodlopen=yes
6126 else
6127 { { echo "$as_me:$LINENO: error: linker with -z nodlopen support required" >&5
6128 echo "$as_me: error: linker with -z nodlopen support required" >&2;}
6129 { (exit 1); exit 1; }; }
6131 rm -f conftest*
6133 { echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
6134 echo "${ECHO_T}$libc_cv_z_nodlopen" >&6; }
6136 { echo "$as_me:$LINENO: checking for -z initfirst option" >&5
6137 echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6; }
6138 if test "${libc_cv_z_initfirst+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141 cat > conftest.c <<EOF
6142 int _start (void) { return 42; }
6144 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6145 -fPIC -shared -o conftest.so conftest.c
6146 -nostartfiles -nostdlib
6147 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }
6153 then
6154 libc_cv_z_initfirst=yes
6155 else
6156 { { echo "$as_me:$LINENO: error: linker with -z initfirst support required" >&5
6157 echo "$as_me: error: linker with -z initfirst support required" >&2;}
6158 { (exit 1); exit 1; }; }
6160 rm -f conftest*
6162 { echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
6163 echo "${ECHO_T}$libc_cv_z_initfirst" >&6; }
6165 case "$base_machine" in
6166 i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*)
6167 { echo "$as_me:$LINENO: checking for -z relro option" >&5
6168 echo $ECHO_N "checking for -z relro option... $ECHO_C" >&6; }
6169 if test "${libc_cv_z_relro+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172 libc_cv_z_relro=no
6173 if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175 (eval $ac_try) 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }
6179 then
6180 if { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 (eval $ac_try) 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; }
6186 then
6187 libc_cv_z_relro=yes
6191 { echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
6192 echo "${ECHO_T}$libc_cv_z_relro" >&6; }
6193 if test "$libc_cv_z_relro" = no; then
6194 { { echo "$as_me:$LINENO: error: linker with -z relro support required" >&5
6195 echo "$as_me: error: linker with -z relro support required" >&2;}
6196 { (exit 1); exit 1; }; }
6199 *) ;;
6200 esac
6202 { echo "$as_me:$LINENO: checking for -Bgroup option" >&5
6203 echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6; }
6204 if test "${libc_cv_Bgroup+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 else
6207 cat > conftest.c <<EOF
6208 int _start (void) { return 42; }
6210 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6211 -fPIC -shared -o conftest.so conftest.c
6212 -Wl,-Bgroup -nostdlib 1>&5'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 (eval $ac_try) 2>&5
6215 ac_status=$?
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }
6218 then
6219 libc_cv_Bgroup=yes
6220 else
6221 libc_cv_Bgroup=no
6223 rm -f conftest*
6225 { echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
6226 echo "${ECHO_T}$libc_cv_Bgroup" >&6; }
6229 { echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
6230 echo $ECHO_N "checking for libgcc_s suffix... $ECHO_C" >&6; }
6231 if test "${libc_cv_libgcc_s_suffix+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 cat > conftest.c <<EOF
6235 int main (void) { return 0; }
6237 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6238 -fPIC -shared -shared-libgcc -o conftest.so \
6239 conftest.c -v 2>&1 >/dev/null \
6240 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6241 rm -f conftest*
6243 { echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
6244 echo "${ECHO_T}$libc_cv_libgcc_s_suffix" >&6; }
6247 { echo "$as_me:$LINENO: checking for --as-needed option" >&5
6248 echo $ECHO_N "checking for --as-needed option... $ECHO_C" >&6; }
6249 if test "${libc_cv_as_needed+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252 cat > conftest.c <<EOF
6253 int main (void) { return 0; }
6255 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6256 -fPIC -shared -o conftest.so conftest.c
6257 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6258 -nostdlib 1>&5'
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 (eval $ac_try) 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; }
6264 then
6265 libc_cv_as_needed=yes
6266 else
6267 libc_cv_as_needed=no
6269 rm -f conftest*
6271 { echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
6272 echo "${ECHO_T}$libc_cv_as_needed" >&6; }
6275 ASFLAGS_config=
6276 { echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
6277 echo $ECHO_N "checking whether --noexecstack is desirable for .S files... $ECHO_C" >&6; }
6278 if test "${libc_cv_as_noexecstack+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 else
6281 cat > conftest.c <<EOF
6282 void foo (void) { }
6284 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6285 -S -o conftest.s conftest.c 1>&5'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 (eval $ac_try) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; } \
6291 && grep -q .note.GNU-stack conftest.s \
6292 && { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wa,--noexecstack
6293 -c -o conftest.o conftest.s 1>&5'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 (eval $ac_try) 2>&5
6296 ac_status=$?
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }
6299 then
6300 libc_cv_as_noexecstack=yes
6301 else
6302 libc_cv_as_noexecstack=no
6304 rm -f conftest*
6306 { echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
6307 echo "${ECHO_T}$libc_cv_as_noexecstack" >&6; }
6308 if test $libc_cv_as_noexecstack = yes; then
6309 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6313 { echo "$as_me:$LINENO: checking for -z combreloc" >&5
6314 echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6; }
6315 if test "${libc_cv_z_combreloc+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318 cat > conftest.c <<EOF
6319 extern int bar (int);
6320 extern int mumble;
6321 int foo (void) { return bar (mumble); }
6323 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6324 -fPIC -shared -o conftest.so conftest.c
6325 -nostdlib -nostartfiles
6326 -Wl,-z,combreloc 1>&5'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 (eval $ac_try) 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; }
6332 then
6333 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6334 libc_cv_z_combreloc=yes
6335 else
6336 libc_cv_z_combreloc=no
6338 else
6339 libc_cv_z_combreloc=no
6341 rm -f conftest*
6343 { echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
6344 echo "${ECHO_T}$libc_cv_z_combreloc" >&6; }
6345 if test "$libc_cv_z_combreloc" = yes; then
6346 cat >>confdefs.h <<\_ACEOF
6347 #define HAVE_Z_COMBRELOC 1
6348 _ACEOF
6353 { echo "$as_me:$LINENO: checking for -z execstack" >&5
6354 echo $ECHO_N "checking for -z execstack... $ECHO_C" >&6; }
6355 if test "${libc_cv_z_execstack+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358 cat > conftest.c <<EOF
6359 int _start (void) { return 42; }
6361 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6362 -fPIC -shared -o conftest.so conftest.c
6363 -Wl,-z,execstack -nostdlib
6364 1>&5'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 (eval $ac_try) 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }
6370 then
6371 libc_cv_z_execstack=yes
6372 else
6373 libc_cv_z_execstack=no
6375 rm -f conftest*
6377 { echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
6378 echo "${ECHO_T}$libc_cv_z_execstack" >&6; }
6381 { echo "$as_me:$LINENO: checking for -fpie" >&5
6382 echo $ECHO_N "checking for -fpie... $ECHO_C" >&6; }
6383 if test "${libc_cv_fpie+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386 cat > conftest.c <<EOF
6387 int foo;
6388 main () { return 0;}
6390 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6391 -o conftest conftest.c 1>&5'
6392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6393 (eval $ac_try) 2>&5
6394 ac_status=$?
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); }; }
6397 then
6398 libc_cv_fpie=yes
6399 else
6400 libc_cv_fpie=no
6402 rm -f conftest*
6404 { echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
6405 echo "${ECHO_T}$libc_cv_fpie" >&6; }
6409 { echo "$as_me:$LINENO: checking for --hash-style option" >&5
6410 echo $ECHO_N "checking for --hash-style option... $ECHO_C" >&6; }
6411 if test "${libc_cv_hashstyle+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 else
6414 cat > conftest.c <<EOF
6415 int _start (void) { return 42; }
6417 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6418 -fPIC -shared -o conftest.so conftest.c
6419 -Wl,--hash-style=both -nostdlib 1>&5'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 (eval $ac_try) 2>&5
6422 ac_status=$?
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; }
6425 then
6426 libc_cv_hashstyle=yes
6427 else
6428 libc_cv_hashstyle=no
6430 rm -f conftest*
6432 { echo "$as_me:$LINENO: result: $libc_cv_hashstyle" >&5
6433 echo "${ECHO_T}$libc_cv_hashstyle" >&6; }
6437 { echo "$as_me:$LINENO: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6438 echo $ECHO_N "checking for -fno-toplevel-reorder -fno-section-anchors... $ECHO_C" >&6; }
6439 if test "${libc_cv_fno_toplevel_reorder+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6441 else
6442 cat > conftest.c <<EOF
6443 int foo;
6445 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6446 conftest.c 1>&5'
6447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 (eval $ac_try) 2>&5
6449 ac_status=$?
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); }; }
6452 then
6453 libc_cv_fno_toplevel_reorder=yes
6454 else
6455 libc_cv_fno_toplevel_reorder=no
6457 rm -f conftest*
6459 { echo "$as_me:$LINENO: result: $libc_cv_fno_toplevel_reorder" >&5
6460 echo "${ECHO_T}$libc_cv_fno_toplevel_reorder" >&6; }
6461 if test $libc_cv_fno_toplevel_reorder = yes; then
6462 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6463 else
6464 fno_unit_at_a_time=-fno-unit-at-a-time
6468 { echo "$as_me:$LINENO: checking for -fstack-protector" >&5
6469 echo $ECHO_N "checking for -fstack-protector... $ECHO_C" >&6; }
6470 if test "${libc_cv_ssp+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473 cat > conftest.c <<EOF
6474 int foo;
6475 main () { return 0;}
6477 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -fstack-protector
6478 -o conftest conftest.c 1>&5'
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 (eval $ac_try) 2>&5
6481 ac_status=$?
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; }
6484 then
6485 libc_cv_ssp=yes
6486 else
6487 libc_cv_ssp=no
6489 rm -f conftest*
6491 { echo "$as_me:$LINENO: result: $libc_cv_ssp" >&5
6492 echo "${ECHO_T}$libc_cv_ssp" >&6; }
6495 { echo "$as_me:$LINENO: checking for -fgnu89-inline" >&5
6496 echo $ECHO_N "checking for -fgnu89-inline... $ECHO_C" >&6; }
6497 if test "${libc_cv_gnu89_inline+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6499 else
6500 cat > conftest.c <<EOF
6501 int foo;
6502 #ifdef __GNUC_GNU_INLINE__
6503 main () { return 0;}
6504 #else
6505 #error
6506 #endif
6508 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6509 -o conftest.s conftest.c 1>&5'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511 (eval $ac_try) 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; }
6515 then
6516 libc_cv_gnu89_inline=yes
6517 else
6518 libc_cv_gnu89_inline=no
6520 rm -f conftest*
6522 { echo "$as_me:$LINENO: result: $libc_cv_gnu89_inline" >&5
6523 echo "${ECHO_T}$libc_cv_gnu89_inline" >&6; }
6524 if test $libc_cv_gnu89_inline = yes; then
6525 libc_cv_gnu89_inline=-fgnu89-inline
6526 else
6527 libc_cv_gnu89_inline=
6531 if test $elf != yes; then
6532 { echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
6533 echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6; }
6534 if test "${libc_cv_have_initfini+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 else
6537 cat >conftest.$ac_ext <<_ACEOF
6538 /* confdefs.h. */
6539 _ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6545 main ()
6547 asm (".section .init");
6548 asm (".section .fini");
6549 asm ("${libc_cv_dot_text}");
6551 return 0;
6553 _ACEOF
6554 rm -f conftest.$ac_objext
6555 if { (ac_try="$ac_compile"
6556 case "(($ac_try" in
6557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6558 *) ac_try_echo=$ac_try;;
6559 esac
6560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6561 (eval "$ac_compile") 2>conftest.er1
6562 ac_status=$?
6563 grep -v '^ *+' conftest.er1 >conftest.err
6564 rm -f conftest.er1
6565 cat conftest.err >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } && {
6568 test -z "$ac_c_werror_flag" ||
6569 test ! -s conftest.err
6570 } && test -s conftest.$ac_objext; then
6571 libc_cv_have_initfini=yes
6572 else
6573 echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.$ac_ext >&5
6576 libc_cv_have_initfini=no
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581 { echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
6582 echo "${ECHO_T}$libc_cv_have_initfini" >&6; }
6583 if test $libc_cv_have_initfini = yes; then
6584 cat >>confdefs.h <<\_ACEOF
6585 #define HAVE_INITFINI 1
6586 _ACEOF
6591 if test $elf = yes; then
6592 { echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
6593 echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6; }
6594 if test "${libc_cv_have_section_quotes+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 else
6597 cat > conftest.c <<EOF
6598 static const int foo
6599 __attribute__ ((section ("bar"))) = 1;
6601 if ${CC-cc} -S conftest.c -o conftest.s; then
6602 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6603 libc_cv_have_section_quotes=yes
6604 else
6605 libc_cv_have_section_quotes=no
6607 else
6608 libc_cv_have_section_quotes=unknown
6610 rm -f conftest.cs
6613 { echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
6614 echo "${ECHO_T}$libc_cv_have_section_quotes" >&6; }
6615 if test $libc_cv_have_section_quotes = yes; then
6616 cat >>confdefs.h <<\_ACEOF
6617 #define HAVE_SECTION_QUOTES 1
6618 _ACEOF
6625 if test $elf = yes; then
6626 libc_cv_asm_underscores=no
6627 else
6628 if test $ac_cv_prog_cc_works = yes; then
6629 { echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6630 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6; }
6631 if test "${libc_cv_asm_underscores+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 else
6634 cat >conftest.$ac_ext <<_ACEOF
6635 /* confdefs.h. */
6636 _ACEOF
6637 cat confdefs.h >>conftest.$ac_ext
6638 cat >>conftest.$ac_ext <<_ACEOF
6639 /* end confdefs.h. */
6640 asm ("_glibc_foobar:");
6642 main ()
6644 glibc_foobar ();
6646 return 0;
6648 _ACEOF
6649 rm -f conftest.$ac_objext conftest$ac_exeext
6650 if { (ac_try="$ac_link"
6651 case "(($ac_try" in
6652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6653 *) ac_try_echo=$ac_try;;
6654 esac
6655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6656 (eval "$ac_link") 2>conftest.er1
6657 ac_status=$?
6658 grep -v '^ *+' conftest.er1 >conftest.err
6659 rm -f conftest.er1
6660 cat conftest.err >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); } && {
6663 test -z "$ac_c_werror_flag" ||
6664 test ! -s conftest.err
6665 } && test -s conftest$ac_exeext &&
6666 $as_test_x conftest$ac_exeext; then
6667 libc_cv_asm_underscores=yes
6668 else
6669 echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.$ac_ext >&5
6672 libc_cv_asm_underscores=no
6675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6676 conftest$ac_exeext conftest.$ac_ext
6678 { echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
6679 echo "${ECHO_T}$libc_cv_asm_underscores" >&6; }
6680 else
6681 { echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6682 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6; }
6683 if test "${libc_cv_asm_underscores+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686 cat > conftest.$ac_ext <<EOF
6687 #line $LINENO "configure"
6688 #include "confdefs.h"
6689 void underscore_test(void) {
6690 return; }
6692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693 (eval $ac_compile) 2>&5
6694 ac_status=$?
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; then
6697 if grep _underscore_test conftest* >/dev/null; then
6698 rm -f conftest*
6699 libc_cv_asm_underscores=yes
6700 else
6701 rm -f conftest*
6702 libc_cv_asm_underscores=no
6704 else
6705 echo "configure: failed program was:" >&5
6706 cat conftest.$ac_ext >&5
6707 rm -f conftest*
6708 libc_cv_asm_underscores=no
6710 rm -f conftest*
6712 { echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
6713 echo "${ECHO_T}$libc_cv_asm_underscores" >&6; }
6716 if test $libc_cv_asm_underscores = no; then
6717 cat >>confdefs.h <<\_ACEOF
6718 #define NO_UNDERSCORES 1
6719 _ACEOF
6723 if test $elf = yes; then
6724 libc_cv_weak_symbols=yes
6727 { echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
6728 echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6; }
6729 if test "${libc_cv_asm_weak_directive+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 else
6732 cat > conftest.s <<EOF
6733 ${libc_cv_dot_text}
6734 ${libc_cv_asm_global_directive} foo
6735 foo:
6736 .weak foo
6737 .weak bar; bar = foo
6739 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741 (eval $ac_try) 2>&5
6742 ac_status=$?
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
6745 libc_cv_asm_weak_directive=yes
6746 else
6747 libc_cv_asm_weak_directive=no
6749 rm -f conftest*
6751 { echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
6752 echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6; }
6754 if test $libc_cv_asm_weak_directive = no; then
6755 { echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
6756 echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6; }
6757 if test "${libc_cv_asm_weakext_directive+set}" = set; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 else
6760 cat > conftest.s <<EOF
6761 ${libc_cv_dot_text}
6762 ${libc_cv_asm_global_directive} foo
6763 foo:
6764 .weakext bar foo
6765 .weakext baz
6766 ${libc_cv_asm_global_directive} baz
6767 baz:
6769 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 (eval $ac_try) 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then
6775 libc_cv_asm_weakext_directive=yes
6776 else
6777 libc_cv_asm_weakext_directive=no
6779 rm -f conftest*
6781 { echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
6782 echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6; }
6784 fi # no .weak
6786 if test $libc_cv_asm_weak_directive = yes; then
6787 cat >>confdefs.h <<\_ACEOF
6788 #define HAVE_ASM_WEAK_DIRECTIVE 1
6789 _ACEOF
6791 elif test $libc_cv_asm_weakext_directive = yes; then
6792 cat >>confdefs.h <<\_ACEOF
6793 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
6794 _ACEOF
6798 { echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
6799 echo $ECHO_N "checking whether CFI directives are supported... $ECHO_C" >&6; }
6800 if test "${libc_cv_asm_cfi_directives+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 else
6803 case $machine in
6804 sparc/sparc64*) cfi_offset=2047;;
6805 *) cfi_offset=0;;
6806 esac
6807 cat > conftest.s <<EOF
6808 .text
6809 .type func,%function
6810 func:
6811 .cfi_startproc
6812 .cfi_remember_state
6813 .cfi_rel_offset 1, $cfi_offset
6814 .cfi_endproc
6816 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 (eval $ac_try) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; }; then
6822 libc_cv_asm_cfi_directives=yes
6823 else
6824 libc_cv_asm_cfi_directives=no
6826 rm -f conftest*
6828 { echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
6829 echo "${ECHO_T}$libc_cv_asm_cfi_directives" >&6; }
6830 if test $libc_cv_asm_cfi_directives = yes; then
6831 cat >>confdefs.h <<\_ACEOF
6832 #define HAVE_ASM_CFI_DIRECTIVES 1
6833 _ACEOF
6837 { echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
6838 echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6; }
6839 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 else
6842 cat > conftest.c <<\EOF
6843 _start () {}
6844 int __eh_pc;
6845 __throw () {}
6847 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6848 -nostdlib -nostartfiles -Wl,--no-whole-archive
6849 -o conftest conftest.c 1>&5'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 (eval $ac_try) 2>&5
6852 ac_status=$?
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6855 libc_cv_ld_no_whole_archive=yes
6856 else
6857 libc_cv_ld_no_whole_archive=no
6859 rm -f conftest*
6861 { echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
6862 echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6; }
6863 if test $libc_cv_ld_no_whole_archive = yes; then
6864 no_whole_archive=-Wl,--no-whole-archive
6867 { echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
6868 echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6; }
6869 if test "${libc_cv_gcc_exceptions+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872 cat > conftest.c <<\EOF
6873 _start () {}
6874 int __eh_pc;
6875 __throw () {}
6877 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6878 -nostdlib -nostartfiles -fexceptions
6879 -o conftest conftest.c 1>&5'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 (eval $ac_try) 2>&5
6882 ac_status=$?
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; }; then
6885 libc_cv_gcc_exceptions=yes
6886 else
6887 libc_cv_gcc_exceptions=no
6889 rm -f conftest*
6891 { echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
6892 echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6; }
6893 if test $libc_cv_gcc_exceptions = yes; then
6894 exceptions=-fexceptions
6897 if test "$host_cpu" = powerpc ; then
6898 # Check for a bug present in at least versions 2.8.x of GCC
6899 # and versions 1.0.x of EGCS.
6900 { echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
6901 echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6; }
6902 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
6904 else
6905 cat >conftest.$ac_ext <<_ACEOF
6906 /* confdefs.h. */
6907 _ACEOF
6908 cat confdefs.h >>conftest.$ac_ext
6909 cat >>conftest.$ac_ext <<_ACEOF
6910 /* end confdefs.h. */
6911 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
6913 main ()
6917 return 0;
6919 _ACEOF
6920 rm -f conftest.$ac_objext
6921 if { (ac_try="$ac_compile"
6922 case "(($ac_try" in
6923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6924 *) ac_try_echo=$ac_try;;
6925 esac
6926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6927 (eval "$ac_compile") 2>conftest.er1
6928 ac_status=$?
6929 grep -v '^ *+' conftest.er1 >conftest.err
6930 rm -f conftest.er1
6931 cat conftest.err >&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } && {
6934 test -z "$ac_c_werror_flag" ||
6935 test ! -s conftest.err
6936 } && test -s conftest.$ac_objext; then
6937 libc_cv_c_asmcr0_bug='no'
6938 else
6939 echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6942 libc_cv_c_asmcr0_bug='yes'
6945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6947 { echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
6948 echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6; }
6949 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
6950 cat >>confdefs.h <<\_ACEOF
6951 #define BROKEN_PPC_ASM_CR0 1
6952 _ACEOF
6957 { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
6958 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
6959 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 else
6962 cat > conftest.c <<EOF
6963 #line $LINENO "configure"
6964 int foo (int a)
6966 a = __builtin_expect (a, 10);
6967 return a == 10 ? 0 : 1;
6970 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
6971 -o conftest conftest.c -lgcc >&5'
6972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973 (eval $ac_try) 2>&5
6974 ac_status=$?
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); }; }; then
6977 libc_cv_gcc_builtin_expect=yes
6978 else
6979 libc_cv_gcc_builtin_expect=no
6981 rm -f conftest*
6983 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
6984 echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6; }
6985 if test "$libc_cv_gcc_builtin_expect" = yes; then
6986 cat >>confdefs.h <<\_ACEOF
6987 #define HAVE_BUILTIN_EXPECT 1
6988 _ACEOF
6992 { echo "$as_me:$LINENO: checking for __builtin_memset" >&5
6993 echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6; }
6994 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 else
6997 cat > conftest.c <<\EOF
6998 void zero (void *x)
7000 __builtin_memset (x, 0, 1000);
7003 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 (eval $ac_try) 2>&5
7006 ac_status=$?
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; };
7009 then
7010 libc_cv_gcc_builtin_memset=no
7011 else
7012 libc_cv_gcc_builtin_memset=yes
7014 rm -f conftest*
7016 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
7017 echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6; }
7018 if test "$libc_cv_gcc_builtin_memset" = yes ; then
7019 cat >>confdefs.h <<\_ACEOF
7020 #define HAVE_BUILTIN_MEMSET 1
7021 _ACEOF
7025 { echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
7026 echo $ECHO_N "checking for redirection of built-in functions... $ECHO_C" >&6; }
7027 if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030 cat > conftest.c <<\EOF
7031 extern char *strstr (const char *, const char *) __asm ("my_strstr");
7032 char *foo (const char *a, const char *b)
7034 return __builtin_strstr (a, b);
7037 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 (eval $ac_try) 2>&5
7040 ac_status=$?
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; };
7043 then
7044 libc_cv_gcc_builtin_redirection=yes
7045 else
7046 libc_cv_gcc_builtin_redirection=no
7048 rm -f conftest*
7050 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
7051 echo "${ECHO_T}$libc_cv_gcc_builtin_redirection" >&6; }
7052 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
7053 cat >>confdefs.h <<\_ACEOF
7054 #define HAVE_BUILTIN_REDIRECTION 1
7055 _ACEOF
7059 if test "x$use__thread" != xno; then
7060 { echo "$as_me:$LINENO: checking for __thread" >&5
7061 echo $ECHO_N "checking for __thread... $ECHO_C" >&6; }
7062 if test "${libc_cv_gcc___thread+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 else
7065 cat > conftest.c <<\EOF
7066 __thread int a = 42;
7068 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070 (eval $ac_try) 2>&5
7071 ac_status=$?
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7074 libc_cv_gcc___thread=yes
7075 else
7076 libc_cv_gcc___thread=no
7078 rm -f conftest*
7080 { echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
7081 echo "${ECHO_T}$libc_cv_gcc___thread" >&6; }
7082 if test "$libc_cv_gcc___thread" = yes; then
7083 cat >>confdefs.h <<\_ACEOF
7084 #define HAVE___THREAD 1
7085 _ACEOF
7088 else
7089 libc_cv_gcc___thread=no
7092 if test "$libc_cv_gcc___thread" = yes; then
7093 { echo "$as_me:$LINENO: checking for tls_model attribute" >&5
7094 echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6; }
7095 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7097 else
7098 cat > conftest.c <<\EOF
7099 extern __thread int a __attribute__((tls_model ("initial-exec")));
7101 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103 (eval $ac_try) 2>&5
7104 ac_status=$?
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; }; then
7107 libc_cv_gcc_tls_model_attr=yes
7108 else
7109 libc_cv_gcc_tls_model_attr=no
7111 rm -f conftest*
7113 { echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
7114 echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6; }
7115 if test "$libc_cv_gcc_tls_model_attr" = yes; then
7116 cat >>confdefs.h <<\_ACEOF
7117 #define HAVE_TLS_MODEL_ATTRIBUTE 1
7118 _ACEOF
7123 if test -n "$submachine"; then
7124 { echo "$as_me:$LINENO: checking for compiler option for CPU variant" >&5
7125 echo $ECHO_N "checking for compiler option for CPU variant... $ECHO_C" >&6; }
7126 if test "${libc_cv_cc_submachine+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 else
7129 libc_cv_cc_submachine=no
7130 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7131 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133 (eval $ac_try) 2>&5
7134 ac_status=$?
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; }; then
7137 libc_cv_cc_submachine="$opt"
7138 break
7140 done
7142 { echo "$as_me:$LINENO: result: $libc_cv_cc_submachine" >&5
7143 echo "${ECHO_T}$libc_cv_cc_submachine" >&6; }
7144 if test "x$libc_cv_cc_submachine" = xno; then
7145 { { echo "$as_me:$LINENO: error: ${CC-cc} does not support $submachine" >&5
7146 echo "$as_me: error: ${CC-cc} does not support $submachine" >&2;}
7147 { (exit 1); exit 1; }; }
7152 { echo "$as_me:$LINENO: checking for libgd" >&5
7153 echo $ECHO_N "checking for libgd... $ECHO_C" >&6; }
7154 if test "$with_gd" != "no"; then
7155 old_CFLAGS="$CFLAGS"
7156 CFLAGS="$CFLAGS $libgd_include"
7157 old_LDFLAGS="$LDFLAGS"
7158 LDFLAGS="$LDFLAGS $libgd_ldflags"
7159 old_LIBS="$LIBS"
7160 LIBS="$LIBS -lgd -lpng -lz -lm"
7161 cat >conftest.$ac_ext <<_ACEOF
7162 /* confdefs.h. */
7163 _ACEOF
7164 cat confdefs.h >>conftest.$ac_ext
7165 cat >>conftest.$ac_ext <<_ACEOF
7166 /* end confdefs.h. */
7167 #include <gd.h>
7169 main ()
7171 gdImagePng (0, 0)
7173 return 0;
7175 _ACEOF
7176 rm -f conftest.$ac_objext conftest$ac_exeext
7177 if { (ac_try="$ac_link"
7178 case "(($ac_try" in
7179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7180 *) ac_try_echo=$ac_try;;
7181 esac
7182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7183 (eval "$ac_link") 2>conftest.er1
7184 ac_status=$?
7185 grep -v '^ *+' conftest.er1 >conftest.err
7186 rm -f conftest.er1
7187 cat conftest.err >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } && {
7190 test -z "$ac_c_werror_flag" ||
7191 test ! -s conftest.err
7192 } && test -s conftest$ac_exeext &&
7193 $as_test_x conftest$ac_exeext; then
7194 LIBGD=yes
7195 else
7196 echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7199 LIBGD=no
7202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7203 conftest$ac_exeext conftest.$ac_ext
7204 CFLAGS="$old_CFLAGS"
7205 LDFLAGS="$old_LDFLAGS"
7206 LIBS="$old_LIBS"
7207 else
7208 LIBGD=no
7210 { echo "$as_me:$LINENO: result: $LIBGD" >&5
7211 echo "${ECHO_T}$LIBGD" >&6; }
7214 # SELinux detection
7215 if test x$with_selinux = xno ; then
7216 have_selinux=no;
7217 else
7218 # See if we have the SELinux library
7219 { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
7220 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
7221 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 else
7224 ac_check_lib_save_LIBS=$LIBS
7225 LIBS="-lselinux $LIBS"
7226 cat >conftest.$ac_ext <<_ACEOF
7227 /* confdefs.h. */
7228 _ACEOF
7229 cat confdefs.h >>conftest.$ac_ext
7230 cat >>conftest.$ac_ext <<_ACEOF
7231 /* end confdefs.h. */
7233 /* Override any GCC internal prototype to avoid an error.
7234 Use char because int might match the return type of a GCC
7235 builtin and then its argument prototype would still apply. */
7236 #ifdef __cplusplus
7237 extern "C"
7238 #endif
7239 char is_selinux_enabled ();
7241 main ()
7243 return is_selinux_enabled ();
7245 return 0;
7247 _ACEOF
7248 rm -f conftest.$ac_objext conftest$ac_exeext
7249 if { (ac_try="$ac_link"
7250 case "(($ac_try" in
7251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7252 *) ac_try_echo=$ac_try;;
7253 esac
7254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7255 (eval "$ac_link") 2>conftest.er1
7256 ac_status=$?
7257 grep -v '^ *+' conftest.er1 >conftest.err
7258 rm -f conftest.er1
7259 cat conftest.err >&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } && {
7262 test -z "$ac_c_werror_flag" ||
7263 test ! -s conftest.err
7264 } && test -s conftest$ac_exeext &&
7265 $as_test_x conftest$ac_exeext; then
7266 ac_cv_lib_selinux_is_selinux_enabled=yes
7267 else
7268 echo "$as_me: failed program was:" >&5
7269 sed 's/^/| /' conftest.$ac_ext >&5
7271 ac_cv_lib_selinux_is_selinux_enabled=no
7274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7275 conftest$ac_exeext conftest.$ac_ext
7276 LIBS=$ac_check_lib_save_LIBS
7278 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7279 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7280 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
7281 have_selinux=yes
7282 else
7283 have_selinux=no
7286 # See if we have the SELinux header with the NSCD permissions in it.
7287 if test x$have_selinux = xyes ; then
7288 { echo "$as_me:$LINENO: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7289 echo $ECHO_N "checking for NSCD Flask permissions in selinux/av_permissions.h... $ECHO_C" >&6; }
7290 cat >conftest.$ac_ext <<_ACEOF
7291 /* confdefs.h. */
7292 _ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h. */
7296 #include <selinux/av_permissions.h>
7298 main ()
7300 #ifdef NSCD__SHMEMHOST
7301 return 0;
7302 #else
7303 #error NSCD__SHMEMHOST not defined
7304 #endif
7306 return 0;
7308 _ACEOF
7309 rm -f conftest.$ac_objext
7310 if { (ac_try="$ac_compile"
7311 case "(($ac_try" in
7312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7313 *) ac_try_echo=$ac_try;;
7314 esac
7315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7316 (eval "$ac_compile") 2>conftest.er1
7317 ac_status=$?
7318 grep -v '^ *+' conftest.er1 >conftest.err
7319 rm -f conftest.er1
7320 cat conftest.err >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } && {
7323 test -z "$ac_c_werror_flag" ||
7324 test ! -s conftest.err
7325 } && test -s conftest.$ac_objext; then
7326 have_selinux=yes
7327 else
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7331 have_selinux=no
7334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335 { echo "$as_me:$LINENO: result: $have_selinux" >&5
7336 echo "${ECHO_T}$have_selinux" >&6; }
7339 if test x$with_selinux = xyes ; then
7340 if test x$have_selinux = xno ; then
7341 { { echo "$as_me:$LINENO: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&5
7342 echo "$as_me: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&2;}
7343 { (exit 1); exit 1; }; }
7347 # Check if we're building with SELinux support.
7348 if test "x$have_selinux" = xyes; then
7350 cat >>confdefs.h <<\_ACEOF
7351 #define HAVE_SELINUX 1
7352 _ACEOF
7355 # See if we have the libaudit library
7356 { echo "$as_me:$LINENO: checking for audit_log_user_avc_message in -laudit" >&5
7357 echo $ECHO_N "checking for audit_log_user_avc_message in -laudit... $ECHO_C" >&6; }
7358 if test "${ac_cv_lib_audit_audit_log_user_avc_message+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 else
7361 ac_check_lib_save_LIBS=$LIBS
7362 LIBS="-laudit $LIBS"
7363 cat >conftest.$ac_ext <<_ACEOF
7364 /* confdefs.h. */
7365 _ACEOF
7366 cat confdefs.h >>conftest.$ac_ext
7367 cat >>conftest.$ac_ext <<_ACEOF
7368 /* end confdefs.h. */
7370 /* Override any GCC internal prototype to avoid an error.
7371 Use char because int might match the return type of a GCC
7372 builtin and then its argument prototype would still apply. */
7373 #ifdef __cplusplus
7374 extern "C"
7375 #endif
7376 char audit_log_user_avc_message ();
7378 main ()
7380 return audit_log_user_avc_message ();
7382 return 0;
7384 _ACEOF
7385 rm -f conftest.$ac_objext conftest$ac_exeext
7386 if { (ac_try="$ac_link"
7387 case "(($ac_try" in
7388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7389 *) ac_try_echo=$ac_try;;
7390 esac
7391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7392 (eval "$ac_link") 2>conftest.er1
7393 ac_status=$?
7394 grep -v '^ *+' conftest.er1 >conftest.err
7395 rm -f conftest.er1
7396 cat conftest.err >&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } && {
7399 test -z "$ac_c_werror_flag" ||
7400 test ! -s conftest.err
7401 } && test -s conftest$ac_exeext &&
7402 $as_test_x conftest$ac_exeext; then
7403 ac_cv_lib_audit_audit_log_user_avc_message=yes
7404 else
7405 echo "$as_me: failed program was:" >&5
7406 sed 's/^/| /' conftest.$ac_ext >&5
7408 ac_cv_lib_audit_audit_log_user_avc_message=no
7411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7412 conftest$ac_exeext conftest.$ac_ext
7413 LIBS=$ac_check_lib_save_LIBS
7415 { echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7416 echo "${ECHO_T}$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7417 if test $ac_cv_lib_audit_audit_log_user_avc_message = yes; then
7418 have_libaudit=yes
7419 else
7420 have_libaudit=no
7423 if test "x$have_libaudit" = xyes; then
7425 cat >>confdefs.h <<\_ACEOF
7426 #define HAVE_LIBAUDIT 1
7427 _ACEOF
7432 # See if we have the libcap library
7433 { echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
7434 echo $ECHO_N "checking for cap_init in -lcap... $ECHO_C" >&6; }
7435 if test "${ac_cv_lib_cap_cap_init+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 else
7438 ac_check_lib_save_LIBS=$LIBS
7439 LIBS="-lcap $LIBS"
7440 cat >conftest.$ac_ext <<_ACEOF
7441 /* confdefs.h. */
7442 _ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h. */
7447 /* Override any GCC internal prototype to avoid an error.
7448 Use char because int might match the return type of a GCC
7449 builtin and then its argument prototype would still apply. */
7450 #ifdef __cplusplus
7451 extern "C"
7452 #endif
7453 char cap_init ();
7455 main ()
7457 return cap_init ();
7459 return 0;
7461 _ACEOF
7462 rm -f conftest.$ac_objext conftest$ac_exeext
7463 if { (ac_try="$ac_link"
7464 case "(($ac_try" in
7465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7466 *) ac_try_echo=$ac_try;;
7467 esac
7468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7469 (eval "$ac_link") 2>conftest.er1
7470 ac_status=$?
7471 grep -v '^ *+' conftest.er1 >conftest.err
7472 rm -f conftest.er1
7473 cat conftest.err >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && {
7476 test -z "$ac_c_werror_flag" ||
7477 test ! -s conftest.err
7478 } && test -s conftest$ac_exeext &&
7479 $as_test_x conftest$ac_exeext; then
7480 ac_cv_lib_cap_cap_init=yes
7481 else
7482 echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7485 ac_cv_lib_cap_cap_init=no
7488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7489 conftest$ac_exeext conftest.$ac_ext
7490 LIBS=$ac_check_lib_save_LIBS
7492 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
7493 echo "${ECHO_T}$ac_cv_lib_cap_cap_init" >&6; }
7494 if test $ac_cv_lib_cap_cap_init = yes; then
7495 have_libcap=yes
7496 else
7497 have_libcap=no
7500 if test "x$have_libcap" = xyes; then
7502 cat >>confdefs.h <<\_ACEOF
7503 #define HAVE_LIBCAP 1
7504 _ACEOF
7512 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7513 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7514 if test "${ac_cv_path_GREP+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 else
7517 # Extract the first word of "grep ggrep" to use in msg output
7518 if test -z "$GREP"; then
7519 set dummy grep ggrep; ac_prog_name=$2
7520 if test "${ac_cv_path_GREP+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 else
7523 ac_path_GREP_found=false
7524 # Loop through the user's path and test for each of PROGNAME-LIST
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7528 IFS=$as_save_IFS
7529 test -z "$as_dir" && as_dir=.
7530 for ac_prog in grep ggrep; do
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7533 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7534 # Check for GNU ac_path_GREP and select it if it is found.
7535 # Check for GNU $ac_path_GREP
7536 case `"$ac_path_GREP" --version 2>&1` in
7537 *GNU*)
7538 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7540 ac_count=0
7541 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7542 while :
7544 cat "conftest.in" "conftest.in" >"conftest.tmp"
7545 mv "conftest.tmp" "conftest.in"
7546 cp "conftest.in" "conftest.nl"
7547 echo 'GREP' >> "conftest.nl"
7548 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7549 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7550 ac_count=`expr $ac_count + 1`
7551 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7552 # Best one so far, save it but keep looking for a better one
7553 ac_cv_path_GREP="$ac_path_GREP"
7554 ac_path_GREP_max=$ac_count
7556 # 10*(2^10) chars as input seems more than enough
7557 test $ac_count -gt 10 && break
7558 done
7559 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7560 esac
7563 $ac_path_GREP_found && break 3
7564 done
7565 done
7567 done
7568 IFS=$as_save_IFS
7573 GREP="$ac_cv_path_GREP"
7574 if test -z "$GREP"; then
7575 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7576 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7577 { (exit 1); exit 1; }; }
7580 else
7581 ac_cv_path_GREP=$GREP
7586 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7587 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7588 GREP="$ac_cv_path_GREP"
7591 { echo "$as_me:$LINENO: checking for egrep" >&5
7592 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7593 if test "${ac_cv_path_EGREP+set}" = set; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 else
7596 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7597 then ac_cv_path_EGREP="$GREP -E"
7598 else
7599 # Extract the first word of "egrep" to use in msg output
7600 if test -z "$EGREP"; then
7601 set dummy egrep; ac_prog_name=$2
7602 if test "${ac_cv_path_EGREP+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 else
7605 ac_path_EGREP_found=false
7606 # Loop through the user's path and test for each of PROGNAME-LIST
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7610 IFS=$as_save_IFS
7611 test -z "$as_dir" && as_dir=.
7612 for ac_prog in egrep; do
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7615 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7616 # Check for GNU ac_path_EGREP and select it if it is found.
7617 # Check for GNU $ac_path_EGREP
7618 case `"$ac_path_EGREP" --version 2>&1` in
7619 *GNU*)
7620 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7622 ac_count=0
7623 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7624 while :
7626 cat "conftest.in" "conftest.in" >"conftest.tmp"
7627 mv "conftest.tmp" "conftest.in"
7628 cp "conftest.in" "conftest.nl"
7629 echo 'EGREP' >> "conftest.nl"
7630 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7631 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7632 ac_count=`expr $ac_count + 1`
7633 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7634 # Best one so far, save it but keep looking for a better one
7635 ac_cv_path_EGREP="$ac_path_EGREP"
7636 ac_path_EGREP_max=$ac_count
7638 # 10*(2^10) chars as input seems more than enough
7639 test $ac_count -gt 10 && break
7640 done
7641 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7642 esac
7645 $ac_path_EGREP_found && break 3
7646 done
7647 done
7649 done
7650 IFS=$as_save_IFS
7655 EGREP="$ac_cv_path_EGREP"
7656 if test -z "$EGREP"; then
7657 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7658 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7659 { (exit 1); exit 1; }; }
7662 else
7663 ac_cv_path_EGREP=$EGREP
7669 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7670 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7671 EGREP="$ac_cv_path_EGREP"
7674 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7675 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7676 if test "${ac_cv_header_stdc+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 else
7679 cat >conftest.$ac_ext <<_ACEOF
7680 /* confdefs.h. */
7681 _ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7685 #include <stdlib.h>
7686 #include <stdarg.h>
7687 #include <string.h>
7688 #include <float.h>
7691 main ()
7695 return 0;
7697 _ACEOF
7698 rm -f conftest.$ac_objext
7699 if { (ac_try="$ac_compile"
7700 case "(($ac_try" in
7701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7702 *) ac_try_echo=$ac_try;;
7703 esac
7704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7705 (eval "$ac_compile") 2>conftest.er1
7706 ac_status=$?
7707 grep -v '^ *+' conftest.er1 >conftest.err
7708 rm -f conftest.er1
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } && {
7712 test -z "$ac_c_werror_flag" ||
7713 test ! -s conftest.err
7714 } && test -s conftest.$ac_objext; then
7715 ac_cv_header_stdc=yes
7716 else
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7720 ac_cv_header_stdc=no
7723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7725 if test $ac_cv_header_stdc = yes; then
7726 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7727 cat >conftest.$ac_ext <<_ACEOF
7728 /* confdefs.h. */
7729 _ACEOF
7730 cat confdefs.h >>conftest.$ac_ext
7731 cat >>conftest.$ac_ext <<_ACEOF
7732 /* end confdefs.h. */
7733 #include <string.h>
7735 _ACEOF
7736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7737 $EGREP "memchr" >/dev/null 2>&1; then
7739 else
7740 ac_cv_header_stdc=no
7742 rm -f conftest*
7746 if test $ac_cv_header_stdc = yes; then
7747 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7748 cat >conftest.$ac_ext <<_ACEOF
7749 /* confdefs.h. */
7750 _ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h. */
7754 #include <stdlib.h>
7756 _ACEOF
7757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7758 $EGREP "free" >/dev/null 2>&1; then
7760 else
7761 ac_cv_header_stdc=no
7763 rm -f conftest*
7767 if test $ac_cv_header_stdc = yes; then
7768 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7769 if test "$cross_compiling" = yes; then
7771 else
7772 cat >conftest.$ac_ext <<_ACEOF
7773 /* confdefs.h. */
7774 _ACEOF
7775 cat confdefs.h >>conftest.$ac_ext
7776 cat >>conftest.$ac_ext <<_ACEOF
7777 /* end confdefs.h. */
7778 #include <ctype.h>
7779 #include <stdlib.h>
7780 #if ((' ' & 0x0FF) == 0x020)
7781 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7782 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7783 #else
7784 # define ISLOWER(c) \
7785 (('a' <= (c) && (c) <= 'i') \
7786 || ('j' <= (c) && (c) <= 'r') \
7787 || ('s' <= (c) && (c) <= 'z'))
7788 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7789 #endif
7791 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7793 main ()
7795 int i;
7796 for (i = 0; i < 256; i++)
7797 if (XOR (islower (i), ISLOWER (i))
7798 || toupper (i) != TOUPPER (i))
7799 return 2;
7800 return 0;
7802 _ACEOF
7803 rm -f conftest$ac_exeext
7804 if { (ac_try="$ac_link"
7805 case "(($ac_try" in
7806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7807 *) ac_try_echo=$ac_try;;
7808 esac
7809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7810 (eval "$ac_link") 2>&5
7811 ac_status=$?
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7814 { (case "(($ac_try" in
7815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816 *) ac_try_echo=$ac_try;;
7817 esac
7818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7819 (eval "$ac_try") 2>&5
7820 ac_status=$?
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); }; }; then
7824 else
7825 echo "$as_me: program exited with status $ac_status" >&5
7826 echo "$as_me: failed program was:" >&5
7827 sed 's/^/| /' conftest.$ac_ext >&5
7829 ( exit $ac_status )
7830 ac_cv_header_stdc=no
7832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7838 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7839 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7840 if test $ac_cv_header_stdc = yes; then
7842 cat >>confdefs.h <<\_ACEOF
7843 #define STDC_HEADERS 1
7844 _ACEOF
7848 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7858 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7859 inttypes.h stdint.h unistd.h
7861 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7865 echo $ECHO_N "(cached) $ECHO_C" >&6
7866 else
7867 cat >conftest.$ac_ext <<_ACEOF
7868 /* confdefs.h. */
7869 _ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h. */
7873 $ac_includes_default
7875 #include <$ac_header>
7876 _ACEOF
7877 rm -f conftest.$ac_objext
7878 if { (ac_try="$ac_compile"
7879 case "(($ac_try" in
7880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881 *) ac_try_echo=$ac_try;;
7882 esac
7883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7884 (eval "$ac_compile") 2>conftest.er1
7885 ac_status=$?
7886 grep -v '^ *+' conftest.er1 >conftest.err
7887 rm -f conftest.er1
7888 cat conftest.err >&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } && {
7891 test -z "$ac_c_werror_flag" ||
7892 test ! -s conftest.err
7893 } && test -s conftest.$ac_objext; then
7894 eval "$as_ac_Header=yes"
7895 else
7896 echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7899 eval "$as_ac_Header=no"
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7904 ac_res=`eval echo '${'$as_ac_Header'}'`
7905 { echo "$as_me:$LINENO: result: $ac_res" >&5
7906 echo "${ECHO_T}$ac_res" >&6; }
7907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7908 cat >>confdefs.h <<_ACEOF
7909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7910 _ACEOF
7914 done
7917 { echo "$as_me:$LINENO: checking for long double" >&5
7918 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
7919 if test "${ac_cv_type_long_double+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 else
7922 cat >conftest.$ac_ext <<_ACEOF
7923 /* confdefs.h. */
7924 _ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7928 $ac_includes_default
7929 typedef long double ac__type_new_;
7931 main ()
7933 if ((ac__type_new_ *) 0)
7934 return 0;
7935 if (sizeof (ac__type_new_))
7936 return 0;
7938 return 0;
7940 _ACEOF
7941 rm -f conftest.$ac_objext
7942 if { (ac_try="$ac_compile"
7943 case "(($ac_try" in
7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7946 esac
7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948 (eval "$ac_compile") 2>conftest.er1
7949 ac_status=$?
7950 grep -v '^ *+' conftest.er1 >conftest.err
7951 rm -f conftest.er1
7952 cat conftest.err >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } && {
7955 test -z "$ac_c_werror_flag" ||
7956 test ! -s conftest.err
7957 } && test -s conftest.$ac_objext; then
7958 ac_cv_type_long_double=yes
7959 else
7960 echo "$as_me: failed program was:" >&5
7961 sed 's/^/| /' conftest.$ac_ext >&5
7963 ac_cv_type_long_double=no
7966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7968 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
7969 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
7971 # The cast to long int works around a bug in the HP C Compiler
7972 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7973 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7974 # This bug is HP SR number 8606223364.
7975 { echo "$as_me:$LINENO: checking size of long double" >&5
7976 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
7977 if test "${ac_cv_sizeof_long_double+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7979 else
7980 if test "$cross_compiling" = yes; then
7981 # Depending upon the size, compute the lo and hi bounds.
7982 cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h. */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7988 $ac_includes_default
7989 typedef long double ac__type_sizeof_;
7991 main ()
7993 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7994 test_array [0] = 0
7997 return 0;
7999 _ACEOF
8000 rm -f conftest.$ac_objext
8001 if { (ac_try="$ac_compile"
8002 case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8005 esac
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_compile") 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && {
8014 test -z "$ac_c_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest.$ac_objext; then
8017 ac_lo=0 ac_mid=0
8018 while :; do
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_))) <= $ac_mid)];
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_hi=$ac_mid; break
8055 else
8056 echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8059 ac_lo=`expr $ac_mid + 1`
8060 if test $ac_lo -le $ac_mid; then
8061 ac_lo= ac_hi=
8062 break
8064 ac_mid=`expr 2 '*' $ac_mid + 1`
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068 done
8069 else
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8073 cat >conftest.$ac_ext <<_ACEOF
8074 /* confdefs.h. */
8075 _ACEOF
8076 cat confdefs.h >>conftest.$ac_ext
8077 cat >>conftest.$ac_ext <<_ACEOF
8078 /* end confdefs.h. */
8079 $ac_includes_default
8080 typedef long double ac__type_sizeof_;
8082 main ()
8084 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8085 test_array [0] = 0
8088 return 0;
8090 _ACEOF
8091 rm -f conftest.$ac_objext
8092 if { (ac_try="$ac_compile"
8093 case "(($ac_try" in
8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095 *) ac_try_echo=$ac_try;;
8096 esac
8097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098 (eval "$ac_compile") 2>conftest.er1
8099 ac_status=$?
8100 grep -v '^ *+' conftest.er1 >conftest.err
8101 rm -f conftest.er1
8102 cat conftest.err >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); } && {
8105 test -z "$ac_c_werror_flag" ||
8106 test ! -s conftest.err
8107 } && test -s conftest.$ac_objext; then
8108 ac_hi=-1 ac_mid=-1
8109 while :; do
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_))) >= $ac_mid)];
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_lo=$ac_mid; break
8146 else
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8150 ac_hi=`expr '(' $ac_mid ')' - 1`
8151 if test $ac_mid -le $ac_hi; then
8152 ac_lo= ac_hi=
8153 break
8155 ac_mid=`expr 2 '*' $ac_mid`
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159 done
8160 else
8161 echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.$ac_ext >&5
8164 ac_lo= ac_hi=
8167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8171 # Binary search between lo and hi bounds.
8172 while test "x$ac_lo" != "x$ac_hi"; do
8173 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8174 cat >conftest.$ac_ext <<_ACEOF
8175 /* confdefs.h. */
8176 _ACEOF
8177 cat confdefs.h >>conftest.$ac_ext
8178 cat >>conftest.$ac_ext <<_ACEOF
8179 /* end confdefs.h. */
8180 $ac_includes_default
8181 typedef long double ac__type_sizeof_;
8183 main ()
8185 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8186 test_array [0] = 0
8189 return 0;
8191 _ACEOF
8192 rm -f conftest.$ac_objext
8193 if { (ac_try="$ac_compile"
8194 case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8197 esac
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_compile") 2>conftest.er1
8200 ac_status=$?
8201 grep -v '^ *+' conftest.er1 >conftest.err
8202 rm -f conftest.er1
8203 cat conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } && {
8206 test -z "$ac_c_werror_flag" ||
8207 test ! -s conftest.err
8208 } && test -s conftest.$ac_objext; then
8209 ac_hi=$ac_mid
8210 else
8211 echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8214 ac_lo=`expr '(' $ac_mid ')' + 1`
8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218 done
8219 case $ac_lo in
8220 ?*) ac_cv_sizeof_long_double=$ac_lo;;
8221 '') if test "$ac_cv_type_long_double" = yes; then
8222 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8223 See \`config.log' for more details." >&5
8224 echo "$as_me: error: cannot compute sizeof (long double)
8225 See \`config.log' for more details." >&2;}
8226 { (exit 77); exit 77; }; }
8227 else
8228 ac_cv_sizeof_long_double=0
8229 fi ;;
8230 esac
8231 else
8232 cat >conftest.$ac_ext <<_ACEOF
8233 /* confdefs.h. */
8234 _ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8238 $ac_includes_default
8239 typedef long double ac__type_sizeof_;
8240 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8241 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8242 #include <stdio.h>
8243 #include <stdlib.h>
8245 main ()
8248 FILE *f = fopen ("conftest.val", "w");
8249 if (! f)
8250 return 1;
8251 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8253 long int i = longval ();
8254 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8255 return 1;
8256 fprintf (f, "%ld\n", i);
8258 else
8260 unsigned long int i = ulongval ();
8261 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8262 return 1;
8263 fprintf (f, "%lu\n", i);
8265 return ferror (f) || fclose (f) != 0;
8268 return 0;
8270 _ACEOF
8271 rm -f conftest$ac_exeext
8272 if { (ac_try="$ac_link"
8273 case "(($ac_try" in
8274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275 *) ac_try_echo=$ac_try;;
8276 esac
8277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8278 (eval "$ac_link") 2>&5
8279 ac_status=$?
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8282 { (case "(($ac_try" in
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8285 esac
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_try") 2>&5
8288 ac_status=$?
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); }; }; then
8291 ac_cv_sizeof_long_double=`cat conftest.val`
8292 else
8293 echo "$as_me: program exited with status $ac_status" >&5
8294 echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.$ac_ext >&5
8297 ( exit $ac_status )
8298 if test "$ac_cv_type_long_double" = yes; then
8299 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8300 See \`config.log' for more details." >&5
8301 echo "$as_me: error: cannot compute sizeof (long double)
8302 See \`config.log' for more details." >&2;}
8303 { (exit 77); exit 77; }; }
8304 else
8305 ac_cv_sizeof_long_double=0
8308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8310 rm -f conftest.val
8312 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
8313 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
8317 cat >>confdefs.h <<_ACEOF
8318 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8319 _ACEOF
8322 sizeof_long_double=$ac_cv_sizeof_long_double
8325 ### End of automated tests.
8326 ### Now run sysdeps configure fragments.
8328 # They also can set these variables.
8329 use_ldconfig=no
8330 ldd_rewrite_script=no
8331 libc_cv_sysconfdir=$sysconfdir
8332 libc_cv_gcc_unwind_find_fde=no
8333 libc_cv_idn=no
8335 # Iterate over all the sysdep directories we will use, running their
8336 # configure fragments, and looking for a uname implementation.
8337 uname=
8338 for dir in $sysnames; do
8339 case $dir in
8340 /*) dest=$dir ;;
8341 *) dest=$srcdir/$dir ;;
8342 esac
8343 if test -r $dest/configure; then
8344 { echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
8345 echo "${ECHO_T}running configure fragment for $dir" >&6; }
8346 . $dest/configure
8349 if test -z "$uname"; then
8350 if test -r $dest/uname.c ||
8351 test -r $dest/uname.S ||
8352 { test -r $dest/syscalls.list &&
8353 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
8354 uname=$dir
8357 done
8359 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
8360 cat >>confdefs.h <<\_ACEOF
8361 #define EXPORT_UNWIND_FIND_FDE 1
8362 _ACEOF
8367 # If we will use the generic uname implementation, we must figure out what
8368 # it will say by examining the system, and write the results in config-name.h.
8369 if test "$uname" = "sysdeps/generic"; then
8371 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
8372 if test $uname_sysname != $config_os; then
8373 config_release=`echo $config_os | sed s/$uname_sysname//`
8376 { echo "$as_me:$LINENO: checking OS release for uname" >&5
8377 echo $ECHO_N "checking OS release for uname... $ECHO_C" >&6; }
8378 if test "${libc_cv_uname_release+set}" = set; then
8379 echo $ECHO_N "(cached) $ECHO_C" >&6
8380 else
8381 if test -r /vmunix; then
8382 kernel_id=`strings /vmunix | grep UNIX`
8383 elif test -r /dynix; then
8384 kernel_id=`strings /dynix | grep DYNIX`
8385 else
8386 kernel_id=
8389 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
8390 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
8391 != x$config_release; then
8392 # The configuration release is a substring of the kernel release.
8393 libc_cv_uname_release=$kernel_release
8394 elif test x$config_release != x; then
8395 libc_cv_uname_release=$config_release
8396 elif test x$kernel_release != x; then
8397 libc_cv_uname_release=$kernel_release
8398 else
8399 libc_cv_uname_release=unknown
8402 { echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
8403 echo "${ECHO_T}$libc_cv_uname_release" >&6; }
8404 uname_release="$libc_cv_uname_release"
8406 { echo "$as_me:$LINENO: checking OS version for uname" >&5
8407 echo $ECHO_N "checking OS version for uname... $ECHO_C" >&6; }
8408 if test "${libc_cv_uname_version+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8410 else
8411 if test -r /vmunix; then
8412 kernel_id=`strings /vmunix | grep UNIX`
8413 elif test -r /dynix; then
8414 kernel_id=`strings /dynix | grep DYNIX`
8415 else
8416 kernel_id=
8419 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
8420 if test -n "$kernel_version"; then
8421 libc_cv_uname_version="$kernel_version"
8422 else
8423 libc_cv_uname_version=unknown
8426 { echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
8427 echo "${ECHO_T}$libc_cv_uname_version" >&6; }
8428 uname_version="$libc_cv_uname_version"
8430 config_uname=config-name.h:config-name.in
8431 else
8432 # For non-generic uname, we don't need to create config-name.h at all.
8433 config_uname=
8436 cat >>confdefs.h <<\_ACEOF
8437 #define USE_IN_LIBIO 1
8438 _ACEOF
8441 # Test for old glibc 2.0.x headers so that they can be removed properly
8442 # Search only in includedir.
8443 { echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
8444 echo $ECHO_N "checking for old glibc 2.0.x headers... $ECHO_C" >&6; }
8445 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
8446 then
8447 old_glibc_headers=yes
8448 else
8449 old_glibc_headers=no
8451 { echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
8452 echo "${ECHO_T}$old_glibc_headers" >&6; }
8453 if test ${old_glibc_headers} = yes; then
8454 { echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
8455 echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
8456 { echo "$as_me:$LINENO: WARNING: *** be removed." >&5
8457 echo "$as_me: WARNING: *** be removed." >&2;}
8471 if test $elf = yes; then
8472 cat >>confdefs.h <<\_ACEOF
8473 #define HAVE_ELF 1
8474 _ACEOF
8477 if test $xcoff = yes; then
8478 cat >>confdefs.h <<\_ACEOF
8479 #define HAVE_XCOFF 1
8480 _ACEOF
8486 if test $shared = default; then
8487 shared=$elf
8490 { echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
8491 echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6; }
8492 if test "${pic_default+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495 pic_default=yes
8496 cat > conftest.c <<EOF
8497 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
8498 # error PIC is default.
8499 #endif
8501 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
8502 pic_default=no
8504 rm -f conftest.*
8506 { echo "$as_me:$LINENO: result: $pic_default" >&5
8507 echo "${ECHO_T}$pic_default" >&6; }
8520 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
8521 config_makefile=
8522 else
8523 config_makefile=Makefile
8526 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
8527 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8531 ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
8533 ac_config_commands="$ac_config_commands default"
8535 cat >confcache <<\_ACEOF
8536 # This file is a shell script that caches the results of configure
8537 # tests run on this system so they can be shared between configure
8538 # scripts and configure runs, see configure's option --config-cache.
8539 # It is not useful on other systems. If it contains results you don't
8540 # want to keep, you may remove or edit it.
8542 # config.status only pays attention to the cache file if you give it
8543 # the --recheck option to rerun configure.
8545 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8546 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8547 # following values.
8549 _ACEOF
8551 # The following way of writing the cache mishandles newlines in values,
8552 # but we know of no workaround that is simple, portable, and efficient.
8553 # So, we kill variables containing newlines.
8554 # Ultrix sh set writes to stderr and can't be redirected directly,
8555 # and sets the high bit in the cache file unless we assign to the vars.
8557 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8558 eval ac_val=\$$ac_var
8559 case $ac_val in #(
8560 *${as_nl}*)
8561 case $ac_var in #(
8562 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8563 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8564 esac
8565 case $ac_var in #(
8566 _ | IFS | as_nl) ;; #(
8567 *) $as_unset $ac_var ;;
8568 esac ;;
8569 esac
8570 done
8572 (set) 2>&1 |
8573 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8574 *${as_nl}ac_space=\ *)
8575 # `set' does not quote correctly, so add quotes (double-quote
8576 # substitution turns \\\\ into \\, and sed turns \\ into \).
8577 sed -n \
8578 "s/'/'\\\\''/g;
8579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8580 ;; #(
8582 # `set' quotes correctly as required by POSIX, so do not add quotes.
8583 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8585 esac |
8586 sort
8588 sed '
8589 /^ac_cv_env_/b end
8590 t clear
8591 :clear
8592 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8593 t end
8594 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8595 :end' >>confcache
8596 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8597 if test -w "$cache_file"; then
8598 test "x$cache_file" != "x/dev/null" &&
8599 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8600 echo "$as_me: updating cache $cache_file" >&6;}
8601 cat confcache >$cache_file
8602 else
8603 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8604 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8607 rm -f confcache
8609 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8610 # Let make expand exec_prefix.
8611 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8613 DEFS=-DHAVE_CONFIG_H
8615 ac_libobjs=
8616 ac_ltlibobjs=
8617 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8618 # 1. Remove the extension, and $U if already installed.
8619 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8620 ac_i=`echo "$ac_i" | sed "$ac_script"`
8621 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8622 # will be set to the directory where LIBOBJS objects are built.
8623 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8624 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8625 done
8626 LIBOBJS=$ac_libobjs
8628 LTLIBOBJS=$ac_ltlibobjs
8632 : ${CONFIG_STATUS=./config.status}
8633 ac_clean_files_save=$ac_clean_files
8634 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8635 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8636 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8637 cat >$CONFIG_STATUS <<_ACEOF
8638 #! $SHELL
8639 # Generated by $as_me.
8640 # Run this file to recreate the current configuration.
8641 # Compiler output produced by configure, useful for debugging
8642 # configure, is in config.log if it exists.
8644 debug=false
8645 ac_cs_recheck=false
8646 ac_cs_silent=false
8647 SHELL=\${CONFIG_SHELL-$SHELL}
8648 _ACEOF
8650 cat >>$CONFIG_STATUS <<\_ACEOF
8651 ## --------------------- ##
8652 ## M4sh Initialization. ##
8653 ## --------------------- ##
8655 # Be more Bourne compatible
8656 DUALCASE=1; export DUALCASE # for MKS sh
8657 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8658 emulate sh
8659 NULLCMD=:
8660 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8661 # is contrary to our usage. Disable this feature.
8662 alias -g '${1+"$@"}'='"$@"'
8663 setopt NO_GLOB_SUBST
8664 else
8665 case `(set -o) 2>/dev/null` in
8666 *posix*) set -o posix ;;
8667 esac
8674 # PATH needs CR
8675 # Avoid depending upon Character Ranges.
8676 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8677 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8678 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8679 as_cr_digits='0123456789'
8680 as_cr_alnum=$as_cr_Letters$as_cr_digits
8682 # The user is always right.
8683 if test "${PATH_SEPARATOR+set}" != set; then
8684 echo "#! /bin/sh" >conf$$.sh
8685 echo "exit 0" >>conf$$.sh
8686 chmod +x conf$$.sh
8687 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8688 PATH_SEPARATOR=';'
8689 else
8690 PATH_SEPARATOR=:
8692 rm -f conf$$.sh
8695 # Support unset when possible.
8696 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8697 as_unset=unset
8698 else
8699 as_unset=false
8703 # IFS
8704 # We need space, tab and new line, in precisely that order. Quoting is
8705 # there to prevent editors from complaining about space-tab.
8706 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8707 # splitting by setting IFS to empty value.)
8708 as_nl='
8710 IFS=" "" $as_nl"
8712 # Find who we are. Look in the path if we contain no directory separator.
8713 case $0 in
8714 *[\\/]* ) as_myself=$0 ;;
8715 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716 for as_dir in $PATH
8718 IFS=$as_save_IFS
8719 test -z "$as_dir" && as_dir=.
8720 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8721 done
8722 IFS=$as_save_IFS
8725 esac
8726 # We did not find ourselves, most probably we were run as `sh COMMAND'
8727 # in which case we are not to be found in the path.
8728 if test "x$as_myself" = x; then
8729 as_myself=$0
8731 if test ! -f "$as_myself"; then
8732 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8733 { (exit 1); exit 1; }
8736 # Work around bugs in pre-3.0 UWIN ksh.
8737 for as_var in ENV MAIL MAILPATH
8738 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8739 done
8740 PS1='$ '
8741 PS2='> '
8742 PS4='+ '
8744 # NLS nuisances.
8745 for as_var in \
8746 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8747 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8748 LC_TELEPHONE LC_TIME
8750 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8751 eval $as_var=C; export $as_var
8752 else
8753 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8755 done
8757 # Required to use basename.
8758 if expr a : '\(a\)' >/dev/null 2>&1 &&
8759 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8760 as_expr=expr
8761 else
8762 as_expr=false
8765 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8766 as_basename=basename
8767 else
8768 as_basename=false
8772 # Name of the executable.
8773 as_me=`$as_basename -- "$0" ||
8774 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8775 X"$0" : 'X\(//\)$' \| \
8776 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8777 echo X/"$0" |
8778 sed '/^.*\/\([^/][^/]*\)\/*$/{
8779 s//\1/
8782 /^X\/\(\/\/\)$/{
8783 s//\1/
8786 /^X\/\(\/\).*/{
8787 s//\1/
8790 s/.*/./; q'`
8792 # CDPATH.
8793 $as_unset CDPATH
8797 as_lineno_1=$LINENO
8798 as_lineno_2=$LINENO
8799 test "x$as_lineno_1" != "x$as_lineno_2" &&
8800 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8802 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8803 # uniformly replaced by the line number. The first 'sed' inserts a
8804 # line-number line after each line using $LINENO; the second 'sed'
8805 # does the real work. The second script uses 'N' to pair each
8806 # line-number line with the line containing $LINENO, and appends
8807 # trailing '-' during substitution so that $LINENO is not a special
8808 # case at line end.
8809 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8810 # scripts with optimization help from Paolo Bonzini. Blame Lee
8811 # E. McMahon (1931-1989) for sed's syntax. :-)
8812 sed -n '
8814 /[$]LINENO/=
8815 ' <$as_myself |
8816 sed '
8817 s/[$]LINENO.*/&-/
8818 t lineno
8820 :lineno
8822 :loop
8823 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8824 t loop
8825 s/-\n.*//
8826 ' >$as_me.lineno &&
8827 chmod +x "$as_me.lineno" ||
8828 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8829 { (exit 1); exit 1; }; }
8831 # Don't try to exec as it changes $[0], causing all sort of problems
8832 # (the dirname of $[0] is not the place where we might find the
8833 # original and so on. Autoconf is especially sensitive to this).
8834 . "./$as_me.lineno"
8835 # Exit status is that of the last command.
8836 exit
8840 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8841 as_dirname=dirname
8842 else
8843 as_dirname=false
8846 ECHO_C= ECHO_N= ECHO_T=
8847 case `echo -n x` in
8848 -n*)
8849 case `echo 'x\c'` in
8850 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8851 *) ECHO_C='\c';;
8852 esac;;
8854 ECHO_N='-n';;
8855 esac
8857 if expr a : '\(a\)' >/dev/null 2>&1 &&
8858 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8859 as_expr=expr
8860 else
8861 as_expr=false
8864 rm -f conf$$ conf$$.exe conf$$.file
8865 if test -d conf$$.dir; then
8866 rm -f conf$$.dir/conf$$.file
8867 else
8868 rm -f conf$$.dir
8869 mkdir conf$$.dir
8871 echo >conf$$.file
8872 if ln -s conf$$.file conf$$ 2>/dev/null; then
8873 as_ln_s='ln -s'
8874 # ... but there are two gotchas:
8875 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8876 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8877 # In both cases, we have to default to `cp -p'.
8878 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8879 as_ln_s='cp -p'
8880 elif ln conf$$.file conf$$ 2>/dev/null; then
8881 as_ln_s=ln
8882 else
8883 as_ln_s='cp -p'
8885 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8886 rmdir conf$$.dir 2>/dev/null
8888 if mkdir -p . 2>/dev/null; then
8889 as_mkdir_p=:
8890 else
8891 test -d ./-p && rmdir ./-p
8892 as_mkdir_p=false
8895 if test -x / >/dev/null 2>&1; then
8896 as_test_x='test -x'
8897 else
8898 if ls -dL / >/dev/null 2>&1; then
8899 as_ls_L_option=L
8900 else
8901 as_ls_L_option=
8903 as_test_x='
8904 eval sh -c '\''
8905 if test -d "$1"; then
8906 test -d "$1/.";
8907 else
8908 case $1 in
8909 -*)set "./$1";;
8910 esac;
8911 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8912 ???[sx]*):;;*)false;;esac;fi
8913 '\'' sh
8916 as_executable_p=$as_test_x
8918 # Sed expression to map a string onto a valid CPP name.
8919 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8921 # Sed expression to map a string onto a valid variable name.
8922 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8925 exec 6>&1
8927 # Save the log message, to keep $[0] and so on meaningful, and to
8928 # report actual input values of CONFIG_FILES etc. instead of their
8929 # values after options handling.
8930 ac_log="
8931 This file was extended by GNU C Library $as_me (see version.h), which was
8932 generated by GNU Autoconf 2.61. Invocation command line was
8934 CONFIG_FILES = $CONFIG_FILES
8935 CONFIG_HEADERS = $CONFIG_HEADERS
8936 CONFIG_LINKS = $CONFIG_LINKS
8937 CONFIG_COMMANDS = $CONFIG_COMMANDS
8938 $ $0 $@
8940 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8943 _ACEOF
8945 cat >>$CONFIG_STATUS <<_ACEOF
8946 # Files that config.status was made for.
8947 config_files="$ac_config_files"
8948 config_headers="$ac_config_headers"
8949 config_commands="$ac_config_commands"
8951 _ACEOF
8953 cat >>$CONFIG_STATUS <<\_ACEOF
8954 ac_cs_usage="\
8955 \`$as_me' instantiates files from templates according to the
8956 current configuration.
8958 Usage: $0 [OPTIONS] [FILE]...
8960 -h, --help print this help, then exit
8961 -V, --version print version number and configuration settings, then exit
8962 -q, --quiet do not print progress messages
8963 -d, --debug don't remove temporary files
8964 --recheck update $as_me by reconfiguring in the same conditions
8965 --file=FILE[:TEMPLATE]
8966 instantiate the configuration file FILE
8967 --header=FILE[:TEMPLATE]
8968 instantiate the configuration header FILE
8970 Configuration files:
8971 $config_files
8973 Configuration headers:
8974 $config_headers
8976 Configuration commands:
8977 $config_commands
8979 Report bugs to <bug-autoconf@gnu.org>."
8981 _ACEOF
8982 cat >>$CONFIG_STATUS <<_ACEOF
8983 ac_cs_version="\\
8984 GNU C Library config.status (see version.h)
8985 configured by $0, generated by GNU Autoconf 2.61,
8986 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8988 Copyright (C) 2006 Free Software Foundation, Inc.
8989 This config.status script is free software; the Free Software Foundation
8990 gives unlimited permission to copy, distribute and modify it."
8992 ac_pwd='$ac_pwd'
8993 srcdir='$srcdir'
8994 INSTALL='$INSTALL'
8995 _ACEOF
8997 cat >>$CONFIG_STATUS <<\_ACEOF
8998 # If no file are specified by the user, then we need to provide default
8999 # value. By we need to know if files were specified by the user.
9000 ac_need_defaults=:
9001 while test $# != 0
9003 case $1 in
9004 --*=*)
9005 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9006 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9007 ac_shift=:
9010 ac_option=$1
9011 ac_optarg=$2
9012 ac_shift=shift
9014 esac
9016 case $ac_option in
9017 # Handling of the options.
9018 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9019 ac_cs_recheck=: ;;
9020 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9021 echo "$ac_cs_version"; exit ;;
9022 --debug | --debu | --deb | --de | --d | -d )
9023 debug=: ;;
9024 --file | --fil | --fi | --f )
9025 $ac_shift
9026 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9027 ac_need_defaults=false;;
9028 --header | --heade | --head | --hea )
9029 $ac_shift
9030 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9031 ac_need_defaults=false;;
9032 --he | --h)
9033 # Conflict between --help and --header
9034 { echo "$as_me: error: ambiguous option: $1
9035 Try \`$0 --help' for more information." >&2
9036 { (exit 1); exit 1; }; };;
9037 --help | --hel | -h )
9038 echo "$ac_cs_usage"; exit ;;
9039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9040 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9041 ac_cs_silent=: ;;
9043 # This is an error.
9044 -*) { echo "$as_me: error: unrecognized option: $1
9045 Try \`$0 --help' for more information." >&2
9046 { (exit 1); exit 1; }; } ;;
9048 *) ac_config_targets="$ac_config_targets $1"
9049 ac_need_defaults=false ;;
9051 esac
9052 shift
9053 done
9055 ac_configure_extra_args=
9057 if $ac_cs_silent; then
9058 exec 6>/dev/null
9059 ac_configure_extra_args="$ac_configure_extra_args --silent"
9062 _ACEOF
9063 cat >>$CONFIG_STATUS <<_ACEOF
9064 if \$ac_cs_recheck; then
9065 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9066 CONFIG_SHELL=$SHELL
9067 export CONFIG_SHELL
9068 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9071 _ACEOF
9072 cat >>$CONFIG_STATUS <<\_ACEOF
9073 exec 5>>config.log
9075 echo
9076 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9077 ## Running $as_me. ##
9078 _ASBOX
9079 echo "$ac_log"
9080 } >&5
9082 _ACEOF
9083 cat >>$CONFIG_STATUS <<_ACEOF
9085 # INIT-COMMANDS
9087 config_vars='$config_vars'
9089 _ACEOF
9091 cat >>$CONFIG_STATUS <<\_ACEOF
9093 # Handling of arguments.
9094 for ac_config_target in $ac_config_targets
9096 case $ac_config_target in
9097 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9098 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
9099 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
9100 "${config_uname}") CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
9101 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9103 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9104 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9105 { (exit 1); exit 1; }; };;
9106 esac
9107 done
9110 # If the user did not use the arguments to specify the items to instantiate,
9111 # then the envvar interface is used. Set only those that are not.
9112 # We use the long form for the default assignment because of an extremely
9113 # bizarre bug on SunOS 4.1.3.
9114 if $ac_need_defaults; then
9115 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9116 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9117 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9120 # Have a temporary directory for convenience. Make it in the build tree
9121 # simply because there is no reason against having it here, and in addition,
9122 # creating and moving files from /tmp can sometimes cause problems.
9123 # Hook for its removal unless debugging.
9124 # Note that there is a small window in which the directory will not be cleaned:
9125 # after its creation but before its name has been assigned to `$tmp'.
9126 $debug ||
9128 tmp=
9129 trap 'exit_status=$?
9130 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9132 trap '{ (exit 1); exit 1; }' 1 2 13 15
9134 # Create a (secure) tmp directory for tmp files.
9137 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9138 test -n "$tmp" && test -d "$tmp"
9139 } ||
9141 tmp=./conf$$-$RANDOM
9142 (umask 077 && mkdir "$tmp")
9143 } ||
9145 echo "$me: cannot create a temporary directory in ." >&2
9146 { (exit 1); exit 1; }
9150 # Set up the sed scripts for CONFIG_FILES section.
9153 # No need to generate the scripts if there are no CONFIG_FILES.
9154 # This happens for instance when ./config.status config.h
9155 if test -n "$CONFIG_FILES"; then
9157 _ACEOF
9161 ac_delim='%!_!# '
9162 for ac_last_try in false false false false false :; do
9163 cat >conf$$subs.sed <<_ACEOF
9164 SHELL!$SHELL$ac_delim
9165 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9166 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9167 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9168 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9169 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9170 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9171 exec_prefix!$exec_prefix$ac_delim
9172 prefix!$prefix$ac_delim
9173 program_transform_name!$program_transform_name$ac_delim
9174 bindir!$bindir$ac_delim
9175 sbindir!$sbindir$ac_delim
9176 libexecdir!$libexecdir$ac_delim
9177 datarootdir!$datarootdir$ac_delim
9178 datadir!$datadir$ac_delim
9179 sysconfdir!$sysconfdir$ac_delim
9180 sharedstatedir!$sharedstatedir$ac_delim
9181 localstatedir!$localstatedir$ac_delim
9182 includedir!$includedir$ac_delim
9183 oldincludedir!$oldincludedir$ac_delim
9184 docdir!$docdir$ac_delim
9185 infodir!$infodir$ac_delim
9186 htmldir!$htmldir$ac_delim
9187 dvidir!$dvidir$ac_delim
9188 pdfdir!$pdfdir$ac_delim
9189 psdir!$psdir$ac_delim
9190 libdir!$libdir$ac_delim
9191 localedir!$localedir$ac_delim
9192 mandir!$mandir$ac_delim
9193 DEFS!$DEFS$ac_delim
9194 ECHO_C!$ECHO_C$ac_delim
9195 ECHO_N!$ECHO_N$ac_delim
9196 ECHO_T!$ECHO_T$ac_delim
9197 LIBS!$LIBS$ac_delim
9198 build_alias!$build_alias$ac_delim
9199 host_alias!$host_alias$ac_delim
9200 target_alias!$target_alias$ac_delim
9201 with_fp!$with_fp$ac_delim
9202 with_cvs!$with_cvs$ac_delim
9203 enable_check_abi!$enable_check_abi$ac_delim
9204 oldest_abi!$oldest_abi$ac_delim
9205 bindnow!$bindnow$ac_delim
9206 force_install!$force_install$ac_delim
9207 all_warnings!$all_warnings$ac_delim
9208 subdirs!$subdirs$ac_delim
9209 build!$build$ac_delim
9210 build_cpu!$build_cpu$ac_delim
9211 build_vendor!$build_vendor$ac_delim
9212 build_os!$build_os$ac_delim
9213 host!$host$ac_delim
9214 host_cpu!$host_cpu$ac_delim
9215 host_vendor!$host_vendor$ac_delim
9216 host_os!$host_os$ac_delim
9217 add_ons!$add_ons$ac_delim
9218 add_on_subdirs!$add_on_subdirs$ac_delim
9219 base_machine!$base_machine$ac_delim
9220 submachine!$submachine$ac_delim
9221 sysnames!$sysnames$ac_delim
9222 sysdeps_add_ons!$sysdeps_add_ons$ac_delim
9223 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9224 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9225 INSTALL_DATA!$INSTALL_DATA$ac_delim
9226 LN_S!$LN_S$ac_delim
9227 CC!$CC$ac_delim
9228 CFLAGS!$CFLAGS$ac_delim
9229 LDFLAGS!$LDFLAGS$ac_delim
9230 CPPFLAGS!$CPPFLAGS$ac_delim
9231 ac_ct_CC!$ac_ct_CC$ac_delim
9232 OBJEXT!$OBJEXT$ac_delim
9233 BUILD_CC!$BUILD_CC$ac_delim
9234 cross_compiling!$cross_compiling$ac_delim
9235 CPP!$CPP$ac_delim
9236 CXX!$CXX$ac_delim
9237 CXXFLAGS!$CXXFLAGS$ac_delim
9238 ac_ct_CXX!$ac_ct_CXX$ac_delim
9239 AR!$AR$ac_delim
9240 OBJDUMP!$OBJDUMP$ac_delim
9241 RANLIB!$RANLIB$ac_delim
9242 MIG!$MIG$ac_delim
9243 AS!$AS$ac_delim
9244 LD!$LD$ac_delim
9245 PWD_P!$PWD_P$ac_delim
9246 MAKE!$MAKE$ac_delim
9247 MSGFMT!$MSGFMT$ac_delim
9248 MAKEINFO!$MAKEINFO$ac_delim
9249 SED!$SED$ac_delim
9250 AUTOCONF!$AUTOCONF$ac_delim
9251 SYSINCLUDES!$SYSINCLUDES$ac_delim
9252 CXX_SYSINCLUDES!$CXX_SYSINCLUDES$ac_delim
9253 libc_cv_gcc_static_libgcc!$libc_cv_gcc_static_libgcc$ac_delim
9254 BASH_SHELL!$BASH_SHELL$ac_delim
9255 libc_cv_have_bash2!$libc_cv_have_bash2$ac_delim
9256 KSH!$KSH$ac_delim
9257 libc_cv_have_ksh!$libc_cv_have_ksh$ac_delim
9258 AWK!$AWK$ac_delim
9259 PERL!$PERL$ac_delim
9260 INSTALL_INFO!$INSTALL_INFO$ac_delim
9261 _ACEOF
9263 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
9264 break
9265 elif $ac_last_try; then
9266 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9267 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9268 { (exit 1); exit 1; }; }
9269 else
9270 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9272 done
9274 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9275 if test -n "$ac_eof"; then
9276 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9277 ac_eof=`expr $ac_eof + 1`
9280 cat >>$CONFIG_STATUS <<_ACEOF
9281 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9282 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9283 _ACEOF
9284 sed '
9285 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9286 s/^/s,@/; s/!/@,|#_!!_#|/
9289 s/'"$ac_delim"'$/,g/; t
9290 s/$/\\/; p
9291 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9292 ' >>$CONFIG_STATUS <conf$$subs.sed
9293 rm -f conf$$subs.sed
9294 cat >>$CONFIG_STATUS <<_ACEOF
9295 CEOF$ac_eof
9296 _ACEOF
9299 ac_delim='%!_!# '
9300 for ac_last_try in false false false false false :; do
9301 cat >conf$$subs.sed <<_ACEOF
9302 BISON!$BISON$ac_delim
9303 VERSIONING!$VERSIONING$ac_delim
9304 libc_cv_cc_with_libunwind!$libc_cv_cc_with_libunwind$ac_delim
9305 libc_cv_Bgroup!$libc_cv_Bgroup$ac_delim
9306 libc_cv_libgcc_s_suffix!$libc_cv_libgcc_s_suffix$ac_delim
9307 libc_cv_as_needed!$libc_cv_as_needed$ac_delim
9308 ASFLAGS_config!$ASFLAGS_config$ac_delim
9309 libc_cv_z_combreloc!$libc_cv_z_combreloc$ac_delim
9310 libc_cv_z_execstack!$libc_cv_z_execstack$ac_delim
9311 libc_cv_fpie!$libc_cv_fpie$ac_delim
9312 libc_cv_hashstyle!$libc_cv_hashstyle$ac_delim
9313 fno_unit_at_a_time!$fno_unit_at_a_time$ac_delim
9314 libc_cv_ssp!$libc_cv_ssp$ac_delim
9315 libc_cv_gnu89_inline!$libc_cv_gnu89_inline$ac_delim
9316 libc_cv_have_initfini!$libc_cv_have_initfini$ac_delim
9317 no_whole_archive!$no_whole_archive$ac_delim
9318 exceptions!$exceptions$ac_delim
9319 libc_cv_cc_submachine!$libc_cv_cc_submachine$ac_delim
9320 LIBGD!$LIBGD$ac_delim
9321 have_libaudit!$have_libaudit$ac_delim
9322 have_libcap!$have_libcap$ac_delim
9323 have_selinux!$have_selinux$ac_delim
9324 GREP!$GREP$ac_delim
9325 EGREP!$EGREP$ac_delim
9326 sizeof_long_double!$sizeof_long_double$ac_delim
9327 libc_cv_gcc_unwind_find_fde!$libc_cv_gcc_unwind_find_fde$ac_delim
9328 uname_sysname!$uname_sysname$ac_delim
9329 uname_release!$uname_release$ac_delim
9330 uname_version!$uname_version$ac_delim
9331 old_glibc_headers!$old_glibc_headers$ac_delim
9332 libc_cv_slibdir!$libc_cv_slibdir$ac_delim
9333 libc_cv_localedir!$libc_cv_localedir$ac_delim
9334 libc_cv_sysconfdir!$libc_cv_sysconfdir$ac_delim
9335 libc_cv_rootsbindir!$libc_cv_rootsbindir$ac_delim
9336 libc_cv_forced_unwind!$libc_cv_forced_unwind$ac_delim
9337 use_ldconfig!$use_ldconfig$ac_delim
9338 ldd_rewrite_script!$ldd_rewrite_script$ac_delim
9339 elf!$elf$ac_delim
9340 xcoff!$xcoff$ac_delim
9341 static!$static$ac_delim
9342 shared!$shared$ac_delim
9343 pic_default!$pic_default$ac_delim
9344 profile!$profile$ac_delim
9345 omitfp!$omitfp$ac_delim
9346 bounded!$bounded$ac_delim
9347 static_nss!$static_nss$ac_delim
9348 nopic_initfini!$nopic_initfini$ac_delim
9349 DEFINES!$DEFINES$ac_delim
9350 mach_interface_list!$mach_interface_list$ac_delim
9351 VERSION!$VERSION$ac_delim
9352 RELEASE!$RELEASE$ac_delim
9353 LIBOBJS!$LIBOBJS$ac_delim
9354 LTLIBOBJS!$LTLIBOBJS$ac_delim
9355 _ACEOF
9357 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then
9358 break
9359 elif $ac_last_try; then
9360 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9361 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9362 { (exit 1); exit 1; }; }
9363 else
9364 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9366 done
9368 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9369 if test -n "$ac_eof"; then
9370 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9371 ac_eof=`expr $ac_eof + 1`
9374 cat >>$CONFIG_STATUS <<_ACEOF
9375 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
9376 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9377 _ACEOF
9378 sed '
9379 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9380 s/^/s,@/; s/!/@,|#_!!_#|/
9383 s/'"$ac_delim"'$/,g/; t
9384 s/$/\\/; p
9385 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9386 ' >>$CONFIG_STATUS <conf$$subs.sed
9387 rm -f conf$$subs.sed
9388 cat >>$CONFIG_STATUS <<_ACEOF
9389 :end
9390 s/|#_!!_#|//g
9391 CEOF$ac_eof
9392 _ACEOF
9395 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9396 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9397 # trailing colons and then remove the whole line if VPATH becomes empty
9398 # (actually we leave an empty line to preserve line numbers).
9399 if test "x$srcdir" = x.; then
9400 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9401 s/:*\$(srcdir):*/:/
9402 s/:*\${srcdir}:*/:/
9403 s/:*@srcdir@:*/:/
9404 s/^\([^=]*=[ ]*\):*/\1/
9405 s/:*$//
9406 s/^[^=]*=[ ]*$//
9410 cat >>$CONFIG_STATUS <<\_ACEOF
9411 fi # test -n "$CONFIG_FILES"
9414 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
9416 case $ac_tag in
9417 :[FHLC]) ac_mode=$ac_tag; continue;;
9418 esac
9419 case $ac_mode$ac_tag in
9420 :[FHL]*:*);;
9421 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9422 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9423 { (exit 1); exit 1; }; };;
9424 :[FH]-) ac_tag=-:-;;
9425 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9426 esac
9427 ac_save_IFS=$IFS
9428 IFS=:
9429 set x $ac_tag
9430 IFS=$ac_save_IFS
9431 shift
9432 ac_file=$1
9433 shift
9435 case $ac_mode in
9436 :L) ac_source=$1;;
9437 :[FH])
9438 ac_file_inputs=
9439 for ac_f
9441 case $ac_f in
9442 -) ac_f="$tmp/stdin";;
9443 *) # Look for the file first in the build tree, then in the source tree
9444 # (if the path is not absolute). The absolute path cannot be DOS-style,
9445 # because $ac_f cannot contain `:'.
9446 test -f "$ac_f" ||
9447 case $ac_f in
9448 [\\/$]*) false;;
9449 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9450 esac ||
9451 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9452 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9453 { (exit 1); exit 1; }; };;
9454 esac
9455 ac_file_inputs="$ac_file_inputs $ac_f"
9456 done
9458 # Let's still pretend it is `configure' which instantiates (i.e., don't
9459 # use $as_me), people would be surprised to read:
9460 # /* config.h. Generated by config.status. */
9461 configure_input="Generated from "`IFS=:
9462 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9463 if test x"$ac_file" != x-; then
9464 configure_input="$ac_file. $configure_input"
9465 { echo "$as_me:$LINENO: creating $ac_file" >&5
9466 echo "$as_me: creating $ac_file" >&6;}
9469 case $ac_tag in
9470 *:-:* | *:-) cat >"$tmp/stdin";;
9471 esac
9473 esac
9475 ac_dir=`$as_dirname -- "$ac_file" ||
9476 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9477 X"$ac_file" : 'X\(//\)[^/]' \| \
9478 X"$ac_file" : 'X\(//\)$' \| \
9479 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9480 echo X"$ac_file" |
9481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9482 s//\1/
9485 /^X\(\/\/\)[^/].*/{
9486 s//\1/
9489 /^X\(\/\/\)$/{
9490 s//\1/
9493 /^X\(\/\).*/{
9494 s//\1/
9497 s/.*/./; q'`
9498 { as_dir="$ac_dir"
9499 case $as_dir in #(
9500 -*) as_dir=./$as_dir;;
9501 esac
9502 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9503 as_dirs=
9504 while :; do
9505 case $as_dir in #(
9506 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9507 *) as_qdir=$as_dir;;
9508 esac
9509 as_dirs="'$as_qdir' $as_dirs"
9510 as_dir=`$as_dirname -- "$as_dir" ||
9511 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9512 X"$as_dir" : 'X\(//\)[^/]' \| \
9513 X"$as_dir" : 'X\(//\)$' \| \
9514 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9515 echo X"$as_dir" |
9516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9517 s//\1/
9520 /^X\(\/\/\)[^/].*/{
9521 s//\1/
9524 /^X\(\/\/\)$/{
9525 s//\1/
9528 /^X\(\/\).*/{
9529 s//\1/
9532 s/.*/./; q'`
9533 test -d "$as_dir" && break
9534 done
9535 test -z "$as_dirs" || eval "mkdir $as_dirs"
9536 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9537 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9538 { (exit 1); exit 1; }; }; }
9539 ac_builddir=.
9541 case "$ac_dir" in
9542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9544 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9545 # A ".." for each directory in $ac_dir_suffix.
9546 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9547 case $ac_top_builddir_sub in
9548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9550 esac ;;
9551 esac
9552 ac_abs_top_builddir=$ac_pwd
9553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9554 # for backward compatibility:
9555 ac_top_builddir=$ac_top_build_prefix
9557 case $srcdir in
9558 .) # We are building in place.
9559 ac_srcdir=.
9560 ac_top_srcdir=$ac_top_builddir_sub
9561 ac_abs_top_srcdir=$ac_pwd ;;
9562 [\\/]* | ?:[\\/]* ) # Absolute name.
9563 ac_srcdir=$srcdir$ac_dir_suffix;
9564 ac_top_srcdir=$srcdir
9565 ac_abs_top_srcdir=$srcdir ;;
9566 *) # Relative name.
9567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9568 ac_top_srcdir=$ac_top_build_prefix$srcdir
9569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9570 esac
9571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9574 case $ac_mode in
9577 # CONFIG_FILE
9580 case $INSTALL in
9581 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9582 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9583 esac
9584 _ACEOF
9586 cat >>$CONFIG_STATUS <<\_ACEOF
9587 # If the template does not know about datarootdir, expand it.
9588 # FIXME: This hack should be removed a few years after 2.60.
9589 ac_datarootdir_hack=; ac_datarootdir_seen=
9591 case `sed -n '/datarootdir/ {
9595 /@datadir@/p
9596 /@docdir@/p
9597 /@infodir@/p
9598 /@localedir@/p
9599 /@mandir@/p
9600 ' $ac_file_inputs` in
9601 *datarootdir*) ac_datarootdir_seen=yes;;
9602 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9603 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9604 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9605 _ACEOF
9606 cat >>$CONFIG_STATUS <<_ACEOF
9607 ac_datarootdir_hack='
9608 s&@datadir@&$datadir&g
9609 s&@docdir@&$docdir&g
9610 s&@infodir@&$infodir&g
9611 s&@localedir@&$localedir&g
9612 s&@mandir@&$mandir&g
9613 s&\\\${datarootdir}&$datarootdir&g' ;;
9614 esac
9615 _ACEOF
9617 # Neutralize VPATH when `$srcdir' = `.'.
9618 # Shell code in configure.ac might set extrasub.
9619 # FIXME: do we really want to maintain this feature?
9620 cat >>$CONFIG_STATUS <<_ACEOF
9621 sed "$ac_vpsub
9622 $extrasub
9623 _ACEOF
9624 cat >>$CONFIG_STATUS <<\_ACEOF
9626 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9627 s&@configure_input@&$configure_input&;t t
9628 s&@top_builddir@&$ac_top_builddir_sub&;t t
9629 s&@srcdir@&$ac_srcdir&;t t
9630 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9631 s&@top_srcdir@&$ac_top_srcdir&;t t
9632 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9633 s&@builddir@&$ac_builddir&;t t
9634 s&@abs_builddir@&$ac_abs_builddir&;t t
9635 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9636 s&@INSTALL@&$ac_INSTALL&;t t
9637 $ac_datarootdir_hack
9638 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
9640 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9641 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9642 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9643 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9644 which seems to be undefined. Please make sure it is defined." >&5
9645 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9646 which seems to be undefined. Please make sure it is defined." >&2;}
9648 rm -f "$tmp/stdin"
9649 case $ac_file in
9650 -) cat "$tmp/out"; rm -f "$tmp/out";;
9651 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9652 esac
9656 # CONFIG_HEADER
9658 _ACEOF
9660 # Transform confdefs.h into a sed script `conftest.defines', that
9661 # substitutes the proper values into config.h.in to produce config.h.
9662 rm -f conftest.defines conftest.tail
9663 # First, append a space to every undef/define line, to ease matching.
9664 echo 's/$/ /' >conftest.defines
9665 # Then, protect against being on the right side of a sed subst, or in
9666 # an unquoted here document, in config.status. If some macros were
9667 # called several times there might be several #defines for the same
9668 # symbol, which is useless. But do not sort them, since the last
9669 # AC_DEFINE must be honored.
9670 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9671 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9672 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9673 # PARAMS is the parameter list in the macro definition--in most cases, it's
9674 # just an empty string.
9675 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9676 ac_dB='\\)[ (].*,\\1define\\2'
9677 ac_dC=' '
9678 ac_dD=' ,'
9680 uniq confdefs.h |
9681 sed -n '
9682 t rset
9683 :rset
9684 s/^[ ]*#[ ]*define[ ][ ]*//
9685 t ok
9688 s/[\\&,]/\\&/g
9689 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9690 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9691 ' >>conftest.defines
9693 # Remove the space that was appended to ease matching.
9694 # Then replace #undef with comments. This is necessary, for
9695 # example, in the case of _POSIX_SOURCE, which is predefined and required
9696 # on some systems where configure will not decide to define it.
9697 # (The regexp can be short, since the line contains either #define or #undef.)
9698 echo 's/ $//
9699 s,^[ #]*u.*,/* & */,' >>conftest.defines
9701 # Break up conftest.defines:
9702 ac_max_sed_lines=50
9704 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9705 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9706 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9707 # et cetera.
9708 ac_in='$ac_file_inputs'
9709 ac_out='"$tmp/out1"'
9710 ac_nxt='"$tmp/out2"'
9712 while :
9714 # Write a here document:
9715 cat >>$CONFIG_STATUS <<_ACEOF
9716 # First, check the format of the line:
9717 cat >"\$tmp/defines.sed" <<\\CEOF
9718 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9719 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9721 :def
9722 _ACEOF
9723 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9724 echo 'CEOF
9725 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9726 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9727 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9728 grep . conftest.tail >/dev/null || break
9729 rm -f conftest.defines
9730 mv conftest.tail conftest.defines
9731 done
9732 rm -f conftest.defines conftest.tail
9734 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9735 cat >>$CONFIG_STATUS <<\_ACEOF
9736 if test x"$ac_file" != x-; then
9737 echo "/* $configure_input */" >"$tmp/config.h"
9738 cat "$ac_result" >>"$tmp/config.h"
9739 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9740 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9741 echo "$as_me: $ac_file is unchanged" >&6;}
9742 else
9743 rm -f $ac_file
9744 mv "$tmp/config.h" $ac_file
9746 else
9747 echo "/* $configure_input */"
9748 cat "$ac_result"
9750 rm -f "$tmp/out12"
9753 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9754 echo "$as_me: executing $ac_file commands" >&6;}
9756 esac
9759 case $ac_file$ac_mode in
9760 "default":C)
9761 case $CONFIG_FILES in *config.make*)
9762 echo "$config_vars" >> config.make;;
9763 esac
9764 test -d bits || mkdir bits ;;
9766 esac
9767 done # for ac_tag
9770 { (exit 0); exit 0; }
9771 _ACEOF
9772 chmod +x $CONFIG_STATUS
9773 ac_clean_files=$ac_clean_files_save
9776 # configure is writing to config.log, and then calls config.status.
9777 # config.status does its own redirection, appending to config.log.
9778 # Unfortunately, on DOS this fails, as config.log is still kept open
9779 # by configure, so config.status won't be able to write to it; its
9780 # output is simply discarded. So we exec the FD to /dev/null,
9781 # effectively closing config.log, so it can be properly (re)opened and
9782 # appended to by config.status. When coming back to configure, we
9783 # need to make the FD available again.
9784 if test "$no_create" != yes; then
9785 ac_cs_success=:
9786 ac_config_status_args=
9787 test "$silent" = yes &&
9788 ac_config_status_args="$ac_config_status_args --quiet"
9789 exec 5>/dev/null
9790 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9791 exec 5>>config.log
9792 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9793 # would make configure fail if this is the last instruction.
9794 $ac_cs_success || { (exit 1); exit 1; }
9798 # CONFIG_SUBDIRS section.
9800 if test "$no_recursion" != yes; then
9802 # Remove --cache-file and --srcdir arguments so they do not pile up.
9803 ac_sub_configure_args=
9804 ac_prev=
9805 eval "set x $ac_configure_args"
9806 shift
9807 for ac_arg
9809 if test -n "$ac_prev"; then
9810 ac_prev=
9811 continue
9813 case $ac_arg in
9814 -cache-file | --cache-file | --cache-fil | --cache-fi \
9815 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9816 ac_prev=cache_file ;;
9817 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9818 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9819 | --c=*)
9821 --config-cache | -C)
9823 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9824 ac_prev=srcdir ;;
9825 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9827 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9828 ac_prev=prefix ;;
9829 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9832 case $ac_arg in
9833 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9834 esac
9835 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
9836 esac
9837 done
9839 # Always prepend --prefix to ensure using the same prefix
9840 # in subdir configurations.
9841 ac_arg="--prefix=$prefix"
9842 case $ac_arg in
9843 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9844 esac
9845 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9847 # Pass --silent
9848 if test "$silent" = yes; then
9849 ac_sub_configure_args="--silent $ac_sub_configure_args"
9852 ac_popdir=`pwd`
9853 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9855 # Do not complain, so a configure script can configure whichever
9856 # parts of a large source tree are present.
9857 test -d "$srcdir/$ac_dir" || continue
9859 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9860 echo "$as_me:$LINENO: $ac_msg" >&5
9861 echo "$ac_msg" >&6
9862 { as_dir="$ac_dir"
9863 case $as_dir in #(
9864 -*) as_dir=./$as_dir;;
9865 esac
9866 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9867 as_dirs=
9868 while :; do
9869 case $as_dir in #(
9870 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9871 *) as_qdir=$as_dir;;
9872 esac
9873 as_dirs="'$as_qdir' $as_dirs"
9874 as_dir=`$as_dirname -- "$as_dir" ||
9875 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9876 X"$as_dir" : 'X\(//\)[^/]' \| \
9877 X"$as_dir" : 'X\(//\)$' \| \
9878 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9879 echo X"$as_dir" |
9880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9881 s//\1/
9884 /^X\(\/\/\)[^/].*/{
9885 s//\1/
9888 /^X\(\/\/\)$/{
9889 s//\1/
9892 /^X\(\/\).*/{
9893 s//\1/
9896 s/.*/./; q'`
9897 test -d "$as_dir" && break
9898 done
9899 test -z "$as_dirs" || eval "mkdir $as_dirs"
9900 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9901 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9902 { (exit 1); exit 1; }; }; }
9903 ac_builddir=.
9905 case "$ac_dir" in
9906 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9908 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9909 # A ".." for each directory in $ac_dir_suffix.
9910 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9911 case $ac_top_builddir_sub in
9912 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9913 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9914 esac ;;
9915 esac
9916 ac_abs_top_builddir=$ac_pwd
9917 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9918 # for backward compatibility:
9919 ac_top_builddir=$ac_top_build_prefix
9921 case $srcdir in
9922 .) # We are building in place.
9923 ac_srcdir=.
9924 ac_top_srcdir=$ac_top_builddir_sub
9925 ac_abs_top_srcdir=$ac_pwd ;;
9926 [\\/]* | ?:[\\/]* ) # Absolute name.
9927 ac_srcdir=$srcdir$ac_dir_suffix;
9928 ac_top_srcdir=$srcdir
9929 ac_abs_top_srcdir=$srcdir ;;
9930 *) # Relative name.
9931 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9932 ac_top_srcdir=$ac_top_build_prefix$srcdir
9933 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9934 esac
9935 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9938 cd "$ac_dir"
9940 # Check for guested configure; otherwise get Cygnus style configure.
9941 if test -f "$ac_srcdir/configure.gnu"; then
9942 ac_sub_configure=$ac_srcdir/configure.gnu
9943 elif test -f "$ac_srcdir/configure"; then
9944 ac_sub_configure=$ac_srcdir/configure
9945 elif test -f "$ac_srcdir/configure.in"; then
9946 # This should be Cygnus configure.
9947 ac_sub_configure=$ac_aux_dir/configure
9948 else
9949 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
9950 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9951 ac_sub_configure=
9954 # The recursion is here.
9955 if test -n "$ac_sub_configure"; then
9956 # Make the cache file name correct relative to the subdirectory.
9957 case $cache_file in
9958 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9959 *) # Relative name.
9960 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9961 esac
9963 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9964 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9965 # The eval makes quoting arguments work.
9966 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9967 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9968 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
9969 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9970 { (exit 1); exit 1; }; }
9973 cd "$ac_popdir"
9974 done