Remove unused hardlink program
[glibc.git] / configure
blob9eda79e4e616577e176a7b79fda70c280d23d258
1 #! /bin/sh
2 # From configure.in CVSid.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 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, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 as_nl='
45 export as_nl
46 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
84 # Support unset when possible.
85 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
86 as_unset=unset
87 else
88 as_unset=false
92 # IFS
93 # We need space, tab and new line, in precisely that order. Quoting is
94 # there to prevent editors from complaining about space-tab.
95 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
96 # splitting by setting IFS to empty value.)
97 IFS=" "" $as_nl"
99 # Find who we are. Look in the path if we contain no directory separator.
100 case $0 in
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 for as_dir in $PATH
105 IFS=$as_save_IFS
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 done
109 IFS=$as_save_IFS
112 esac
113 # We did not find ourselves, most probably we were run as `sh COMMAND'
114 # in which case we are not to be found in the path.
115 if test "x$as_myself" = x; then
116 as_myself=$0
118 if test ! -f "$as_myself"; then
119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 { (exit 1); exit 1; }
123 # Work around bugs in pre-3.0 UWIN ksh.
124 for as_var in ENV MAIL MAILPATH
125 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
137 # Required to use basename.
138 if expr a : '\(a\)' >/dev/null 2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
140 as_expr=expr
141 else
142 as_expr=false
145 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
146 as_basename=basename
147 else
148 as_basename=false
152 # Name of the executable.
153 as_me=`$as_basename -- "$0" ||
154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155 X"$0" : 'X\(//\)$' \| \
156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 $as_echo X/"$0" |
158 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 s//\1/
162 /^X\/\(\/\/\)$/{
163 s//\1/
166 /^X\/\(\/\).*/{
167 s//\1/
170 s/.*/./; q'`
172 # CDPATH.
173 $as_unset CDPATH
176 if test "x$CONFIG_SHELL" = x; then
177 if (eval ":") 2>/dev/null; then
178 as_have_required=yes
179 else
180 as_have_required=no
183 if test $as_have_required = yes && (eval ":
184 (as_func_return () {
185 (exit \$1)
187 as_func_success () {
188 as_func_return 0
190 as_func_failure () {
191 as_func_return 1
193 as_func_ret_success () {
194 return 0
196 as_func_ret_failure () {
197 return 1
200 exitcode=0
201 if as_func_success; then
203 else
204 exitcode=1
205 echo as_func_success failed.
208 if as_func_failure; then
209 exitcode=1
210 echo as_func_failure succeeded.
213 if as_func_ret_success; then
215 else
216 exitcode=1
217 echo as_func_ret_success failed.
220 if as_func_ret_failure; then
221 exitcode=1
222 echo as_func_ret_failure succeeded.
225 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
227 else
228 exitcode=1
229 echo positional parameters were not saved.
232 test \$exitcode = 0) || { (exit 1); exit 1; }
235 as_lineno_1=\$LINENO
236 as_lineno_2=\$LINENO
237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239 ") 2> /dev/null; then
241 else
242 as_candidate_shells=
243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 IFS=$as_save_IFS
247 test -z "$as_dir" && as_dir=.
248 case $as_dir in
250 for as_base in sh bash ksh sh5; do
251 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
252 done;;
253 esac
254 done
255 IFS=$as_save_IFS
258 for as_shell in $as_candidate_shells $SHELL; do
259 # Try only shells that exist, to save several forks.
260 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261 { ("$as_shell") 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272 esac
278 _ASEOF
279 }; then
280 CONFIG_SHELL=$as_shell
281 as_have_required=yes
282 if { "$as_shell" 2> /dev/null <<\_ASEOF
283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
284 emulate sh
285 NULLCMD=:
286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287 # is contrary to our usage. Disable this feature.
288 alias -g '${1+"$@"}'='"$@"'
289 setopt NO_GLOB_SUBST
290 else
291 case `(set -o) 2>/dev/null` in
292 *posix*) set -o posix ;;
293 esac
299 (as_func_return () {
300 (exit $1)
302 as_func_success () {
303 as_func_return 0
305 as_func_failure () {
306 as_func_return 1
308 as_func_ret_success () {
309 return 0
311 as_func_ret_failure () {
312 return 1
315 exitcode=0
316 if as_func_success; then
318 else
319 exitcode=1
320 echo as_func_success failed.
323 if as_func_failure; then
324 exitcode=1
325 echo as_func_failure succeeded.
328 if as_func_ret_success; then
330 else
331 exitcode=1
332 echo as_func_ret_success failed.
335 if as_func_ret_failure; then
336 exitcode=1
337 echo as_func_ret_failure succeeded.
340 if ( set x; as_func_ret_success y && test x = "$1" ); then
342 else
343 exitcode=1
344 echo positional parameters were not saved.
347 test $exitcode = 0) || { (exit 1); exit 1; }
350 as_lineno_1=$LINENO
351 as_lineno_2=$LINENO
352 test "x$as_lineno_1" != "x$as_lineno_2" &&
353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
355 _ASEOF
356 }; then
357 break
362 done
364 if test "x$CONFIG_SHELL" != x; then
365 for as_var in BASH_ENV ENV
366 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
367 done
368 export CONFIG_SHELL
369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
373 if test $as_have_required = no; then
374 echo This script requires a shell more modern than all the
375 echo shells that I found on your system. Please install a
376 echo modern shell, or manually run the script under such a
377 echo shell if you do have one.
378 { (exit 1); exit 1; }
388 (eval "as_func_return () {
389 (exit \$1)
391 as_func_success () {
392 as_func_return 0
394 as_func_failure () {
395 as_func_return 1
397 as_func_ret_success () {
398 return 0
400 as_func_ret_failure () {
401 return 1
404 exitcode=0
405 if as_func_success; then
407 else
408 exitcode=1
409 echo as_func_success failed.
412 if as_func_failure; then
413 exitcode=1
414 echo as_func_failure succeeded.
417 if as_func_ret_success; then
419 else
420 exitcode=1
421 echo as_func_ret_success failed.
424 if as_func_ret_failure; then
425 exitcode=1
426 echo as_func_ret_failure succeeded.
429 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
431 else
432 exitcode=1
433 echo positional parameters were not saved.
436 test \$exitcode = 0") || {
437 echo No shell found that supports shell functions.
438 echo Please tell bug-autoconf@gnu.org about your system,
439 echo including any error possibly output before this message.
440 echo This can help us improve future autoconf versions.
441 echo Configuration will now proceed without shell functions.
446 as_lineno_1=$LINENO
447 as_lineno_2=$LINENO
448 test "x$as_lineno_1" != "x$as_lineno_2" &&
449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452 # uniformly replaced by the line number. The first 'sed' inserts a
453 # line-number line after each line using $LINENO; the second 'sed'
454 # does the real work. The second script uses 'N' to pair each
455 # line-number line with the line containing $LINENO, and appends
456 # trailing '-' during substitution so that $LINENO is not a special
457 # case at line end.
458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
459 # scripts with optimization help from Paolo Bonzini. Blame Lee
460 # E. McMahon (1931-1989) for sed's syntax. :-)
461 sed -n '
463 /[$]LINENO/=
464 ' <$as_myself |
465 sed '
466 s/[$]LINENO.*/&-/
467 t lineno
469 :lineno
471 :loop
472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 t loop
474 s/-\n.*//
475 ' >$as_me.lineno &&
476 chmod +x "$as_me.lineno" ||
477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
478 { (exit 1); exit 1; }; }
480 # Don't try to exec as it changes $[0], causing all sort of problems
481 # (the dirname of $[0] is not the place where we might find the
482 # original and so on. Autoconf is especially sensitive to this).
483 . "./$as_me.lineno"
484 # Exit status is that of the last command.
485 exit
489 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490 as_dirname=dirname
491 else
492 as_dirname=false
495 ECHO_C= ECHO_N= ECHO_T=
496 case `echo -n x` in
497 -n*)
498 case `echo 'x\c'` in
499 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
500 *) ECHO_C='\c';;
501 esac;;
503 ECHO_N='-n';;
504 esac
505 if expr a : '\(a\)' >/dev/null 2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
507 as_expr=expr
508 else
509 as_expr=false
512 rm -f conf$$ conf$$.exe conf$$.file
513 if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
515 else
516 rm -f conf$$.dir
517 mkdir conf$$.dir 2>/dev/null
519 if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 as_ln_s='ln -s'
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -p'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 as_ln_s='cp -p'
528 elif ln conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s=ln
530 else
531 as_ln_s='cp -p'
533 else
534 as_ln_s='cp -p'
536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537 rmdir conf$$.dir 2>/dev/null
539 if mkdir -p . 2>/dev/null; then
540 as_mkdir_p=:
541 else
542 test -d ./-p && rmdir ./-p
543 as_mkdir_p=false
546 if test -x / >/dev/null 2>&1; then
547 as_test_x='test -x'
548 else
549 if ls -dL / >/dev/null 2>&1; then
550 as_ls_L_option=L
551 else
552 as_ls_L_option=
554 as_test_x='
555 eval sh -c '\''
556 if test -d "$1"; then
557 test -d "$1/.";
558 else
559 case $1 in
560 -*)set "./$1";;
561 esac;
562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563 ???[sx]*):;;*)false;;esac;fi
564 '\'' sh
567 as_executable_p=$as_test_x
569 # Sed expression to map a string onto a valid CPP name.
570 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572 # Sed expression to map a string onto a valid variable name.
573 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 exec 7<&0 </dev/null 6>&1
579 # Name of the host.
580 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
581 # so uname gets run too.
582 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
585 # Initializations.
587 ac_default_prefix=/usr/local
588 ac_clean_files=
589 ac_config_libobj_dir=.
590 LIBOBJS=
591 cross_compiling=no
592 subdirs=
593 MFLAGS=
594 MAKEFLAGS=
595 SHELL=${CONFIG_SHELL-/bin/sh}
597 # Identity of this package.
598 PACKAGE_NAME='GNU C Library'
599 PACKAGE_TARNAME='c-library'
600 PACKAGE_VERSION='(see version.h)'
601 PACKAGE_STRING='GNU C Library (see version.h)'
602 PACKAGE_BUGREPORT='glibc'
604 ac_unique_file="include/features.h"
605 enable_option_checking=no
606 # Factoring default headers for most tests.
607 ac_includes_default="\
608 #include <stdio.h>
609 #ifdef HAVE_SYS_TYPES_H
610 # include <sys/types.h>
611 #endif
612 #ifdef HAVE_SYS_STAT_H
613 # include <sys/stat.h>
614 #endif
615 #ifdef STDC_HEADERS
616 # include <stdlib.h>
617 # include <stddef.h>
618 #else
619 # ifdef HAVE_STDLIB_H
620 # include <stdlib.h>
621 # endif
622 #endif
623 #ifdef HAVE_STRING_H
624 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 # include <memory.h>
626 # endif
627 # include <string.h>
628 #endif
629 #ifdef HAVE_STRINGS_H
630 # include <strings.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_UNISTD_H
639 # include <unistd.h>
640 #endif"
642 ac_subst_vars='LTLIBOBJS
643 LIBOBJS
644 RELEASE
645 VERSION
646 mach_interface_list
647 DEFINES
648 nopic_initfini
649 static_nss
650 bounded
651 omitfp
652 profile
653 libc_cv_pic_default
654 shared
655 static
656 xcoff
658 ldd_rewrite_script
659 use_ldconfig
660 libc_cv_cc_avx
661 libc_cv_cc_sse4
662 libc_cv_cpp_asm_debuginfo
663 libc_cv_forced_unwind
664 libc_cv_rootsbindir
665 libc_cv_sysconfdir
666 libc_cv_localedir
667 libc_cv_slibdir
668 old_glibc_headers
669 uname_version
670 uname_release
671 uname_sysname
672 libc_cv_gcc_unwind_find_fde
673 sizeof_long_double
674 EGREP
675 GREP
676 have_selinux
677 have_libcap
678 have_libaudit
679 LIBGD
680 libc_cv_cc_submachine
681 exceptions
682 no_whole_archive
683 libc_cv_have_initfini
684 libc_cv_gnu89_inline
685 libc_cv_ssp
686 fno_unit_at_a_time
687 libc_cv_hashstyle
688 libc_cv_fpie
689 libc_cv_z_execstack
690 libc_cv_z_combreloc
691 ASFLAGS_config
692 libc_cv_as_needed
693 libc_cv_libgcc_s_suffix
694 libc_cv_Bgroup
695 libc_cv_cc_with_libunwind
696 VERSIONING
697 BISON
698 INSTALL_INFO
699 PERL
701 libc_cv_have_ksh
703 libc_cv_have_bash2
704 BASH_SHELL
705 libc_cv_gcc_static_libgcc
706 CXX_SYSINCLUDES
707 SYSINCLUDES
708 AUTOCONF
710 MAKEINFO
711 MSGFMT
712 MAKE
713 PWD_P
717 RANLIB
718 OBJDUMP
720 LN_S
721 INSTALL_DATA
722 INSTALL_SCRIPT
723 INSTALL_PROGRAM
724 sysdeps_add_ons
725 sysnames
726 submachine
727 base_machine
728 add_on_subdirs
729 add_ons
730 subdirs
731 libc_cv_nss_crypt
732 experimental_malloc
733 multi_arch
734 all_warnings
735 force_install
736 bindnow
737 oldest_abi
738 enable_check_abi
739 with_cvs
740 with_fp
741 ac_ct_CXX
742 CXXFLAGS
745 cross_compiling
746 BUILD_CC
747 OBJEXT
748 ac_ct_CC
749 CPPFLAGS
750 LDFLAGS
751 CFLAGS
753 host_os
754 host_vendor
755 host_cpu
756 host
757 build_os
758 build_vendor
759 build_cpu
760 build
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL'
798 ac_subst_files=''
799 ac_user_opts='
800 enable_option_checking
801 with_gd
802 with_gd_include
803 with_gd_lib
804 with_fp
805 with_binutils
806 with_elf
807 with_selinux
808 with_xcoff
809 with_cvs
810 with_headers
811 enable_sanity_checks
812 enable_check_abi
813 enable_shared
814 enable_profile
815 enable_omitfp
816 enable_bounded
817 enable_versioning
818 enable_oldest_abi
819 enable_stackguard_randomization
820 enable_add_ons
821 with_tls
822 with___thread
823 enable_hidden_plt
824 enable_bind_now
825 enable_static_nss
826 enable_force_install
827 enable_kernel
828 enable_all_warnings
829 enable_multi_arch
830 enable_experimental_malloc
831 enable_nss_crypt
832 with_cpu
834 ac_precious_vars='build_alias
835 host_alias
836 target_alias
838 CFLAGS
839 LDFLAGS
840 LIBS
841 CPPFLAGS
844 CXXFLAGS
845 CCC'
846 ac_subdirs_all=''
848 # Initialize some variables set by options.
849 ac_init_help=
850 ac_init_version=false
851 ac_unrecognized_opts=
852 ac_unrecognized_sep=
853 # The variables have the same names as the options, with
854 # dashes changed to underlines.
855 cache_file=/dev/null
856 exec_prefix=NONE
857 no_create=
858 no_recursion=
859 prefix=NONE
860 program_prefix=NONE
861 program_suffix=NONE
862 program_transform_name=s,x,x,
863 silent=
864 site=
865 srcdir=
866 verbose=
867 x_includes=NONE
868 x_libraries=NONE
870 # Installation directory options.
871 # These are left unexpanded so users can "make install exec_prefix=/foo"
872 # and all the variables that are supposed to be based on exec_prefix
873 # by default will actually change.
874 # Use braces instead of parens because sh, perl, etc. also accept them.
875 # (The list follows the same order as the GNU Coding Standards.)
876 bindir='${exec_prefix}/bin'
877 sbindir='${exec_prefix}/sbin'
878 libexecdir='${exec_prefix}/libexec'
879 datarootdir='${prefix}/share'
880 datadir='${datarootdir}'
881 sysconfdir='${prefix}/etc'
882 sharedstatedir='${prefix}/com'
883 localstatedir='${prefix}/var'
884 includedir='${prefix}/include'
885 oldincludedir='/usr/include'
886 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
887 infodir='${datarootdir}/info'
888 htmldir='${docdir}'
889 dvidir='${docdir}'
890 pdfdir='${docdir}'
891 psdir='${docdir}'
892 libdir='${exec_prefix}/lib'
893 localedir='${datarootdir}/locale'
894 mandir='${datarootdir}/man'
896 ac_prev=
897 ac_dashdash=
898 for ac_option
900 # If the previous option needs an argument, assign it.
901 if test -n "$ac_prev"; then
902 eval $ac_prev=\$ac_option
903 ac_prev=
904 continue
907 case $ac_option in
908 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909 *) ac_optarg=yes ;;
910 esac
912 # Accept the important Cygnus configure options, so we can diagnose typos.
914 case $ac_dashdash$ac_option in
916 ac_dashdash=yes ;;
918 -bindir | --bindir | --bindi | --bind | --bin | --bi)
919 ac_prev=bindir ;;
920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921 bindir=$ac_optarg ;;
923 -build | --build | --buil | --bui | --bu)
924 ac_prev=build_alias ;;
925 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926 build_alias=$ac_optarg ;;
928 -cache-file | --cache-file | --cache-fil | --cache-fi \
929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930 ac_prev=cache_file ;;
931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933 cache_file=$ac_optarg ;;
935 --config-cache | -C)
936 cache_file=config.cache ;;
938 -datadir | --datadir | --datadi | --datad)
939 ac_prev=datadir ;;
940 -datadir=* | --datadir=* | --datadi=* | --datad=*)
941 datadir=$ac_optarg ;;
943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944 | --dataroo | --dataro | --datar)
945 ac_prev=datarootdir ;;
946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948 datarootdir=$ac_optarg ;;
950 -disable-* | --disable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
955 { (exit 1); exit 1; }; }
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=no ;;
967 -docdir | --docdir | --docdi | --doc | --do)
968 ac_prev=docdir ;;
969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970 docdir=$ac_optarg ;;
972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 ac_prev=dvidir ;;
974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975 dvidir=$ac_optarg ;;
977 -enable-* | --enable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
982 { (exit 1); exit 1; }; }
983 ac_useropt_orig=$ac_useropt
984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
987 "enable_$ac_useropt"
988 "*) ;;
989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
990 ac_unrecognized_sep=', ';;
991 esac
992 eval enable_$ac_useropt=\$ac_optarg ;;
994 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
995 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
996 | --exec | --exe | --ex)
997 ac_prev=exec_prefix ;;
998 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
999 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1000 | --exec=* | --exe=* | --ex=*)
1001 exec_prefix=$ac_optarg ;;
1003 -gas | --gas | --ga | --g)
1004 # Obsolete; use --with-gas.
1005 with_gas=yes ;;
1007 -help | --help | --hel | --he | -h)
1008 ac_init_help=long ;;
1009 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1010 ac_init_help=recursive ;;
1011 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1012 ac_init_help=short ;;
1014 -host | --host | --hos | --ho)
1015 ac_prev=host_alias ;;
1016 -host=* | --host=* | --hos=* | --ho=*)
1017 host_alias=$ac_optarg ;;
1019 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1020 ac_prev=htmldir ;;
1021 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1022 | --ht=*)
1023 htmldir=$ac_optarg ;;
1025 -includedir | --includedir | --includedi | --included | --include \
1026 | --includ | --inclu | --incl | --inc)
1027 ac_prev=includedir ;;
1028 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1029 | --includ=* | --inclu=* | --incl=* | --inc=*)
1030 includedir=$ac_optarg ;;
1032 -infodir | --infodir | --infodi | --infod | --info | --inf)
1033 ac_prev=infodir ;;
1034 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1035 infodir=$ac_optarg ;;
1037 -libdir | --libdir | --libdi | --libd)
1038 ac_prev=libdir ;;
1039 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1040 libdir=$ac_optarg ;;
1042 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1043 | --libexe | --libex | --libe)
1044 ac_prev=libexecdir ;;
1045 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1046 | --libexe=* | --libex=* | --libe=*)
1047 libexecdir=$ac_optarg ;;
1049 -localedir | --localedir | --localedi | --localed | --locale)
1050 ac_prev=localedir ;;
1051 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1052 localedir=$ac_optarg ;;
1054 -localstatedir | --localstatedir | --localstatedi | --localstated \
1055 | --localstate | --localstat | --localsta | --localst | --locals)
1056 ac_prev=localstatedir ;;
1057 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1058 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1059 localstatedir=$ac_optarg ;;
1061 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1062 ac_prev=mandir ;;
1063 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1064 mandir=$ac_optarg ;;
1066 -nfp | --nfp | --nf)
1067 # Obsolete; use --without-fp.
1068 with_fp=no ;;
1070 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1071 | --no-cr | --no-c | -n)
1072 no_create=yes ;;
1074 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1075 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1076 no_recursion=yes ;;
1078 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1079 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1080 | --oldin | --oldi | --old | --ol | --o)
1081 ac_prev=oldincludedir ;;
1082 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1083 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1084 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1085 oldincludedir=$ac_optarg ;;
1087 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1088 ac_prev=prefix ;;
1089 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1090 prefix=$ac_optarg ;;
1092 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1093 | --program-pre | --program-pr | --program-p)
1094 ac_prev=program_prefix ;;
1095 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1096 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1097 program_prefix=$ac_optarg ;;
1099 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1100 | --program-suf | --program-su | --program-s)
1101 ac_prev=program_suffix ;;
1102 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1103 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1104 program_suffix=$ac_optarg ;;
1106 -program-transform-name | --program-transform-name \
1107 | --program-transform-nam | --program-transform-na \
1108 | --program-transform-n | --program-transform- \
1109 | --program-transform | --program-transfor \
1110 | --program-transfo | --program-transf \
1111 | --program-trans | --program-tran \
1112 | --progr-tra | --program-tr | --program-t)
1113 ac_prev=program_transform_name ;;
1114 -program-transform-name=* | --program-transform-name=* \
1115 | --program-transform-nam=* | --program-transform-na=* \
1116 | --program-transform-n=* | --program-transform-=* \
1117 | --program-transform=* | --program-transfor=* \
1118 | --program-transfo=* | --program-transf=* \
1119 | --program-trans=* | --program-tran=* \
1120 | --progr-tra=* | --program-tr=* | --program-t=*)
1121 program_transform_name=$ac_optarg ;;
1123 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1124 ac_prev=pdfdir ;;
1125 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1126 pdfdir=$ac_optarg ;;
1128 -psdir | --psdir | --psdi | --psd | --ps)
1129 ac_prev=psdir ;;
1130 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1131 psdir=$ac_optarg ;;
1133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134 | -silent | --silent | --silen | --sile | --sil)
1135 silent=yes ;;
1137 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138 ac_prev=sbindir ;;
1139 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140 | --sbi=* | --sb=*)
1141 sbindir=$ac_optarg ;;
1143 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145 | --sharedst | --shareds | --shared | --share | --shar \
1146 | --sha | --sh)
1147 ac_prev=sharedstatedir ;;
1148 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151 | --sha=* | --sh=*)
1152 sharedstatedir=$ac_optarg ;;
1154 -site | --site | --sit)
1155 ac_prev=site ;;
1156 -site=* | --site=* | --sit=*)
1157 site=$ac_optarg ;;
1159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160 ac_prev=srcdir ;;
1161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162 srcdir=$ac_optarg ;;
1164 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165 | --syscon | --sysco | --sysc | --sys | --sy)
1166 ac_prev=sysconfdir ;;
1167 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169 sysconfdir=$ac_optarg ;;
1171 -target | --target | --targe | --targ | --tar | --ta | --t)
1172 ac_prev=target_alias ;;
1173 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174 target_alias=$ac_optarg ;;
1176 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177 verbose=yes ;;
1179 -version | --version | --versio | --versi | --vers | -V)
1180 ac_init_version=: ;;
1182 -with-* | --with-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1187 { (exit 1); exit 1; }; }
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=\$ac_optarg ;;
1199 -without-* | --without-*)
1200 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1204 { (exit 1); exit 1; }; }
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1209 "with_$ac_useropt"
1210 "*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=no ;;
1216 --x)
1217 # Obsolete; use --with-x.
1218 with_x=yes ;;
1220 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1221 | --x-incl | --x-inc | --x-in | --x-i)
1222 ac_prev=x_includes ;;
1223 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1224 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1225 x_includes=$ac_optarg ;;
1227 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1228 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1229 ac_prev=x_libraries ;;
1230 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1231 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1232 x_libraries=$ac_optarg ;;
1234 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1235 Try \`$0 --help' for more information." >&2
1236 { (exit 1); exit 1; }; }
1239 *=*)
1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1243 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1244 { (exit 1); exit 1; }; }
1245 eval $ac_envvar=\$ac_optarg
1246 export $ac_envvar ;;
1249 # FIXME: should be removed in autoconf 3.0.
1250 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1251 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1253 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1256 esac
1257 done
1259 if test -n "$ac_prev"; then
1260 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1261 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1262 { (exit 1); exit 1; }; }
1265 if test -n "$ac_unrecognized_opts"; then
1266 case $enable_option_checking in
1267 no) ;;
1268 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1269 { (exit 1); exit 1; }; } ;;
1270 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1271 esac
1274 # Check all directory arguments for consistency.
1275 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276 datadir sysconfdir sharedstatedir localstatedir includedir \
1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278 libdir localedir mandir
1280 eval ac_val=\$$ac_var
1281 # Remove trailing slashes.
1282 case $ac_val in
1283 */ )
1284 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1285 eval $ac_var=\$ac_val;;
1286 esac
1287 # Be sure to have absolute directory names.
1288 case $ac_val in
1289 [\\/$]* | ?:[\\/]* ) continue;;
1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291 esac
1292 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1293 { (exit 1); exit 1; }; }
1294 done
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1299 build=$build_alias
1300 host=$host_alias
1301 target=$target_alias
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
1307 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1308 If a cross compiler is detected then cross compile mode will be used." >&2
1309 elif test "x$build_alias" != "x$host_alias"; then
1310 cross_compiling=yes
1314 ac_tool_prefix=
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317 test "$silent" = yes && exec 6>/dev/null
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1324 { (exit 1); exit 1; }; }
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1327 { (exit 1); exit 1; }; }
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$as_myself" ||
1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339 $as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 s//\1/
1344 /^X\(\/\/\)[^/].*/{
1345 s//\1/
1348 /^X\(\/\/\)$/{
1349 s//\1/
1352 /^X\(\/\).*/{
1353 s//\1/
1356 s/.*/./; q'`
1357 srcdir=$ac_confdir
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 srcdir=..
1361 else
1362 ac_srcdir_defaulted=no
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1367 { (exit 1); exit 1; }; }
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1372 { (exit 1); exit 1; }; }
1373 pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1392 # Report the --help message.
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
1398 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1405 Defaults for the options are specified in brackets.
1407 Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1429 For better control, use the options below.
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/c-library]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451 _ACEOF
1453 cat <<\_ACEOF
1455 System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 _ACEOF
1461 if test -n "$ac_init_help"; then
1462 case $ac_init_help in
1463 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1464 esac
1465 cat <<\_ACEOF
1467 Optional Features:
1468 --disable-option-checking ignore unrecognized --enable/--with options
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --disable-sanity-checks really do not use threads (should not be used except
1472 in special situations) [default=yes]
1473 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1474 [default=no]
1475 --enable-shared build shared library [default=yes if GNU ld & ELF]
1476 --enable-profile build profiled library [default=no]
1477 --enable-omitfp build undebuggable optimized library [default=no]
1478 --enable-bounded build with runtime bounds checking [default=no]
1479 --disable-versioning do not include versioning information in the library
1480 objects [default=yes if supported]
1481 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1482 [default=glibc default]
1483 --enable-stackguard-randomization
1484 initialize __stack_chk_guard canary with a random
1485 number at program start
1486 --enable-add-ons[=DIRS...]
1487 configure and build add-ons in DIR1,DIR2,... search
1488 for add-ons if no parameter given
1489 --disable-hidden-plt do not hide internal function calls to avoid PLT
1490 --enable-bind-now disable lazy relocations in DSOs
1491 --enable-static-nss build static NSS modules [default=no]
1492 --disable-force-install don't force installation of files from this package,
1493 even if they are older than the installed files
1494 --enable-kernel=VERSION compile for compatibility with kernel not older than
1495 VERSION
1496 --enable-all-warnings enable all useful warnings gcc can issue
1497 --enable-multi-arch enable single DSO with optimizations for multiple
1498 architectures
1499 --enable-experimental-malloc
1500 enable experimental malloc features
1501 --enable-nss-crypt enable libcrypt to use nss
1503 Optional Packages:
1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1506 --with-gd=DIR find libgd include dir and library with prefix DIR
1507 --with-gd-include=DIR find libgd include files in DIR
1508 --with-gd-lib=DIR find libgd library files in DIR
1509 --with-fp if using floating-point hardware [default=yes]
1510 --with-binutils=PATH specify location of binutils (as and ld)
1511 --with-elf if using the ELF object format
1512 --with-selinux if building with SELinux support
1513 --with-xcoff if using the XCOFF object format
1514 --without-cvs if CVS should not be used
1515 --with-headers=PATH location of system headers to use (for example
1516 /usr/src/linux/include) [default=compiler default]
1517 --with-tls enable support for TLS
1518 --without-__thread do not use TLS features even when supporting them
1519 --with-cpu=CPU select code for CPU variant
1521 Some influential environment variables:
1522 CC C compiler command
1523 CFLAGS C compiler flags
1524 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1525 nonstandard directory <lib dir>
1526 LIBS libraries to pass to the linker, e.g. -l<library>
1527 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1528 you have headers in a nonstandard directory <include dir>
1529 CPP C preprocessor
1530 CXX C++ compiler command
1531 CXXFLAGS C++ compiler flags
1533 Use these variables to override the choices made by `configure' or to help
1534 it to find libraries and programs with nonstandard names/locations.
1536 Report bugs to <glibc>.
1537 _ACEOF
1538 ac_status=$?
1541 if test "$ac_init_help" = "recursive"; then
1542 # If there are subdirs, report their specific --help.
1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544 test -d "$ac_dir" ||
1545 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546 continue
1547 ac_builddir=.
1549 case "$ac_dir" in
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553 # A ".." for each directory in $ac_dir_suffix.
1554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555 case $ac_top_builddir_sub in
1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558 esac ;;
1559 esac
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1565 case $srcdir in
1566 .) # We are building in place.
1567 ac_srcdir=.
1568 ac_top_srcdir=$ac_top_builddir_sub
1569 ac_abs_top_srcdir=$ac_pwd ;;
1570 [\\/]* | ?:[\\/]* ) # Absolute name.
1571 ac_srcdir=$srcdir$ac_dir_suffix;
1572 ac_top_srcdir=$srcdir
1573 ac_abs_top_srcdir=$srcdir ;;
1574 *) # Relative name.
1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576 ac_top_srcdir=$ac_top_build_prefix$srcdir
1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 esac
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581 cd "$ac_dir" || { ac_status=$?; continue; }
1582 # Check for guested configure.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1589 else
1590 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 fi || ac_status=$?
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1593 done
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598 cat <<\_ACEOF
1599 GNU C Library configure (see version.h)
1600 generated by GNU Autoconf 2.63
1602 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1603 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1606 _ACEOF
1607 exit
1609 cat >config.log <<_ACEOF
1610 This file contains any messages produced by compilers while
1611 running configure, to aid debugging if configure makes a mistake.
1613 It was created by GNU C Library $as_me (see version.h), which was
1614 generated by GNU Autoconf 2.63. Invocation command line was
1616 $ $0 $@
1618 _ACEOF
1619 exec 5>>config.log
1621 cat <<_ASUNAME
1622 ## --------- ##
1623 ## Platform. ##
1624 ## --------- ##
1626 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1627 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1628 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1629 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1630 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1632 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1633 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1635 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1636 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1637 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1638 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1639 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1640 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1641 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1643 _ASUNAME
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1648 IFS=$as_save_IFS
1649 test -z "$as_dir" && as_dir=.
1650 $as_echo "PATH: $as_dir"
1651 done
1652 IFS=$as_save_IFS
1654 } >&5
1656 cat >&5 <<_ACEOF
1659 ## ----------- ##
1660 ## Core tests. ##
1661 ## ----------- ##
1663 _ACEOF
1666 # Keep a trace of the command line.
1667 # Strip out --no-create and --no-recursion so they do not pile up.
1668 # Strip out --silent because we don't want to record it for future runs.
1669 # Also quote any args containing shell meta-characters.
1670 # Make two passes to allow for proper duplicate-argument suppression.
1671 ac_configure_args=
1672 ac_configure_args0=
1673 ac_configure_args1=
1674 ac_must_keep_next=false
1675 for ac_pass in 1 2
1677 for ac_arg
1679 case $ac_arg in
1680 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1682 | -silent | --silent | --silen | --sile | --sil)
1683 continue ;;
1684 *\'*)
1685 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1686 esac
1687 case $ac_pass in
1688 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1690 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1691 if test $ac_must_keep_next = true; then
1692 ac_must_keep_next=false # Got value, back to normal.
1693 else
1694 case $ac_arg in
1695 *=* | --config-cache | -C | -disable-* | --disable-* \
1696 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1697 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1698 | -with-* | --with-* | -without-* | --without-* | --x)
1699 case "$ac_configure_args0 " in
1700 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1701 esac
1703 -* ) ac_must_keep_next=true ;;
1704 esac
1706 ac_configure_args="$ac_configure_args '$ac_arg'"
1708 esac
1709 done
1710 done
1711 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1712 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1714 # When interrupted or exit'd, cleanup temporary files, and complete
1715 # config.log. We remove comments because anyway the quotes in there
1716 # would cause problems or look ugly.
1717 # WARNING: Use '\'' to represent an apostrophe within the trap.
1718 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1719 trap 'exit_status=$?
1720 # Save into config.log some information that might help in debugging.
1722 echo
1724 cat <<\_ASBOX
1725 ## ---------------- ##
1726 ## Cache variables. ##
1727 ## ---------------- ##
1728 _ASBOX
1729 echo
1730 # The following way of writing the cache mishandles newlines in values,
1732 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1733 eval ac_val=\$$ac_var
1734 case $ac_val in #(
1735 *${as_nl}*)
1736 case $ac_var in #(
1737 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1738 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1739 esac
1740 case $ac_var in #(
1741 _ | IFS | as_nl) ;; #(
1742 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1743 *) $as_unset $ac_var ;;
1744 esac ;;
1745 esac
1746 done
1747 (set) 2>&1 |
1748 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1749 *${as_nl}ac_space=\ *)
1750 sed -n \
1751 "s/'\''/'\''\\\\'\'''\''/g;
1752 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1753 ;; #(
1755 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1757 esac |
1758 sort
1760 echo
1762 cat <<\_ASBOX
1763 ## ----------------- ##
1764 ## Output variables. ##
1765 ## ----------------- ##
1766 _ASBOX
1767 echo
1768 for ac_var in $ac_subst_vars
1770 eval ac_val=\$$ac_var
1771 case $ac_val in
1772 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1773 esac
1774 $as_echo "$ac_var='\''$ac_val'\''"
1775 done | sort
1776 echo
1778 if test -n "$ac_subst_files"; then
1779 cat <<\_ASBOX
1780 ## ------------------- ##
1781 ## File substitutions. ##
1782 ## ------------------- ##
1783 _ASBOX
1784 echo
1785 for ac_var in $ac_subst_files
1787 eval ac_val=\$$ac_var
1788 case $ac_val in
1789 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1790 esac
1791 $as_echo "$ac_var='\''$ac_val'\''"
1792 done | sort
1793 echo
1796 if test -s confdefs.h; then
1797 cat <<\_ASBOX
1798 ## ----------- ##
1799 ## confdefs.h. ##
1800 ## ----------- ##
1801 _ASBOX
1802 echo
1803 cat confdefs.h
1804 echo
1806 test "$ac_signal" != 0 &&
1807 $as_echo "$as_me: caught signal $ac_signal"
1808 $as_echo "$as_me: exit $exit_status"
1809 } >&5
1810 rm -f core *.core core.conftest.* &&
1811 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1812 exit $exit_status
1814 for ac_signal in 1 2 13 15; do
1815 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1816 done
1817 ac_signal=0
1819 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1820 rm -f -r conftest* confdefs.h
1822 # Predefined preprocessor variables.
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_NAME "$PACKAGE_NAME"
1826 _ACEOF
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1831 _ACEOF
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1836 _ACEOF
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_STRING "$PACKAGE_STRING"
1841 _ACEOF
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1846 _ACEOF
1849 # Let the site file select an alternate cache file if it wants to.
1850 # Prefer an explicitly selected file to automatically selected ones.
1851 ac_site_file1=NONE
1852 ac_site_file2=NONE
1853 if test -n "$CONFIG_SITE"; then
1854 ac_site_file1=$CONFIG_SITE
1855 elif test "x$prefix" != xNONE; then
1856 ac_site_file1=$prefix/share/config.site
1857 ac_site_file2=$prefix/etc/config.site
1858 else
1859 ac_site_file1=$ac_default_prefix/share/config.site
1860 ac_site_file2=$ac_default_prefix/etc/config.site
1862 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1864 test "x$ac_site_file" = xNONE && continue
1865 if test -r "$ac_site_file"; then
1866 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1867 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1868 sed 's/^/| /' "$ac_site_file" >&5
1869 . "$ac_site_file"
1871 done
1873 if test -r "$cache_file"; then
1874 # Some versions of bash will fail to source /dev/null (special
1875 # files actually), so we avoid doing that.
1876 if test -f "$cache_file"; then
1877 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1878 $as_echo "$as_me: loading cache $cache_file" >&6;}
1879 case $cache_file in
1880 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1881 *) . "./$cache_file";;
1882 esac
1884 else
1885 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1886 $as_echo "$as_me: creating cache $cache_file" >&6;}
1887 >$cache_file
1890 # Check that the precious variables saved in the cache have kept the same
1891 # value.
1892 ac_cache_corrupted=false
1893 for ac_var in $ac_precious_vars; do
1894 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1895 eval ac_new_set=\$ac_env_${ac_var}_set
1896 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1897 eval ac_new_val=\$ac_env_${ac_var}_value
1898 case $ac_old_set,$ac_new_set in
1899 set,)
1900 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1901 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1902 ac_cache_corrupted=: ;;
1903 ,set)
1904 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1905 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1906 ac_cache_corrupted=: ;;
1907 ,);;
1909 if test "x$ac_old_val" != "x$ac_new_val"; then
1910 # differences in whitespace do not lead to failure.
1911 ac_old_val_w=`echo x $ac_old_val`
1912 ac_new_val_w=`echo x $ac_new_val`
1913 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1914 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1915 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1916 ac_cache_corrupted=:
1917 else
1918 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1919 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1920 eval $ac_var=\$ac_old_val
1922 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1923 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1924 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1925 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1926 fi;;
1927 esac
1928 # Pass precious variables to config.status.
1929 if test "$ac_new_set" = set; then
1930 case $ac_new_val in
1931 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1932 *) ac_arg=$ac_var=$ac_new_val ;;
1933 esac
1934 case " $ac_configure_args " in
1935 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1936 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1937 esac
1939 done
1940 if $ac_cache_corrupted; then
1941 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1943 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1944 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1945 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1946 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1947 { (exit 1); exit 1; }; }
1974 ac_ext=c
1975 ac_cpp='$CPP $CPPFLAGS'
1976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1982 ac_config_headers="$ac_config_headers config.h"
1984 ac_aux_dir=
1985 for ac_dir in scripts "$srcdir"/scripts; do
1986 if test -f "$ac_dir/install-sh"; then
1987 ac_aux_dir=$ac_dir
1988 ac_install_sh="$ac_aux_dir/install-sh -c"
1989 break
1990 elif test -f "$ac_dir/install.sh"; then
1991 ac_aux_dir=$ac_dir
1992 ac_install_sh="$ac_aux_dir/install.sh -c"
1993 break
1994 elif test -f "$ac_dir/shtool"; then
1995 ac_aux_dir=$ac_dir
1996 ac_install_sh="$ac_aux_dir/shtool install -c"
1997 break
1999 done
2000 if test -z "$ac_aux_dir"; then
2001 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&5
2002 $as_echo "$as_me: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&2;}
2003 { (exit 1); exit 1; }; }
2006 # These three variables are undocumented and unsupported,
2007 # and are intended to be withdrawn in a future Autoconf release.
2008 # They can cause serious problems if a builder's source tree is in a directory
2009 # whose full name contains unusual characters.
2010 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2011 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2012 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2016 # Make sure we can run config.sub.
2017 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2018 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2019 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2020 { (exit 1); exit 1; }; }
2022 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2023 $as_echo_n "checking build system type... " >&6; }
2024 if test "${ac_cv_build+set}" = set; then
2025 $as_echo_n "(cached) " >&6
2026 else
2027 ac_build_alias=$build_alias
2028 test "x$ac_build_alias" = x &&
2029 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2030 test "x$ac_build_alias" = x &&
2031 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2032 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2033 { (exit 1); exit 1; }; }
2034 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2035 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2036 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2037 { (exit 1); exit 1; }; }
2040 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2041 $as_echo "$ac_cv_build" >&6; }
2042 case $ac_cv_build in
2043 *-*-*) ;;
2044 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2045 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2046 { (exit 1); exit 1; }; };;
2047 esac
2048 build=$ac_cv_build
2049 ac_save_IFS=$IFS; IFS='-'
2050 set x $ac_cv_build
2051 shift
2052 build_cpu=$1
2053 build_vendor=$2
2054 shift; shift
2055 # Remember, the first character of IFS is used to create $*,
2056 # except with old shells:
2057 build_os=$*
2058 IFS=$ac_save_IFS
2059 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2062 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2063 $as_echo_n "checking host system type... " >&6; }
2064 if test "${ac_cv_host+set}" = set; then
2065 $as_echo_n "(cached) " >&6
2066 else
2067 if test "x$host_alias" = x; then
2068 ac_cv_host=$ac_cv_build
2069 else
2070 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2071 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2072 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2073 { (exit 1); exit 1; }; }
2077 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2078 $as_echo "$ac_cv_host" >&6; }
2079 case $ac_cv_host in
2080 *-*-*) ;;
2081 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2082 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2083 { (exit 1); exit 1; }; };;
2084 esac
2085 host=$ac_cv_host
2086 ac_save_IFS=$IFS; IFS='-'
2087 set x $ac_cv_host
2088 shift
2089 host_cpu=$1
2090 host_vendor=$2
2091 shift; shift
2092 # Remember, the first character of IFS is used to create $*,
2093 # except with old shells:
2094 host_os=$*
2095 IFS=$ac_save_IFS
2096 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2100 ac_ext=c
2101 ac_cpp='$CPP $CPPFLAGS'
2102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105 if test -n "$ac_tool_prefix"; then
2106 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2107 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2108 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 $as_echo_n "checking for $ac_word... " >&6; }
2110 if test "${ac_cv_prog_CC+set}" = set; then
2111 $as_echo_n "(cached) " >&6
2112 else
2113 if test -n "$CC"; then
2114 ac_cv_prog_CC="$CC" # Let the user override the test.
2115 else
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2119 IFS=$as_save_IFS
2120 test -z "$as_dir" && as_dir=.
2121 for ac_exec_ext in '' $ac_executable_extensions; do
2122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2123 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2124 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 break 2
2127 done
2128 done
2129 IFS=$as_save_IFS
2133 CC=$ac_cv_prog_CC
2134 if test -n "$CC"; then
2135 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2136 $as_echo "$CC" >&6; }
2137 else
2138 { $as_echo "$as_me:$LINENO: result: no" >&5
2139 $as_echo "no" >&6; }
2144 if test -z "$ac_cv_prog_CC"; then
2145 ac_ct_CC=$CC
2146 # Extract the first word of "gcc", so it can be a program name with args.
2147 set dummy gcc; ac_word=$2
2148 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 $as_echo_n "checking for $ac_word... " >&6; }
2150 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2151 $as_echo_n "(cached) " >&6
2152 else
2153 if test -n "$ac_ct_CC"; then
2154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2159 IFS=$as_save_IFS
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2163 ac_cv_prog_ac_ct_CC="gcc"
2164 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165 break 2
2167 done
2168 done
2169 IFS=$as_save_IFS
2173 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2174 if test -n "$ac_ct_CC"; then
2175 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2176 $as_echo "$ac_ct_CC" >&6; }
2177 else
2178 { $as_echo "$as_me:$LINENO: result: no" >&5
2179 $as_echo "no" >&6; }
2182 if test "x$ac_ct_CC" = x; then
2183 CC=""
2184 else
2185 case $cross_compiling:$ac_tool_warned in
2186 yes:)
2187 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2189 ac_tool_warned=yes ;;
2190 esac
2191 CC=$ac_ct_CC
2193 else
2194 CC="$ac_cv_prog_CC"
2197 if test -z "$CC"; then
2198 if test -n "$ac_tool_prefix"; then
2199 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2200 set dummy ${ac_tool_prefix}cc; ac_word=$2
2201 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2202 $as_echo_n "checking for $ac_word... " >&6; }
2203 if test "${ac_cv_prog_CC+set}" = set; then
2204 $as_echo_n "(cached) " >&6
2205 else
2206 if test -n "$CC"; then
2207 ac_cv_prog_CC="$CC" # Let the user override the test.
2208 else
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 for as_dir in $PATH
2212 IFS=$as_save_IFS
2213 test -z "$as_dir" && as_dir=.
2214 for ac_exec_ext in '' $ac_executable_extensions; do
2215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2216 ac_cv_prog_CC="${ac_tool_prefix}cc"
2217 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218 break 2
2220 done
2221 done
2222 IFS=$as_save_IFS
2226 CC=$ac_cv_prog_CC
2227 if test -n "$CC"; then
2228 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2229 $as_echo "$CC" >&6; }
2230 else
2231 { $as_echo "$as_me:$LINENO: result: no" >&5
2232 $as_echo "no" >&6; }
2238 if test -z "$CC"; then
2239 # Extract the first word of "cc", so it can be a program name with args.
2240 set dummy cc; ac_word=$2
2241 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2242 $as_echo_n "checking for $ac_word... " >&6; }
2243 if test "${ac_cv_prog_CC+set}" = set; then
2244 $as_echo_n "(cached) " >&6
2245 else
2246 if test -n "$CC"; then
2247 ac_cv_prog_CC="$CC" # Let the user override the test.
2248 else
2249 ac_prog_rejected=no
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 for as_dir in $PATH
2253 IFS=$as_save_IFS
2254 test -z "$as_dir" && as_dir=.
2255 for ac_exec_ext in '' $ac_executable_extensions; do
2256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2257 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2258 ac_prog_rejected=yes
2259 continue
2261 ac_cv_prog_CC="cc"
2262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263 break 2
2265 done
2266 done
2267 IFS=$as_save_IFS
2269 if test $ac_prog_rejected = yes; then
2270 # We found a bogon in the path, so make sure we never use it.
2271 set dummy $ac_cv_prog_CC
2272 shift
2273 if test $# != 0; then
2274 # We chose a different compiler from the bogus one.
2275 # However, it has the same basename, so the bogon will be chosen
2276 # first if we set CC to just the basename; use the full file name.
2277 shift
2278 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2283 CC=$ac_cv_prog_CC
2284 if test -n "$CC"; then
2285 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2286 $as_echo "$CC" >&6; }
2287 else
2288 { $as_echo "$as_me:$LINENO: result: no" >&5
2289 $as_echo "no" >&6; }
2294 if test -z "$CC"; then
2295 if test -n "$ac_tool_prefix"; then
2296 for ac_prog in cl.exe
2298 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2300 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 $as_echo_n "checking for $ac_word... " >&6; }
2302 if test "${ac_cv_prog_CC+set}" = set; then
2303 $as_echo_n "(cached) " >&6
2304 else
2305 if test -n "$CC"; then
2306 ac_cv_prog_CC="$CC" # Let the user override the test.
2307 else
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2311 IFS=$as_save_IFS
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2315 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2316 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 break 2
2319 done
2320 done
2321 IFS=$as_save_IFS
2325 CC=$ac_cv_prog_CC
2326 if test -n "$CC"; then
2327 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2328 $as_echo "$CC" >&6; }
2329 else
2330 { $as_echo "$as_me:$LINENO: result: no" >&5
2331 $as_echo "no" >&6; }
2335 test -n "$CC" && break
2336 done
2338 if test -z "$CC"; then
2339 ac_ct_CC=$CC
2340 for ac_prog in cl.exe
2342 # Extract the first word of "$ac_prog", so it can be a program name with args.
2343 set dummy $ac_prog; ac_word=$2
2344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2345 $as_echo_n "checking for $ac_word... " >&6; }
2346 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2347 $as_echo_n "(cached) " >&6
2348 else
2349 if test -n "$ac_ct_CC"; then
2350 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2351 else
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 for as_dir in $PATH
2355 IFS=$as_save_IFS
2356 test -z "$as_dir" && as_dir=.
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359 ac_cv_prog_ac_ct_CC="$ac_prog"
2360 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 break 2
2363 done
2364 done
2365 IFS=$as_save_IFS
2369 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2370 if test -n "$ac_ct_CC"; then
2371 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2372 $as_echo "$ac_ct_CC" >&6; }
2373 else
2374 { $as_echo "$as_me:$LINENO: result: no" >&5
2375 $as_echo "no" >&6; }
2379 test -n "$ac_ct_CC" && break
2380 done
2382 if test "x$ac_ct_CC" = x; then
2383 CC=""
2384 else
2385 case $cross_compiling:$ac_tool_warned in
2386 yes:)
2387 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2389 ac_tool_warned=yes ;;
2390 esac
2391 CC=$ac_ct_CC
2398 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2400 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2401 See \`config.log' for more details." >&5
2402 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2403 See \`config.log' for more details." >&2;}
2404 { (exit 1); exit 1; }; }; }
2406 # Provide some information about the compiler.
2407 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2408 set X $ac_compile
2409 ac_compiler=$2
2410 { (ac_try="$ac_compiler --version >&5"
2411 case "(($ac_try" in
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2414 esac
2415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2416 $as_echo "$ac_try_echo") >&5
2417 (eval "$ac_compiler --version >&5") 2>&5
2418 ac_status=$?
2419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }
2421 { (ac_try="$ac_compiler -v >&5"
2422 case "(($ac_try" in
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2425 esac
2426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2427 $as_echo "$ac_try_echo") >&5
2428 (eval "$ac_compiler -v >&5") 2>&5
2429 ac_status=$?
2430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }
2432 { (ac_try="$ac_compiler -V >&5"
2433 case "(($ac_try" in
2434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435 *) ac_try_echo=$ac_try;;
2436 esac
2437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2438 $as_echo "$ac_try_echo") >&5
2439 (eval "$ac_compiler -V >&5") 2>&5
2440 ac_status=$?
2441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }
2444 EXEEXT=
2445 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2446 $as_echo_n "checking for suffix of object files... " >&6; }
2447 if test "${ac_cv_objext+set}" = set; then
2448 $as_echo_n "(cached) " >&6
2449 else
2450 cat >conftest.$ac_ext <<_ACEOF
2451 /* confdefs.h. */
2452 _ACEOF
2453 cat confdefs.h >>conftest.$ac_ext
2454 cat >>conftest.$ac_ext <<_ACEOF
2455 /* end confdefs.h. */
2458 main ()
2462 return 0;
2464 _ACEOF
2465 rm -f conftest.o conftest.obj
2466 if { (ac_try="$ac_compile"
2467 case "(($ac_try" in
2468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469 *) ac_try_echo=$ac_try;;
2470 esac
2471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2472 $as_echo "$ac_try_echo") >&5
2473 (eval "$ac_compile") 2>&5
2474 ac_status=$?
2475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; then
2477 for ac_file in conftest.o conftest.obj conftest.*; do
2478 test -f "$ac_file" || continue;
2479 case $ac_file in
2480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2481 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2482 break;;
2483 esac
2484 done
2485 else
2486 $as_echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2489 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2491 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2492 See \`config.log' for more details." >&5
2493 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2494 See \`config.log' for more details." >&2;}
2495 { (exit 1); exit 1; }; }; }
2498 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2500 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2501 $as_echo "$ac_cv_objext" >&6; }
2502 OBJEXT=$ac_cv_objext
2503 ac_objext=$OBJEXT
2504 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2505 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2506 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2507 $as_echo_n "(cached) " >&6
2508 else
2509 cat >conftest.$ac_ext <<_ACEOF
2510 /* confdefs.h. */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2517 main ()
2519 #ifndef __GNUC__
2520 choke me
2521 #endif
2524 return 0;
2526 _ACEOF
2527 rm -f conftest.$ac_objext
2528 if { (ac_try="$ac_compile"
2529 case "(($ac_try" in
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2532 esac
2533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2534 $as_echo "$ac_try_echo") >&5
2535 (eval "$ac_compile") 2>conftest.er1
2536 ac_status=$?
2537 grep -v '^ *+' conftest.er1 >conftest.err
2538 rm -f conftest.er1
2539 cat conftest.err >&5
2540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } && {
2542 test -z "$ac_c_werror_flag" ||
2543 test ! -s conftest.err
2544 } && test -s conftest.$ac_objext; then
2545 ac_compiler_gnu=yes
2546 else
2547 $as_echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2550 ac_compiler_gnu=no
2553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2557 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2558 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2559 if test $ac_compiler_gnu = yes; then
2560 GCC=yes
2561 else
2562 GCC=
2564 ac_test_CFLAGS=${CFLAGS+set}
2565 ac_save_CFLAGS=$CFLAGS
2566 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2567 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2568 if test "${ac_cv_prog_cc_g+set}" = set; then
2569 $as_echo_n "(cached) " >&6
2570 else
2571 ac_save_c_werror_flag=$ac_c_werror_flag
2572 ac_c_werror_flag=yes
2573 ac_cv_prog_cc_g=no
2574 CFLAGS="-g"
2575 cat >conftest.$ac_ext <<_ACEOF
2576 /* confdefs.h. */
2577 _ACEOF
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h. */
2583 main ()
2587 return 0;
2589 _ACEOF
2590 rm -f conftest.$ac_objext
2591 if { (ac_try="$ac_compile"
2592 case "(($ac_try" in
2593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594 *) ac_try_echo=$ac_try;;
2595 esac
2596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2597 $as_echo "$ac_try_echo") >&5
2598 (eval "$ac_compile") 2>conftest.er1
2599 ac_status=$?
2600 grep -v '^ *+' conftest.er1 >conftest.err
2601 rm -f conftest.er1
2602 cat conftest.err >&5
2603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } && {
2605 test -z "$ac_c_werror_flag" ||
2606 test ! -s conftest.err
2607 } && test -s conftest.$ac_objext; then
2608 ac_cv_prog_cc_g=yes
2609 else
2610 $as_echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2613 CFLAGS=""
2614 cat >conftest.$ac_ext <<_ACEOF
2615 /* confdefs.h. */
2616 _ACEOF
2617 cat confdefs.h >>conftest.$ac_ext
2618 cat >>conftest.$ac_ext <<_ACEOF
2619 /* end confdefs.h. */
2622 main ()
2626 return 0;
2628 _ACEOF
2629 rm -f conftest.$ac_objext
2630 if { (ac_try="$ac_compile"
2631 case "(($ac_try" in
2632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633 *) ac_try_echo=$ac_try;;
2634 esac
2635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2636 $as_echo "$ac_try_echo") >&5
2637 (eval "$ac_compile") 2>conftest.er1
2638 ac_status=$?
2639 grep -v '^ *+' conftest.er1 >conftest.err
2640 rm -f conftest.er1
2641 cat conftest.err >&5
2642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } && {
2644 test -z "$ac_c_werror_flag" ||
2645 test ! -s conftest.err
2646 } && test -s conftest.$ac_objext; then
2648 else
2649 $as_echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2652 ac_c_werror_flag=$ac_save_c_werror_flag
2653 CFLAGS="-g"
2654 cat >conftest.$ac_ext <<_ACEOF
2655 /* confdefs.h. */
2656 _ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h. */
2662 main ()
2666 return 0;
2668 _ACEOF
2669 rm -f conftest.$ac_objext
2670 if { (ac_try="$ac_compile"
2671 case "(($ac_try" in
2672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673 *) ac_try_echo=$ac_try;;
2674 esac
2675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2676 $as_echo "$ac_try_echo") >&5
2677 (eval "$ac_compile") 2>conftest.er1
2678 ac_status=$?
2679 grep -v '^ *+' conftest.er1 >conftest.err
2680 rm -f conftest.er1
2681 cat conftest.err >&5
2682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); } && {
2684 test -z "$ac_c_werror_flag" ||
2685 test ! -s conftest.err
2686 } && test -s conftest.$ac_objext; then
2687 ac_cv_prog_cc_g=yes
2688 else
2689 $as_echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702 ac_c_werror_flag=$ac_save_c_werror_flag
2704 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2705 $as_echo "$ac_cv_prog_cc_g" >&6; }
2706 if test "$ac_test_CFLAGS" = set; then
2707 CFLAGS=$ac_save_CFLAGS
2708 elif test $ac_cv_prog_cc_g = yes; then
2709 if test "$GCC" = yes; then
2710 CFLAGS="-g -O2"
2711 else
2712 CFLAGS="-g"
2714 else
2715 if test "$GCC" = yes; then
2716 CFLAGS="-O2"
2717 else
2718 CFLAGS=
2721 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2722 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2723 if test "${ac_cv_prog_cc_c89+set}" = set; then
2724 $as_echo_n "(cached) " >&6
2725 else
2726 ac_cv_prog_cc_c89=no
2727 ac_save_CC=$CC
2728 cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h. */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2734 #include <stdarg.h>
2735 #include <stdio.h>
2736 #include <sys/types.h>
2737 #include <sys/stat.h>
2738 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2739 struct buf { int x; };
2740 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2741 static char *e (p, i)
2742 char **p;
2743 int i;
2745 return p[i];
2747 static char *f (char * (*g) (char **, int), char **p, ...)
2749 char *s;
2750 va_list v;
2751 va_start (v,p);
2752 s = g (p, va_arg (v,int));
2753 va_end (v);
2754 return s;
2757 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2758 function prototypes and stuff, but not '\xHH' hex character constants.
2759 These don't provoke an error unfortunately, instead are silently treated
2760 as 'x'. The following induces an error, until -std is added to get
2761 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2762 array size at least. It's necessary to write '\x00'==0 to get something
2763 that's true only with -std. */
2764 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2766 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2767 inside strings and character constants. */
2768 #define FOO(x) 'x'
2769 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2771 int test (int i, double x);
2772 struct s1 {int (*f) (int a);};
2773 struct s2 {int (*f) (double a);};
2774 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2775 int argc;
2776 char **argv;
2778 main ()
2780 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2782 return 0;
2784 _ACEOF
2785 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2786 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2788 CC="$ac_save_CC $ac_arg"
2789 rm -f conftest.$ac_objext
2790 if { (ac_try="$ac_compile"
2791 case "(($ac_try" in
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2794 esac
2795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2796 $as_echo "$ac_try_echo") >&5
2797 (eval "$ac_compile") 2>conftest.er1
2798 ac_status=$?
2799 grep -v '^ *+' conftest.er1 >conftest.err
2800 rm -f conftest.er1
2801 cat conftest.err >&5
2802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); } && {
2804 test -z "$ac_c_werror_flag" ||
2805 test ! -s conftest.err
2806 } && test -s conftest.$ac_objext; then
2807 ac_cv_prog_cc_c89=$ac_arg
2808 else
2809 $as_echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2815 rm -f core conftest.err conftest.$ac_objext
2816 test "x$ac_cv_prog_cc_c89" != "xno" && break
2817 done
2818 rm -f conftest.$ac_ext
2819 CC=$ac_save_CC
2822 # AC_CACHE_VAL
2823 case "x$ac_cv_prog_cc_c89" in
2825 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2826 $as_echo "none needed" >&6; } ;;
2827 xno)
2828 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2829 $as_echo "unsupported" >&6; } ;;
2831 CC="$CC $ac_cv_prog_cc_c89"
2832 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2833 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2834 esac
2837 ac_ext=c
2838 ac_cpp='$CPP $CPPFLAGS'
2839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2843 if test $host != $build; then
2844 for ac_prog in gcc cc
2846 # Extract the first word of "$ac_prog", so it can be a program name with args.
2847 set dummy $ac_prog; ac_word=$2
2848 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 $as_echo_n "checking for $ac_word... " >&6; }
2850 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2851 $as_echo_n "(cached) " >&6
2852 else
2853 if test -n "$BUILD_CC"; then
2854 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2855 else
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 for as_dir in $PATH
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2863 ac_cv_prog_BUILD_CC="$ac_prog"
2864 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2867 done
2868 done
2869 IFS=$as_save_IFS
2873 BUILD_CC=$ac_cv_prog_BUILD_CC
2874 if test -n "$BUILD_CC"; then
2875 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
2876 $as_echo "$BUILD_CC" >&6; }
2877 else
2878 { $as_echo "$as_me:$LINENO: result: no" >&5
2879 $as_echo "no" >&6; }
2883 test -n "$BUILD_CC" && break
2884 done
2888 ac_ext=c
2889 ac_cpp='$CPP $CPPFLAGS'
2890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2894 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2895 # On Suns, sometimes $CPP names a directory.
2896 if test -n "$CPP" && test -d "$CPP"; then
2897 CPP=
2899 if test -z "$CPP"; then
2900 if test "${ac_cv_prog_CPP+set}" = set; then
2901 $as_echo_n "(cached) " >&6
2902 else
2903 # Double quotes because CPP needs to be expanded
2904 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2906 ac_preproc_ok=false
2907 for ac_c_preproc_warn_flag in '' yes
2909 # Use a header file that comes with gcc, so configuring glibc
2910 # with a fresh cross-compiler works.
2911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2912 # <limits.h> exists even on freestanding compilers.
2913 # On the NeXT, cc -E runs the code through the compiler's parser,
2914 # not just through cpp. "Syntax error" is here to catch this case.
2915 cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h. */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2921 #ifdef __STDC__
2922 # include <limits.h>
2923 #else
2924 # include <assert.h>
2925 #endif
2926 Syntax error
2927 _ACEOF
2928 if { (ac_try="$ac_cpp conftest.$ac_ext"
2929 case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932 esac
2933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2934 $as_echo "$ac_try_echo") >&5
2935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2936 ac_status=$?
2937 grep -v '^ *+' conftest.er1 >conftest.err
2938 rm -f conftest.er1
2939 cat conftest.err >&5
2940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } >/dev/null && {
2942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2943 test ! -s conftest.err
2944 }; then
2946 else
2947 $as_echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2950 # Broken: fails on valid input.
2951 continue
2954 rm -f conftest.err conftest.$ac_ext
2956 # OK, works on sane cases. Now check whether nonexistent headers
2957 # can be detected and how.
2958 cat >conftest.$ac_ext <<_ACEOF
2959 /* confdefs.h. */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2964 #include <ac_nonexistent.h>
2965 _ACEOF
2966 if { (ac_try="$ac_cpp conftest.$ac_ext"
2967 case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970 esac
2971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2972 $as_echo "$ac_try_echo") >&5
2973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2974 ac_status=$?
2975 grep -v '^ *+' conftest.er1 >conftest.err
2976 rm -f conftest.er1
2977 cat conftest.err >&5
2978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } >/dev/null && {
2980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2981 test ! -s conftest.err
2982 }; then
2983 # Broken: success on invalid input.
2984 continue
2985 else
2986 $as_echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2989 # Passes both tests.
2990 ac_preproc_ok=:
2991 break
2994 rm -f conftest.err conftest.$ac_ext
2996 done
2997 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2998 rm -f conftest.err conftest.$ac_ext
2999 if $ac_preproc_ok; then
3000 break
3003 done
3004 ac_cv_prog_CPP=$CPP
3007 CPP=$ac_cv_prog_CPP
3008 else
3009 ac_cv_prog_CPP=$CPP
3011 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3012 $as_echo "$CPP" >&6; }
3013 ac_preproc_ok=false
3014 for ac_c_preproc_warn_flag in '' yes
3016 # Use a header file that comes with gcc, so configuring glibc
3017 # with a fresh cross-compiler works.
3018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3019 # <limits.h> exists even on freestanding compilers.
3020 # On the NeXT, cc -E runs the code through the compiler's parser,
3021 # not just through cpp. "Syntax error" is here to catch this case.
3022 cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h. */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3028 #ifdef __STDC__
3029 # include <limits.h>
3030 #else
3031 # include <assert.h>
3032 #endif
3033 Syntax error
3034 _ACEOF
3035 if { (ac_try="$ac_cpp conftest.$ac_ext"
3036 case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039 esac
3040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3041 $as_echo "$ac_try_echo") >&5
3042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3043 ac_status=$?
3044 grep -v '^ *+' conftest.er1 >conftest.err
3045 rm -f conftest.er1
3046 cat conftest.err >&5
3047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } >/dev/null && {
3049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3050 test ! -s conftest.err
3051 }; then
3053 else
3054 $as_echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3057 # Broken: fails on valid input.
3058 continue
3061 rm -f conftest.err conftest.$ac_ext
3063 # OK, works on sane cases. Now check whether nonexistent headers
3064 # can be detected and how.
3065 cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h. */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3071 #include <ac_nonexistent.h>
3072 _ACEOF
3073 if { (ac_try="$ac_cpp conftest.$ac_ext"
3074 case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077 esac
3078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3079 $as_echo "$ac_try_echo") >&5
3080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3081 ac_status=$?
3082 grep -v '^ *+' conftest.er1 >conftest.err
3083 rm -f conftest.er1
3084 cat conftest.err >&5
3085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } >/dev/null && {
3087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3088 test ! -s conftest.err
3089 }; then
3090 # Broken: success on invalid input.
3091 continue
3092 else
3093 $as_echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3096 # Passes both tests.
3097 ac_preproc_ok=:
3098 break
3101 rm -f conftest.err conftest.$ac_ext
3103 done
3104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3105 rm -f conftest.err conftest.$ac_ext
3106 if $ac_preproc_ok; then
3108 else
3109 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3111 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3112 See \`config.log' for more details." >&5
3113 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3114 See \`config.log' for more details." >&2;}
3115 { (exit 1); exit 1; }; }; }
3118 ac_ext=c
3119 ac_cpp='$CPP $CPPFLAGS'
3120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124 # We need the C++ compiler only for testing.
3125 ac_ext=cpp
3126 ac_cpp='$CXXCPP $CPPFLAGS'
3127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3130 if test -z "$CXX"; then
3131 if test -n "$CCC"; then
3132 CXX=$CCC
3133 else
3134 if test -n "$ac_tool_prefix"; then
3135 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_CXX+set}" = set; then
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$CXX"; then
3145 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3158 done
3159 done
3160 IFS=$as_save_IFS
3164 CXX=$ac_cv_prog_CXX
3165 if test -n "$CXX"; then
3166 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3167 $as_echo "$CXX" >&6; }
3168 else
3169 { $as_echo "$as_me:$LINENO: result: no" >&5
3170 $as_echo "no" >&6; }
3174 test -n "$CXX" && break
3175 done
3177 if test -z "$CXX"; then
3178 ac_ct_CXX=$CXX
3179 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3181 # Extract the first word of "$ac_prog", so it can be a program name with args.
3182 set dummy $ac_prog; ac_word=$2
3183 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3186 $as_echo_n "(cached) " >&6
3187 else
3188 if test -n "$ac_ct_CXX"; then
3189 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3194 IFS=$as_save_IFS
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198 ac_cv_prog_ac_ct_CXX="$ac_prog"
3199 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 break 2
3202 done
3203 done
3204 IFS=$as_save_IFS
3208 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3209 if test -n "$ac_ct_CXX"; then
3210 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3211 $as_echo "$ac_ct_CXX" >&6; }
3212 else
3213 { $as_echo "$as_me:$LINENO: result: no" >&5
3214 $as_echo "no" >&6; }
3218 test -n "$ac_ct_CXX" && break
3219 done
3221 if test "x$ac_ct_CXX" = x; then
3222 CXX="g++"
3223 else
3224 case $cross_compiling:$ac_tool_warned in
3225 yes:)
3226 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3228 ac_tool_warned=yes ;;
3229 esac
3230 CXX=$ac_ct_CXX
3236 # Provide some information about the compiler.
3237 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3238 set X $ac_compile
3239 ac_compiler=$2
3240 { (ac_try="$ac_compiler --version >&5"
3241 case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244 esac
3245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3246 $as_echo "$ac_try_echo") >&5
3247 (eval "$ac_compiler --version >&5") 2>&5
3248 ac_status=$?
3249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }
3251 { (ac_try="$ac_compiler -v >&5"
3252 case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255 esac
3256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3257 $as_echo "$ac_try_echo") >&5
3258 (eval "$ac_compiler -v >&5") 2>&5
3259 ac_status=$?
3260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }
3262 { (ac_try="$ac_compiler -V >&5"
3263 case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266 esac
3267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3268 $as_echo "$ac_try_echo") >&5
3269 (eval "$ac_compiler -V >&5") 2>&5
3270 ac_status=$?
3271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }
3274 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3275 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3276 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3277 $as_echo_n "(cached) " >&6
3278 else
3279 cat >conftest.$ac_ext <<_ACEOF
3280 /* confdefs.h. */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h. */
3287 main ()
3289 #ifndef __GNUC__
3290 choke me
3291 #endif
3294 return 0;
3296 _ACEOF
3297 rm -f conftest.$ac_objext
3298 if { (ac_try="$ac_compile"
3299 case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3302 esac
3303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3304 $as_echo "$ac_try_echo") >&5
3305 (eval "$ac_compile") 2>conftest.er1
3306 ac_status=$?
3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } && {
3312 test -z "$ac_cxx_werror_flag" ||
3313 test ! -s conftest.err
3314 } && test -s conftest.$ac_objext; then
3315 ac_compiler_gnu=yes
3316 else
3317 $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 ac_compiler_gnu=no
3323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3327 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3328 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3329 if test $ac_compiler_gnu = yes; then
3330 GXX=yes
3331 else
3332 GXX=
3334 ac_test_CXXFLAGS=${CXXFLAGS+set}
3335 ac_save_CXXFLAGS=$CXXFLAGS
3336 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3337 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3338 if test "${ac_cv_prog_cxx_g+set}" = set; then
3339 $as_echo_n "(cached) " >&6
3340 else
3341 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3342 ac_cxx_werror_flag=yes
3343 ac_cv_prog_cxx_g=no
3344 CXXFLAGS="-g"
3345 cat >conftest.$ac_ext <<_ACEOF
3346 /* confdefs.h. */
3347 _ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h. */
3353 main ()
3357 return 0;
3359 _ACEOF
3360 rm -f conftest.$ac_objext
3361 if { (ac_try="$ac_compile"
3362 case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3367 $as_echo "$ac_try_echo") >&5
3368 (eval "$ac_compile") 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } && {
3375 test -z "$ac_cxx_werror_flag" ||
3376 test ! -s conftest.err
3377 } && test -s conftest.$ac_objext; then
3378 ac_cv_prog_cxx_g=yes
3379 else
3380 $as_echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 CXXFLAGS=""
3384 cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h. */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3392 main ()
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3406 $as_echo "$ac_try_echo") >&5
3407 (eval "$ac_compile") 2>conftest.er1
3408 ac_status=$?
3409 grep -v '^ *+' conftest.er1 >conftest.err
3410 rm -f conftest.er1
3411 cat conftest.err >&5
3412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } && {
3414 test -z "$ac_cxx_werror_flag" ||
3415 test ! -s conftest.err
3416 } && test -s conftest.$ac_objext; then
3418 else
3419 $as_echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3423 CXXFLAGS="-g"
3424 cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h. */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3432 main ()
3436 return 0;
3438 _ACEOF
3439 rm -f conftest.$ac_objext
3440 if { (ac_try="$ac_compile"
3441 case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444 esac
3445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3446 $as_echo "$ac_try_echo") >&5
3447 (eval "$ac_compile") 2>conftest.er1
3448 ac_status=$?
3449 grep -v '^ *+' conftest.er1 >conftest.err
3450 rm -f conftest.er1
3451 cat conftest.err >&5
3452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } && {
3454 test -z "$ac_cxx_werror_flag" ||
3455 test ! -s conftest.err
3456 } && test -s conftest.$ac_objext; then
3457 ac_cv_prog_cxx_g=yes
3458 else
3459 $as_echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3472 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3474 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3475 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3476 if test "$ac_test_CXXFLAGS" = set; then
3477 CXXFLAGS=$ac_save_CXXFLAGS
3478 elif test $ac_cv_prog_cxx_g = yes; then
3479 if test "$GXX" = yes; then
3480 CXXFLAGS="-g -O2"
3481 else
3482 CXXFLAGS="-g"
3484 else
3485 if test "$GXX" = yes; then
3486 CXXFLAGS="-O2"
3487 else
3488 CXXFLAGS=
3491 ac_ext=c
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
3499 { { $as_echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
3500 $as_echo "$as_me: error: you must configure in a separate build directory" >&2;}
3501 { (exit 1); exit 1; }; }
3504 # This will get text that should go into config.make.
3505 config_vars=
3507 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3509 # Check whether --with-gd was given.
3510 if test "${with_gd+set}" = set; then
3511 withval=$with_gd; case "$with_gd" in
3512 yes|''|no) ;;
3513 *) libgd_include="-I$withval/include"
3514 libgd_ldflags="-L$withval/lib" ;;
3515 esac
3520 # Check whether --with-gd-include was given.
3521 if test "${with_gd_include+set}" = set; then
3522 withval=$with_gd_include; case "$with_gd_include" in
3523 ''|no) ;;
3524 *) libgd_include="-I$withval" ;;
3525 esac
3530 # Check whether --with-gd-lib was given.
3531 if test "${with_gd_lib+set}" = set; then
3532 withval=$with_gd_lib; case "$with_gd_lib" in
3533 ''|no) ;;
3534 *) libgd_ldflags="-L$withval" ;;
3535 esac
3540 if test -n "$libgd_include"; then
3541 config_vars="$config_vars
3542 CFLAGS-memusagestat.c = $libgd_include"
3544 if test -n "$libgd_ldflags"; then
3545 config_vars="$config_vars
3546 libgd-LDFLAGS = $libgd_ldflags"
3550 # Check whether --with-fp was given.
3551 if test "${with_fp+set}" = set; then
3552 withval=$with_fp; with_fp=$withval
3553 else
3554 with_fp=yes
3559 # Check whether --with-binutils was given.
3560 if test "${with_binutils+set}" = set; then
3561 withval=$with_binutils; path_binutils=$withval
3562 else
3563 path_binutils=''
3567 # Check whether --with-elf was given.
3568 if test "${with_elf+set}" = set; then
3569 withval=$with_elf; elf=$withval
3570 else
3571 elf=no
3575 # Check whether --with-selinux was given.
3576 if test "${with_selinux+set}" = set; then
3577 withval=$with_selinux; with_selinux=$withval
3578 else
3579 with_selinux=auto
3583 # Check whether --with-xcoff was given.
3584 if test "${with_xcoff+set}" = set; then
3585 withval=$with_xcoff; xcoff=$withval
3586 else
3587 xcoff=no
3591 # Check whether --with-cvs was given.
3592 if test "${with_cvs+set}" = set; then
3593 withval=$with_cvs; with_cvs=$withval
3594 else
3595 with_cvs=yes
3598 if test "$with_cvs" = yes; then
3599 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
3600 then
3601 with_cvs=no
3607 # Check whether --with-headers was given.
3608 if test "${with_headers+set}" = set; then
3609 withval=$with_headers; sysheaders=$withval
3610 else
3611 sysheaders=''
3615 # Check whether --enable-sanity-checks was given.
3616 if test "${enable_sanity_checks+set}" = set; then
3617 enableval=$enable_sanity_checks; enable_sanity=$enableval
3618 else
3619 enable_sanity=yes
3624 # Check whether --enable-check-abi was given.
3625 if test "${enable_check_abi+set}" = set; then
3626 enableval=$enable_check_abi; enable_check_abi=$enableval
3627 else
3628 enable_check_abi=no
3632 static=yes
3633 # Check whether --enable-shared was given.
3634 if test "${enable_shared+set}" = set; then
3635 enableval=$enable_shared; shared=$enableval
3636 else
3637 shared=default
3640 # Check whether --enable-profile was given.
3641 if test "${enable_profile+set}" = set; then
3642 enableval=$enable_profile; profile=$enableval
3643 else
3644 profile=no
3647 # Check whether --enable-omitfp was given.
3648 if test "${enable_omitfp+set}" = set; then
3649 enableval=$enable_omitfp; omitfp=$enableval
3650 else
3651 omitfp=no
3654 # Check whether --enable-bounded was given.
3655 if test "${enable_bounded+set}" = set; then
3656 enableval=$enable_bounded; bounded=$enableval
3657 else
3658 bounded=no
3661 # Check whether --enable-versioning was given.
3662 if test "${enable_versioning+set}" = set; then
3663 enableval=$enable_versioning; enable_versioning=$enableval
3664 else
3665 enable_versioning=yes
3669 # Check whether --enable-oldest-abi was given.
3670 if test "${enable_oldest_abi+set}" = set; then
3671 enableval=$enable_oldest_abi; oldest_abi=$enableval
3672 else
3673 oldest_abi=no
3676 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
3677 oldest_abi=default
3678 else
3679 cat >>confdefs.h <<_ACEOF
3680 #define GLIBC_OLDEST_ABI "$oldest_abi"
3681 _ACEOF
3686 # Check whether --enable-stackguard-randomization was given.
3687 if test "${enable_stackguard_randomization+set}" = set; then
3688 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3689 else
3690 enable_stackguard_randomize=no
3693 if test "$enable_stackguard_randomize" = yes; then
3694 cat >>confdefs.h <<\_ACEOF
3695 #define ENABLE_STACKGUARD_RANDOMIZE 1
3696 _ACEOF
3700 # Check whether --enable-add-ons was given.
3701 if test "${enable_add_ons+set}" = set; then
3702 enableval=$enable_add_ons;
3703 else
3704 enable_add_ons=yes
3709 # Check whether --with-tls was given.
3710 if test "${with_tls+set}" = set; then
3711 withval=$with_tls; usetls=$withval
3712 else
3713 usetls=yes
3718 # Check whether --with-__thread was given.
3719 if test "${with___thread+set}" = set; then
3720 withval=$with___thread; use__thread=$withval
3721 else
3722 use__thread=yes
3726 # Check whether --enable-hidden-plt was given.
3727 if test "${enable_hidden_plt+set}" = set; then
3728 enableval=$enable_hidden_plt; hidden=$enableval
3729 else
3730 hidden=yes
3733 if test "x$hidden" = xno; then
3734 cat >>confdefs.h <<\_ACEOF
3735 #define NO_HIDDEN 1
3736 _ACEOF
3740 # Check whether --enable-bind-now was given.
3741 if test "${enable_bind_now+set}" = set; then
3742 enableval=$enable_bind_now; bindnow=$enableval
3743 else
3744 bindnow=no
3749 # Check whether --enable-static-nss was given.
3750 if test "${enable_static_nss+set}" = set; then
3751 enableval=$enable_static_nss; static_nss=$enableval
3752 else
3753 static_nss=no
3756 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3757 static_nss=yes
3758 cat >>confdefs.h <<\_ACEOF
3759 #define DO_STATIC_NSS 1
3760 _ACEOF
3764 # Check whether --enable-force-install was given.
3765 if test "${enable_force_install+set}" = set; then
3766 enableval=$enable_force_install; force_install=$enableval
3767 else
3768 force_install=yes
3773 # Check whether --enable-kernel was given.
3774 if test "${enable_kernel+set}" = set; then
3775 enableval=$enable_kernel; minimum_kernel=$enableval
3778 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3779 # Better nothing than this.
3780 minimum_kernel=""
3781 else
3782 if test "$minimum_kernel" = current; then
3783 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3787 # Check whether --enable-all-warnings was given.
3788 if test "${enable_all_warnings+set}" = set; then
3789 enableval=$enable_all_warnings; all_warnings=$enableval
3794 # Check whether --enable-multi-arch was given.
3795 if test "${enable_multi_arch+set}" = set; then
3796 enableval=$enable_multi_arch; multi_arch=$enableval
3797 else
3798 multi_arch=no
3801 if test x"$multi_arch" = xyes; then
3802 cat >>confdefs.h <<\_ACEOF
3803 #define USE_MULTIARCH 1
3804 _ACEOF
3806 multi_arch_d=/multiarch
3810 # Check whether --enable-experimental-malloc was given.
3811 if test "${enable_experimental_malloc+set}" = set; then
3812 enableval=$enable_experimental_malloc; experimental_malloc=$enableval
3817 # Check whether --enable-nss-crypt was given.
3818 if test "${enable_nss_crypt+set}" = set; then
3819 enableval=$enable_nss_crypt; nss_crypt=$enableval
3820 else
3821 nss_crypt=no
3824 if test x$nss_crypt = xyes; then
3825 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3826 if test $? -ne 0; then
3827 { { $as_echo "$as_me:$LINENO: error: cannot find include directory with nss-config" >&5
3828 $as_echo "$as_me: error: cannot find include directory with nss-config" >&2;}
3829 { (exit 1); exit 1; }; }
3831 old_CFLAGS="$CFLAGS"
3832 CFLAGS="$CFLAGS $nss_includes"
3834 cat >conftest.$ac_ext <<_ACEOF
3835 typedef int PRBool;
3836 #include <hasht.h>
3837 #include <nsslowhash.h>
3838 void f (void) { NSSLOW_Init (); }
3839 _ACEOF
3840 rm -f conftest.$ac_objext
3841 if { (ac_try="$ac_compile"
3842 case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845 esac
3846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3847 $as_echo "$ac_try_echo") >&5
3848 (eval "$ac_compile") 2>conftest.er1
3849 ac_status=$?
3850 grep -v '^ *+' conftest.er1 >conftest.err
3851 rm -f conftest.er1
3852 cat conftest.err >&5
3853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } && {
3855 test -z "$ac_c_werror_flag" ||
3856 test ! -s conftest.err
3857 } && test -s conftest.$ac_objext; then
3858 libc_cv_nss_crypt=yes
3859 else
3860 $as_echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3863 { { $as_echo "$as_me:$LINENO: error:
3864 cannot find NSS headers with lowlevel hash function interfaces" >&5
3865 $as_echo "$as_me: error:
3866 cannot find NSS headers with lowlevel hash function interfaces" >&2;}
3867 { (exit 1); exit 1; }; }
3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871 old_LIBS="$LIBS"
3872 LIBS="$LIBS -lfreebl3"
3873 cat >conftest.$ac_ext <<_ACEOF
3874 /* confdefs.h. */
3875 _ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3879 typedef int PRBool;
3880 #include <hasht.h>
3881 #include <nsslowhash.h>
3883 main ()
3885 NSSLOW_Init();
3887 return 0;
3889 _ACEOF
3890 rm -f conftest.$ac_objext conftest$ac_exeext
3891 if { (ac_try="$ac_link"
3892 case "(($ac_try" in
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3895 esac
3896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3897 $as_echo "$ac_try_echo") >&5
3898 (eval "$ac_link") 2>conftest.er1
3899 ac_status=$?
3900 grep -v '^ *+' conftest.er1 >conftest.err
3901 rm -f conftest.er1
3902 cat conftest.err >&5
3903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); } && {
3905 test -z "$ac_c_werror_flag" ||
3906 test ! -s conftest.err
3907 } && test -s conftest$ac_exeext && {
3908 test "$cross_compiling" = yes ||
3909 $as_test_x conftest$ac_exeext
3910 }; then
3911 libc_cv_nss_crypt=yes
3912 else
3913 $as_echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3916 { { $as_echo "$as_me:$LINENO: error:
3917 cannot link program using lowlevel NSS hash functions" >&5
3918 $as_echo "$as_me: error:
3919 cannot link program using lowlevel NSS hash functions" >&2;}
3920 { (exit 1); exit 1; }; }
3923 rm -rf conftest.dSYM
3924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3925 conftest$ac_exeext conftest.$ac_ext
3926 CFLAGS="$old_CFLAGS"
3927 LIBS="$old_LIBS"
3928 else
3929 libc_cv_nss_crypt=no
3933 # The way shlib-versions is used to generate soversions.mk uses a
3934 # fairly simplistic model for name recognition that can't distinguish
3935 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
3936 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
3937 # tell. This doesn't get used much beyond that, so it's fairly safe.
3938 case "$host_os" in
3939 linux*)
3941 gnu*)
3942 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3944 esac
3946 # We keep the original values in `$config_*' and never modify them, so we
3947 # can write them unchanged into config.make. Everything else uses
3948 # $machine, $vendor, and $os, and changes them whenever convenient.
3949 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3951 # Don't allow vendor == "unknown"
3952 test "$config_vendor" = unknown && config_vendor=
3953 config_os="`echo $config_os | sed 's/^unknown-//'`"
3955 # Some configurations imply other options.
3956 case "$host_os" in
3957 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
3958 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
3960 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
3961 # These systems (almost) always use the ELF format.
3962 elf=yes
3964 aix*)
3965 # These systems are always xcoff
3966 xcoff=yes
3967 elf=no
3969 esac
3971 # The configure fragment of an add-on port can modify these to supplement
3972 # or override the table in the case statement below. No fragment should
3973 # ever change the config_* variables, however.
3974 machine=$config_machine
3975 vendor=$config_vendor
3976 os=$config_os
3977 base_os=''
3979 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
3980 # Unify this here.
3981 if test "$machine" = rs6000; then
3982 machine="powerpc"
3985 # Braindead PowerPC box with absolutely no FPU.
3986 case "$machine-$host_os" in
3987 powerpc*-*soft)
3988 with_fp=no
3990 esac
3992 submachine=
3994 # Check whether --with-cpu was given.
3995 if test "${with_cpu+set}" = set; then
3996 withval=$with_cpu; case "$withval" in
3997 yes|'') { { $as_echo "$as_me:$LINENO: error: --with-cpu requires an argument" >&5
3998 $as_echo "$as_me: error: --with-cpu requires an argument" >&2;}
3999 { (exit 1); exit 1; }; } ;;
4000 no) ;;
4001 *) submachine="$withval" ;;
4002 esac
4007 # An add-on can set this when it wants to disable the sanity check below.
4008 libc_config_ok=no
4012 subdirs="$subdirs "
4015 case "$enable_add_ons" in
4016 ''|no) add_ons= ;;
4017 yes|'*')
4018 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
4019 sed 's@/[^/]*$@@' | sort | uniq`
4020 add_ons_automatic=yes
4022 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
4023 add_ons_automatic=no ;;
4024 esac
4026 configured_add_ons=
4027 add_ons_sfx=
4028 add_ons_pfx=
4029 if test x"$add_ons" != x; then
4030 for f in $add_ons; do
4031 # Some sanity checks
4032 case "$f" in
4033 crypt)
4034 { { $as_echo "$as_me:$LINENO: error:
4035 *** It seems that you're using an old \`crypt' add-on. crypt is now
4036 *** part of glibc and using the old add-on will not work with this
4037 *** release. Start again with fresh sources and without the old
4038 *** \`crypt' add-on." >&5
4039 $as_echo "$as_me: error:
4040 *** It seems that you're using an old \`crypt' add-on. crypt is now
4041 *** part of glibc and using the old add-on will not work with this
4042 *** release. Start again with fresh sources and without the old
4043 *** \`crypt' add-on." >&2;}
4044 { (exit 1); exit 1; }; }
4046 localedata)
4047 { { $as_echo "$as_me:$LINENO: error:
4048 *** It seems that you're using an old \`localedata' add-on. localedata
4049 *** is now part of glibc and using the old add-on will not work with
4050 *** this release. Start again with fresh sources and without the old
4051 *** \`localedata' add-on." >&5
4052 $as_echo "$as_me: error:
4053 *** It seems that you're using an old \`localedata' add-on. localedata
4054 *** is now part of glibc and using the old add-on will not work with
4055 *** this release. Start again with fresh sources and without the old
4056 *** \`localedata' add-on." >&2;}
4057 { (exit 1); exit 1; }; }
4059 esac
4060 done
4062 # Now source each add-on's configure fragment.
4063 # The fragments can use $srcdir/$libc_add_on to find themselves,
4064 # and test $add_ons_automatic to see if they were explicitly requested.
4065 # A fragment can clear (or even change) $libc_add_on to affect
4066 # whether it goes into the list to be actually used in the build.
4067 use_add_ons=
4068 for libc_add_on in $add_ons; do
4069 # Test whether such a directory really exists.
4070 # It can be absolute, or relative to $srcdir, or relative to the build dir.
4071 case "$libc_add_on" in
4073 libc_add_on_srcdir=$libc_add_on
4076 test -d "$srcdir/$libc_add_on" || {
4077 if test -d "$libc_add_on"; then
4078 libc_add_on="`pwd`/$libc_add_on"
4079 else
4080 { { $as_echo "$as_me:$LINENO: error: add-on directory \"$libc_add_on\" does not exist" >&5
4081 $as_echo "$as_me: error: add-on directory \"$libc_add_on\" does not exist" >&2;}
4082 { (exit 1); exit 1; }; }
4085 libc_add_on_srcdir=$srcdir/$libc_add_on
4087 esac
4089 libc_add_on_frag=$libc_add_on_srcdir/configure
4090 libc_add_on_canonical=
4091 if test -r "$libc_add_on_frag"; then
4092 { $as_echo "$as_me:$LINENO: running configure fragment for add-on $libc_add_on" >&5
4093 $as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
4094 libc_add_on_canonical=unknown
4095 libc_add_on_subdirs=
4096 . "$libc_add_on_frag"
4097 test -z "$libc_add_on" || {
4098 configured_add_ons="$configured_add_ons $libc_add_on"
4099 if test "x$libc_add_on_canonical" = xunknown; then
4100 { { $as_echo "$as_me:$LINENO: error: fragment must set \$libc_add_on_canonical" >&5
4101 $as_echo "$as_me: error: fragment must set \$libc_add_on_canonical" >&2;}
4102 { (exit 1); exit 1; }; }
4104 for d in $libc_add_on_subdirs; do
4105 case "$libc_add_on" in
4106 /*) subdir_srcdir="$libc_add_on" ;;
4107 *) subdir_srcdir="\$(..)$libc_add_on" ;;
4108 esac
4109 case "$d" in
4111 d="${libc_add_on_canonical:-$libc_add_on}"
4114 subdir_srcdir="$d"
4117 subdir_srcdir="$subdir_srcdir/$d"
4119 esac
4120 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
4121 add_on_subdirs="$add_on_subdirs $d"
4122 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
4123 $d-srcdir = $subdir_srcdir"
4124 done
4127 if test -n "$libc_add_on"; then
4128 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
4129 then
4130 { $as_echo "$as_me:$LINENO: checking add-on $libc_add_on for preconfigure fragments" >&5
4131 $as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
4132 for frag in $frags; do
4133 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
4134 echo $ECHO_N "$name $ECHO_C" >&6
4135 . "$frag"
4136 done
4137 { $as_echo "$as_me:$LINENO: result: " >&5
4138 $as_echo "" >&6; }
4140 use_add_ons="$use_add_ons $libc_add_on"
4141 add_ons_pfx="$add_ons_pfx $libc_add_on/"
4142 test -z "$libc_add_on_canonical" ||
4143 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
4145 done
4146 # Use echo to strip excess whitespace.
4147 add_ons="`echo $use_add_ons`"
4154 ### I put this here to prevent those annoying emails from people who cannot
4155 ### read and try to compile glibc on unsupported platforms. --drepper
4157 ### By using the undocumented --enable-hacker-mode option for configure
4158 ### one can skip this test to make the configuration not fail for unsupported
4159 ### platforms.
4161 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
4162 case "$machine-$host_os" in
4163 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
4166 echo "*** The GNU C library is currently not available for this platform."
4167 echo "*** So far nobody cared to port it and if there is no volunteer it"
4168 echo "*** might never happen. So, if you have interest to see glibc on"
4169 echo "*** this platform visit"
4170 echo "*** http://www.gnu.org/software/libc/porting.html"
4171 echo "*** and join the group of porters"
4172 exit 1
4174 esac
4177 # Expand the configuration machine name into a subdirectory by architecture
4178 # type and particular chip. If an add-on configure fragment already set
4179 # base_machine, we don't change it.
4180 test -n "$base_machine" || case "$machine" in
4181 a29k | am29000) base_machine=a29k machine=a29k ;;
4182 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
4183 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
4184 i[34567]86) base_machine=i386 machine=i386/$machine ;;
4185 ia64) base_machine=ia64 machine=ia64 ;;
4186 m88???) base_machine=m88k machine=m88k/$machine ;;
4187 m88k) base_machine=m88k machine=m88k/m88100 ;;
4188 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
4189 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
4190 s390) base_machine=s390 machine=s390/s390-32 ;;
4191 s390x) base_machine=s390 machine=s390/s390-64 ;;
4192 sh3*) base_machine=sh machine=sh/sh3 ;;
4193 sh4*) base_machine=sh machine=sh/sh4 ;;
4194 sparc | sparcv[67])
4195 base_machine=sparc machine=sparc/sparc32 ;;
4196 sparcv8 | supersparc | hypersparc)
4197 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
4198 sparcv8plus | sparcv8plusa | sparcv9)
4199 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
4200 sparcv8plusb | sparcv9b)
4201 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
4202 sparcv9v)
4203 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
4204 sparcv9v2)
4205 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
4206 sparc64)
4207 base_machine=sparc machine=sparc/sparc64 ;;
4208 sparc64b)
4209 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
4210 sparc64v)
4211 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
4212 sparc64v2)
4213 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
4214 *) base_machine=$machine ;;
4215 esac
4218 if test "$base_machine" = "i386"; then
4219 cat >>confdefs.h <<\_ACEOF
4220 #define USE_REGPARMS 1
4221 _ACEOF
4225 # Compute the list of sysdep directories for this configuration.
4226 # This can take a while to compute.
4227 sysdep_dir=$srcdir/sysdeps
4228 { $as_echo "$as_me:$LINENO: checking sysdep dirs" >&5
4229 $as_echo_n "checking sysdep dirs... " >&6; }
4230 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
4231 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
4233 test "x$base_os" != x || case "$os" in
4234 gnu*)
4235 base_os=mach/hurd ;;
4236 netbsd* | 386bsd* | freebsd* | bsdi*)
4237 base_os=unix/bsd/bsd4.4 ;;
4238 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
4239 base_os=unix/bsd ;;
4240 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
4241 base_os=unix/sysv ;;
4242 irix6*)
4243 base_os=unix/sysv/irix6/$os ;;
4244 solaris[2-9]*)
4245 base_os=unix/sysv/sysv4 ;;
4246 hpux*)
4247 base_os=unix/sysv/hpux/$os ;;
4248 aix4.3*)
4249 base_os=unix/sysv/aix/aix4.3 ;;
4250 none)
4251 base_os=standalone ;;
4252 esac
4254 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
4255 tail=$os
4256 ostry=$os
4257 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
4258 ostry="$ostry /$o"
4259 tail=$o
4260 done
4261 o=`echo $tail | sed 's/[0-9]*$//'`
4262 if test $o != $tail; then
4263 ostry="$ostry /$o"
4265 # For linux-gnu, try linux-gnu, then linux.
4266 o=`echo $tail | sed 's/-.*$//'`
4267 if test $o != $tail; then
4268 ostry="$ostry /$o"
4271 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
4272 base=
4273 tail=$base_os
4274 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
4275 set $b
4276 base="$base /$1"
4277 tail="$2"
4278 done
4280 # For sparc/sparc32, try sparc/sparc32 and then sparc.
4281 mach=
4282 tail=$machine${submachine:+/$submachine}
4283 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
4284 set $m
4285 # Prepend the machine's FPU directory unless --without-fp.
4286 if test "$with_fp" = yes; then
4287 mach="$mach /$1/fpu"
4288 else
4289 mach="$mach /$1/nofpu"
4291 mach="$mach /$1"
4292 tail="$2"
4293 done
4296 # Find what sysdep directories exist.
4297 sysnames_add_ons=
4298 sysnames=
4299 for b in $base ''; do
4300 for m0 in $mach ''; do
4301 for v in /$vendor ''; do
4302 test "$v" = / && continue
4303 for o in /$ostry ''; do
4304 test "$o" = / && continue
4305 for m in $multi_arch_d $mach ''; do
4306 for d in $add_ons_pfx ''; do
4307 for a in $add_ons_sfx ''; do
4308 if test -n "$m0$m0sub$b$v$o$m$msub"; then
4309 try_srcdir="${srcdir}/"
4310 case "$d" in
4311 /*) try_srcdir= ;;
4312 esac
4313 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
4314 test -n "$enable_debug_configure" &&
4315 echo "$0 DEBUG: try $try" >&2
4316 if test -d "$try_srcdir$try"; then
4317 sysnames="$sysnames $try"
4318 { test -n "$o" || test -n "$b"; } && os_used=t
4319 { test -n "$m" || test -n "$m0"; } && machine_used=t
4320 case x${m0:-$m} in
4321 x*/$submachine) submachine_used=t ;;
4322 esac
4323 if test -n "$d"; then
4324 case "$sysnames_add_ons" in
4325 *" $d "*) ;;
4326 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4327 esac
4331 done
4332 done
4333 done
4334 done
4335 done
4336 done
4337 done
4339 if test -z "$os_used" && test "$os" != none; then
4340 { { $as_echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
4341 $as_echo "$as_me: error: Operating system $os is not supported." >&2;}
4342 { (exit 1); exit 1; }; }
4344 if test -z "$machine_used" && test "$machine" != none; then
4345 { { $as_echo "$as_me:$LINENO: error: The $machine is not supported." >&5
4346 $as_echo "$as_me: error: The $machine is not supported." >&2;}
4347 { (exit 1); exit 1; }; }
4349 if test -z "$submachine_used" && test -n "$submachine"; then
4350 { { $as_echo "$as_me:$LINENO: error: The $submachine subspecies of $host_cpu is not supported." >&5
4351 $as_echo "$as_me: error: The $submachine subspecies of $host_cpu is not supported." >&2;}
4352 { (exit 1); exit 1; }; }
4356 # We have now validated the configuration.
4359 # If using ELF, look for an `elf' subdirectory of each machine directory.
4360 # We prepend these rather than inserting them whereever the machine appears
4361 # because things specified by the machine's ELF ABI should override
4362 # OS-specific things, and should always be the same for any OS on the
4363 # machine (otherwise what's the point of an ABI?).
4364 if test "$elf" = yes; then
4365 elf_dirs=
4366 for d in $add_ons_pfx ''; do
4367 for m in $mach; do
4368 if test -d $srcdir/${d}sysdeps$m/elf; then
4369 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
4371 done
4372 done
4373 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
4377 # Expand the list of system names into a full list of directories
4378 # from each element's parent name and Implies file (if present).
4379 set $sysnames
4380 names=
4381 while test $# -gt 0; do
4382 name=$1
4383 shift
4385 case " $names " in *" $name "*)
4386 # Already in the list.
4387 continue
4388 esac
4390 # Report each name as we discover it, so there is no long pause in output.
4391 echo $ECHO_N "$name $ECHO_C" >&6
4393 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4395 case $name in
4396 /*) xsrcdir= ;;
4397 *) xsrcdir=$srcdir/ ;;
4398 esac
4399 test -n "$enable_debug_configure" &&
4400 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4402 if test -f $xsrcdir$name/Implies; then
4403 # Collect more names from the `Implies' file (removing comments).
4404 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
4405 implied=
4406 for x in $implied_candidate; do
4407 found=no
4408 if test -d $xsrcdir$name_base/$x; then
4409 implied="$implied $name_base/$x";
4410 found=yes
4412 for d in $add_ons_pfx ''; do
4413 try="${d}sysdeps/$x"
4414 case $d in
4415 /*) try_srcdir= ;;
4416 *) try_srcdir=$srcdir/ ;;
4417 esac
4418 test -n "$enable_debug_configure" &&
4419 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
4420 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4421 then
4422 implied="$implied $try"
4423 found=yes
4424 case "$sysnames_add_ons" in
4425 *" $d "*) ;;
4426 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4427 esac
4429 done
4430 if test $found = no; then
4431 { $as_echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
4432 $as_echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
4434 done
4435 else
4436 implied=
4439 # Add NAME to the list of names.
4440 names="$names $name"
4442 # Find the parent of NAME, using the empty string if it has none.
4443 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
4445 # Add the names implied by NAME, and NAME's parent (if it has one), to
4446 # the list of names to be processed (the argument list). We prepend the
4447 # implied names to the list and append the parent. We want implied
4448 # directories to come before further directories inferred from the
4449 # configuration components; this ensures that for sysv4, unix/common
4450 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4451 # after sysv4).
4452 sysnames="`echo $implied $* $parent`"
4453 test -n "$sysnames" && set $sysnames
4454 done
4456 # Add the default directories.
4457 default_sysnames=sysdeps/generic
4458 if test "$elf" = yes; then
4459 default_sysnames="sysdeps/generic/elf $default_sysnames"
4461 sysnames="$names $default_sysnames"
4463 # The other names were emitted during the scan.
4464 { $as_echo "$as_me:$LINENO: result: $default_sysnames" >&5
4465 $as_echo "$default_sysnames" >&6; }
4467 # Collect the list of add-ons that supply partial sysdeps trees.
4468 sysdeps_add_ons=
4469 for add_on in $add_ons; do
4470 case "$add_on" in
4471 /*) xsrcdir= ;;
4472 *) xsrcdir="$srcdir/" ;;
4473 esac
4475 test -d "$xsrcdir$add_on/sysdeps" || {
4476 case "$configured_add_ons " in
4477 *" $add_on "*) ;;
4478 *|'')
4479 { { $as_echo "$as_me:$LINENO: error: add-on $add_on has no configure fragment or sysdeps tree" >&5
4480 $as_echo "$as_me: error: add-on $add_on has no configure fragment or sysdeps tree" >&2;}
4481 { (exit 1); exit 1; }; }
4483 esac
4484 continue
4487 sysdeps_add_ons="$sysdeps_add_ons $add_on"
4488 case "$sysnames_add_ons" in
4489 *" $add_on/ "*) ;;
4490 *|'')
4491 { $as_echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no sysdeps directories" >&5
4492 $as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
4493 continue ;;
4494 esac
4496 found=no
4497 for d in $sysnames; do
4498 case "$d" in
4499 $add_on/sysdeps/*) ;;
4500 *) continue ;;
4501 esac
4502 (cd "$xsrcdir$d" && for f in *[!~]; do
4503 case "$f" in
4504 sys|bits)
4505 for ff in $f/*.h; do
4506 test -d "$ff" || { test -e "$ff" && exit 88; }
4507 done
4510 test -d "$f" || { test -e "$f" && exit 88; }
4512 esac
4513 done)
4514 if test $? -eq 88; then
4515 found=yes
4516 break
4518 done
4519 if test $found = no; then
4520 { $as_echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
4521 $as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
4523 done
4527 ### Locate tools.
4529 # Find a good install program. We prefer a C program (faster),
4530 # so one script is as good as another. But avoid the broken or
4531 # incompatible versions:
4532 # SysV /etc/install, /usr/sbin/install
4533 # SunOS /usr/etc/install
4534 # IRIX /sbin/install
4535 # AIX /bin/install
4536 # AmigaOS /C/install, which installs bootblocks on floppy discs
4537 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4538 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4539 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4540 # OS/2's system install, which has a completely different semantic
4541 # ./install, which can be erroneously created by make from ./install.sh.
4542 # Reject install programs that cannot install multiple files.
4543 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4544 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4545 if test -z "$INSTALL"; then
4546 if test "${ac_cv_path_install+set}" = set; then
4547 $as_echo_n "(cached) " >&6
4548 else
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4552 IFS=$as_save_IFS
4553 test -z "$as_dir" && as_dir=.
4554 # Account for people who put trailing slashes in PATH elements.
4555 case $as_dir/ in
4556 ./ | .// | /cC/* | \
4557 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4558 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4559 /usr/ucb/* ) ;;
4561 # OSF1 and SCO ODT 3.0 have their own names for install.
4562 # Don't use installbsd from OSF since it installs stuff as root
4563 # by default.
4564 for ac_prog in ginstall scoinst install; do
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4567 if test $ac_prog = install &&
4568 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4569 # AIX install. It has an incompatible calling convention.
4571 elif test $ac_prog = install &&
4572 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4573 # program-specific install script used by HP pwplus--don't use.
4575 else
4576 rm -rf conftest.one conftest.two conftest.dir
4577 echo one > conftest.one
4578 echo two > conftest.two
4579 mkdir conftest.dir
4580 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4581 test -s conftest.one && test -s conftest.two &&
4582 test -s conftest.dir/conftest.one &&
4583 test -s conftest.dir/conftest.two
4584 then
4585 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4586 break 3
4590 done
4591 done
4593 esac
4595 done
4596 IFS=$as_save_IFS
4598 rm -rf conftest.one conftest.two conftest.dir
4601 if test "${ac_cv_path_install+set}" = set; then
4602 INSTALL=$ac_cv_path_install
4603 else
4604 # As a last resort, use the slow shell script. Don't cache a
4605 # value for INSTALL within a source directory, because that will
4606 # break other packages using the cache if that directory is
4607 # removed, or if the value is a relative name.
4608 INSTALL=$ac_install_sh
4611 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4612 $as_echo "$INSTALL" >&6; }
4614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4615 # It thinks the first close brace ends the variable substitution.
4616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4618 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4620 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4622 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4623 # The makefiles need to use a different form to find it in $srcdir.
4624 INSTALL='\$(..)./scripts/install-sh -c'
4626 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4627 $as_echo_n "checking whether ln -s works... " >&6; }
4628 LN_S=$as_ln_s
4629 if test "$LN_S" = "ln -s"; then
4630 { $as_echo "$as_me:$LINENO: result: yes" >&5
4631 $as_echo "yes" >&6; }
4632 else
4633 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4634 $as_echo "no, using $LN_S" >&6; }
4638 # Was a --with-binutils option given?
4639 if test -n "$path_binutils"; then
4640 # Make absolute; ensure a single trailing slash.
4641 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4642 CC="$CC -B$path_binutils"
4644 AS=`$CC -print-prog-name=as`
4645 LD=`$CC -print-prog-name=ld`
4646 AR=`$CC -print-prog-name=ar`
4648 OBJDUMP=`$CC -print-prog-name=objdump`
4651 # ranlib has to be treated a bit differently since it might not exist at all.
4652 ac_ranlib=`$CC -print-prog-name=ranlib`
4653 if test "x$ac_ranlib" = xranlib; then
4654 # This extra check has to happen since gcc simply echos the parameter in
4655 # case it cannot find the value in its own directories.
4656 if test -n "$ac_tool_prefix"; then
4657 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4658 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4659 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 $as_echo_n "checking for $ac_word... " >&6; }
4661 if test "${ac_cv_prog_RANLIB+set}" = set; then
4662 $as_echo_n "(cached) " >&6
4663 else
4664 if test -n "$RANLIB"; then
4665 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4666 else
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4675 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 break 2
4678 done
4679 done
4680 IFS=$as_save_IFS
4684 RANLIB=$ac_cv_prog_RANLIB
4685 if test -n "$RANLIB"; then
4686 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4687 $as_echo "$RANLIB" >&6; }
4688 else
4689 { $as_echo "$as_me:$LINENO: result: no" >&5
4690 $as_echo "no" >&6; }
4695 if test -z "$ac_cv_prog_RANLIB"; then
4696 ac_ct_RANLIB=$RANLIB
4697 # Extract the first word of "ranlib", so it can be a program name with args.
4698 set dummy ranlib; ac_word=$2
4699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4702 $as_echo_n "(cached) " >&6
4703 else
4704 if test -n "$ac_ct_RANLIB"; then
4705 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4706 else
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4714 ac_cv_prog_ac_ct_RANLIB="ranlib"
4715 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 break 2
4718 done
4719 done
4720 IFS=$as_save_IFS
4724 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4725 if test -n "$ac_ct_RANLIB"; then
4726 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4727 $as_echo "$ac_ct_RANLIB" >&6; }
4728 else
4729 { $as_echo "$as_me:$LINENO: result: no" >&5
4730 $as_echo "no" >&6; }
4733 if test "x$ac_ct_RANLIB" = x; then
4734 RANLIB=":"
4735 else
4736 case $cross_compiling:$ac_tool_warned in
4737 yes:)
4738 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4740 ac_tool_warned=yes ;;
4741 esac
4742 RANLIB=$ac_ct_RANLIB
4744 else
4745 RANLIB="$ac_cv_prog_RANLIB"
4748 else
4749 RANLIB=$ac_ranlib
4753 # Determine whether we are using GNU binutils.
4754 { $as_echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
4755 $as_echo_n "checking whether $AS is GNU as... " >&6; }
4756 if test "${libc_cv_prog_as_gnu+set}" = set; then
4757 $as_echo_n "(cached) " >&6
4758 else
4759 # Most GNU programs take a -v and spit out some text including
4760 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4761 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4762 libc_cv_prog_as_gnu=yes
4763 else
4764 libc_cv_prog_as_gnu=no
4766 rm -fr contest*
4768 { $as_echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
4769 $as_echo "$libc_cv_prog_as_gnu" >&6; }
4770 rm -f a.out
4771 gnu_as=$libc_cv_prog_as_gnu
4773 { $as_echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
4774 $as_echo_n "checking whether $LD is GNU ld... " >&6; }
4775 if test "${libc_cv_prog_ld_gnu+set}" = set; then
4776 $as_echo_n "(cached) " >&6
4777 else
4778 # Most GNU programs take a -v and spit out some text including
4779 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4780 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4781 libc_cv_prog_ld_gnu=yes
4782 else
4783 libc_cv_prog_ld_gnu=no
4785 rm -fr contest*
4787 { $as_echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
4788 $as_echo "$libc_cv_prog_ld_gnu" >&6; }
4789 gnu_ld=$libc_cv_prog_ld_gnu
4792 # Accept binutils 2.13 or newer.
4793 for ac_prog in $AS
4795 # Extract the first word of "$ac_prog", so it can be a program name with args.
4796 set dummy $ac_prog; ac_word=$2
4797 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4798 $as_echo_n "checking for $ac_word... " >&6; }
4799 if test "${ac_cv_prog_AS+set}" = set; then
4800 $as_echo_n "(cached) " >&6
4801 else
4802 if test -n "$AS"; then
4803 ac_cv_prog_AS="$AS" # Let the user override the test.
4804 else
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4808 IFS=$as_save_IFS
4809 test -z "$as_dir" && as_dir=.
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4812 ac_cv_prog_AS="$ac_prog"
4813 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 break 2
4816 done
4817 done
4818 IFS=$as_save_IFS
4822 AS=$ac_cv_prog_AS
4823 if test -n "$AS"; then
4824 { $as_echo "$as_me:$LINENO: result: $AS" >&5
4825 $as_echo "$AS" >&6; }
4826 else
4827 { $as_echo "$as_me:$LINENO: result: no" >&5
4828 $as_echo "no" >&6; }
4832 test -n "$AS" && break
4833 done
4835 if test -z "$AS"; then
4836 ac_verc_fail=yes
4837 else
4838 # Found it, now check the version.
4839 { $as_echo "$as_me:$LINENO: checking version of $AS" >&5
4840 $as_echo_n "checking version of $AS... " >&6; }
4841 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4842 case $ac_prog_version in
4843 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4844 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9]*|[3-9].*)
4845 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4846 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4848 esac
4849 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4850 $as_echo "$ac_prog_version" >&6; }
4852 if test $ac_verc_fail = yes; then
4853 AS=: critic_missing="$critic_missing as"
4856 for ac_prog in $LD
4858 # Extract the first word of "$ac_prog", so it can be a program name with args.
4859 set dummy $ac_prog; ac_word=$2
4860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 $as_echo_n "checking for $ac_word... " >&6; }
4862 if test "${ac_cv_prog_LD+set}" = set; then
4863 $as_echo_n "(cached) " >&6
4864 else
4865 if test -n "$LD"; then
4866 ac_cv_prog_LD="$LD" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875 ac_cv_prog_LD="$ac_prog"
4876 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4879 done
4880 done
4881 IFS=$as_save_IFS
4885 LD=$ac_cv_prog_LD
4886 if test -n "$LD"; then
4887 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4888 $as_echo "$LD" >&6; }
4889 else
4890 { $as_echo "$as_me:$LINENO: result: no" >&5
4891 $as_echo "no" >&6; }
4895 test -n "$LD" && break
4896 done
4898 if test -z "$LD"; then
4899 ac_verc_fail=yes
4900 else
4901 # Found it, now check the version.
4902 { $as_echo "$as_me:$LINENO: checking version of $LD" >&5
4903 $as_echo_n "checking version of $LD... " >&6; }
4904 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4905 case $ac_prog_version in
4906 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4907 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9]*|3-9.*)
4908 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4909 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4911 esac
4912 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4913 $as_echo "$ac_prog_version" >&6; }
4915 if test $ac_verc_fail = yes; then
4916 LD=: critic_missing="$critic_missing ld"
4920 # We need the physical current working directory. We cannot use the
4921 # "pwd -P" shell builtin since that's not portable. Instead we try to
4922 # find a pwd binary. Note that assigning to the PWD environment
4923 # variable might have some interesting side effects, so we don't do
4924 # that.
4925 # Extract the first word of "pwd", so it can be a program name with args.
4926 set dummy pwd; ac_word=$2
4927 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if test "${ac_cv_path_PWD_P+set}" = set; then
4930 $as_echo_n "(cached) " >&6
4931 else
4932 case $PWD_P in
4933 [\\/]* | ?:[\\/]*)
4934 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4945 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4948 done
4949 done
4950 IFS=$as_save_IFS
4952 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4954 esac
4956 PWD_P=$ac_cv_path_PWD_P
4957 if test -n "$PWD_P"; then
4958 { $as_echo "$as_me:$LINENO: result: $PWD_P" >&5
4959 $as_echo "$PWD_P" >&6; }
4960 else
4961 { $as_echo "$as_me:$LINENO: result: no" >&5
4962 $as_echo "no" >&6; }
4966 if test "$PWD_P" = no; then
4967 { { $as_echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
4968 $as_echo "$as_me: error: *** A pwd binary could not be found." >&2;}
4969 { (exit 1); exit 1; }; }
4972 # These programs are version sensitive.
4974 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4976 # Extract the first word of "$ac_prog", so it can be a program name with args.
4977 set dummy $ac_prog; ac_word=$2
4978 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 $as_echo_n "checking for $ac_word... " >&6; }
4980 if test "${ac_cv_prog_CC+set}" = set; then
4981 $as_echo_n "(cached) " >&6
4982 else
4983 if test -n "$CC"; then
4984 ac_cv_prog_CC="$CC" # Let the user override the test.
4985 else
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993 ac_cv_prog_CC="$ac_prog"
4994 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 break 2
4997 done
4998 done
4999 IFS=$as_save_IFS
5003 CC=$ac_cv_prog_CC
5004 if test -n "$CC"; then
5005 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5006 $as_echo "$CC" >&6; }
5007 else
5008 { $as_echo "$as_me:$LINENO: result: no" >&5
5009 $as_echo "no" >&6; }
5013 test -n "$CC" && break
5014 done
5016 if test -z "$CC"; then
5017 ac_verc_fail=yes
5018 else
5019 # Found it, now check the version.
5020 { $as_echo "$as_me:$LINENO: checking version of $CC" >&5
5021 $as_echo_n "checking version of $CC... " >&6; }
5022 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
5023 case $ac_prog_version in
5024 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5025 3.4* | 4.[0-9]* )
5026 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5027 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5029 esac
5030 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5031 $as_echo "$ac_prog_version" >&6; }
5033 if test $ac_verc_fail = yes; then
5034 critic_missing="$critic_missing gcc"
5037 for ac_prog in gnumake gmake make
5039 # Extract the first word of "$ac_prog", so it can be a program name with args.
5040 set dummy $ac_prog; ac_word=$2
5041 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5042 $as_echo_n "checking for $ac_word... " >&6; }
5043 if test "${ac_cv_prog_MAKE+set}" = set; then
5044 $as_echo_n "(cached) " >&6
5045 else
5046 if test -n "$MAKE"; then
5047 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5048 else
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5056 ac_cv_prog_MAKE="$ac_prog"
5057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 break 2
5060 done
5061 done
5062 IFS=$as_save_IFS
5066 MAKE=$ac_cv_prog_MAKE
5067 if test -n "$MAKE"; then
5068 { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
5069 $as_echo "$MAKE" >&6; }
5070 else
5071 { $as_echo "$as_me:$LINENO: result: no" >&5
5072 $as_echo "no" >&6; }
5076 test -n "$MAKE" && break
5077 done
5079 if test -z "$MAKE"; then
5080 ac_verc_fail=yes
5081 else
5082 # Found it, now check the version.
5083 { $as_echo "$as_me:$LINENO: checking version of $MAKE" >&5
5084 $as_echo_n "checking version of $MAKE... " >&6; }
5085 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5086 case $ac_prog_version in
5087 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5088 3.79* | 3.[89]*)
5089 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5090 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5092 esac
5093 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5094 $as_echo "$ac_prog_version" >&6; }
5096 if test $ac_verc_fail = yes; then
5097 critic_missing="$critic_missing make"
5101 for ac_prog in gnumsgfmt gmsgfmt msgfmt
5103 # Extract the first word of "$ac_prog", so it can be a program name with args.
5104 set dummy $ac_prog; ac_word=$2
5105 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if test "${ac_cv_prog_MSGFMT+set}" = set; then
5108 $as_echo_n "(cached) " >&6
5109 else
5110 if test -n "$MSGFMT"; then
5111 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5112 else
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5120 ac_cv_prog_MSGFMT="$ac_prog"
5121 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5124 done
5125 done
5126 IFS=$as_save_IFS
5130 MSGFMT=$ac_cv_prog_MSGFMT
5131 if test -n "$MSGFMT"; then
5132 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5133 $as_echo "$MSGFMT" >&6; }
5134 else
5135 { $as_echo "$as_me:$LINENO: result: no" >&5
5136 $as_echo "no" >&6; }
5140 test -n "$MSGFMT" && break
5141 done
5143 if test -z "$MSGFMT"; then
5144 ac_verc_fail=yes
5145 else
5146 # Found it, now check the version.
5147 { $as_echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
5148 $as_echo_n "checking version of $MSGFMT... " >&6; }
5149 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5150 case $ac_prog_version in
5151 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5152 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
5153 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5154 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5156 esac
5157 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5158 $as_echo "$ac_prog_version" >&6; }
5160 if test $ac_verc_fail = yes; then
5161 MSGFMT=: aux_missing="$aux_missing msgfmt"
5164 for ac_prog in makeinfo
5166 # Extract the first word of "$ac_prog", so it can be a program name with args.
5167 set dummy $ac_prog; ac_word=$2
5168 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5171 $as_echo_n "(cached) " >&6
5172 else
5173 if test -n "$MAKEINFO"; then
5174 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5175 else
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5183 ac_cv_prog_MAKEINFO="$ac_prog"
5184 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 break 2
5187 done
5188 done
5189 IFS=$as_save_IFS
5193 MAKEINFO=$ac_cv_prog_MAKEINFO
5194 if test -n "$MAKEINFO"; then
5195 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5196 $as_echo "$MAKEINFO" >&6; }
5197 else
5198 { $as_echo "$as_me:$LINENO: result: no" >&5
5199 $as_echo "no" >&6; }
5203 test -n "$MAKEINFO" && break
5204 done
5206 if test -z "$MAKEINFO"; then
5207 ac_verc_fail=yes
5208 else
5209 # Found it, now check the version.
5210 { $as_echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
5211 $as_echo_n "checking version of $MAKEINFO... " >&6; }
5212 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5213 case $ac_prog_version in
5214 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5215 4.*)
5216 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5217 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5219 esac
5220 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5221 $as_echo "$ac_prog_version" >&6; }
5223 if test $ac_verc_fail = yes; then
5224 MAKEINFO=: aux_missing="$aux_missing makeinfo"
5227 for ac_prog in sed
5229 # Extract the first word of "$ac_prog", so it can be a program name with args.
5230 set dummy $ac_prog; ac_word=$2
5231 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5232 $as_echo_n "checking for $ac_word... " >&6; }
5233 if test "${ac_cv_prog_SED+set}" = set; then
5234 $as_echo_n "(cached) " >&6
5235 else
5236 if test -n "$SED"; then
5237 ac_cv_prog_SED="$SED" # Let the user override the test.
5238 else
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 ac_cv_prog_SED="$ac_prog"
5247 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 break 2
5250 done
5251 done
5252 IFS=$as_save_IFS
5256 SED=$ac_cv_prog_SED
5257 if test -n "$SED"; then
5258 { $as_echo "$as_me:$LINENO: result: $SED" >&5
5259 $as_echo "$SED" >&6; }
5260 else
5261 { $as_echo "$as_me:$LINENO: result: no" >&5
5262 $as_echo "no" >&6; }
5266 test -n "$SED" && break
5267 done
5269 if test -z "$SED"; then
5270 ac_verc_fail=yes
5271 else
5272 # Found it, now check the version.
5273 { $as_echo "$as_me:$LINENO: checking version of $SED" >&5
5274 $as_echo_n "checking version of $SED... " >&6; }
5275 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
5276 case $ac_prog_version in
5277 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5278 3.0[2-9]*|3.[1-9]*|[4-9]*)
5279 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5280 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5282 esac
5283 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5284 $as_echo "$ac_prog_version" >&6; }
5286 if test $ac_verc_fail = yes; then
5287 SED=: aux_missing="$aux_missing sed"
5291 for ac_prog in autoconf
5293 # Extract the first word of "$ac_prog", so it can be a program name with args.
5294 set dummy $ac_prog; ac_word=$2
5295 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5296 $as_echo_n "checking for $ac_word... " >&6; }
5297 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
5298 $as_echo_n "(cached) " >&6
5299 else
5300 if test -n "$AUTOCONF"; then
5301 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5302 else
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310 ac_cv_prog_AUTOCONF="$ac_prog"
5311 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 break 2
5314 done
5315 done
5316 IFS=$as_save_IFS
5320 AUTOCONF=$ac_cv_prog_AUTOCONF
5321 if test -n "$AUTOCONF"; then
5322 { $as_echo "$as_me:$LINENO: result: $AUTOCONF" >&5
5323 $as_echo "$AUTOCONF" >&6; }
5324 else
5325 { $as_echo "$as_me:$LINENO: result: no" >&5
5326 $as_echo "no" >&6; }
5330 test -n "$AUTOCONF" && break
5331 done
5332 test -n "$AUTOCONF" || AUTOCONF="no"
5334 case "x$AUTOCONF" in
5335 xno|x|x:) AUTOCONF=no ;;
5337 { $as_echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5338 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5339 if test "${libc_cv_autoconf_works+set}" = set; then
5340 $as_echo_n "(cached) " >&6
5341 else
5342 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5343 libc_cv_autoconf_works=yes
5344 else
5345 libc_cv_autoconf_works=no
5348 { $as_echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
5349 $as_echo "$libc_cv_autoconf_works" >&6; }
5350 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5352 esac
5353 if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
5354 # If --without-cvs they probably won't change configure.in, so no complaints.
5355 aux_missing="$aux_missing autoconf"
5358 test -n "$critic_missing" && { { $as_echo "$as_me:$LINENO: error:
5359 *** These critical programs are missing or too old:$critic_missing
5360 *** Check the INSTALL file for required versions." >&5
5361 $as_echo "$as_me: error:
5362 *** These critical programs are missing or too old:$critic_missing
5363 *** Check the INSTALL file for required versions." >&2;}
5364 { (exit 1); exit 1; }; }
5366 test -n "$aux_missing" && { $as_echo "$as_me:$LINENO: WARNING:
5367 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5368 *** some features will be disabled.
5369 *** Check the INSTALL file for required versions." >&5
5370 $as_echo "$as_me: WARNING:
5371 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5372 *** some features will be disabled.
5373 *** Check the INSTALL file for required versions." >&2;}
5375 # if using special system headers, find out the compiler's sekrit
5376 # header directory and add that to the list. NOTE: Only does the right
5377 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5378 if test -n "$sysheaders"; then
5379 SYSINCLUDES=-nostdinc
5380 for d in include include-fixed; do
5381 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5382 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5383 done
5384 SYSINCLUDES="$SYSINCLUDES \
5385 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5386 if test -n "$CXX"; then
5387 cxxversion=`$CXX -dumpversion 2>&5` &&
5388 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5389 cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" &&
5390 CXX_SYSINCLUDES="-isystem $cxxheaders \
5391 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5397 # check if ranlib is necessary
5398 { $as_echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
5399 $as_echo_n "checking whether ranlib is necessary... " >&6; }
5400 if test "${libc_cv_ranlib_necessary+set}" = set; then
5401 $as_echo_n "(cached) " >&6
5402 else
5403 cat > conftest.c <<EOF
5404 int a;
5405 char b;
5406 void c(void) {}
5408 $CC $CFLAGS $CPPFLAGS -c conftest.c
5409 $AR cr conftest.a conftest.o
5410 cp conftest.a conftest2.a
5411 $RANLIB conftest.a
5412 if cmp -s conftest.a conftest2.a; then
5413 libc_cv_ranlib_necessary=no
5414 else
5415 libc_cv_ranlib_necessary=yes
5417 rm -rf conftest*
5419 { $as_echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
5420 $as_echo "$libc_cv_ranlib_necessary" >&6; }
5421 if test "$libc_cv_ranlib_necessary" = no; then
5422 RANLIB=:
5425 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5426 # since this would lead to problems installing/building glibc.
5427 # LD_LIBRARY_PATH contains the current directory if one of the following
5428 # is true:
5429 # - one of the terminals (":" and ";") is the first or last sign
5430 # - two terminals occur directly after each other
5431 # - the path contains an element with a dot in it
5432 { $as_echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
5433 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5434 case ${LD_LIBRARY_PATH} in
5435 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5436 ld_library_path_setting="contains current directory"
5439 ld_library_path_setting="ok"
5441 esac
5442 { $as_echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
5443 $as_echo "$ld_library_path_setting" >&6; }
5444 if test "$ld_library_path_setting" != "ok"; then
5445 { { $as_echo "$as_me:$LINENO: error:
5446 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5447 *** building glibc. Please change the environment variable
5448 *** and run configure again." >&5
5449 $as_echo "$as_me: error:
5450 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5451 *** building glibc. Please change the environment variable
5452 *** and run configure again." >&2;}
5453 { (exit 1); exit 1; }; }
5456 { $as_echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
5457 $as_echo_n "checking whether GCC supports -static-libgcc... " >&6; }
5458 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
5459 $as_echo_n "(cached) " >&6
5460 else
5461 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5462 libc_cv_gcc_static_libgcc=
5463 else
5464 libc_cv_gcc_static_libgcc=-static-libgcc
5467 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
5468 $as_echo "$libc_cv_gcc_static_libgcc" >&6; }
5471 # Extract the first word of "bash", so it can be a program name with args.
5472 set dummy bash; ac_word=$2
5473 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if test "${ac_cv_path_BASH_SHELL+set}" = set; then
5476 $as_echo_n "(cached) " >&6
5477 else
5478 case $BASH_SHELL in
5479 [\\/]* | ?:[\\/]*)
5480 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5486 IFS=$as_save_IFS
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5490 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5491 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 break 2
5494 done
5495 done
5496 IFS=$as_save_IFS
5498 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5500 esac
5502 BASH_SHELL=$ac_cv_path_BASH_SHELL
5503 if test -n "$BASH_SHELL"; then
5504 { $as_echo "$as_me:$LINENO: result: $BASH_SHELL" >&5
5505 $as_echo "$BASH_SHELL" >&6; }
5506 else
5507 { $as_echo "$as_me:$LINENO: result: no" >&5
5508 $as_echo "no" >&6; }
5512 if test "$BASH_SHELL" != no &&
5513 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5514 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5515 libc_cv_have_bash2=yes
5516 else
5517 libc_cv_have_bash2=no
5521 if test "$BASH_SHELL" = no; then
5522 # Extract the first word of "ksh", so it can be a program name with args.
5523 set dummy ksh; ac_word=$2
5524 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5525 $as_echo_n "checking for $ac_word... " >&6; }
5526 if test "${ac_cv_path_KSH+set}" = set; then
5527 $as_echo_n "(cached) " >&6
5528 else
5529 case $KSH in
5530 [\\/]* | ?:[\\/]*)
5531 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5541 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5542 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 break 2
5545 done
5546 done
5547 IFS=$as_save_IFS
5549 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5551 esac
5553 KSH=$ac_cv_path_KSH
5554 if test -n "$KSH"; then
5555 { $as_echo "$as_me:$LINENO: result: $KSH" >&5
5556 $as_echo "$KSH" >&6; }
5557 else
5558 { $as_echo "$as_me:$LINENO: result: no" >&5
5559 $as_echo "no" >&6; }
5563 if test "$KSH" = no; then
5564 libc_cv_have_ksh=no
5565 else
5566 libc_cv_have_ksh=yes
5568 else
5569 KSH="$BASH_SHELL"
5571 libc_cv_have_ksh=yes
5575 for ac_prog in gawk mawk nawk awk
5577 # Extract the first word of "$ac_prog", so it can be a program name with args.
5578 set dummy $ac_prog; ac_word=$2
5579 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5580 $as_echo_n "checking for $ac_word... " >&6; }
5581 if test "${ac_cv_prog_AWK+set}" = set; then
5582 $as_echo_n "(cached) " >&6
5583 else
5584 if test -n "$AWK"; then
5585 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5586 else
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 for as_dir in $PATH
5590 IFS=$as_save_IFS
5591 test -z "$as_dir" && as_dir=.
5592 for ac_exec_ext in '' $ac_executable_extensions; do
5593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5594 ac_cv_prog_AWK="$ac_prog"
5595 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5596 break 2
5598 done
5599 done
5600 IFS=$as_save_IFS
5604 AWK=$ac_cv_prog_AWK
5605 if test -n "$AWK"; then
5606 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5607 $as_echo "$AWK" >&6; }
5608 else
5609 { $as_echo "$as_me:$LINENO: result: no" >&5
5610 $as_echo "no" >&6; }
5614 test -n "$AWK" && break
5615 done
5617 # Extract the first word of "perl", so it can be a program name with args.
5618 set dummy perl; ac_word=$2
5619 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if test "${ac_cv_path_PERL+set}" = set; then
5622 $as_echo_n "(cached) " >&6
5623 else
5624 case $PERL in
5625 [\\/]* | ?:[\\/]*)
5626 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in $PATH
5632 IFS=$as_save_IFS
5633 test -z "$as_dir" && as_dir=.
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5636 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5637 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 break 2
5640 done
5641 done
5642 IFS=$as_save_IFS
5644 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5646 esac
5648 PERL=$ac_cv_path_PERL
5649 if test -n "$PERL"; then
5650 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
5651 $as_echo "$PERL" >&6; }
5652 else
5653 { $as_echo "$as_me:$LINENO: result: no" >&5
5654 $as_echo "no" >&6; }
5658 if test "$PERL" != no &&
5659 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5660 PERL=no
5662 # Extract the first word of "install-info", so it can be a program name with args.
5663 set dummy install-info; ac_word=$2
5664 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5667 $as_echo_n "(cached) " >&6
5668 else
5669 case $INSTALL_INFO in
5670 [\\/]* | ?:[\\/]*)
5671 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5676 for as_dir in $as_dummy
5678 IFS=$as_save_IFS
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5682 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5683 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 break 2
5686 done
5687 done
5688 IFS=$as_save_IFS
5690 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5692 esac
5694 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5695 if test -n "$INSTALL_INFO"; then
5696 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5697 $as_echo "$INSTALL_INFO" >&6; }
5698 else
5699 { $as_echo "$as_me:$LINENO: result: no" >&5
5700 $as_echo "no" >&6; }
5704 # Extract the first word of "bison", so it can be a program name with args.
5705 set dummy bison; ac_word=$2
5706 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5707 $as_echo_n "checking for $ac_word... " >&6; }
5708 if test "${ac_cv_path_BISON+set}" = set; then
5709 $as_echo_n "(cached) " >&6
5710 else
5711 case $BISON in
5712 [\\/]* | ?:[\\/]*)
5713 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5718 for as_dir in $as_dummy
5720 IFS=$as_save_IFS
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5724 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 break 2
5728 done
5729 done
5730 IFS=$as_save_IFS
5732 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5734 esac
5736 BISON=$ac_cv_path_BISON
5737 if test -n "$BISON"; then
5738 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
5739 $as_echo "$BISON" >&6; }
5740 else
5741 { $as_echo "$as_me:$LINENO: result: no" >&5
5742 $as_echo "no" >&6; }
5747 { $as_echo "$as_me:$LINENO: checking for signed size_t type" >&5
5748 $as_echo_n "checking for signed size_t type... " >&6; }
5749 if test "${libc_cv_signed_size_t+set}" = set; then
5750 $as_echo_n "(cached) " >&6
5751 else
5752 echo '#include <stddef.h>
5753 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5754 if eval "$ac_cpp conftest.c 2>/dev/null" \
5755 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5756 libc_cv_signed_size_t=no
5757 else
5758 libc_cv_signed_size_t=yes
5760 rm -f conftest*
5762 { $as_echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
5763 $as_echo "$libc_cv_signed_size_t" >&6; }
5764 if test $libc_cv_signed_size_t = yes; then
5765 cat >> confdefs.h <<\EOF
5766 #undef __SIZE_TYPE__
5767 #define __SIZE_TYPE__ unsigned
5771 { $as_echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
5772 $as_echo_n "checking for libc-friendly stddef.h... " >&6; }
5773 if test "${libc_cv_friendly_stddef+set}" = set; then
5774 $as_echo_n "(cached) " >&6
5775 else
5776 cat >conftest.$ac_ext <<_ACEOF
5777 /* confdefs.h. */
5778 _ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5782 #define __need_size_t
5783 #define __need_wchar_t
5784 #include <stddef.h>
5785 #define __need_NULL
5786 #include <stddef.h>
5788 main ()
5790 size_t size; wchar_t wchar;
5791 #ifdef offsetof
5792 #error stddef.h ignored __need_*
5793 #endif
5794 if (&size == NULL || &wchar == NULL) abort ();
5796 return 0;
5798 _ACEOF
5799 rm -f conftest.$ac_objext
5800 if { (ac_try="$ac_compile"
5801 case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5804 esac
5805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5806 $as_echo "$ac_try_echo") >&5
5807 (eval "$ac_compile") 2>conftest.er1
5808 ac_status=$?
5809 grep -v '^ *+' conftest.er1 >conftest.err
5810 rm -f conftest.er1
5811 cat conftest.err >&5
5812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } && {
5814 test -z "$ac_c_werror_flag" ||
5815 test ! -s conftest.err
5816 } && test -s conftest.$ac_objext; then
5817 libc_cv_friendly_stddef=yes
5818 else
5819 $as_echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5822 libc_cv_friendly_stddef=no
5825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827 { $as_echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
5828 $as_echo "$libc_cv_friendly_stddef" >&6; }
5829 if test $libc_cv_friendly_stddef = yes; then
5830 config_vars="$config_vars
5831 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5834 { $as_echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
5835 $as_echo_n "checking whether we need to use -P to assemble .S files... " >&6; }
5836 if test "${libc_cv_need_minus_P+set}" = set; then
5837 $as_echo_n "(cached) " >&6
5838 else
5839 cat > conftest.S <<EOF
5840 #include "confdefs.h"
5841 /* Nothing whatsoever. */
5843 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 (eval $ac_try) 2>&5
5846 ac_status=$?
5847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; }; then
5849 libc_cv_need_minus_P=no
5850 else
5851 libc_cv_need_minus_P=yes
5853 rm -f conftest*
5855 { $as_echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
5856 $as_echo "$libc_cv_need_minus_P" >&6; }
5857 if test $libc_cv_need_minus_P = yes; then
5858 config_vars="$config_vars
5859 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5862 { $as_echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
5863 $as_echo_n "checking whether .text pseudo-op must be used... " >&6; }
5864 if test "${libc_cv_dot_text+set}" = set; then
5865 $as_echo_n "(cached) " >&6
5866 else
5867 cat > conftest.s <<EOF
5868 .text
5870 libc_cv_dot_text=
5871 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 (eval $ac_try) 2>&5
5874 ac_status=$?
5875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
5877 libc_cv_dot_text=.text
5879 rm -f conftest*
5882 if test -z "$libc_cv_dot_text"; then
5883 { $as_echo "$as_me:$LINENO: result: no" >&5
5884 $as_echo "no" >&6; }
5885 else
5886 { $as_echo "$as_me:$LINENO: result: yes" >&5
5887 $as_echo "yes" >&6; }
5890 { $as_echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
5891 $as_echo_n "checking for assembler global-symbol directive... " >&6; }
5892 if test "${libc_cv_asm_global_directive+set}" = set; then
5893 $as_echo_n "(cached) " >&6
5894 else
5895 libc_cv_asm_global_directive=UNKNOWN
5896 for ac_globl in .globl .global .EXPORT; do
5897 cat > conftest.s <<EOF
5898 ${libc_cv_dot_text}
5899 ${ac_globl} foo
5900 foo:
5902 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904 (eval $ac_try) 2>&5
5905 ac_status=$?
5906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; }; then
5908 libc_cv_asm_global_directive=${ac_globl}
5910 rm -f conftest*
5911 test $libc_cv_asm_global_directive != UNKNOWN && break
5912 done
5914 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
5915 $as_echo "$libc_cv_asm_global_directive" >&6; }
5916 if test $libc_cv_asm_global_directive = UNKNOWN; then
5917 { { $as_echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
5918 $as_echo "$as_me: error: cannot determine asm global directive" >&2;}
5919 { (exit 1); exit 1; }; }
5920 else
5921 cat >>confdefs.h <<_ACEOF
5922 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
5923 _ACEOF
5927 { $as_echo "$as_me:$LINENO: checking for .set assembler directive" >&5
5928 $as_echo_n "checking for .set assembler directive... " >&6; }
5929 if test "${libc_cv_asm_set_directive+set}" = set; then
5930 $as_echo_n "(cached) " >&6
5931 else
5932 cat > conftest.s <<EOF
5933 ${libc_cv_dot_text}
5934 foo:
5935 .set glibc_conftest_frobozz,foo
5936 $libc_cv_asm_global_directive glibc_conftest_frobozz
5938 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5939 # (but it doesn't work), so we must do a linking check to be sure.
5940 cat > conftest1.c <<\EOF
5941 extern int glibc_conftest_frobozz;
5942 void _start() { glibc_conftest_frobozz = 1; }
5944 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5945 -nostartfiles -nostdlib \
5946 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5947 libc_cv_asm_set_directive=yes
5948 else
5949 libc_cv_asm_set_directive=no
5951 rm -f conftest*
5953 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
5954 $as_echo "$libc_cv_asm_set_directive" >&6; }
5955 if test $libc_cv_asm_set_directive = yes; then
5956 cat >>confdefs.h <<\_ACEOF
5957 #define HAVE_ASM_SET_DIRECTIVE 1
5958 _ACEOF
5962 { $as_echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
5963 $as_echo_n "checking for assembler .type directive prefix... " >&6; }
5964 if test "${libc_cv_asm_type_prefix+set}" = set; then
5965 $as_echo_n "(cached) " >&6
5966 else
5967 libc_cv_asm_type_prefix=no
5968 for ac_try_prefix in '@' '%' '#'; do
5969 cat > conftest.s <<EOF
5970 ${libc_cv_dot_text}
5971 ${libc_cv_asm_global_directive} foo
5972 .type foo, ${ac_try_prefix}object
5973 .size foo, 1
5974 foo:
5975 .byte 1
5977 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 (eval $ac_try) 2>&5
5980 ac_status=$?
5981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5983 libc_cv_asm_type_prefix=${ac_try_prefix}
5985 rm -f conftest*
5986 test "x$libc_cv_asm_type_prefix" != xno && break
5987 done
5989 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
5990 $as_echo "$libc_cv_asm_type_prefix" >&6; }
5991 if test "x$libc_cv_asm_type_prefix" != xno; then
5992 cat >>confdefs.h <<_ACEOF
5993 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
5994 _ACEOF
5998 { $as_echo "$as_me:$LINENO: checking for assembler gnu_unique_object symbol type" >&5
5999 $as_echo_n "checking for assembler gnu_unique_object symbol type... " >&6; }
6000 if test "${libc_cv_asm_unique_object+set}" = set; then
6001 $as_echo_n "(cached) " >&6
6002 else
6003 cat > conftest.s <<EOF
6004 ${libc_cv_dot_text}
6005 _sym:
6006 .type _sym, ${libc_cv_asm_type_prefix}gnu_unique_object
6008 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6009 libc_cv_asm_unique_object=yes
6010 else
6011 libc_cv_asm_unique_object=no
6013 rm -f conftest*
6015 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_unique_object" >&5
6016 $as_echo "$libc_cv_asm_unique_object" >&6; }
6017 if test $libc_cv_asm_unique_object = yes; then
6018 cat >>confdefs.h <<\_ACEOF
6019 #define HAVE_ASM_UNIQUE_OBJECT 1
6020 _ACEOF
6024 # For the multi-arch option we need support in the assembler.
6025 if test "$multi_arch" = yes; then
6026 if test "x$libc_cv_asm_type_prefix" != xno; then
6027 { $as_echo "$as_me:$LINENO: checking for assembler gnu_indirect_function symbol type support" >&5
6028 $as_echo_n "checking for assembler gnu_indirect_function symbol type support... " >&6; }
6029 if test "${libc_cv_asm_gnu_indirect_function+set}" = set; then
6030 $as_echo_n "(cached) " >&6
6031 else
6032 cat > conftest.s <<EOF
6033 .type foo,%gnu_indirect_function
6035 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
6036 then
6037 libc_cv_asm_gnu_indirect_function=yes
6038 else
6039 libc_cv_asm_gnu_indirect_function=no
6041 rm -f conftest*
6043 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_gnu_indirect_function" >&5
6044 $as_echo "$libc_cv_asm_gnu_indirect_function" >&6; }
6045 else
6046 libc_cv_asm_gnu_indirect_function=no
6048 if test x"$libc_cv_asm_gnu_indirect_function" != xyes; then
6049 { { $as_echo "$as_me:$LINENO: error: --enable-multi-arch support requires assembler and linker support" >&5
6050 $as_echo "$as_me: error: --enable-multi-arch support requires assembler and linker support" >&2;}
6051 { (exit 1); exit 1; }; }
6055 { $as_echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
6056 $as_echo_n "checking for .symver assembler directive... " >&6; }
6057 if test "${libc_cv_asm_symver_directive+set}" = set; then
6058 $as_echo_n "(cached) " >&6
6059 else
6060 cat > conftest.s <<EOF
6061 ${libc_cv_dot_text}
6062 _sym:
6063 .symver _sym,sym@VERS
6065 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6066 libc_cv_asm_symver_directive=yes
6067 else
6068 libc_cv_asm_symver_directive=no
6070 rm -f conftest*
6072 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
6073 $as_echo "$libc_cv_asm_symver_directive" >&6; }
6074 { $as_echo "$as_me:$LINENO: checking for ld --version-script" >&5
6075 $as_echo_n "checking for ld --version-script... " >&6; }
6076 if test "${libc_cv_ld_version_script_option+set}" = set; then
6077 $as_echo_n "(cached) " >&6
6078 else
6079 if test $libc_cv_asm_symver_directive = yes; then
6080 cat > conftest.s <<EOF
6081 ${libc_cv_dot_text}
6082 _sym:
6083 .symver _sym,sym@VERS
6085 cat > conftest.map <<EOF
6086 VERS_1 {
6087 global: sym;
6090 VERS_2 {
6091 global: sym;
6092 } VERS_1;
6094 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6095 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
6096 -o conftest.so conftest.o
6097 -nostartfiles -nostdlib
6098 -Wl,--version-script,conftest.map
6099 1>&5'
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 (eval $ac_try) 2>&5
6102 ac_status=$?
6103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; };
6105 then
6106 libc_cv_ld_version_script_option=yes
6107 else
6108 libc_cv_ld_version_script_option=no
6110 else
6111 libc_cv_ld_version_script_option=no
6113 else
6114 libc_cv_ld_version_script_option=no
6116 rm -f conftest*
6118 { $as_echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
6119 $as_echo "$libc_cv_ld_version_script_option" >&6; }
6120 if test $shared != no &&
6121 test $libc_cv_asm_symver_directive = yes &&
6122 test $libc_cv_ld_version_script_option = yes &&
6123 test $enable_versioning = yes; then
6124 VERSIONING=yes
6125 cat >>confdefs.h <<\_ACEOF
6126 #define DO_VERSIONING 1
6127 _ACEOF
6129 else
6130 VERSIONING=no
6134 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
6135 echo "\
6136 *** WARNING: You should not compile GNU libc without versioning. Not using
6137 *** versioning will introduce incompatibilities so that old binaries
6138 *** will not run anymore.
6139 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
6141 if test $elf = yes; then
6142 { $as_echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
6143 $as_echo_n "checking for .previous assembler directive... " >&6; }
6144 if test "${libc_cv_asm_previous_directive+set}" = set; then
6145 $as_echo_n "(cached) " >&6
6146 else
6147 cat > conftest.s <<EOF
6148 .section foo_section
6149 .previous
6151 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 (eval $ac_try) 2>&5
6154 ac_status=$?
6155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 libc_cv_asm_previous_directive=yes
6158 else
6159 libc_cv_asm_previous_directive=no
6161 rm -f conftest*
6163 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
6164 $as_echo "$libc_cv_asm_previous_directive" >&6; }
6165 if test $libc_cv_asm_previous_directive = yes; then
6166 cat >>confdefs.h <<\_ACEOF
6167 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
6168 _ACEOF
6170 else
6171 { $as_echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
6172 $as_echo_n "checking for .popsection assembler directive... " >&6; }
6173 if test "${libc_cv_asm_popsection_directive+set}" = set; then
6174 $as_echo_n "(cached) " >&6
6175 else
6176 cat > conftest.s <<EOF
6177 .pushsection foo_section
6178 .popsection
6180 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 (eval $ac_try) 2>&5
6183 ac_status=$?
6184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; }; then
6186 libc_cv_asm_popsection_directive=yes
6187 else
6188 libc_cv_asm_popsection_directive=no
6190 rm -f conftest*
6192 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
6193 $as_echo "$libc_cv_asm_popsection_directive" >&6; }
6194 if test $libc_cv_asm_popsection_directive = yes; then
6195 cat >>confdefs.h <<\_ACEOF
6196 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
6197 _ACEOF
6201 { $as_echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
6202 $as_echo_n "checking for .protected and .hidden assembler directive... " >&6; }
6203 if test "${libc_cv_asm_protected_directive+set}" = set; then
6204 $as_echo_n "(cached) " >&6
6205 else
6206 cat > conftest.s <<EOF
6207 .protected foo
6208 foo:
6209 .hidden bar
6210 bar:
6212 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 (eval $ac_try) 2>&5
6215 ac_status=$?
6216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }; then
6218 libc_cv_asm_protected_directive=yes
6219 else
6220 { { $as_echo "$as_me:$LINENO: error: assembler support for symbol visibility is required" >&5
6221 $as_echo "$as_me: error: assembler support for symbol visibility is required" >&2;}
6222 { (exit 1); exit 1; }; }
6224 rm -f conftest*
6226 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
6227 $as_echo "$libc_cv_asm_protected_directive" >&6; }
6229 if test $libc_cv_asm_protected_directive = yes; then
6230 { $as_echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
6231 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
6232 if test "${libc_cv_visibility_attribute+set}" = set; then
6233 $as_echo_n "(cached) " >&6
6234 else
6235 cat > conftest.c <<EOF
6236 int foo __attribute__ ((visibility ("hidden"))) = 1;
6237 int bar __attribute__ ((visibility ("protected"))) = 1;
6239 libc_cv_visibility_attribute=no
6240 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242 (eval $ac_try) 2>&5
6243 ac_status=$?
6244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; }; then
6246 if grep '\.hidden.*foo' conftest.s >/dev/null; then
6247 if grep '\.protected.*bar' conftest.s >/dev/null; then
6248 libc_cv_visibility_attribute=yes
6252 rm -f conftest.cs
6255 { $as_echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
6256 $as_echo "$libc_cv_visibility_attribute" >&6; }
6257 if test $libc_cv_visibility_attribute != yes; then
6258 { { $as_echo "$as_me:$LINENO: error: compiler support for visibility attribute is required" >&5
6259 $as_echo "$as_me: error: compiler support for visibility attribute is required" >&2;}
6260 { (exit 1); exit 1; }; }
6264 if test $libc_cv_visibility_attribute = yes; then
6265 { $as_echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
6266 $as_echo_n "checking for broken __attribute__((visibility()))... " >&6; }
6267 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
6268 $as_echo_n "(cached) " >&6
6269 else
6270 cat > conftest.c <<EOF
6271 int foo (int x);
6272 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
6273 int bar (int x) { return x; }
6275 libc_cv_broken_visibility_attribute=yes
6276 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
6277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278 (eval $ac_try) 2>&5
6279 ac_status=$?
6280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); }; }; then
6282 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
6283 libc_cv_broken_visibility_attribute=no
6286 rm -f conftest.c conftest.s
6289 { $as_echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
6290 $as_echo "$libc_cv_broken_visibility_attribute" >&6; }
6291 if test $libc_cv_broken_visibility_attribute = yes; then
6292 { { $as_echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
6293 $as_echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
6294 { (exit 1); exit 1; }; }
6298 { $as_echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
6299 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
6300 if test "${libc_cv_broken_alias_attribute+set}" = set; then
6301 $as_echo_n "(cached) " >&6
6302 else
6303 cat > conftest.c <<EOF
6304 extern int foo (int x) __asm ("xyzzy");
6305 int bar (int x) { return x; }
6306 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
6307 extern int dfoo;
6308 extern __typeof (dfoo) dfoo __asm ("abccb");
6309 int dfoo = 1;
6311 libc_cv_broken_alias_attribute=yes
6312 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 (eval $ac_try) 2>&5
6315 ac_status=$?
6316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; }; then
6318 if grep 'xyzzy' conftest.s >/dev/null &&
6319 grep 'abccb' conftest.s >/dev/null; then
6320 libc_cv_broken_alias_attribute=no
6323 rm -f conftest.c conftest.s
6326 { $as_echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
6327 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
6328 if test $libc_cv_broken_alias_attribute = yes; then
6329 { { $as_echo "$as_me:$LINENO: error: working alias attribute support required" >&5
6330 $as_echo "$as_me: error: working alias attribute support required" >&2;}
6331 { (exit 1); exit 1; }; }
6334 if test $libc_cv_visibility_attribute = yes; then
6335 { $as_echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
6336 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
6337 if test "${libc_cv_have_sdata_section+set}" = set; then
6338 $as_echo_n "(cached) " >&6
6339 else
6340 echo "int i;" > conftest.c
6341 libc_cv_have_sdata_section=no
6342 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
6343 | grep '\.sdata' >/dev/null; then
6344 libc_cv_have_sdata_section=yes
6346 rm -f conftest.c conftest.so
6349 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
6350 $as_echo "$libc_cv_have_sdata_section" >&6; }
6351 if test $libc_cv_have_sdata_section = yes; then
6352 cat >>confdefs.h <<\_ACEOF
6353 #define HAVE_SDATA_SECTION 1
6354 _ACEOF
6359 { $as_echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
6360 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
6361 if test "${libc_cv_initfini_array+set}" = set; then
6362 $as_echo_n "(cached) " >&6
6363 else
6364 cat > conftest.c <<EOF
6365 int _start (void) { return 0; }
6366 int __start (void) { return 0; }
6367 int foo (void) { return 1; }
6368 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
6370 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
6371 -static -nostartfiles -nostdlib 1>&5'
6372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373 (eval $ac_try) 2>&5
6374 ac_status=$?
6375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; }
6377 then
6378 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
6379 libc_cv_initfini_array=yes
6380 else
6381 libc_cv_initfini_array=no
6383 else
6384 libc_cv_initfini_array=no
6386 rm -f conftest*
6388 { $as_echo "$as_me:$LINENO: result: $libc_cv_initfini_array" >&5
6389 $as_echo "$libc_cv_initfini_array" >&6; }
6390 if test $libc_cv_initfini_array != yes; then
6391 { { $as_echo "$as_me:$LINENO: error: Need linker with .init_array/.fini_array support." >&5
6392 $as_echo "$as_me: error: Need linker with .init_array/.fini_array support." >&2;}
6393 { (exit 1); exit 1; }; }
6396 { $as_echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
6397 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
6398 if test "${libc_cv_cc_with_libunwind+set}" = set; then
6399 $as_echo_n "(cached) " >&6
6400 else
6402 cat > conftest.c <<EOF
6403 int main (void) { return 0; }
6405 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6406 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6407 libc_cv_cc_with_libunwind=yes
6408 else
6409 libc_cv_cc_with_libunwind=no
6411 rm -f conftest*
6413 { $as_echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
6414 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
6416 if test $libc_cv_cc_with_libunwind = yes; then
6417 cat >>confdefs.h <<\_ACEOF
6418 #define HAVE_CC_WITH_LIBUNWIND 1
6419 _ACEOF
6423 { $as_echo "$as_me:$LINENO: checking for -z nodelete option" >&5
6424 $as_echo_n "checking for -z nodelete option... " >&6; }
6425 if test "${libc_cv_z_nodelete+set}" = set; then
6426 $as_echo_n "(cached) " >&6
6427 else
6428 cat > conftest.c <<EOF
6429 int _start (void) { return 42; }
6431 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6432 -fPIC -shared -o conftest.so conftest.c
6433 -nostartfiles -nostdlib
6434 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 (eval $ac_try) 2>&5
6437 ac_status=$?
6438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; }
6440 then
6441 libc_cv_z_nodelete=yes
6442 else
6443 { { $as_echo "$as_me:$LINENO: error: linker with -z nodelete support required" >&5
6444 $as_echo "$as_me: error: linker with -z nodelete support required" >&2;}
6445 { (exit 1); exit 1; }; }
6447 rm -f conftest*
6449 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
6450 $as_echo "$libc_cv_z_nodelete" >&6; }
6452 { $as_echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
6453 $as_echo_n "checking for -z nodlopen option... " >&6; }
6454 if test "${libc_cv_z_nodlopen+set}" = set; then
6455 $as_echo_n "(cached) " >&6
6456 else
6457 cat > conftest.c <<EOF
6458 int _start (void) { return 42; }
6460 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6461 -fPIC -shared -o conftest.so conftest.c
6462 -nostartfiles -nostdlib
6463 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6465 (eval $ac_try) 2>&5
6466 ac_status=$?
6467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }
6469 then
6470 libc_cv_z_nodlopen=yes
6471 else
6472 { { $as_echo "$as_me:$LINENO: error: linker with -z nodlopen support required" >&5
6473 $as_echo "$as_me: error: linker with -z nodlopen support required" >&2;}
6474 { (exit 1); exit 1; }; }
6476 rm -f conftest*
6478 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
6479 $as_echo "$libc_cv_z_nodlopen" >&6; }
6481 { $as_echo "$as_me:$LINENO: checking for -z initfirst option" >&5
6482 $as_echo_n "checking for -z initfirst option... " >&6; }
6483 if test "${libc_cv_z_initfirst+set}" = set; then
6484 $as_echo_n "(cached) " >&6
6485 else
6486 cat > conftest.c <<EOF
6487 int _start (void) { return 42; }
6489 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6490 -fPIC -shared -o conftest.so conftest.c
6491 -nostartfiles -nostdlib
6492 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 (eval $ac_try) 2>&5
6495 ac_status=$?
6496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); }; }
6498 then
6499 libc_cv_z_initfirst=yes
6500 else
6501 { { $as_echo "$as_me:$LINENO: error: linker with -z initfirst support required" >&5
6502 $as_echo "$as_me: error: linker with -z initfirst support required" >&2;}
6503 { (exit 1); exit 1; }; }
6505 rm -f conftest*
6507 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
6508 $as_echo "$libc_cv_z_initfirst" >&6; }
6510 case "$base_machine" in
6511 i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*)
6512 { $as_echo "$as_me:$LINENO: checking for -z relro option" >&5
6513 $as_echo_n "checking for -z relro option... " >&6; }
6514 if test "${libc_cv_z_relro+set}" = set; then
6515 $as_echo_n "(cached) " >&6
6516 else
6517 libc_cv_z_relro=no
6518 if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 (eval $ac_try) 2>&5
6521 ac_status=$?
6522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; }
6524 then
6525 if { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 (eval $ac_try) 2>&5
6528 ac_status=$?
6529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }
6531 then
6532 libc_cv_z_relro=yes
6536 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
6537 $as_echo "$libc_cv_z_relro" >&6; }
6538 if test "$libc_cv_z_relro" = no; then
6539 { { $as_echo "$as_me:$LINENO: error: linker with -z relro support required" >&5
6540 $as_echo "$as_me: error: linker with -z relro support required" >&2;}
6541 { (exit 1); exit 1; }; }
6544 *) ;;
6545 esac
6547 { $as_echo "$as_me:$LINENO: checking for -Bgroup option" >&5
6548 $as_echo_n "checking for -Bgroup option... " >&6; }
6549 if test "${libc_cv_Bgroup+set}" = set; then
6550 $as_echo_n "(cached) " >&6
6551 else
6552 cat > conftest.c <<EOF
6553 int _start (void) { return 42; }
6555 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6556 -fPIC -shared -o conftest.so conftest.c
6557 -Wl,-Bgroup -nostdlib 1>&5'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 (eval $ac_try) 2>&5
6560 ac_status=$?
6561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; }
6563 then
6564 libc_cv_Bgroup=yes
6565 else
6566 libc_cv_Bgroup=no
6568 rm -f conftest*
6570 { $as_echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
6571 $as_echo "$libc_cv_Bgroup" >&6; }
6574 { $as_echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
6575 $as_echo_n "checking for libgcc_s suffix... " >&6; }
6576 if test "${libc_cv_libgcc_s_suffix+set}" = set; then
6577 $as_echo_n "(cached) " >&6
6578 else
6579 cat > conftest.c <<EOF
6580 int main (void) { return 0; }
6582 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6583 -fPIC -shared -shared-libgcc -o conftest.so \
6584 conftest.c -v 2>&1 >/dev/null \
6585 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6586 rm -f conftest*
6588 { $as_echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
6589 $as_echo "$libc_cv_libgcc_s_suffix" >&6; }
6592 { $as_echo "$as_me:$LINENO: checking for --as-needed option" >&5
6593 $as_echo_n "checking for --as-needed option... " >&6; }
6594 if test "${libc_cv_as_needed+set}" = set; then
6595 $as_echo_n "(cached) " >&6
6596 else
6597 cat > conftest.c <<EOF
6598 int main (void) { return 0; }
6600 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6601 -fPIC -shared -o conftest.so conftest.c
6602 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6603 -nostdlib 1>&5'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 (eval $ac_try) 2>&5
6606 ac_status=$?
6607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }
6609 then
6610 libc_cv_as_needed=yes
6611 else
6612 libc_cv_as_needed=no
6614 rm -f conftest*
6616 { $as_echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
6617 $as_echo "$libc_cv_as_needed" >&6; }
6620 ASFLAGS_config=
6621 { $as_echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
6622 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
6623 if test "${libc_cv_as_noexecstack+set}" = set; then
6624 $as_echo_n "(cached) " >&6
6625 else
6626 cat > conftest.c <<EOF
6627 void foo (void) { }
6629 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6630 -S -o conftest.s conftest.c 1>&5'
6631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632 (eval $ac_try) 2>&5
6633 ac_status=$?
6634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); }; } \
6636 && grep -q .note.GNU-stack conftest.s \
6637 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6638 -c -o conftest.o conftest.s 1>&5'
6639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640 (eval $ac_try) 2>&5
6641 ac_status=$?
6642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); }; }
6644 then
6645 libc_cv_as_noexecstack=yes
6646 else
6647 libc_cv_as_noexecstack=no
6649 rm -f conftest*
6651 { $as_echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
6652 $as_echo "$libc_cv_as_noexecstack" >&6; }
6653 if test $libc_cv_as_noexecstack = yes; then
6654 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6658 { $as_echo "$as_me:$LINENO: checking for -z combreloc" >&5
6659 $as_echo_n "checking for -z combreloc... " >&6; }
6660 if test "${libc_cv_z_combreloc+set}" = set; then
6661 $as_echo_n "(cached) " >&6
6662 else
6663 cat > conftest.c <<EOF
6664 extern int bar (int);
6665 extern int mumble;
6666 int foo (void) { return bar (mumble); }
6668 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6669 -fPIC -shared -o conftest.so conftest.c
6670 -nostdlib -nostartfiles
6671 -Wl,-z,combreloc 1>&5'
6672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 (eval $ac_try) 2>&5
6674 ac_status=$?
6675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }; }
6677 then
6678 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6679 libc_cv_z_combreloc=yes
6680 else
6681 libc_cv_z_combreloc=no
6683 else
6684 libc_cv_z_combreloc=no
6686 rm -f conftest*
6688 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
6689 $as_echo "$libc_cv_z_combreloc" >&6; }
6690 if test "$libc_cv_z_combreloc" = yes; then
6691 cat >>confdefs.h <<\_ACEOF
6692 #define HAVE_Z_COMBRELOC 1
6693 _ACEOF
6698 { $as_echo "$as_me:$LINENO: checking for -z execstack" >&5
6699 $as_echo_n "checking for -z execstack... " >&6; }
6700 if test "${libc_cv_z_execstack+set}" = set; then
6701 $as_echo_n "(cached) " >&6
6702 else
6703 cat > conftest.c <<EOF
6704 int _start (void) { return 42; }
6706 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6707 -fPIC -shared -o conftest.so conftest.c
6708 -Wl,-z,execstack -nostdlib
6709 1>&5'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 (eval $ac_try) 2>&5
6712 ac_status=$?
6713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }
6715 then
6716 libc_cv_z_execstack=yes
6717 else
6718 libc_cv_z_execstack=no
6720 rm -f conftest*
6722 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
6723 $as_echo "$libc_cv_z_execstack" >&6; }
6726 { $as_echo "$as_me:$LINENO: checking for -fpie" >&5
6727 $as_echo_n "checking for -fpie... " >&6; }
6728 if test "${libc_cv_fpie+set}" = set; then
6729 $as_echo_n "(cached) " >&6
6730 else
6731 cat > conftest.c <<EOF
6732 int foo;
6733 main () { return 0;}
6735 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6736 -o conftest conftest.c 1>&5'
6737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738 (eval $ac_try) 2>&5
6739 ac_status=$?
6740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; }
6742 then
6743 libc_cv_fpie=yes
6744 else
6745 libc_cv_fpie=no
6747 rm -f conftest*
6749 { $as_echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
6750 $as_echo "$libc_cv_fpie" >&6; }
6754 { $as_echo "$as_me:$LINENO: checking for --hash-style option" >&5
6755 $as_echo_n "checking for --hash-style option... " >&6; }
6756 if test "${libc_cv_hashstyle+set}" = set; then
6757 $as_echo_n "(cached) " >&6
6758 else
6759 cat > conftest.c <<EOF
6760 int _start (void) { return 42; }
6762 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6763 -fPIC -shared -o conftest.so conftest.c
6764 -Wl,--hash-style=both -nostdlib 1>&5'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 (eval $ac_try) 2>&5
6767 ac_status=$?
6768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }
6770 then
6771 libc_cv_hashstyle=yes
6772 else
6773 libc_cv_hashstyle=no
6775 rm -f conftest*
6777 { $as_echo "$as_me:$LINENO: result: $libc_cv_hashstyle" >&5
6778 $as_echo "$libc_cv_hashstyle" >&6; }
6782 { $as_echo "$as_me:$LINENO: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6783 $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
6784 if test "${libc_cv_fno_toplevel_reorder+set}" = set; then
6785 $as_echo_n "(cached) " >&6
6786 else
6787 cat > conftest.c <<EOF
6788 int foo;
6790 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6791 conftest.c 1>&5'
6792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 (eval $ac_try) 2>&5
6794 ac_status=$?
6795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); }; }
6797 then
6798 libc_cv_fno_toplevel_reorder=yes
6799 else
6800 libc_cv_fno_toplevel_reorder=no
6802 rm -f conftest*
6804 { $as_echo "$as_me:$LINENO: result: $libc_cv_fno_toplevel_reorder" >&5
6805 $as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
6806 if test $libc_cv_fno_toplevel_reorder = yes; then
6807 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6808 else
6809 fno_unit_at_a_time=-fno-unit-at-a-time
6813 { $as_echo "$as_me:$LINENO: checking for -fstack-protector" >&5
6814 $as_echo_n "checking for -fstack-protector... " >&6; }
6815 if test "${libc_cv_ssp+set}" = set; then
6816 $as_echo_n "(cached) " >&6
6817 else
6818 cat > conftest.c <<EOF
6819 int foo;
6820 main () { return 0;}
6822 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
6823 -o conftest conftest.c 1>&5'
6824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 (eval $ac_try) 2>&5
6826 ac_status=$?
6827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); }; }
6829 then
6830 libc_cv_ssp=yes
6831 else
6832 libc_cv_ssp=no
6834 rm -f conftest*
6836 { $as_echo "$as_me:$LINENO: result: $libc_cv_ssp" >&5
6837 $as_echo "$libc_cv_ssp" >&6; }
6840 { $as_echo "$as_me:$LINENO: checking for -fgnu89-inline" >&5
6841 $as_echo_n "checking for -fgnu89-inline... " >&6; }
6842 if test "${libc_cv_gnu89_inline+set}" = set; then
6843 $as_echo_n "(cached) " >&6
6844 else
6845 cat > conftest.c <<EOF
6846 int foo;
6847 #ifdef __GNUC_GNU_INLINE__
6848 main () { return 0;}
6849 #else
6850 #error
6851 #endif
6853 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6854 -o conftest.s conftest.c 1>&5'
6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856 (eval $ac_try) 2>&5
6857 ac_status=$?
6858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; }
6860 then
6861 libc_cv_gnu89_inline=yes
6862 else
6863 libc_cv_gnu89_inline=no
6865 rm -f conftest*
6867 { $as_echo "$as_me:$LINENO: result: $libc_cv_gnu89_inline" >&5
6868 $as_echo "$libc_cv_gnu89_inline" >&6; }
6869 if test $libc_cv_gnu89_inline = yes; then
6870 libc_cv_gnu89_inline=-fgnu89-inline
6871 else
6872 libc_cv_gnu89_inline=
6876 if test $elf != yes; then
6877 { $as_echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
6878 $as_echo_n "checking for .init and .fini sections... " >&6; }
6879 if test "${libc_cv_have_initfini+set}" = set; then
6880 $as_echo_n "(cached) " >&6
6881 else
6882 cat >conftest.$ac_ext <<_ACEOF
6883 /* confdefs.h. */
6884 _ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6890 main ()
6892 asm (".section .init");
6893 asm (".section .fini");
6894 asm ("${libc_cv_dot_text}");
6896 return 0;
6898 _ACEOF
6899 rm -f conftest.$ac_objext
6900 if { (ac_try="$ac_compile"
6901 case "(($ac_try" in
6902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903 *) ac_try_echo=$ac_try;;
6904 esac
6905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6906 $as_echo "$ac_try_echo") >&5
6907 (eval "$ac_compile") 2>conftest.er1
6908 ac_status=$?
6909 grep -v '^ *+' conftest.er1 >conftest.err
6910 rm -f conftest.er1
6911 cat conftest.err >&5
6912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } && {
6914 test -z "$ac_c_werror_flag" ||
6915 test ! -s conftest.err
6916 } && test -s conftest.$ac_objext; then
6917 libc_cv_have_initfini=yes
6918 else
6919 $as_echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6922 libc_cv_have_initfini=no
6925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
6928 $as_echo "$libc_cv_have_initfini" >&6; }
6929 if test $libc_cv_have_initfini = yes; then
6930 cat >>confdefs.h <<\_ACEOF
6931 #define HAVE_INITFINI 1
6932 _ACEOF
6937 if test $elf = yes; then
6938 { $as_echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
6939 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
6940 if test "${libc_cv_have_section_quotes+set}" = set; then
6941 $as_echo_n "(cached) " >&6
6942 else
6943 cat > conftest.c <<EOF
6944 static const int foo
6945 __attribute__ ((section ("bar"))) = 1;
6947 if ${CC-cc} -S conftest.c -o conftest.s; then
6948 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6949 libc_cv_have_section_quotes=yes
6950 else
6951 libc_cv_have_section_quotes=no
6953 else
6954 libc_cv_have_section_quotes=unknown
6956 rm -f conftest.cs
6959 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
6960 $as_echo "$libc_cv_have_section_quotes" >&6; }
6961 if test $libc_cv_have_section_quotes = yes; then
6962 cat >>confdefs.h <<\_ACEOF
6963 #define HAVE_SECTION_QUOTES 1
6964 _ACEOF
6971 if test $elf = yes; then
6972 libc_cv_asm_underscores=no
6973 else
6974 if test $ac_cv_prog_cc_works = yes; then
6975 { $as_echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6976 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
6977 if test "${libc_cv_asm_underscores+set}" = set; then
6978 $as_echo_n "(cached) " >&6
6979 else
6980 cat >conftest.$ac_ext <<_ACEOF
6981 /* confdefs.h. */
6982 _ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6986 asm ("_glibc_foobar:");
6988 main ()
6990 glibc_foobar ();
6992 return 0;
6994 _ACEOF
6995 rm -f conftest.$ac_objext conftest$ac_exeext
6996 if { (ac_try="$ac_link"
6997 case "(($ac_try" in
6998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6999 *) ac_try_echo=$ac_try;;
7000 esac
7001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7002 $as_echo "$ac_try_echo") >&5
7003 (eval "$ac_link") 2>conftest.er1
7004 ac_status=$?
7005 grep -v '^ *+' conftest.er1 >conftest.err
7006 rm -f conftest.er1
7007 cat conftest.err >&5
7008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } && {
7010 test -z "$ac_c_werror_flag" ||
7011 test ! -s conftest.err
7012 } && test -s conftest$ac_exeext && {
7013 test "$cross_compiling" = yes ||
7014 $as_test_x conftest$ac_exeext
7015 }; then
7016 libc_cv_asm_underscores=yes
7017 else
7018 $as_echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7021 libc_cv_asm_underscores=no
7024 rm -rf conftest.dSYM
7025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7026 conftest$ac_exeext conftest.$ac_ext
7028 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
7029 $as_echo "$libc_cv_asm_underscores" >&6; }
7030 else
7031 { $as_echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
7032 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
7033 if test "${libc_cv_asm_underscores+set}" = set; then
7034 $as_echo_n "(cached) " >&6
7035 else
7036 cat > conftest.$ac_ext <<EOF
7037 #line $LINENO "configure"
7038 #include "confdefs.h"
7039 void underscore_test(void) {
7040 return; }
7042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7043 (eval $ac_compile) 2>&5
7044 ac_status=$?
7045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; then
7047 if grep _underscore_test conftest* >/dev/null; then
7048 rm -f conftest*
7049 libc_cv_asm_underscores=yes
7050 else
7051 rm -f conftest*
7052 libc_cv_asm_underscores=no
7054 else
7055 echo "configure: failed program was:" >&5
7056 cat conftest.$ac_ext >&5
7057 rm -f conftest*
7058 libc_cv_asm_underscores=no
7060 rm -f conftest*
7062 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
7063 $as_echo "$libc_cv_asm_underscores" >&6; }
7066 if test $libc_cv_asm_underscores = no; then
7067 cat >>confdefs.h <<\_ACEOF
7068 #define NO_UNDERSCORES 1
7069 _ACEOF
7073 if test $elf = yes; then
7074 libc_cv_weak_symbols=yes
7077 { $as_echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
7078 $as_echo_n "checking for assembler .weak directive... " >&6; }
7079 if test "${libc_cv_asm_weak_directive+set}" = set; then
7080 $as_echo_n "(cached) " >&6
7081 else
7082 cat > conftest.s <<EOF
7083 ${libc_cv_dot_text}
7084 ${libc_cv_asm_global_directive} foo
7085 foo:
7086 .weak foo
7087 .weak bar; bar = foo
7089 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091 (eval $ac_try) 2>&5
7092 ac_status=$?
7093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; }; then
7095 libc_cv_asm_weak_directive=yes
7096 else
7097 libc_cv_asm_weak_directive=no
7099 rm -f conftest*
7101 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
7102 $as_echo "$libc_cv_asm_weak_directive" >&6; }
7104 if test $libc_cv_asm_weak_directive = no; then
7105 { $as_echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
7106 $as_echo_n "checking for assembler .weakext directive... " >&6; }
7107 if test "${libc_cv_asm_weakext_directive+set}" = set; then
7108 $as_echo_n "(cached) " >&6
7109 else
7110 cat > conftest.s <<EOF
7111 ${libc_cv_dot_text}
7112 ${libc_cv_asm_global_directive} foo
7113 foo:
7114 .weakext bar foo
7115 .weakext baz
7116 ${libc_cv_asm_global_directive} baz
7117 baz:
7119 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 (eval $ac_try) 2>&5
7122 ac_status=$?
7123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; }; then
7125 libc_cv_asm_weakext_directive=yes
7126 else
7127 libc_cv_asm_weakext_directive=no
7129 rm -f conftest*
7131 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
7132 $as_echo "$libc_cv_asm_weakext_directive" >&6; }
7134 fi # no .weak
7136 if test $libc_cv_asm_weak_directive = yes; then
7137 cat >>confdefs.h <<\_ACEOF
7138 #define HAVE_ASM_WEAK_DIRECTIVE 1
7139 _ACEOF
7141 elif test $libc_cv_asm_weakext_directive = yes; then
7142 cat >>confdefs.h <<\_ACEOF
7143 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
7144 _ACEOF
7148 { $as_echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
7149 $as_echo_n "checking whether CFI directives are supported... " >&6; }
7150 if test "${libc_cv_asm_cfi_directives+set}" = set; then
7151 $as_echo_n "(cached) " >&6
7152 else
7153 case $machine in
7154 sparc/sparc64*) cfi_offset=2047;;
7155 *) cfi_offset=0;;
7156 esac
7157 cat > conftest.s <<EOF
7158 .text
7159 .type func,%function
7160 func:
7161 .cfi_startproc
7162 .cfi_remember_state
7163 .cfi_rel_offset 1, $cfi_offset
7164 .cfi_endproc
7166 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 (eval $ac_try) 2>&5
7169 ac_status=$?
7170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; }; then
7172 libc_cv_asm_cfi_directives=yes
7173 else
7174 libc_cv_asm_cfi_directives=no
7176 rm -f conftest*
7178 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
7179 $as_echo "$libc_cv_asm_cfi_directives" >&6; }
7180 if test $libc_cv_asm_cfi_directives = yes; then
7181 cat >>confdefs.h <<\_ACEOF
7182 #define HAVE_ASM_CFI_DIRECTIVES 1
7183 _ACEOF
7187 { $as_echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
7188 $as_echo_n "checking for ld --no-whole-archive... " >&6; }
7189 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
7190 $as_echo_n "(cached) " >&6
7191 else
7192 cat > conftest.c <<\EOF
7193 _start () {}
7194 int __eh_pc;
7195 __throw () {}
7197 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7198 -nostdlib -nostartfiles -Wl,--no-whole-archive
7199 -o conftest conftest.c 1>&5'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 (eval $ac_try) 2>&5
7202 ac_status=$?
7203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; }; then
7205 libc_cv_ld_no_whole_archive=yes
7206 else
7207 libc_cv_ld_no_whole_archive=no
7209 rm -f conftest*
7211 { $as_echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
7212 $as_echo "$libc_cv_ld_no_whole_archive" >&6; }
7213 if test $libc_cv_ld_no_whole_archive = yes; then
7214 no_whole_archive=-Wl,--no-whole-archive
7217 { $as_echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
7218 $as_echo_n "checking for gcc -fexceptions... " >&6; }
7219 if test "${libc_cv_gcc_exceptions+set}" = set; then
7220 $as_echo_n "(cached) " >&6
7221 else
7222 cat > conftest.c <<\EOF
7223 _start () {}
7224 int __eh_pc;
7225 __throw () {}
7227 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7228 -nostdlib -nostartfiles -fexceptions
7229 -o conftest conftest.c 1>&5'
7230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231 (eval $ac_try) 2>&5
7232 ac_status=$?
7233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; }; then
7235 libc_cv_gcc_exceptions=yes
7236 else
7237 libc_cv_gcc_exceptions=no
7239 rm -f conftest*
7241 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
7242 $as_echo "$libc_cv_gcc_exceptions" >&6; }
7243 if test $libc_cv_gcc_exceptions = yes; then
7244 exceptions=-fexceptions
7247 if test "$host_cpu" = powerpc ; then
7248 # Check for a bug present in at least versions 2.8.x of GCC
7249 # and versions 1.0.x of EGCS.
7250 { $as_echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
7251 $as_echo_n "checking whether clobbering cr0 causes problems... " >&6; }
7252 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
7253 $as_echo_n "(cached) " >&6
7254 else
7255 cat >conftest.$ac_ext <<_ACEOF
7256 /* confdefs.h. */
7257 _ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7261 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
7263 main ()
7267 return 0;
7269 _ACEOF
7270 rm -f conftest.$ac_objext
7271 if { (ac_try="$ac_compile"
7272 case "(($ac_try" in
7273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7274 *) ac_try_echo=$ac_try;;
7275 esac
7276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7277 $as_echo "$ac_try_echo") >&5
7278 (eval "$ac_compile") 2>conftest.er1
7279 ac_status=$?
7280 grep -v '^ *+' conftest.er1 >conftest.err
7281 rm -f conftest.er1
7282 cat conftest.err >&5
7283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } && {
7285 test -z "$ac_c_werror_flag" ||
7286 test ! -s conftest.err
7287 } && test -s conftest.$ac_objext; then
7288 libc_cv_c_asmcr0_bug='no'
7289 else
7290 $as_echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7293 libc_cv_c_asmcr0_bug='yes'
7296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7298 { $as_echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
7299 $as_echo "$libc_cv_c_asmcr0_bug" >&6; }
7300 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
7301 cat >>confdefs.h <<\_ACEOF
7302 #define BROKEN_PPC_ASM_CR0 1
7303 _ACEOF
7308 { $as_echo "$as_me:$LINENO: checking for __builtin_expect" >&5
7309 $as_echo_n "checking for __builtin_expect... " >&6; }
7310 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
7311 $as_echo_n "(cached) " >&6
7312 else
7313 cat > conftest.c <<EOF
7314 #line $LINENO "configure"
7315 int foo (int a)
7317 a = __builtin_expect (a, 10);
7318 return a == 10 ? 0 : 1;
7321 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
7322 -o conftest conftest.c -lgcc >&5'
7323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324 (eval $ac_try) 2>&5
7325 ac_status=$?
7326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); }; }; then
7328 libc_cv_gcc_builtin_expect=yes
7329 else
7330 libc_cv_gcc_builtin_expect=no
7332 rm -f conftest*
7334 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
7335 $as_echo "$libc_cv_gcc_builtin_expect" >&6; }
7336 if test "$libc_cv_gcc_builtin_expect" = yes; then
7337 cat >>confdefs.h <<\_ACEOF
7338 #define HAVE_BUILTIN_EXPECT 1
7339 _ACEOF
7343 { $as_echo "$as_me:$LINENO: checking for __builtin_memset" >&5
7344 $as_echo_n "checking for __builtin_memset... " >&6; }
7345 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
7346 $as_echo_n "(cached) " >&6
7347 else
7348 cat > conftest.c <<\EOF
7349 void zero (void *x)
7351 __builtin_memset (x, 0, 1000);
7354 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 (eval $ac_try) 2>&5
7357 ac_status=$?
7358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; };
7360 then
7361 libc_cv_gcc_builtin_memset=no
7362 else
7363 libc_cv_gcc_builtin_memset=yes
7365 rm -f conftest*
7367 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
7368 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
7369 if test "$libc_cv_gcc_builtin_memset" = yes ; then
7370 cat >>confdefs.h <<\_ACEOF
7371 #define HAVE_BUILTIN_MEMSET 1
7372 _ACEOF
7376 { $as_echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
7377 $as_echo_n "checking for redirection of built-in functions... " >&6; }
7378 if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
7379 $as_echo_n "(cached) " >&6
7380 else
7381 cat > conftest.c <<\EOF
7382 extern char *strstr (const char *, const char *) __asm ("my_strstr");
7383 char *foo (const char *a, const char *b)
7385 return __builtin_strstr (a, b);
7388 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390 (eval $ac_try) 2>&5
7391 ac_status=$?
7392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; };
7394 then
7395 libc_cv_gcc_builtin_redirection=yes
7396 else
7397 libc_cv_gcc_builtin_redirection=no
7399 rm -f conftest*
7401 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
7402 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
7403 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
7404 cat >>confdefs.h <<\_ACEOF
7405 #define HAVE_BUILTIN_REDIRECTION 1
7406 _ACEOF
7410 if test "x$use__thread" != xno; then
7411 { $as_echo "$as_me:$LINENO: checking for __thread" >&5
7412 $as_echo_n "checking for __thread... " >&6; }
7413 if test "${libc_cv_gcc___thread+set}" = set; then
7414 $as_echo_n "(cached) " >&6
7415 else
7416 cat > conftest.c <<\EOF
7417 __thread int a = 42;
7419 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
7420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7421 (eval $ac_try) 2>&5
7422 ac_status=$?
7423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); }; }; then
7425 libc_cv_gcc___thread=yes
7426 else
7427 libc_cv_gcc___thread=no
7429 rm -f conftest*
7431 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
7432 $as_echo "$libc_cv_gcc___thread" >&6; }
7433 if test "$libc_cv_gcc___thread" = yes; then
7434 cat >>confdefs.h <<\_ACEOF
7435 #define HAVE___THREAD 1
7436 _ACEOF
7439 else
7440 libc_cv_gcc___thread=no
7443 if test "$libc_cv_gcc___thread" = yes; then
7444 { $as_echo "$as_me:$LINENO: checking for tls_model attribute" >&5
7445 $as_echo_n "checking for tls_model attribute... " >&6; }
7446 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
7447 $as_echo_n "(cached) " >&6
7448 else
7449 cat > conftest.c <<\EOF
7450 extern __thread int a __attribute__((tls_model ("initial-exec")));
7452 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 (eval $ac_try) 2>&5
7455 ac_status=$?
7456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; }; then
7458 libc_cv_gcc_tls_model_attr=yes
7459 else
7460 libc_cv_gcc_tls_model_attr=no
7462 rm -f conftest*
7464 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
7465 $as_echo "$libc_cv_gcc_tls_model_attr" >&6; }
7466 if test "$libc_cv_gcc_tls_model_attr" = yes; then
7467 cat >>confdefs.h <<\_ACEOF
7468 #define HAVE_TLS_MODEL_ATTRIBUTE 1
7469 _ACEOF
7474 if test -n "$submachine"; then
7475 { $as_echo "$as_me:$LINENO: checking for compiler option for CPU variant" >&5
7476 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
7477 if test "${libc_cv_cc_submachine+set}" = set; then
7478 $as_echo_n "(cached) " >&6
7479 else
7480 libc_cv_cc_submachine=no
7481 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7482 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7484 (eval $ac_try) 2>&5
7485 ac_status=$?
7486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; }; then
7488 libc_cv_cc_submachine="$opt"
7489 break
7491 done
7493 { $as_echo "$as_me:$LINENO: result: $libc_cv_cc_submachine" >&5
7494 $as_echo "$libc_cv_cc_submachine" >&6; }
7495 if test "x$libc_cv_cc_submachine" = xno; then
7496 { { $as_echo "$as_me:$LINENO: error: ${CC-cc} does not support $submachine" >&5
7497 $as_echo "$as_me: error: ${CC-cc} does not support $submachine" >&2;}
7498 { (exit 1); exit 1; }; }
7503 { $as_echo "$as_me:$LINENO: checking for libgd" >&5
7504 $as_echo_n "checking for libgd... " >&6; }
7505 if test "$with_gd" != "no"; then
7506 old_CFLAGS="$CFLAGS"
7507 CFLAGS="$CFLAGS $libgd_include"
7508 old_LDFLAGS="$LDFLAGS"
7509 LDFLAGS="$LDFLAGS $libgd_ldflags"
7510 old_LIBS="$LIBS"
7511 LIBS="$LIBS -lgd -lpng -lz -lm"
7512 cat >conftest.$ac_ext <<_ACEOF
7513 /* confdefs.h. */
7514 _ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h. */
7518 #include <gd.h>
7520 main ()
7522 gdImagePng (0, 0)
7524 return 0;
7526 _ACEOF
7527 rm -f conftest.$ac_objext conftest$ac_exeext
7528 if { (ac_try="$ac_link"
7529 case "(($ac_try" in
7530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7531 *) ac_try_echo=$ac_try;;
7532 esac
7533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7534 $as_echo "$ac_try_echo") >&5
7535 (eval "$ac_link") 2>conftest.er1
7536 ac_status=$?
7537 grep -v '^ *+' conftest.er1 >conftest.err
7538 rm -f conftest.er1
7539 cat conftest.err >&5
7540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } && {
7542 test -z "$ac_c_werror_flag" ||
7543 test ! -s conftest.err
7544 } && test -s conftest$ac_exeext && {
7545 test "$cross_compiling" = yes ||
7546 $as_test_x conftest$ac_exeext
7547 }; then
7548 LIBGD=yes
7549 else
7550 $as_echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7553 LIBGD=no
7556 rm -rf conftest.dSYM
7557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7558 conftest$ac_exeext conftest.$ac_ext
7559 CFLAGS="$old_CFLAGS"
7560 LDFLAGS="$old_LDFLAGS"
7561 LIBS="$old_LIBS"
7562 else
7563 LIBGD=no
7565 { $as_echo "$as_me:$LINENO: result: $LIBGD" >&5
7566 $as_echo "$LIBGD" >&6; }
7569 # SELinux detection
7570 if test x$with_selinux = xno ; then
7571 have_selinux=no;
7572 else
7573 # See if we have the SELinux library
7574 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
7575 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
7576 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
7577 $as_echo_n "(cached) " >&6
7578 else
7579 ac_check_lib_save_LIBS=$LIBS
7580 LIBS="-lselinux $LIBS"
7581 cat >conftest.$ac_ext <<_ACEOF
7582 /* confdefs.h. */
7583 _ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h. */
7588 /* Override any GCC internal prototype to avoid an error.
7589 Use char because int might match the return type of a GCC
7590 builtin and then its argument prototype would still apply. */
7591 #ifdef __cplusplus
7592 extern "C"
7593 #endif
7594 char is_selinux_enabled ();
7596 main ()
7598 return is_selinux_enabled ();
7600 return 0;
7602 _ACEOF
7603 rm -f conftest.$ac_objext conftest$ac_exeext
7604 if { (ac_try="$ac_link"
7605 case "(($ac_try" in
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7608 esac
7609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7610 $as_echo "$ac_try_echo") >&5
7611 (eval "$ac_link") 2>conftest.er1
7612 ac_status=$?
7613 grep -v '^ *+' conftest.er1 >conftest.err
7614 rm -f conftest.er1
7615 cat conftest.err >&5
7616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } && {
7618 test -z "$ac_c_werror_flag" ||
7619 test ! -s conftest.err
7620 } && test -s conftest$ac_exeext && {
7621 test "$cross_compiling" = yes ||
7622 $as_test_x conftest$ac_exeext
7623 }; then
7624 ac_cv_lib_selinux_is_selinux_enabled=yes
7625 else
7626 $as_echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7629 ac_cv_lib_selinux_is_selinux_enabled=no
7632 rm -rf conftest.dSYM
7633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7634 conftest$ac_exeext conftest.$ac_ext
7635 LIBS=$ac_check_lib_save_LIBS
7637 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7638 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7639 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
7640 have_selinux=yes
7641 else
7642 have_selinux=no
7645 # See if we have the SELinux header with the NSCD permissions in it.
7646 if test x$have_selinux = xyes ; then
7647 { $as_echo "$as_me:$LINENO: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7648 $as_echo_n "checking for NSCD Flask permissions in selinux/av_permissions.h... " >&6; }
7649 cat >conftest.$ac_ext <<_ACEOF
7650 /* confdefs.h. */
7651 _ACEOF
7652 cat confdefs.h >>conftest.$ac_ext
7653 cat >>conftest.$ac_ext <<_ACEOF
7654 /* end confdefs.h. */
7655 #include <selinux/av_permissions.h>
7657 main ()
7659 #ifdef NSCD__SHMEMHOST
7660 return 0;
7661 #else
7662 #error NSCD__SHMEMHOST not defined
7663 #endif
7665 return 0;
7667 _ACEOF
7668 rm -f conftest.$ac_objext
7669 if { (ac_try="$ac_compile"
7670 case "(($ac_try" in
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7673 esac
7674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7675 $as_echo "$ac_try_echo") >&5
7676 (eval "$ac_compile") 2>conftest.er1
7677 ac_status=$?
7678 grep -v '^ *+' conftest.er1 >conftest.err
7679 rm -f conftest.er1
7680 cat conftest.err >&5
7681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } && {
7683 test -z "$ac_c_werror_flag" ||
7684 test ! -s conftest.err
7685 } && test -s conftest.$ac_objext; then
7686 have_selinux=yes
7687 else
7688 $as_echo "$as_me: failed program was:" >&5
7689 sed 's/^/| /' conftest.$ac_ext >&5
7691 have_selinux=no
7694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695 { $as_echo "$as_me:$LINENO: result: $have_selinux" >&5
7696 $as_echo "$have_selinux" >&6; }
7699 if test x$with_selinux = xyes ; then
7700 if test x$have_selinux = xno ; then
7701 { { $as_echo "$as_me:$LINENO: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&5
7702 $as_echo "$as_me: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&2;}
7703 { (exit 1); exit 1; }; }
7707 # Check if we're building with SELinux support.
7708 if test "x$have_selinux" = xyes; then
7710 cat >>confdefs.h <<\_ACEOF
7711 #define HAVE_SELINUX 1
7712 _ACEOF
7715 # See if we have the libaudit library
7716 { $as_echo "$as_me:$LINENO: checking for audit_log_user_avc_message in -laudit" >&5
7717 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
7718 if test "${ac_cv_lib_audit_audit_log_user_avc_message+set}" = set; then
7719 $as_echo_n "(cached) " >&6
7720 else
7721 ac_check_lib_save_LIBS=$LIBS
7722 LIBS="-laudit $LIBS"
7723 cat >conftest.$ac_ext <<_ACEOF
7724 /* confdefs.h. */
7725 _ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7730 /* Override any GCC internal prototype to avoid an error.
7731 Use char because int might match the return type of a GCC
7732 builtin and then its argument prototype would still apply. */
7733 #ifdef __cplusplus
7734 extern "C"
7735 #endif
7736 char audit_log_user_avc_message ();
7738 main ()
7740 return audit_log_user_avc_message ();
7742 return 0;
7744 _ACEOF
7745 rm -f conftest.$ac_objext conftest$ac_exeext
7746 if { (ac_try="$ac_link"
7747 case "(($ac_try" in
7748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7749 *) ac_try_echo=$ac_try;;
7750 esac
7751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7752 $as_echo "$ac_try_echo") >&5
7753 (eval "$ac_link") 2>conftest.er1
7754 ac_status=$?
7755 grep -v '^ *+' conftest.er1 >conftest.err
7756 rm -f conftest.er1
7757 cat conftest.err >&5
7758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } && {
7760 test -z "$ac_c_werror_flag" ||
7761 test ! -s conftest.err
7762 } && test -s conftest$ac_exeext && {
7763 test "$cross_compiling" = yes ||
7764 $as_test_x conftest$ac_exeext
7765 }; then
7766 ac_cv_lib_audit_audit_log_user_avc_message=yes
7767 else
7768 $as_echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7771 ac_cv_lib_audit_audit_log_user_avc_message=no
7774 rm -rf conftest.dSYM
7775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7776 conftest$ac_exeext conftest.$ac_ext
7777 LIBS=$ac_check_lib_save_LIBS
7779 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7780 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7781 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = x""yes; then
7782 have_libaudit=yes
7783 else
7784 have_libaudit=no
7787 if test "x$have_libaudit" = xyes; then
7789 cat >>confdefs.h <<\_ACEOF
7790 #define HAVE_LIBAUDIT 1
7791 _ACEOF
7796 # See if we have the libcap library
7797 { $as_echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
7798 $as_echo_n "checking for cap_init in -lcap... " >&6; }
7799 if test "${ac_cv_lib_cap_cap_init+set}" = set; then
7800 $as_echo_n "(cached) " >&6
7801 else
7802 ac_check_lib_save_LIBS=$LIBS
7803 LIBS="-lcap $LIBS"
7804 cat >conftest.$ac_ext <<_ACEOF
7805 /* confdefs.h. */
7806 _ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h. */
7811 /* Override any GCC internal prototype to avoid an error.
7812 Use char because int might match the return type of a GCC
7813 builtin and then its argument prototype would still apply. */
7814 #ifdef __cplusplus
7815 extern "C"
7816 #endif
7817 char cap_init ();
7819 main ()
7821 return cap_init ();
7823 return 0;
7825 _ACEOF
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (ac_try="$ac_link"
7828 case "(($ac_try" in
7829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830 *) ac_try_echo=$ac_try;;
7831 esac
7832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7833 $as_echo "$ac_try_echo") >&5
7834 (eval "$ac_link") 2>conftest.er1
7835 ac_status=$?
7836 grep -v '^ *+' conftest.er1 >conftest.err
7837 rm -f conftest.er1
7838 cat conftest.err >&5
7839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } && {
7841 test -z "$ac_c_werror_flag" ||
7842 test ! -s conftest.err
7843 } && test -s conftest$ac_exeext && {
7844 test "$cross_compiling" = yes ||
7845 $as_test_x conftest$ac_exeext
7846 }; then
7847 ac_cv_lib_cap_cap_init=yes
7848 else
7849 $as_echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7852 ac_cv_lib_cap_cap_init=no
7855 rm -rf conftest.dSYM
7856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7857 conftest$ac_exeext conftest.$ac_ext
7858 LIBS=$ac_check_lib_save_LIBS
7860 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
7861 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
7862 if test "x$ac_cv_lib_cap_cap_init" = x""yes; then
7863 have_libcap=yes
7864 else
7865 have_libcap=no
7868 if test "x$have_libcap" = xyes; then
7870 cat >>confdefs.h <<\_ACEOF
7871 #define HAVE_LIBCAP 1
7872 _ACEOF
7880 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7881 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7882 if test "${ac_cv_path_GREP+set}" = set; then
7883 $as_echo_n "(cached) " >&6
7884 else
7885 if test -z "$GREP"; then
7886 ac_path_GREP_found=false
7887 # Loop through the user's path and test for each of PROGNAME-LIST
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7891 IFS=$as_save_IFS
7892 test -z "$as_dir" && as_dir=.
7893 for ac_prog in grep ggrep; do
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7896 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7897 # Check for GNU ac_path_GREP and select it if it is found.
7898 # Check for GNU $ac_path_GREP
7899 case `"$ac_path_GREP" --version 2>&1` in
7900 *GNU*)
7901 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7903 ac_count=0
7904 $as_echo_n 0123456789 >"conftest.in"
7905 while :
7907 cat "conftest.in" "conftest.in" >"conftest.tmp"
7908 mv "conftest.tmp" "conftest.in"
7909 cp "conftest.in" "conftest.nl"
7910 $as_echo 'GREP' >> "conftest.nl"
7911 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7913 ac_count=`expr $ac_count + 1`
7914 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7915 # Best one so far, save it but keep looking for a better one
7916 ac_cv_path_GREP="$ac_path_GREP"
7917 ac_path_GREP_max=$ac_count
7919 # 10*(2^10) chars as input seems more than enough
7920 test $ac_count -gt 10 && break
7921 done
7922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7923 esac
7925 $ac_path_GREP_found && break 3
7926 done
7927 done
7928 done
7929 IFS=$as_save_IFS
7930 if test -z "$ac_cv_path_GREP"; then
7931 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7932 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7933 { (exit 1); exit 1; }; }
7935 else
7936 ac_cv_path_GREP=$GREP
7940 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7941 $as_echo "$ac_cv_path_GREP" >&6; }
7942 GREP="$ac_cv_path_GREP"
7945 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
7946 $as_echo_n "checking for egrep... " >&6; }
7947 if test "${ac_cv_path_EGREP+set}" = set; then
7948 $as_echo_n "(cached) " >&6
7949 else
7950 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7951 then ac_cv_path_EGREP="$GREP -E"
7952 else
7953 if test -z "$EGREP"; then
7954 ac_path_EGREP_found=false
7955 # Loop through the user's path and test for each of PROGNAME-LIST
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7959 IFS=$as_save_IFS
7960 test -z "$as_dir" && as_dir=.
7961 for ac_prog in egrep; do
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7964 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7965 # Check for GNU ac_path_EGREP and select it if it is found.
7966 # Check for GNU $ac_path_EGREP
7967 case `"$ac_path_EGREP" --version 2>&1` in
7968 *GNU*)
7969 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7971 ac_count=0
7972 $as_echo_n 0123456789 >"conftest.in"
7973 while :
7975 cat "conftest.in" "conftest.in" >"conftest.tmp"
7976 mv "conftest.tmp" "conftest.in"
7977 cp "conftest.in" "conftest.nl"
7978 $as_echo 'EGREP' >> "conftest.nl"
7979 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7980 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7981 ac_count=`expr $ac_count + 1`
7982 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7983 # Best one so far, save it but keep looking for a better one
7984 ac_cv_path_EGREP="$ac_path_EGREP"
7985 ac_path_EGREP_max=$ac_count
7987 # 10*(2^10) chars as input seems more than enough
7988 test $ac_count -gt 10 && break
7989 done
7990 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7991 esac
7993 $ac_path_EGREP_found && break 3
7994 done
7995 done
7996 done
7997 IFS=$as_save_IFS
7998 if test -z "$ac_cv_path_EGREP"; then
7999 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8000 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8001 { (exit 1); exit 1; }; }
8003 else
8004 ac_cv_path_EGREP=$EGREP
8009 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8010 $as_echo "$ac_cv_path_EGREP" >&6; }
8011 EGREP="$ac_cv_path_EGREP"
8014 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8015 $as_echo_n "checking for ANSI C header files... " >&6; }
8016 if test "${ac_cv_header_stdc+set}" = set; then
8017 $as_echo_n "(cached) " >&6
8018 else
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 #include <stdlib.h>
8026 #include <stdarg.h>
8027 #include <string.h>
8028 #include <float.h>
8031 main ()
8035 return 0;
8037 _ACEOF
8038 rm -f conftest.$ac_objext
8039 if { (ac_try="$ac_compile"
8040 case "(($ac_try" in
8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8043 esac
8044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8045 $as_echo "$ac_try_echo") >&5
8046 (eval "$ac_compile") 2>conftest.er1
8047 ac_status=$?
8048 grep -v '^ *+' conftest.er1 >conftest.err
8049 rm -f conftest.er1
8050 cat conftest.err >&5
8051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } && {
8053 test -z "$ac_c_werror_flag" ||
8054 test ! -s conftest.err
8055 } && test -s conftest.$ac_objext; then
8056 ac_cv_header_stdc=yes
8057 else
8058 $as_echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8061 ac_cv_header_stdc=no
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066 if test $ac_cv_header_stdc = yes; then
8067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8068 cat >conftest.$ac_ext <<_ACEOF
8069 /* confdefs.h. */
8070 _ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h. */
8074 #include <string.h>
8076 _ACEOF
8077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8078 $EGREP "memchr" >/dev/null 2>&1; then
8080 else
8081 ac_cv_header_stdc=no
8083 rm -f conftest*
8087 if test $ac_cv_header_stdc = yes; then
8088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8089 cat >conftest.$ac_ext <<_ACEOF
8090 /* confdefs.h. */
8091 _ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8095 #include <stdlib.h>
8097 _ACEOF
8098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8099 $EGREP "free" >/dev/null 2>&1; then
8101 else
8102 ac_cv_header_stdc=no
8104 rm -f conftest*
8108 if test $ac_cv_header_stdc = yes; then
8109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8110 if test "$cross_compiling" = yes; then
8112 else
8113 cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h. */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8119 #include <ctype.h>
8120 #include <stdlib.h>
8121 #if ((' ' & 0x0FF) == 0x020)
8122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8124 #else
8125 # define ISLOWER(c) \
8126 (('a' <= (c) && (c) <= 'i') \
8127 || ('j' <= (c) && (c) <= 'r') \
8128 || ('s' <= (c) && (c) <= 'z'))
8129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8130 #endif
8132 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8134 main ()
8136 int i;
8137 for (i = 0; i < 256; i++)
8138 if (XOR (islower (i), ISLOWER (i))
8139 || toupper (i) != TOUPPER (i))
8140 return 2;
8141 return 0;
8143 _ACEOF
8144 rm -f conftest$ac_exeext
8145 if { (ac_try="$ac_link"
8146 case "(($ac_try" in
8147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8149 esac
8150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8151 $as_echo "$ac_try_echo") >&5
8152 (eval "$ac_link") 2>&5
8153 ac_status=$?
8154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8156 { (case "(($ac_try" in
8157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158 *) ac_try_echo=$ac_try;;
8159 esac
8160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8161 $as_echo "$ac_try_echo") >&5
8162 (eval "$ac_try") 2>&5
8163 ac_status=$?
8164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; }; then
8167 else
8168 $as_echo "$as_me: program exited with status $ac_status" >&5
8169 $as_echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8172 ( exit $ac_status )
8173 ac_cv_header_stdc=no
8175 rm -rf conftest.dSYM
8176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8182 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8183 $as_echo "$ac_cv_header_stdc" >&6; }
8184 if test $ac_cv_header_stdc = yes; then
8186 cat >>confdefs.h <<\_ACEOF
8187 #define STDC_HEADERS 1
8188 _ACEOF
8192 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8202 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8203 inttypes.h stdint.h unistd.h
8205 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8206 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8207 $as_echo_n "checking for $ac_header... " >&6; }
8208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8209 $as_echo_n "(cached) " >&6
8210 else
8211 cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h. */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8217 $ac_includes_default
8219 #include <$ac_header>
8220 _ACEOF
8221 rm -f conftest.$ac_objext
8222 if { (ac_try="$ac_compile"
8223 case "(($ac_try" in
8224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8226 esac
8227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8228 $as_echo "$ac_try_echo") >&5
8229 (eval "$ac_compile") 2>conftest.er1
8230 ac_status=$?
8231 grep -v '^ *+' conftest.er1 >conftest.err
8232 rm -f conftest.er1
8233 cat conftest.err >&5
8234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } && {
8236 test -z "$ac_c_werror_flag" ||
8237 test ! -s conftest.err
8238 } && test -s conftest.$ac_objext; then
8239 eval "$as_ac_Header=yes"
8240 else
8241 $as_echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8244 eval "$as_ac_Header=no"
8247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8249 ac_res=`eval 'as_val=${'$as_ac_Header'}
8250 $as_echo "$as_val"'`
8251 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8252 $as_echo "$ac_res" >&6; }
8253 as_val=`eval 'as_val=${'$as_ac_Header'}
8254 $as_echo "$as_val"'`
8255 if test "x$as_val" = x""yes; then
8256 cat >>confdefs.h <<_ACEOF
8257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8258 _ACEOF
8262 done
8265 # The cast to long int works around a bug in the HP C Compiler
8266 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8267 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8268 # This bug is HP SR number 8606223364.
8269 { $as_echo "$as_me:$LINENO: checking size of long double" >&5
8270 $as_echo_n "checking size of long double... " >&6; }
8271 if test "${ac_cv_sizeof_long_double+set}" = set; then
8272 $as_echo_n "(cached) " >&6
8273 else
8274 if test "$cross_compiling" = yes; then
8275 # Depending upon the size, compute the lo and hi bounds.
8276 cat >conftest.$ac_ext <<_ACEOF
8277 /* confdefs.h. */
8278 _ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h. */
8282 $ac_includes_default
8284 main ()
8286 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
8287 test_array [0] = 0
8290 return 0;
8292 _ACEOF
8293 rm -f conftest.$ac_objext
8294 if { (ac_try="$ac_compile"
8295 case "(($ac_try" in
8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297 *) ac_try_echo=$ac_try;;
8298 esac
8299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8300 $as_echo "$ac_try_echo") >&5
8301 (eval "$ac_compile") 2>conftest.er1
8302 ac_status=$?
8303 grep -v '^ *+' conftest.er1 >conftest.err
8304 rm -f conftest.er1
8305 cat conftest.err >&5
8306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } && {
8308 test -z "$ac_c_werror_flag" ||
8309 test ! -s conftest.err
8310 } && test -s conftest.$ac_objext; then
8311 ac_lo=0 ac_mid=0
8312 while :; do
8313 cat >conftest.$ac_ext <<_ACEOF
8314 /* confdefs.h. */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 $ac_includes_default
8321 main ()
8323 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
8324 test_array [0] = 0
8327 return 0;
8329 _ACEOF
8330 rm -f conftest.$ac_objext
8331 if { (ac_try="$ac_compile"
8332 case "(($ac_try" in
8333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334 *) ac_try_echo=$ac_try;;
8335 esac
8336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8337 $as_echo "$ac_try_echo") >&5
8338 (eval "$ac_compile") 2>conftest.er1
8339 ac_status=$?
8340 grep -v '^ *+' conftest.er1 >conftest.err
8341 rm -f conftest.er1
8342 cat conftest.err >&5
8343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } && {
8345 test -z "$ac_c_werror_flag" ||
8346 test ! -s conftest.err
8347 } && test -s conftest.$ac_objext; then
8348 ac_hi=$ac_mid; break
8349 else
8350 $as_echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8353 ac_lo=`expr $ac_mid + 1`
8354 if test $ac_lo -le $ac_mid; then
8355 ac_lo= ac_hi=
8356 break
8358 ac_mid=`expr 2 '*' $ac_mid + 1`
8361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8362 done
8363 else
8364 $as_echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.$ac_ext >&5
8367 cat >conftest.$ac_ext <<_ACEOF
8368 /* confdefs.h. */
8369 _ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8373 $ac_includes_default
8375 main ()
8377 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
8378 test_array [0] = 0
8381 return 0;
8383 _ACEOF
8384 rm -f conftest.$ac_objext
8385 if { (ac_try="$ac_compile"
8386 case "(($ac_try" in
8387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388 *) ac_try_echo=$ac_try;;
8389 esac
8390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8391 $as_echo "$ac_try_echo") >&5
8392 (eval "$ac_compile") 2>conftest.er1
8393 ac_status=$?
8394 grep -v '^ *+' conftest.er1 >conftest.err
8395 rm -f conftest.er1
8396 cat conftest.err >&5
8397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } && {
8399 test -z "$ac_c_werror_flag" ||
8400 test ! -s conftest.err
8401 } && test -s conftest.$ac_objext; then
8402 ac_hi=-1 ac_mid=-1
8403 while :; do
8404 cat >conftest.$ac_ext <<_ACEOF
8405 /* confdefs.h. */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8410 $ac_includes_default
8412 main ()
8414 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
8415 test_array [0] = 0
8418 return 0;
8420 _ACEOF
8421 rm -f conftest.$ac_objext
8422 if { (ac_try="$ac_compile"
8423 case "(($ac_try" in
8424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425 *) ac_try_echo=$ac_try;;
8426 esac
8427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8428 $as_echo "$ac_try_echo") >&5
8429 (eval "$ac_compile") 2>conftest.er1
8430 ac_status=$?
8431 grep -v '^ *+' conftest.er1 >conftest.err
8432 rm -f conftest.er1
8433 cat conftest.err >&5
8434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } && {
8436 test -z "$ac_c_werror_flag" ||
8437 test ! -s conftest.err
8438 } && test -s conftest.$ac_objext; then
8439 ac_lo=$ac_mid; break
8440 else
8441 $as_echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8444 ac_hi=`expr '(' $ac_mid ')' - 1`
8445 if test $ac_mid -le $ac_hi; then
8446 ac_lo= ac_hi=
8447 break
8449 ac_mid=`expr 2 '*' $ac_mid`
8452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8453 done
8454 else
8455 $as_echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8458 ac_lo= ac_hi=
8461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8465 # Binary search between lo and hi bounds.
8466 while test "x$ac_lo" != "x$ac_hi"; do
8467 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8468 cat >conftest.$ac_ext <<_ACEOF
8469 /* confdefs.h. */
8470 _ACEOF
8471 cat confdefs.h >>conftest.$ac_ext
8472 cat >>conftest.$ac_ext <<_ACEOF
8473 /* end confdefs.h. */
8474 $ac_includes_default
8476 main ()
8478 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
8479 test_array [0] = 0
8482 return 0;
8484 _ACEOF
8485 rm -f conftest.$ac_objext
8486 if { (ac_try="$ac_compile"
8487 case "(($ac_try" in
8488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8489 *) ac_try_echo=$ac_try;;
8490 esac
8491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8492 $as_echo "$ac_try_echo") >&5
8493 (eval "$ac_compile") 2>conftest.er1
8494 ac_status=$?
8495 grep -v '^ *+' conftest.er1 >conftest.err
8496 rm -f conftest.er1
8497 cat conftest.err >&5
8498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } && {
8500 test -z "$ac_c_werror_flag" ||
8501 test ! -s conftest.err
8502 } && test -s conftest.$ac_objext; then
8503 ac_hi=$ac_mid
8504 else
8505 $as_echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8508 ac_lo=`expr '(' $ac_mid ')' + 1`
8511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8512 done
8513 case $ac_lo in
8514 ?*) ac_cv_sizeof_long_double=$ac_lo;;
8515 '') if test "$ac_cv_type_long_double" = yes; then
8516 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8518 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8519 See \`config.log' for more details." >&5
8520 $as_echo "$as_me: error: cannot compute sizeof (long double)
8521 See \`config.log' for more details." >&2;}
8522 { (exit 77); exit 77; }; }; }
8523 else
8524 ac_cv_sizeof_long_double=0
8525 fi ;;
8526 esac
8527 else
8528 cat >conftest.$ac_ext <<_ACEOF
8529 /* confdefs.h. */
8530 _ACEOF
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h. */
8534 $ac_includes_default
8535 static long int longval () { return (long int) (sizeof (long double)); }
8536 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
8537 #include <stdio.h>
8538 #include <stdlib.h>
8540 main ()
8543 FILE *f = fopen ("conftest.val", "w");
8544 if (! f)
8545 return 1;
8546 if (((long int) (sizeof (long double))) < 0)
8548 long int i = longval ();
8549 if (i != ((long int) (sizeof (long double))))
8550 return 1;
8551 fprintf (f, "%ld", i);
8553 else
8555 unsigned long int i = ulongval ();
8556 if (i != ((long int) (sizeof (long double))))
8557 return 1;
8558 fprintf (f, "%lu", i);
8560 /* Do not output a trailing newline, as this causes \r\n confusion
8561 on some platforms. */
8562 return ferror (f) || fclose (f) != 0;
8565 return 0;
8567 _ACEOF
8568 rm -f conftest$ac_exeext
8569 if { (ac_try="$ac_link"
8570 case "(($ac_try" in
8571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572 *) ac_try_echo=$ac_try;;
8573 esac
8574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8575 $as_echo "$ac_try_echo") >&5
8576 (eval "$ac_link") 2>&5
8577 ac_status=$?
8578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8580 { (case "(($ac_try" in
8581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582 *) ac_try_echo=$ac_try;;
8583 esac
8584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8585 $as_echo "$ac_try_echo") >&5
8586 (eval "$ac_try") 2>&5
8587 ac_status=$?
8588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; }; then
8590 ac_cv_sizeof_long_double=`cat conftest.val`
8591 else
8592 $as_echo "$as_me: program exited with status $ac_status" >&5
8593 $as_echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8596 ( exit $ac_status )
8597 if test "$ac_cv_type_long_double" = yes; then
8598 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8600 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8601 See \`config.log' for more details." >&5
8602 $as_echo "$as_me: error: cannot compute sizeof (long double)
8603 See \`config.log' for more details." >&2;}
8604 { (exit 77); exit 77; }; }; }
8605 else
8606 ac_cv_sizeof_long_double=0
8609 rm -rf conftest.dSYM
8610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8612 rm -f conftest.val
8614 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
8615 $as_echo "$ac_cv_sizeof_long_double" >&6; }
8619 cat >>confdefs.h <<_ACEOF
8620 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8621 _ACEOF
8624 sizeof_long_double=$ac_cv_sizeof_long_double
8627 ### End of automated tests.
8628 ### Now run sysdeps configure fragments.
8630 # They also can set these variables.
8631 use_ldconfig=no
8632 ldd_rewrite_script=no
8633 libc_cv_sysconfdir=$sysconfdir
8634 libc_cv_gcc_unwind_find_fde=no
8635 libc_cv_idn=no
8637 # Iterate over all the sysdep directories we will use, running their
8638 # configure fragments, and looking for a uname implementation.
8639 uname=
8640 for dir in $sysnames; do
8641 case $dir in
8642 /*) dest=$dir ;;
8643 *) dest=$srcdir/$dir ;;
8644 esac
8645 if test -r $dest/configure; then
8646 { $as_echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
8647 $as_echo "running configure fragment for $dir" >&6; }
8648 . $dest/configure
8651 if test -z "$uname"; then
8652 if test -r $dest/uname.c ||
8653 test -r $dest/uname.S ||
8654 { test -r $dest/syscalls.list &&
8655 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
8656 uname=$dir
8659 done
8661 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
8662 cat >>confdefs.h <<\_ACEOF
8663 #define EXPORT_UNWIND_FIND_FDE 1
8664 _ACEOF
8669 # If we will use the generic uname implementation, we must figure out what
8670 # it will say by examining the system, and write the results in config-name.h.
8671 if test "$uname" = "sysdeps/generic"; then
8673 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
8674 if test $uname_sysname != $config_os; then
8675 config_release=`echo $config_os | sed s/$uname_sysname//`
8678 { $as_echo "$as_me:$LINENO: checking OS release for uname" >&5
8679 $as_echo_n "checking OS release for uname... " >&6; }
8680 if test "${libc_cv_uname_release+set}" = set; then
8681 $as_echo_n "(cached) " >&6
8682 else
8683 if test -r /vmunix; then
8684 kernel_id=`strings /vmunix | grep UNIX`
8685 elif test -r /dynix; then
8686 kernel_id=`strings /dynix | grep DYNIX`
8687 else
8688 kernel_id=
8691 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
8692 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
8693 != x$config_release; then
8694 # The configuration release is a substring of the kernel release.
8695 libc_cv_uname_release=$kernel_release
8696 elif test x$config_release != x; then
8697 libc_cv_uname_release=$config_release
8698 elif test x$kernel_release != x; then
8699 libc_cv_uname_release=$kernel_release
8700 else
8701 libc_cv_uname_release=unknown
8704 { $as_echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
8705 $as_echo "$libc_cv_uname_release" >&6; }
8706 uname_release="$libc_cv_uname_release"
8708 { $as_echo "$as_me:$LINENO: checking OS version for uname" >&5
8709 $as_echo_n "checking OS version for uname... " >&6; }
8710 if test "${libc_cv_uname_version+set}" = set; then
8711 $as_echo_n "(cached) " >&6
8712 else
8713 if test -r /vmunix; then
8714 kernel_id=`strings /vmunix | grep UNIX`
8715 elif test -r /dynix; then
8716 kernel_id=`strings /dynix | grep DYNIX`
8717 else
8718 kernel_id=
8721 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
8722 if test -n "$kernel_version"; then
8723 libc_cv_uname_version="$kernel_version"
8724 else
8725 libc_cv_uname_version=unknown
8728 { $as_echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
8729 $as_echo "$libc_cv_uname_version" >&6; }
8730 uname_version="$libc_cv_uname_version"
8732 config_uname=config-name.h:config-name.in
8733 else
8734 # For non-generic uname, we don't need to create config-name.h at all.
8735 config_uname=
8738 cat >>confdefs.h <<\_ACEOF
8739 #define USE_IN_LIBIO 1
8740 _ACEOF
8743 # Test for old glibc 2.0.x headers so that they can be removed properly
8744 # Search only in includedir.
8745 { $as_echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
8746 $as_echo_n "checking for old glibc 2.0.x headers... " >&6; }
8747 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
8748 then
8749 old_glibc_headers=yes
8750 else
8751 old_glibc_headers=no
8753 { $as_echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
8754 $as_echo "$old_glibc_headers" >&6; }
8755 if test ${old_glibc_headers} = yes; then
8756 { $as_echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
8757 $as_echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
8758 { $as_echo "$as_me:$LINENO: WARNING: *** be removed." >&5
8759 $as_echo "$as_me: WARNING: *** be removed." >&2;}
8777 if test $elf = yes; then
8778 cat >>confdefs.h <<\_ACEOF
8779 #define HAVE_ELF 1
8780 _ACEOF
8783 if test $xcoff = yes; then
8784 cat >>confdefs.h <<\_ACEOF
8785 #define HAVE_XCOFF 1
8786 _ACEOF
8792 if test $shared = default; then
8793 shared=$elf
8796 { $as_echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
8797 $as_echo_n "checking whether -fPIC is default... " >&6; }
8798 if test "${libc_cv_pic_default+set}" = set; then
8799 $as_echo_n "(cached) " >&6
8800 else
8801 libc_cv_pic_default=yes
8802 cat > conftest.c <<EOF
8803 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
8804 # error PIC is default.
8805 #endif
8807 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
8808 libc_cv_pic_default=no
8810 rm -f conftest.*
8812 { $as_echo "$as_me:$LINENO: result: $libc_cv_pic_default" >&5
8813 $as_echo "$libc_cv_pic_default" >&6; }
8826 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
8827 config_makefile=
8828 else
8829 config_makefile=Makefile
8832 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
8833 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8837 ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
8839 ac_config_commands="$ac_config_commands default"
8841 cat >confcache <<\_ACEOF
8842 # This file is a shell script that caches the results of configure
8843 # tests run on this system so they can be shared between configure
8844 # scripts and configure runs, see configure's option --config-cache.
8845 # It is not useful on other systems. If it contains results you don't
8846 # want to keep, you may remove or edit it.
8848 # config.status only pays attention to the cache file if you give it
8849 # the --recheck option to rerun configure.
8851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8853 # following values.
8855 _ACEOF
8857 # The following way of writing the cache mishandles newlines in values,
8858 # but we know of no workaround that is simple, portable, and efficient.
8859 # So, we kill variables containing newlines.
8860 # Ultrix sh set writes to stderr and can't be redirected directly,
8861 # and sets the high bit in the cache file unless we assign to the vars.
8863 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8864 eval ac_val=\$$ac_var
8865 case $ac_val in #(
8866 *${as_nl}*)
8867 case $ac_var in #(
8868 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
8869 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8870 esac
8871 case $ac_var in #(
8872 _ | IFS | as_nl) ;; #(
8873 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8874 *) $as_unset $ac_var ;;
8875 esac ;;
8876 esac
8877 done
8879 (set) 2>&1 |
8880 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8881 *${as_nl}ac_space=\ *)
8882 # `set' does not quote correctly, so add quotes (double-quote
8883 # substitution turns \\\\ into \\, and sed turns \\ into \).
8884 sed -n \
8885 "s/'/'\\\\''/g;
8886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8887 ;; #(
8889 # `set' quotes correctly as required by POSIX, so do not add quotes.
8890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8892 esac |
8893 sort
8895 sed '
8896 /^ac_cv_env_/b end
8897 t clear
8898 :clear
8899 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8900 t end
8901 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8902 :end' >>confcache
8903 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8904 if test -w "$cache_file"; then
8905 test "x$cache_file" != "x/dev/null" &&
8906 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
8907 $as_echo "$as_me: updating cache $cache_file" >&6;}
8908 cat confcache >$cache_file
8909 else
8910 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8911 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8914 rm -f confcache
8916 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8917 # Let make expand exec_prefix.
8918 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8920 DEFS=-DHAVE_CONFIG_H
8922 ac_libobjs=
8923 ac_ltlibobjs=
8924 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8925 # 1. Remove the extension, and $U if already installed.
8926 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8927 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8928 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8929 # will be set to the directory where LIBOBJS objects are built.
8930 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8931 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8932 done
8933 LIBOBJS=$ac_libobjs
8935 LTLIBOBJS=$ac_ltlibobjs
8939 : ${CONFIG_STATUS=./config.status}
8940 ac_write_fail=0
8941 ac_clean_files_save=$ac_clean_files
8942 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8943 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8944 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8945 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8946 #! $SHELL
8947 # Generated by $as_me.
8948 # Run this file to recreate the current configuration.
8949 # Compiler output produced by configure, useful for debugging
8950 # configure, is in config.log if it exists.
8952 debug=false
8953 ac_cs_recheck=false
8954 ac_cs_silent=false
8955 SHELL=\${CONFIG_SHELL-$SHELL}
8956 _ACEOF
8958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8959 ## --------------------- ##
8960 ## M4sh Initialization. ##
8961 ## --------------------- ##
8963 # Be more Bourne compatible
8964 DUALCASE=1; export DUALCASE # for MKS sh
8965 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8966 emulate sh
8967 NULLCMD=:
8968 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8969 # is contrary to our usage. Disable this feature.
8970 alias -g '${1+"$@"}'='"$@"'
8971 setopt NO_GLOB_SUBST
8972 else
8973 case `(set -o) 2>/dev/null` in
8974 *posix*) set -o posix ;;
8975 esac
8982 # PATH needs CR
8983 # Avoid depending upon Character Ranges.
8984 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8985 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8986 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8987 as_cr_digits='0123456789'
8988 as_cr_alnum=$as_cr_Letters$as_cr_digits
8990 as_nl='
8992 export as_nl
8993 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8994 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8995 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8996 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8997 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8998 as_echo='printf %s\n'
8999 as_echo_n='printf %s'
9000 else
9001 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9002 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9003 as_echo_n='/usr/ucb/echo -n'
9004 else
9005 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9006 as_echo_n_body='eval
9007 arg=$1;
9008 case $arg in
9009 *"$as_nl"*)
9010 expr "X$arg" : "X\\(.*\\)$as_nl";
9011 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9012 esac;
9013 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9015 export as_echo_n_body
9016 as_echo_n='sh -c $as_echo_n_body as_echo'
9018 export as_echo_body
9019 as_echo='sh -c $as_echo_body as_echo'
9022 # The user is always right.
9023 if test "${PATH_SEPARATOR+set}" != set; then
9024 PATH_SEPARATOR=:
9025 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9026 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9027 PATH_SEPARATOR=';'
9031 # Support unset when possible.
9032 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9033 as_unset=unset
9034 else
9035 as_unset=false
9039 # IFS
9040 # We need space, tab and new line, in precisely that order. Quoting is
9041 # there to prevent editors from complaining about space-tab.
9042 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9043 # splitting by setting IFS to empty value.)
9044 IFS=" "" $as_nl"
9046 # Find who we are. Look in the path if we contain no directory separator.
9047 case $0 in
9048 *[\\/]* ) as_myself=$0 ;;
9049 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050 for as_dir in $PATH
9052 IFS=$as_save_IFS
9053 test -z "$as_dir" && as_dir=.
9054 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9055 done
9056 IFS=$as_save_IFS
9059 esac
9060 # We did not find ourselves, most probably we were run as `sh COMMAND'
9061 # in which case we are not to be found in the path.
9062 if test "x$as_myself" = x; then
9063 as_myself=$0
9065 if test ! -f "$as_myself"; then
9066 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9067 { (exit 1); exit 1; }
9070 # Work around bugs in pre-3.0 UWIN ksh.
9071 for as_var in ENV MAIL MAILPATH
9072 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9073 done
9074 PS1='$ '
9075 PS2='> '
9076 PS4='+ '
9078 # NLS nuisances.
9079 LC_ALL=C
9080 export LC_ALL
9081 LANGUAGE=C
9082 export LANGUAGE
9084 # Required to use basename.
9085 if expr a : '\(a\)' >/dev/null 2>&1 &&
9086 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9087 as_expr=expr
9088 else
9089 as_expr=false
9092 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9093 as_basename=basename
9094 else
9095 as_basename=false
9099 # Name of the executable.
9100 as_me=`$as_basename -- "$0" ||
9101 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9102 X"$0" : 'X\(//\)$' \| \
9103 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9104 $as_echo X/"$0" |
9105 sed '/^.*\/\([^/][^/]*\)\/*$/{
9106 s//\1/
9109 /^X\/\(\/\/\)$/{
9110 s//\1/
9113 /^X\/\(\/\).*/{
9114 s//\1/
9117 s/.*/./; q'`
9119 # CDPATH.
9120 $as_unset CDPATH
9124 as_lineno_1=$LINENO
9125 as_lineno_2=$LINENO
9126 test "x$as_lineno_1" != "x$as_lineno_2" &&
9127 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9129 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9130 # uniformly replaced by the line number. The first 'sed' inserts a
9131 # line-number line after each line using $LINENO; the second 'sed'
9132 # does the real work. The second script uses 'N' to pair each
9133 # line-number line with the line containing $LINENO, and appends
9134 # trailing '-' during substitution so that $LINENO is not a special
9135 # case at line end.
9136 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9137 # scripts with optimization help from Paolo Bonzini. Blame Lee
9138 # E. McMahon (1931-1989) for sed's syntax. :-)
9139 sed -n '
9141 /[$]LINENO/=
9142 ' <$as_myself |
9143 sed '
9144 s/[$]LINENO.*/&-/
9145 t lineno
9147 :lineno
9149 :loop
9150 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9151 t loop
9152 s/-\n.*//
9153 ' >$as_me.lineno &&
9154 chmod +x "$as_me.lineno" ||
9155 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9156 { (exit 1); exit 1; }; }
9158 # Don't try to exec as it changes $[0], causing all sort of problems
9159 # (the dirname of $[0] is not the place where we might find the
9160 # original and so on. Autoconf is especially sensitive to this).
9161 . "./$as_me.lineno"
9162 # Exit status is that of the last command.
9163 exit
9167 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9168 as_dirname=dirname
9169 else
9170 as_dirname=false
9173 ECHO_C= ECHO_N= ECHO_T=
9174 case `echo -n x` in
9175 -n*)
9176 case `echo 'x\c'` in
9177 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9178 *) ECHO_C='\c';;
9179 esac;;
9181 ECHO_N='-n';;
9182 esac
9183 if expr a : '\(a\)' >/dev/null 2>&1 &&
9184 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9185 as_expr=expr
9186 else
9187 as_expr=false
9190 rm -f conf$$ conf$$.exe conf$$.file
9191 if test -d conf$$.dir; then
9192 rm -f conf$$.dir/conf$$.file
9193 else
9194 rm -f conf$$.dir
9195 mkdir conf$$.dir 2>/dev/null
9197 if (echo >conf$$.file) 2>/dev/null; then
9198 if ln -s conf$$.file conf$$ 2>/dev/null; then
9199 as_ln_s='ln -s'
9200 # ... but there are two gotchas:
9201 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9202 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9203 # In both cases, we have to default to `cp -p'.
9204 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9205 as_ln_s='cp -p'
9206 elif ln conf$$.file conf$$ 2>/dev/null; then
9207 as_ln_s=ln
9208 else
9209 as_ln_s='cp -p'
9211 else
9212 as_ln_s='cp -p'
9214 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9215 rmdir conf$$.dir 2>/dev/null
9217 if mkdir -p . 2>/dev/null; then
9218 as_mkdir_p=:
9219 else
9220 test -d ./-p && rmdir ./-p
9221 as_mkdir_p=false
9224 if test -x / >/dev/null 2>&1; then
9225 as_test_x='test -x'
9226 else
9227 if ls -dL / >/dev/null 2>&1; then
9228 as_ls_L_option=L
9229 else
9230 as_ls_L_option=
9232 as_test_x='
9233 eval sh -c '\''
9234 if test -d "$1"; then
9235 test -d "$1/.";
9236 else
9237 case $1 in
9238 -*)set "./$1";;
9239 esac;
9240 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9241 ???[sx]*):;;*)false;;esac;fi
9242 '\'' sh
9245 as_executable_p=$as_test_x
9247 # Sed expression to map a string onto a valid CPP name.
9248 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9250 # Sed expression to map a string onto a valid variable name.
9251 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9254 exec 6>&1
9256 # Save the log message, to keep $[0] and so on meaningful, and to
9257 # report actual input values of CONFIG_FILES etc. instead of their
9258 # values after options handling.
9259 ac_log="
9260 This file was extended by GNU C Library $as_me (see version.h), which was
9261 generated by GNU Autoconf 2.63. Invocation command line was
9263 CONFIG_FILES = $CONFIG_FILES
9264 CONFIG_HEADERS = $CONFIG_HEADERS
9265 CONFIG_LINKS = $CONFIG_LINKS
9266 CONFIG_COMMANDS = $CONFIG_COMMANDS
9267 $ $0 $@
9269 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9272 _ACEOF
9274 case $ac_config_files in *"
9275 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9276 esac
9278 case $ac_config_headers in *"
9279 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9280 esac
9283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9284 # Files that config.status was made for.
9285 config_files="$ac_config_files"
9286 config_headers="$ac_config_headers"
9287 config_commands="$ac_config_commands"
9289 _ACEOF
9291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9292 ac_cs_usage="\
9293 \`$as_me' instantiates files from templates according to the
9294 current configuration.
9296 Usage: $0 [OPTION]... [FILE]...
9298 -h, --help print this help, then exit
9299 -V, --version print version number and configuration settings, then exit
9300 -q, --quiet, --silent
9301 do not print progress messages
9302 -d, --debug don't remove temporary files
9303 --recheck update $as_me by reconfiguring in the same conditions
9304 --file=FILE[:TEMPLATE]
9305 instantiate the configuration file FILE
9306 --header=FILE[:TEMPLATE]
9307 instantiate the configuration header FILE
9309 Configuration files:
9310 $config_files
9312 Configuration headers:
9313 $config_headers
9315 Configuration commands:
9316 $config_commands
9318 Report bugs to <bug-autoconf@gnu.org>."
9320 _ACEOF
9321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9322 ac_cs_version="\\
9323 GNU C Library config.status (see version.h)
9324 configured by $0, generated by GNU Autoconf 2.63,
9325 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9327 Copyright (C) 2008 Free Software Foundation, Inc.
9328 This config.status script is free software; the Free Software Foundation
9329 gives unlimited permission to copy, distribute and modify it."
9331 ac_pwd='$ac_pwd'
9332 srcdir='$srcdir'
9333 INSTALL='$INSTALL'
9334 AWK='$AWK'
9335 test -n "\$AWK" || AWK=awk
9336 _ACEOF
9338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9339 # The default lists apply if the user does not specify any file.
9340 ac_need_defaults=:
9341 while test $# != 0
9343 case $1 in
9344 --*=*)
9345 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9346 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9347 ac_shift=:
9350 ac_option=$1
9351 ac_optarg=$2
9352 ac_shift=shift
9354 esac
9356 case $ac_option in
9357 # Handling of the options.
9358 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9359 ac_cs_recheck=: ;;
9360 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9361 $as_echo "$ac_cs_version"; exit ;;
9362 --debug | --debu | --deb | --de | --d | -d )
9363 debug=: ;;
9364 --file | --fil | --fi | --f )
9365 $ac_shift
9366 case $ac_optarg in
9367 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9368 esac
9369 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
9370 ac_need_defaults=false;;
9371 --header | --heade | --head | --hea )
9372 $ac_shift
9373 case $ac_optarg in
9374 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9375 esac
9376 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
9377 ac_need_defaults=false;;
9378 --he | --h)
9379 # Conflict between --help and --header
9380 { $as_echo "$as_me: error: ambiguous option: $1
9381 Try \`$0 --help' for more information." >&2
9382 { (exit 1); exit 1; }; };;
9383 --help | --hel | -h )
9384 $as_echo "$ac_cs_usage"; exit ;;
9385 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9386 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9387 ac_cs_silent=: ;;
9389 # This is an error.
9390 -*) { $as_echo "$as_me: error: unrecognized option: $1
9391 Try \`$0 --help' for more information." >&2
9392 { (exit 1); exit 1; }; } ;;
9394 *) ac_config_targets="$ac_config_targets $1"
9395 ac_need_defaults=false ;;
9397 esac
9398 shift
9399 done
9401 ac_configure_extra_args=
9403 if $ac_cs_silent; then
9404 exec 6>/dev/null
9405 ac_configure_extra_args="$ac_configure_extra_args --silent"
9408 _ACEOF
9409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9410 if \$ac_cs_recheck; then
9411 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9412 shift
9413 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9414 CONFIG_SHELL='$SHELL'
9415 export CONFIG_SHELL
9416 exec "\$@"
9419 _ACEOF
9420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9421 exec 5>>config.log
9423 echo
9424 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9425 ## Running $as_me. ##
9426 _ASBOX
9427 $as_echo "$ac_log"
9428 } >&5
9430 _ACEOF
9431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9433 # INIT-COMMANDS
9435 config_vars='$config_vars'
9437 _ACEOF
9439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9441 # Handling of arguments.
9442 for ac_config_target in $ac_config_targets
9444 case $ac_config_target in
9445 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9446 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
9447 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
9448 "${config_uname}") CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
9449 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9451 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9452 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9453 { (exit 1); exit 1; }; };;
9454 esac
9455 done
9458 # If the user did not use the arguments to specify the items to instantiate,
9459 # then the envvar interface is used. Set only those that are not.
9460 # We use the long form for the default assignment because of an extremely
9461 # bizarre bug on SunOS 4.1.3.
9462 if $ac_need_defaults; then
9463 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9464 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9465 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9468 # Have a temporary directory for convenience. Make it in the build tree
9469 # simply because there is no reason against having it here, and in addition,
9470 # creating and moving files from /tmp can sometimes cause problems.
9471 # Hook for its removal unless debugging.
9472 # Note that there is a small window in which the directory will not be cleaned:
9473 # after its creation but before its name has been assigned to `$tmp'.
9474 $debug ||
9476 tmp=
9477 trap 'exit_status=$?
9478 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9480 trap '{ (exit 1); exit 1; }' 1 2 13 15
9482 # Create a (secure) tmp directory for tmp files.
9485 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9486 test -n "$tmp" && test -d "$tmp"
9487 } ||
9489 tmp=./conf$$-$RANDOM
9490 (umask 077 && mkdir "$tmp")
9491 } ||
9493 $as_echo "$as_me: cannot create a temporary directory in ." >&2
9494 { (exit 1); exit 1; }
9497 # Set up the scripts for CONFIG_FILES section.
9498 # No need to generate them if there are no CONFIG_FILES.
9499 # This happens for instance with `./config.status config.h'.
9500 if test -n "$CONFIG_FILES"; then
9503 ac_cr=' '
9504 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9505 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9506 ac_cs_awk_cr='\\r'
9507 else
9508 ac_cs_awk_cr=$ac_cr
9511 echo 'BEGIN {' >"$tmp/subs1.awk" &&
9512 _ACEOF
9516 echo "cat >conf$$subs.awk <<_ACEOF" &&
9517 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9518 echo "_ACEOF"
9519 } >conf$$subs.sh ||
9520 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9521 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9522 { (exit 1); exit 1; }; }
9523 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9524 ac_delim='%!_!# '
9525 for ac_last_try in false false false false false :; do
9526 . ./conf$$subs.sh ||
9527 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9528 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9529 { (exit 1); exit 1; }; }
9531 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9532 if test $ac_delim_n = $ac_delim_num; then
9533 break
9534 elif $ac_last_try; then
9535 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9536 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9537 { (exit 1); exit 1; }; }
9538 else
9539 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9541 done
9542 rm -f conf$$subs.sh
9544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9545 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9546 _ACEOF
9547 sed -n '
9549 s/^/S["/; s/!.*/"]=/
9552 s/^[^!]*!//
9553 :repl
9554 t repl
9555 s/'"$ac_delim"'$//
9556 t delim
9559 s/\(.\{148\}\).*/\1/
9560 t more1
9561 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9564 b repl
9565 :more1
9566 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9569 s/.\{148\}//
9570 t nl
9571 :delim
9573 s/\(.\{148\}\).*/\1/
9574 t more2
9575 s/["\\]/\\&/g; s/^/"/; s/$/"/
9578 :more2
9579 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9582 s/.\{148\}//
9583 t delim
9584 ' <conf$$subs.awk | sed '
9585 /^[^""]/{
9587 s/\n//
9589 ' >>$CONFIG_STATUS || ac_write_fail=1
9590 rm -f conf$$subs.awk
9591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9592 _ACAWK
9593 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9594 for (key in S) S_is_set[key] = 1
9595 FS = "\a"
9599 line = $ 0
9600 nfields = split(line, field, "@")
9601 substed = 0
9602 len = length(field[1])
9603 for (i = 2; i < nfields; i++) {
9604 key = field[i]
9605 keylen = length(key)
9606 if (S_is_set[key]) {
9607 value = S[key]
9608 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9609 len += length(value) + length(field[++i])
9610 substed = 1
9611 } else
9612 len += 1 + keylen
9615 print line
9618 _ACAWK
9619 _ACEOF
9620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9621 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9622 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9623 else
9625 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9626 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
9627 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
9628 { (exit 1); exit 1; }; }
9629 _ACEOF
9631 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9632 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9633 # trailing colons and then remove the whole line if VPATH becomes empty
9634 # (actually we leave an empty line to preserve line numbers).
9635 if test "x$srcdir" = x.; then
9636 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9637 s/:*\$(srcdir):*/:/
9638 s/:*\${srcdir}:*/:/
9639 s/:*@srcdir@:*/:/
9640 s/^\([^=]*=[ ]*\):*/\1/
9641 s/:*$//
9642 s/^[^=]*=[ ]*$//
9646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9647 fi # test -n "$CONFIG_FILES"
9649 # Set up the scripts for CONFIG_HEADERS section.
9650 # No need to generate them if there are no CONFIG_HEADERS.
9651 # This happens for instance with `./config.status Makefile'.
9652 if test -n "$CONFIG_HEADERS"; then
9653 cat >"$tmp/defines.awk" <<\_ACAWK ||
9654 BEGIN {
9655 _ACEOF
9657 # Transform confdefs.h into an awk script `defines.awk', embedded as
9658 # here-document in config.status, that substitutes the proper values into
9659 # config.h.in to produce config.h.
9661 # Create a delimiter string that does not exist in confdefs.h, to ease
9662 # handling of long lines.
9663 ac_delim='%!_!# '
9664 for ac_last_try in false false :; do
9665 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9666 if test -z "$ac_t"; then
9667 break
9668 elif $ac_last_try; then
9669 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
9670 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
9671 { (exit 1); exit 1; }; }
9672 else
9673 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9675 done
9677 # For the awk script, D is an array of macro values keyed by name,
9678 # likewise P contains macro parameters if any. Preserve backslash
9679 # newline sequences.
9681 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9682 sed -n '
9683 s/.\{148\}/&'"$ac_delim"'/g
9684 t rset
9685 :rset
9686 s/^[ ]*#[ ]*define[ ][ ]*/ /
9687 t def
9689 :def
9690 s/\\$//
9691 t bsnl
9692 s/["\\]/\\&/g
9693 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9694 D["\1"]=" \3"/p
9695 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9697 :bsnl
9698 s/["\\]/\\&/g
9699 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9700 D["\1"]=" \3\\\\\\n"\\/p
9701 t cont
9702 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9703 t cont
9705 :cont
9707 s/.\{148\}/&'"$ac_delim"'/g
9708 t clear
9709 :clear
9710 s/\\$//
9711 t bsnlc
9712 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9714 :bsnlc
9715 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9716 b cont
9717 ' <confdefs.h | sed '
9718 s/'"$ac_delim"'/"\\\
9719 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9722 for (key in D) D_is_set[key] = 1
9723 FS = "\a"
9725 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9726 line = \$ 0
9727 split(line, arg, " ")
9728 if (arg[1] == "#") {
9729 defundef = arg[2]
9730 mac1 = arg[3]
9731 } else {
9732 defundef = substr(arg[1], 2)
9733 mac1 = arg[2]
9735 split(mac1, mac2, "(") #)
9736 macro = mac2[1]
9737 prefix = substr(line, 1, index(line, defundef) - 1)
9738 if (D_is_set[macro]) {
9739 # Preserve the white space surrounding the "#".
9740 print prefix "define", macro P[macro] D[macro]
9741 next
9742 } else {
9743 # Replace #undef with comments. This is necessary, for example,
9744 # in the case of _POSIX_SOURCE, which is predefined and required
9745 # on some systems where configure will not decide to define it.
9746 if (defundef == "undef") {
9747 print "/*", prefix defundef, macro, "*/"
9748 next
9752 { print }
9753 _ACAWK
9754 _ACEOF
9755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9756 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
9757 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
9758 { (exit 1); exit 1; }; }
9759 fi # test -n "$CONFIG_HEADERS"
9762 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9763 shift
9764 for ac_tag
9766 case $ac_tag in
9767 :[FHLC]) ac_mode=$ac_tag; continue;;
9768 esac
9769 case $ac_mode$ac_tag in
9770 :[FHL]*:*);;
9771 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
9772 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
9773 { (exit 1); exit 1; }; };;
9774 :[FH]-) ac_tag=-:-;;
9775 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9776 esac
9777 ac_save_IFS=$IFS
9778 IFS=:
9779 set x $ac_tag
9780 IFS=$ac_save_IFS
9781 shift
9782 ac_file=$1
9783 shift
9785 case $ac_mode in
9786 :L) ac_source=$1;;
9787 :[FH])
9788 ac_file_inputs=
9789 for ac_f
9791 case $ac_f in
9792 -) ac_f="$tmp/stdin";;
9793 *) # Look for the file first in the build tree, then in the source tree
9794 # (if the path is not absolute). The absolute path cannot be DOS-style,
9795 # because $ac_f cannot contain `:'.
9796 test -f "$ac_f" ||
9797 case $ac_f in
9798 [\\/$]*) false;;
9799 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9800 esac ||
9801 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9802 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9803 { (exit 1); exit 1; }; };;
9804 esac
9805 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9806 ac_file_inputs="$ac_file_inputs '$ac_f'"
9807 done
9809 # Let's still pretend it is `configure' which instantiates (i.e., don't
9810 # use $as_me), people would be surprised to read:
9811 # /* config.h. Generated by config.status. */
9812 configure_input='Generated from '`
9813 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9814 `' by configure.'
9815 if test x"$ac_file" != x-; then
9816 configure_input="$ac_file. $configure_input"
9817 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
9818 $as_echo "$as_me: creating $ac_file" >&6;}
9820 # Neutralize special characters interpreted by sed in replacement strings.
9821 case $configure_input in #(
9822 *\&* | *\|* | *\\* )
9823 ac_sed_conf_input=`$as_echo "$configure_input" |
9824 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9825 *) ac_sed_conf_input=$configure_input;;
9826 esac
9828 case $ac_tag in
9829 *:-:* | *:-) cat >"$tmp/stdin" \
9830 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9831 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9832 { (exit 1); exit 1; }; } ;;
9833 esac
9835 esac
9837 ac_dir=`$as_dirname -- "$ac_file" ||
9838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9839 X"$ac_file" : 'X\(//\)[^/]' \| \
9840 X"$ac_file" : 'X\(//\)$' \| \
9841 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9842 $as_echo X"$ac_file" |
9843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9844 s//\1/
9847 /^X\(\/\/\)[^/].*/{
9848 s//\1/
9851 /^X\(\/\/\)$/{
9852 s//\1/
9855 /^X\(\/\).*/{
9856 s//\1/
9859 s/.*/./; q'`
9860 { as_dir="$ac_dir"
9861 case $as_dir in #(
9862 -*) as_dir=./$as_dir;;
9863 esac
9864 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9865 as_dirs=
9866 while :; do
9867 case $as_dir in #(
9868 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9869 *) as_qdir=$as_dir;;
9870 esac
9871 as_dirs="'$as_qdir' $as_dirs"
9872 as_dir=`$as_dirname -- "$as_dir" ||
9873 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9874 X"$as_dir" : 'X\(//\)[^/]' \| \
9875 X"$as_dir" : 'X\(//\)$' \| \
9876 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9877 $as_echo X"$as_dir" |
9878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9879 s//\1/
9882 /^X\(\/\/\)[^/].*/{
9883 s//\1/
9886 /^X\(\/\/\)$/{
9887 s//\1/
9890 /^X\(\/\).*/{
9891 s//\1/
9894 s/.*/./; q'`
9895 test -d "$as_dir" && break
9896 done
9897 test -z "$as_dirs" || eval "mkdir $as_dirs"
9898 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9899 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
9900 { (exit 1); exit 1; }; }; }
9901 ac_builddir=.
9903 case "$ac_dir" in
9904 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9906 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9907 # A ".." for each directory in $ac_dir_suffix.
9908 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9909 case $ac_top_builddir_sub in
9910 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9911 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9912 esac ;;
9913 esac
9914 ac_abs_top_builddir=$ac_pwd
9915 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9916 # for backward compatibility:
9917 ac_top_builddir=$ac_top_build_prefix
9919 case $srcdir in
9920 .) # We are building in place.
9921 ac_srcdir=.
9922 ac_top_srcdir=$ac_top_builddir_sub
9923 ac_abs_top_srcdir=$ac_pwd ;;
9924 [\\/]* | ?:[\\/]* ) # Absolute name.
9925 ac_srcdir=$srcdir$ac_dir_suffix;
9926 ac_top_srcdir=$srcdir
9927 ac_abs_top_srcdir=$srcdir ;;
9928 *) # Relative name.
9929 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9930 ac_top_srcdir=$ac_top_build_prefix$srcdir
9931 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9932 esac
9933 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9936 case $ac_mode in
9939 # CONFIG_FILE
9942 case $INSTALL in
9943 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9944 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9945 esac
9946 _ACEOF
9948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9949 # If the template does not know about datarootdir, expand it.
9950 # FIXME: This hack should be removed a few years after 2.60.
9951 ac_datarootdir_hack=; ac_datarootdir_seen=
9953 ac_sed_dataroot='
9954 /datarootdir/ {
9958 /@datadir@/p
9959 /@docdir@/p
9960 /@infodir@/p
9961 /@localedir@/p
9962 /@mandir@/p
9964 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9965 *datarootdir*) ac_datarootdir_seen=yes;;
9966 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9967 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9968 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9969 _ACEOF
9970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9971 ac_datarootdir_hack='
9972 s&@datadir@&$datadir&g
9973 s&@docdir@&$docdir&g
9974 s&@infodir@&$infodir&g
9975 s&@localedir@&$localedir&g
9976 s&@mandir@&$mandir&g
9977 s&\\\${datarootdir}&$datarootdir&g' ;;
9978 esac
9979 _ACEOF
9981 # Neutralize VPATH when `$srcdir' = `.'.
9982 # Shell code in configure.ac might set extrasub.
9983 # FIXME: do we really want to maintain this feature?
9984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9985 ac_sed_extra="$ac_vpsub
9986 $extrasub
9987 _ACEOF
9988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9990 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9991 s|@configure_input@|$ac_sed_conf_input|;t t
9992 s&@top_builddir@&$ac_top_builddir_sub&;t t
9993 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9994 s&@srcdir@&$ac_srcdir&;t t
9995 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9996 s&@top_srcdir@&$ac_top_srcdir&;t t
9997 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9998 s&@builddir@&$ac_builddir&;t t
9999 s&@abs_builddir@&$ac_abs_builddir&;t t
10000 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10001 s&@INSTALL@&$ac_INSTALL&;t t
10002 $ac_datarootdir_hack
10004 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10005 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10006 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10007 { (exit 1); exit 1; }; }
10009 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10010 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10011 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10012 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10013 which seems to be undefined. Please make sure it is defined." >&5
10014 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10015 which seems to be undefined. Please make sure it is defined." >&2;}
10017 rm -f "$tmp/stdin"
10018 case $ac_file in
10019 -) cat "$tmp/out" && rm -f "$tmp/out";;
10020 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10021 esac \
10022 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10023 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10024 { (exit 1); exit 1; }; }
10028 # CONFIG_HEADER
10030 if test x"$ac_file" != x-; then
10032 $as_echo "/* $configure_input */" \
10033 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10034 } >"$tmp/config.h" \
10035 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10036 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10037 { (exit 1); exit 1; }; }
10038 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10039 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10040 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10041 else
10042 rm -f "$ac_file"
10043 mv "$tmp/config.h" "$ac_file" \
10044 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10045 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10046 { (exit 1); exit 1; }; }
10048 else
10049 $as_echo "/* $configure_input */" \
10050 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10051 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
10052 $as_echo "$as_me: error: could not create -" >&2;}
10053 { (exit 1); exit 1; }; }
10057 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
10058 $as_echo "$as_me: executing $ac_file commands" >&6;}
10060 esac
10063 case $ac_file$ac_mode in
10064 "default":C)
10065 case $CONFIG_FILES in *config.make*)
10066 echo "$config_vars" >> config.make;;
10067 esac
10068 test -d bits || mkdir bits ;;
10070 esac
10071 done # for ac_tag
10074 { (exit 0); exit 0; }
10075 _ACEOF
10076 chmod +x $CONFIG_STATUS
10077 ac_clean_files=$ac_clean_files_save
10079 test $ac_write_fail = 0 ||
10080 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
10081 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
10082 { (exit 1); exit 1; }; }
10085 # configure is writing to config.log, and then calls config.status.
10086 # config.status does its own redirection, appending to config.log.
10087 # Unfortunately, on DOS this fails, as config.log is still kept open
10088 # by configure, so config.status won't be able to write to it; its
10089 # output is simply discarded. So we exec the FD to /dev/null,
10090 # effectively closing config.log, so it can be properly (re)opened and
10091 # appended to by config.status. When coming back to configure, we
10092 # need to make the FD available again.
10093 if test "$no_create" != yes; then
10094 ac_cs_success=:
10095 ac_config_status_args=
10096 test "$silent" = yes &&
10097 ac_config_status_args="$ac_config_status_args --quiet"
10098 exec 5>/dev/null
10099 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10100 exec 5>>config.log
10101 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10102 # would make configure fail if this is the last instruction.
10103 $ac_cs_success || { (exit 1); exit 1; }
10107 # CONFIG_SUBDIRS section.
10109 if test "$no_recursion" != yes; then
10111 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10112 # so they do not pile up.
10113 ac_sub_configure_args=
10114 ac_prev=
10115 eval "set x $ac_configure_args"
10116 shift
10117 for ac_arg
10119 if test -n "$ac_prev"; then
10120 ac_prev=
10121 continue
10123 case $ac_arg in
10124 -cache-file | --cache-file | --cache-fil | --cache-fi \
10125 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10126 ac_prev=cache_file ;;
10127 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10128 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10129 | --c=*)
10131 --config-cache | -C)
10133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10134 ac_prev=srcdir ;;
10135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10137 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10138 ac_prev=prefix ;;
10139 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10141 --disable-option-checking)
10144 case $ac_arg in
10145 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10146 esac
10147 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
10148 esac
10149 done
10151 # Always prepend --prefix to ensure using the same prefix
10152 # in subdir configurations.
10153 ac_arg="--prefix=$prefix"
10154 case $ac_arg in
10155 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10156 esac
10157 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10159 # Pass --silent
10160 if test "$silent" = yes; then
10161 ac_sub_configure_args="--silent $ac_sub_configure_args"
10164 # Always prepend --disable-option-checking to silence warnings, since
10165 # different subdirs can have different --enable and --with options.
10166 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10168 ac_popdir=`pwd`
10169 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10171 # Do not complain, so a configure script can configure whichever
10172 # parts of a large source tree are present.
10173 test -d "$srcdir/$ac_dir" || continue
10175 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10176 $as_echo "$as_me:$LINENO: $ac_msg" >&5
10177 $as_echo "$ac_msg" >&6
10178 { as_dir="$ac_dir"
10179 case $as_dir in #(
10180 -*) as_dir=./$as_dir;;
10181 esac
10182 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10183 as_dirs=
10184 while :; do
10185 case $as_dir in #(
10186 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10187 *) as_qdir=$as_dir;;
10188 esac
10189 as_dirs="'$as_qdir' $as_dirs"
10190 as_dir=`$as_dirname -- "$as_dir" ||
10191 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10192 X"$as_dir" : 'X\(//\)[^/]' \| \
10193 X"$as_dir" : 'X\(//\)$' \| \
10194 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10195 $as_echo X"$as_dir" |
10196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10197 s//\1/
10200 /^X\(\/\/\)[^/].*/{
10201 s//\1/
10204 /^X\(\/\/\)$/{
10205 s//\1/
10208 /^X\(\/\).*/{
10209 s//\1/
10212 s/.*/./; q'`
10213 test -d "$as_dir" && break
10214 done
10215 test -z "$as_dirs" || eval "mkdir $as_dirs"
10216 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10217 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10218 { (exit 1); exit 1; }; }; }
10219 ac_builddir=.
10221 case "$ac_dir" in
10222 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10224 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10225 # A ".." for each directory in $ac_dir_suffix.
10226 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10227 case $ac_top_builddir_sub in
10228 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10229 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10230 esac ;;
10231 esac
10232 ac_abs_top_builddir=$ac_pwd
10233 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10234 # for backward compatibility:
10235 ac_top_builddir=$ac_top_build_prefix
10237 case $srcdir in
10238 .) # We are building in place.
10239 ac_srcdir=.
10240 ac_top_srcdir=$ac_top_builddir_sub
10241 ac_abs_top_srcdir=$ac_pwd ;;
10242 [\\/]* | ?:[\\/]* ) # Absolute name.
10243 ac_srcdir=$srcdir$ac_dir_suffix;
10244 ac_top_srcdir=$srcdir
10245 ac_abs_top_srcdir=$srcdir ;;
10246 *) # Relative name.
10247 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10248 ac_top_srcdir=$ac_top_build_prefix$srcdir
10249 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10250 esac
10251 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10254 cd "$ac_dir"
10256 # Check for guested configure; otherwise get Cygnus style configure.
10257 if test -f "$ac_srcdir/configure.gnu"; then
10258 ac_sub_configure=$ac_srcdir/configure.gnu
10259 elif test -f "$ac_srcdir/configure"; then
10260 ac_sub_configure=$ac_srcdir/configure
10261 elif test -f "$ac_srcdir/configure.in"; then
10262 # This should be Cygnus configure.
10263 ac_sub_configure=$ac_aux_dir/configure
10264 else
10265 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
10266 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10267 ac_sub_configure=
10270 # The recursion is here.
10271 if test -n "$ac_sub_configure"; then
10272 # Make the cache file name correct relative to the subdirectory.
10273 case $cache_file in
10274 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10275 *) # Relative name.
10276 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10277 esac
10279 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10280 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10281 # The eval makes quoting arguments work.
10282 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10283 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10284 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
10285 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
10286 { (exit 1); exit 1; }; }
10289 cd "$ac_popdir"
10290 done
10292 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10293 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10294 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}