* misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.
[glibc.git] / configure
blob482e44c1f315f1e0748bdda5154a1b645df95c8a
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_cpp_asm_debuginfo
661 libc_cv_forced_unwind
662 libc_cv_rootsbindir
663 libc_cv_sysconfdir
664 libc_cv_localedir
665 libc_cv_slibdir
666 old_glibc_headers
667 uname_version
668 uname_release
669 uname_sysname
670 libc_cv_gcc_unwind_find_fde
671 sizeof_long_double
672 EGREP
673 GREP
674 have_selinux
675 have_libcap
676 have_libaudit
677 LIBGD
678 libc_cv_cc_submachine
679 exceptions
680 no_whole_archive
681 libc_cv_have_initfini
682 libc_cv_gnu89_inline
683 libc_cv_ssp
684 fno_unit_at_a_time
685 libc_cv_hashstyle
686 libc_cv_fpie
687 libc_cv_z_execstack
688 libc_cv_z_combreloc
689 ASFLAGS_config
690 libc_cv_as_needed
691 libc_cv_libgcc_s_suffix
692 libc_cv_Bgroup
693 libc_cv_cc_with_libunwind
694 VERSIONING
695 BISON
696 INSTALL_INFO
697 PERL
699 libc_cv_have_ksh
701 libc_cv_have_bash2
702 BASH_SHELL
703 libc_cv_gcc_static_libgcc
704 CXX_SYSINCLUDES
705 SYSINCLUDES
706 AUTOCONF
708 MAKEINFO
709 MSGFMT
710 MAKE
711 PWD_P
715 RANLIB
716 OBJDUMP
718 ac_ct_CXX
719 CXXFLAGS
722 cross_compiling
723 BUILD_CC
724 LN_S
725 INSTALL_DATA
726 INSTALL_SCRIPT
727 INSTALL_PROGRAM
728 sysdeps_add_ons
729 sysnames
730 submachine
731 base_machine
732 add_on_subdirs
733 add_ons
734 subdirs
735 host_os
736 host_vendor
737 host_cpu
738 host
739 build_os
740 build_vendor
741 build_cpu
742 build
743 libc_cv_nss_crypt
744 OBJEXT
745 ac_ct_CC
746 CPPFLAGS
747 LDFLAGS
748 CFLAGS
750 experimental_malloc
751 multi_arch
752 all_warnings
753 force_install
754 bindnow
755 oldest_abi
756 enable_check_abi
757 with_cvs
758 with_fp
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 localstatedir
779 sharedstatedir
780 sysconfdir
781 datadir
782 datarootdir
783 libexecdir
784 sbindir
785 bindir
786 program_transform_name
787 prefix
788 exec_prefix
789 PACKAGE_BUGREPORT
790 PACKAGE_STRING
791 PACKAGE_VERSION
792 PACKAGE_TARNAME
793 PACKAGE_NAME
794 PATH_SEPARATOR
795 SHELL'
796 ac_subst_files=''
797 ac_user_opts='
798 enable_option_checking
799 with_gd
800 with_gd_include
801 with_gd_lib
802 with_fp
803 with_binutils
804 with_elf
805 with_selinux
806 with_xcoff
807 with_cvs
808 with_headers
809 enable_sanity_checks
810 enable_check_abi
811 enable_shared
812 enable_profile
813 enable_omitfp
814 enable_bounded
815 enable_versioning
816 enable_oldest_abi
817 enable_stackguard_randomization
818 enable_add_ons
819 with_tls
820 with___thread
821 enable_hidden_plt
822 enable_bind_now
823 enable_static_nss
824 enable_force_install
825 enable_kernel
826 enable_all_warnings
827 enable_multi_arch
828 enable_experimental_malloc
829 enable_nss_crypt
830 with_cpu
832 ac_precious_vars='build_alias
833 host_alias
834 target_alias
836 CFLAGS
837 LDFLAGS
838 LIBS
839 CPPFLAGS
842 CXXFLAGS
843 CCC'
844 ac_subdirs_all=''
846 # Initialize some variables set by options.
847 ac_init_help=
848 ac_init_version=false
849 ac_unrecognized_opts=
850 ac_unrecognized_sep=
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
853 cache_file=/dev/null
854 exec_prefix=NONE
855 no_create=
856 no_recursion=
857 prefix=NONE
858 program_prefix=NONE
859 program_suffix=NONE
860 program_transform_name=s,x,x,
861 silent=
862 site=
863 srcdir=
864 verbose=
865 x_includes=NONE
866 x_libraries=NONE
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
885 infodir='${datarootdir}/info'
886 htmldir='${docdir}'
887 dvidir='${docdir}'
888 pdfdir='${docdir}'
889 psdir='${docdir}'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
894 ac_prev=
895 ac_dashdash=
896 for ac_option
898 # If the previous option needs an argument, assign it.
899 if test -n "$ac_prev"; then
900 eval $ac_prev=\$ac_option
901 ac_prev=
902 continue
905 case $ac_option in
906 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 *) ac_optarg=yes ;;
908 esac
910 # Accept the important Cygnus configure options, so we can diagnose typos.
912 case $ac_dashdash$ac_option in
914 ac_dashdash=yes ;;
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 ac_prev=bindir ;;
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919 bindir=$ac_optarg ;;
921 -build | --build | --buil | --bui | --bu)
922 ac_prev=build_alias ;;
923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924 build_alias=$ac_optarg ;;
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931 cache_file=$ac_optarg ;;
933 --config-cache | -C)
934 cache_file=config.cache ;;
936 -datadir | --datadir | --datadi | --datad)
937 ac_prev=datadir ;;
938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
939 datadir=$ac_optarg ;;
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
948 -disable-* | --disable-*)
949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
952 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
953 { (exit 1); exit 1; }; }
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
958 "enable_$ac_useropt"
959 "*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
975 -enable-* | --enable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
980 { (exit 1); exit 1; }; }
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
985 "enable_$ac_useropt"
986 "*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=\$ac_optarg ;;
992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994 | --exec | --exe | --ex)
995 ac_prev=exec_prefix ;;
996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998 | --exec=* | --exe=* | --ex=*)
999 exec_prefix=$ac_optarg ;;
1001 -gas | --gas | --ga | --g)
1002 # Obsolete; use --with-gas.
1003 with_gas=yes ;;
1005 -help | --help | --hel | --he | -h)
1006 ac_init_help=long ;;
1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008 ac_init_help=recursive ;;
1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010 ac_init_help=short ;;
1012 -host | --host | --hos | --ho)
1013 ac_prev=host_alias ;;
1014 -host=* | --host=* | --hos=* | --ho=*)
1015 host_alias=$ac_optarg ;;
1017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018 ac_prev=htmldir ;;
1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020 | --ht=*)
1021 htmldir=$ac_optarg ;;
1023 -includedir | --includedir | --includedi | --included | --include \
1024 | --includ | --inclu | --incl | --inc)
1025 ac_prev=includedir ;;
1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027 | --includ=* | --inclu=* | --incl=* | --inc=*)
1028 includedir=$ac_optarg ;;
1030 -infodir | --infodir | --infodi | --infod | --info | --inf)
1031 ac_prev=infodir ;;
1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033 infodir=$ac_optarg ;;
1035 -libdir | --libdir | --libdi | --libd)
1036 ac_prev=libdir ;;
1037 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038 libdir=$ac_optarg ;;
1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041 | --libexe | --libex | --libe)
1042 ac_prev=libexecdir ;;
1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044 | --libexe=* | --libex=* | --libe=*)
1045 libexecdir=$ac_optarg ;;
1047 -localedir | --localedir | --localedi | --localed | --locale)
1048 ac_prev=localedir ;;
1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050 localedir=$ac_optarg ;;
1052 -localstatedir | --localstatedir | --localstatedi | --localstated \
1053 | --localstate | --localstat | --localsta | --localst | --locals)
1054 ac_prev=localstatedir ;;
1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057 localstatedir=$ac_optarg ;;
1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060 ac_prev=mandir ;;
1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062 mandir=$ac_optarg ;;
1064 -nfp | --nfp | --nf)
1065 # Obsolete; use --without-fp.
1066 with_fp=no ;;
1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069 | --no-cr | --no-c | -n)
1070 no_create=yes ;;
1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074 no_recursion=yes ;;
1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078 | --oldin | --oldi | --old | --ol | --o)
1079 ac_prev=oldincludedir ;;
1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083 oldincludedir=$ac_optarg ;;
1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086 ac_prev=prefix ;;
1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088 prefix=$ac_optarg ;;
1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091 | --program-pre | --program-pr | --program-p)
1092 ac_prev=program_prefix ;;
1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095 program_prefix=$ac_optarg ;;
1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098 | --program-suf | --program-su | --program-s)
1099 ac_prev=program_suffix ;;
1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102 program_suffix=$ac_optarg ;;
1104 -program-transform-name | --program-transform-name \
1105 | --program-transform-nam | --program-transform-na \
1106 | --program-transform-n | --program-transform- \
1107 | --program-transform | --program-transfor \
1108 | --program-transfo | --program-transf \
1109 | --program-trans | --program-tran \
1110 | --progr-tra | --program-tr | --program-t)
1111 ac_prev=program_transform_name ;;
1112 -program-transform-name=* | --program-transform-name=* \
1113 | --program-transform-nam=* | --program-transform-na=* \
1114 | --program-transform-n=* | --program-transform-=* \
1115 | --program-transform=* | --program-transfor=* \
1116 | --program-transfo=* | --program-transf=* \
1117 | --program-trans=* | --program-tran=* \
1118 | --progr-tra=* | --program-tr=* | --program-t=*)
1119 program_transform_name=$ac_optarg ;;
1121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122 ac_prev=pdfdir ;;
1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124 pdfdir=$ac_optarg ;;
1126 -psdir | --psdir | --psdi | --psd | --ps)
1127 ac_prev=psdir ;;
1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129 psdir=$ac_optarg ;;
1131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132 | -silent | --silent | --silen | --sile | --sil)
1133 silent=yes ;;
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 ac_prev=sbindir ;;
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 | --sbi=* | --sb=*)
1139 sbindir=$ac_optarg ;;
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1144 | --sha | --sh)
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 | --sha=* | --sh=*)
1150 sharedstatedir=$ac_optarg ;;
1152 -site | --site | --sit)
1153 ac_prev=site ;;
1154 -site=* | --site=* | --sit=*)
1155 site=$ac_optarg ;;
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 ac_prev=srcdir ;;
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160 srcdir=$ac_optarg ;;
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167 sysconfdir=$ac_optarg ;;
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
1170 ac_prev=target_alias ;;
1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172 target_alias=$ac_optarg ;;
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 verbose=yes ;;
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
1180 -with-* | --with-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1185 { (exit 1); exit 1; }; }
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=\$ac_optarg ;;
1197 -without-* | --without-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1207 "with_$ac_useropt"
1208 "*) ;;
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1211 esac
1212 eval with_$ac_useropt=no ;;
1214 --x)
1215 # Obsolete; use --with-x.
1216 with_x=yes ;;
1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219 | --x-incl | --x-inc | --x-in | --x-i)
1220 ac_prev=x_includes ;;
1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223 x_includes=$ac_optarg ;;
1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227 ac_prev=x_libraries ;;
1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230 x_libraries=$ac_optarg ;;
1232 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1233 Try \`$0 --help' for more information." >&2
1234 { (exit 1); exit 1; }; }
1237 *=*)
1238 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1241 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1242 { (exit 1); exit 1; }; }
1243 eval $ac_envvar=\$ac_optarg
1244 export $ac_envvar ;;
1247 # FIXME: should be removed in autoconf 3.0.
1248 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1251 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1254 esac
1255 done
1257 if test -n "$ac_prev"; then
1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1260 { (exit 1); exit 1; }; }
1263 if test -n "$ac_unrecognized_opts"; then
1264 case $enable_option_checking in
1265 no) ;;
1266 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1267 { (exit 1); exit 1; }; } ;;
1268 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1269 esac
1272 # Check all directory arguments for consistency.
1273 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274 datadir sysconfdir sharedstatedir localstatedir includedir \
1275 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276 libdir localedir mandir
1278 eval ac_val=\$$ac_var
1279 # Remove trailing slashes.
1280 case $ac_val in
1281 */ )
1282 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1283 eval $ac_var=\$ac_val;;
1284 esac
1285 # Be sure to have absolute directory names.
1286 case $ac_val in
1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289 esac
1290 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1291 { (exit 1); exit 1; }; }
1292 done
1294 # There might be people who depend on the old broken behavior: `$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1297 build=$build_alias
1298 host=$host_alias
1299 target=$target_alias
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1306 If a cross compiler is detected then cross compile mode will be used." >&2
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1312 ac_tool_prefix=
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315 test "$silent" = yes && exec 6>/dev/null
1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di=`ls -di .` &&
1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1322 { (exit 1); exit 1; }; }
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1325 { (exit 1); exit 1; }; }
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$as_myself" ||
1333 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$as_myself" : 'X\(//\)[^/]' \| \
1335 X"$as_myself" : 'X\(//\)$' \| \
1336 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337 $as_echo X"$as_myself" |
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 s//\1/
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1346 /^X\(\/\/\)$/{
1347 s//\1/
1350 /^X\(\/\).*/{
1351 s//\1/
1354 s/.*/./; q'`
1355 srcdir=$ac_confdir
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 srcdir=..
1359 else
1360 ac_srcdir_defaulted=no
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1365 { (exit 1); exit 1; }; }
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1370 { (exit 1); exit 1; }; }
1371 pwd)`
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1379 case $srcdir in
1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 esac
1382 for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 done
1390 # Report the --help message.
1392 if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE. See below for descriptions of some of the useful variables.
1403 Defaults for the options are specified in brackets.
1405 Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416 Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1427 For better control, use the options below.
1429 Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/c-library]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
1449 _ACEOF
1451 cat <<\_ACEOF
1453 System types:
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 _ACEOF
1459 if test -n "$ac_init_help"; then
1460 case $ac_init_help in
1461 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1462 esac
1463 cat <<\_ACEOF
1465 Optional Features:
1466 --disable-option-checking ignore unrecognized --enable/--with options
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469 --disable-sanity-checks really do not use threads (should not be used except
1470 in special situations) [default=yes]
1471 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1472 [default=no]
1473 --enable-shared build shared library [default=yes if GNU ld & ELF]
1474 --enable-profile build profiled library [default=no]
1475 --enable-omitfp build undebuggable optimized library [default=no]
1476 --enable-bounded build with runtime bounds checking [default=no]
1477 --disable-versioning do not include versioning information in the library
1478 objects [default=yes if supported]
1479 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1480 [default=glibc default]
1481 --enable-stackguard-randomization
1482 initialize __stack_chk_guard canary with a random
1483 number at program start
1484 --enable-add-ons[=DIRS...]
1485 configure and build add-ons in DIR1,DIR2,... search
1486 for add-ons if no parameter given
1487 --disable-hidden-plt do not hide internal function calls to avoid PLT
1488 --enable-bind-now disable lazy relocations in DSOs
1489 --enable-static-nss build static NSS modules [default=no]
1490 --disable-force-install don't force installation of files from this package,
1491 even if they are older than the installed files
1492 --enable-kernel=VERSION compile for compatibility with kernel not older than
1493 VERSION
1494 --enable-all-warnings enable all useful warnings gcc can issue
1495 --enable-multi-arch enable single DSO with optimizations for multiple
1496 architectures
1497 --enable-experimental-malloc
1498 enable experimental malloc features
1499 --enable-nss-crypt enable libcrypt to use nss
1501 Optional Packages:
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --with-gd=DIR find libgd include dir and library with prefix DIR
1505 --with-gd-include=DIR find libgd include files in DIR
1506 --with-gd-lib=DIR find libgd library files in DIR
1507 --with-fp if using floating-point hardware [default=yes]
1508 --with-binutils=PATH specify location of binutils (as and ld)
1509 --with-elf if using the ELF object format
1510 --with-selinux if building with SELinux support
1511 --with-xcoff if using the XCOFF object format
1512 --without-cvs if CVS should not be used
1513 --with-headers=PATH location of system headers to use (for example
1514 /usr/src/linux/include) [default=compiler default]
1515 --with-tls enable support for TLS
1516 --without-__thread do not use TLS features even when supporting them
1517 --with-cpu=CPU select code for CPU variant
1519 Some influential environment variables:
1520 CC C compiler command
1521 CFLAGS C compiler flags
1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1523 nonstandard directory <lib dir>
1524 LIBS libraries to pass to the linker, e.g. -l<library>
1525 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1526 you have headers in a nonstandard directory <include dir>
1527 CPP C preprocessor
1528 CXX C++ compiler command
1529 CXXFLAGS C++ compiler flags
1531 Use these variables to override the choices made by `configure' or to help
1532 it to find libraries and programs with nonstandard names/locations.
1534 Report bugs to <glibc>.
1535 _ACEOF
1536 ac_status=$?
1539 if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" ||
1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 continue
1545 ac_builddir=.
1547 case "$ac_dir" in
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 esac ;;
1557 esac
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1563 case $srcdir in
1564 .) # We are building in place.
1565 ac_srcdir=.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1572 *) # Relative name.
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 esac
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1587 else
1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 fi || ac_status=$?
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1591 done
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1596 cat <<\_ACEOF
1597 GNU C Library configure (see version.h)
1598 generated by GNU Autoconf 2.63
1600 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1601 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1602 This configure script is free software; the Free Software Foundation
1603 gives unlimited permission to copy, distribute and modify it.
1604 _ACEOF
1605 exit
1607 cat >config.log <<_ACEOF
1608 This file contains any messages produced by compilers while
1609 running configure, to aid debugging if configure makes a mistake.
1611 It was created by GNU C Library $as_me (see version.h), which was
1612 generated by GNU Autoconf 2.63. Invocation command line was
1614 $ $0 $@
1616 _ACEOF
1617 exec 5>>config.log
1619 cat <<_ASUNAME
1620 ## --------- ##
1621 ## Platform. ##
1622 ## --------- ##
1624 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1625 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1626 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1627 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1628 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1630 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1631 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1633 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1634 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1635 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1636 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1637 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1638 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1639 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1641 _ASUNAME
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 for as_dir in $PATH
1646 IFS=$as_save_IFS
1647 test -z "$as_dir" && as_dir=.
1648 $as_echo "PATH: $as_dir"
1649 done
1650 IFS=$as_save_IFS
1652 } >&5
1654 cat >&5 <<_ACEOF
1657 ## ----------- ##
1658 ## Core tests. ##
1659 ## ----------- ##
1661 _ACEOF
1664 # Keep a trace of the command line.
1665 # Strip out --no-create and --no-recursion so they do not pile up.
1666 # Strip out --silent because we don't want to record it for future runs.
1667 # Also quote any args containing shell meta-characters.
1668 # Make two passes to allow for proper duplicate-argument suppression.
1669 ac_configure_args=
1670 ac_configure_args0=
1671 ac_configure_args1=
1672 ac_must_keep_next=false
1673 for ac_pass in 1 2
1675 for ac_arg
1677 case $ac_arg in
1678 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1680 | -silent | --silent | --silen | --sile | --sil)
1681 continue ;;
1682 *\'*)
1683 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1684 esac
1685 case $ac_pass in
1686 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1688 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1689 if test $ac_must_keep_next = true; then
1690 ac_must_keep_next=false # Got value, back to normal.
1691 else
1692 case $ac_arg in
1693 *=* | --config-cache | -C | -disable-* | --disable-* \
1694 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1695 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1696 | -with-* | --with-* | -without-* | --without-* | --x)
1697 case "$ac_configure_args0 " in
1698 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1699 esac
1701 -* ) ac_must_keep_next=true ;;
1702 esac
1704 ac_configure_args="$ac_configure_args '$ac_arg'"
1706 esac
1707 done
1708 done
1709 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1710 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1712 # When interrupted or exit'd, cleanup temporary files, and complete
1713 # config.log. We remove comments because anyway the quotes in there
1714 # would cause problems or look ugly.
1715 # WARNING: Use '\'' to represent an apostrophe within the trap.
1716 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1717 trap 'exit_status=$?
1718 # Save into config.log some information that might help in debugging.
1720 echo
1722 cat <<\_ASBOX
1723 ## ---------------- ##
1724 ## Cache variables. ##
1725 ## ---------------- ##
1726 _ASBOX
1727 echo
1728 # The following way of writing the cache mishandles newlines in values,
1730 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1731 eval ac_val=\$$ac_var
1732 case $ac_val in #(
1733 *${as_nl}*)
1734 case $ac_var in #(
1735 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1736 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1737 esac
1738 case $ac_var in #(
1739 _ | IFS | as_nl) ;; #(
1740 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1741 *) $as_unset $ac_var ;;
1742 esac ;;
1743 esac
1744 done
1745 (set) 2>&1 |
1746 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1747 *${as_nl}ac_space=\ *)
1748 sed -n \
1749 "s/'\''/'\''\\\\'\'''\''/g;
1750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1751 ;; #(
1753 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1755 esac |
1756 sort
1758 echo
1760 cat <<\_ASBOX
1761 ## ----------------- ##
1762 ## Output variables. ##
1763 ## ----------------- ##
1764 _ASBOX
1765 echo
1766 for ac_var in $ac_subst_vars
1768 eval ac_val=\$$ac_var
1769 case $ac_val in
1770 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771 esac
1772 $as_echo "$ac_var='\''$ac_val'\''"
1773 done | sort
1774 echo
1776 if test -n "$ac_subst_files"; then
1777 cat <<\_ASBOX
1778 ## ------------------- ##
1779 ## File substitutions. ##
1780 ## ------------------- ##
1781 _ASBOX
1782 echo
1783 for ac_var in $ac_subst_files
1785 eval ac_val=\$$ac_var
1786 case $ac_val in
1787 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1788 esac
1789 $as_echo "$ac_var='\''$ac_val'\''"
1790 done | sort
1791 echo
1794 if test -s confdefs.h; then
1795 cat <<\_ASBOX
1796 ## ----------- ##
1797 ## confdefs.h. ##
1798 ## ----------- ##
1799 _ASBOX
1800 echo
1801 cat confdefs.h
1802 echo
1804 test "$ac_signal" != 0 &&
1805 $as_echo "$as_me: caught signal $ac_signal"
1806 $as_echo "$as_me: exit $exit_status"
1807 } >&5
1808 rm -f core *.core core.conftest.* &&
1809 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1810 exit $exit_status
1812 for ac_signal in 1 2 13 15; do
1813 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1814 done
1815 ac_signal=0
1817 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1818 rm -f -r conftest* confdefs.h
1820 # Predefined preprocessor variables.
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_NAME "$PACKAGE_NAME"
1824 _ACEOF
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1829 _ACEOF
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1834 _ACEOF
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_STRING "$PACKAGE_STRING"
1839 _ACEOF
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1844 _ACEOF
1847 # Let the site file select an alternate cache file if it wants to.
1848 # Prefer an explicitly selected file to automatically selected ones.
1849 ac_site_file1=NONE
1850 ac_site_file2=NONE
1851 if test -n "$CONFIG_SITE"; then
1852 ac_site_file1=$CONFIG_SITE
1853 elif test "x$prefix" != xNONE; then
1854 ac_site_file1=$prefix/share/config.site
1855 ac_site_file2=$prefix/etc/config.site
1856 else
1857 ac_site_file1=$ac_default_prefix/share/config.site
1858 ac_site_file2=$ac_default_prefix/etc/config.site
1860 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1862 test "x$ac_site_file" = xNONE && continue
1863 if test -r "$ac_site_file"; then
1864 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1865 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1866 sed 's/^/| /' "$ac_site_file" >&5
1867 . "$ac_site_file"
1869 done
1871 if test -r "$cache_file"; then
1872 # Some versions of bash will fail to source /dev/null (special
1873 # files actually), so we avoid doing that.
1874 if test -f "$cache_file"; then
1875 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1876 $as_echo "$as_me: loading cache $cache_file" >&6;}
1877 case $cache_file in
1878 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1879 *) . "./$cache_file";;
1880 esac
1882 else
1883 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1884 $as_echo "$as_me: creating cache $cache_file" >&6;}
1885 >$cache_file
1888 # Check that the precious variables saved in the cache have kept the same
1889 # value.
1890 ac_cache_corrupted=false
1891 for ac_var in $ac_precious_vars; do
1892 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1893 eval ac_new_set=\$ac_env_${ac_var}_set
1894 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1895 eval ac_new_val=\$ac_env_${ac_var}_value
1896 case $ac_old_set,$ac_new_set in
1897 set,)
1898 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1899 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1900 ac_cache_corrupted=: ;;
1901 ,set)
1902 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1903 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1904 ac_cache_corrupted=: ;;
1905 ,);;
1907 if test "x$ac_old_val" != "x$ac_new_val"; then
1908 # differences in whitespace do not lead to failure.
1909 ac_old_val_w=`echo x $ac_old_val`
1910 ac_new_val_w=`echo x $ac_new_val`
1911 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1912 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1913 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1914 ac_cache_corrupted=:
1915 else
1916 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1917 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1918 eval $ac_var=\$ac_old_val
1920 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1921 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1922 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1923 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1924 fi;;
1925 esac
1926 # Pass precious variables to config.status.
1927 if test "$ac_new_set" = set; then
1928 case $ac_new_val in
1929 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1930 *) ac_arg=$ac_var=$ac_new_val ;;
1931 esac
1932 case " $ac_configure_args " in
1933 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1934 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1935 esac
1937 done
1938 if $ac_cache_corrupted; then
1939 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1941 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1942 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1943 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1944 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1945 { (exit 1); exit 1; }; }
1972 ac_ext=c
1973 ac_cpp='$CPP $CPPFLAGS'
1974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1980 ac_config_headers="$ac_config_headers config.h"
1982 ac_aux_dir=
1983 for ac_dir in scripts "$srcdir"/scripts; do
1984 if test -f "$ac_dir/install-sh"; then
1985 ac_aux_dir=$ac_dir
1986 ac_install_sh="$ac_aux_dir/install-sh -c"
1987 break
1988 elif test -f "$ac_dir/install.sh"; then
1989 ac_aux_dir=$ac_dir
1990 ac_install_sh="$ac_aux_dir/install.sh -c"
1991 break
1992 elif test -f "$ac_dir/shtool"; then
1993 ac_aux_dir=$ac_dir
1994 ac_install_sh="$ac_aux_dir/shtool install -c"
1995 break
1997 done
1998 if test -z "$ac_aux_dir"; then
1999 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&5
2000 $as_echo "$as_me: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&2;}
2001 { (exit 1); exit 1; }; }
2004 # These three variables are undocumented and unsupported,
2005 # and are intended to be withdrawn in a future Autoconf release.
2006 # They can cause serious problems if a builder's source tree is in a directory
2007 # whose full name contains unusual characters.
2008 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2009 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2010 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2014 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
2015 { { $as_echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
2016 $as_echo "$as_me: error: you must configure in a separate build directory" >&2;}
2017 { (exit 1); exit 1; }; }
2020 # This will get text that should go into config.make.
2021 config_vars=
2023 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
2025 # Check whether --with-gd was given.
2026 if test "${with_gd+set}" = set; then
2027 withval=$with_gd; case "$with_gd" in
2028 yes|''|no) ;;
2029 *) libgd_include="-I$withval/include"
2030 libgd_ldflags="-L$withval/lib" ;;
2031 esac
2036 # Check whether --with-gd-include was given.
2037 if test "${with_gd_include+set}" = set; then
2038 withval=$with_gd_include; case "$with_gd_include" in
2039 ''|no) ;;
2040 *) libgd_include="-I$withval" ;;
2041 esac
2046 # Check whether --with-gd-lib was given.
2047 if test "${with_gd_lib+set}" = set; then
2048 withval=$with_gd_lib; case "$with_gd_lib" in
2049 ''|no) ;;
2050 *) libgd_ldflags="-L$withval" ;;
2051 esac
2056 if test -n "$libgd_include"; then
2057 config_vars="$config_vars
2058 CFLAGS-memusagestat.c = $libgd_include"
2060 if test -n "$libgd_ldflags"; then
2061 config_vars="$config_vars
2062 libgd-LDFLAGS = $libgd_ldflags"
2066 # Check whether --with-fp was given.
2067 if test "${with_fp+set}" = set; then
2068 withval=$with_fp; with_fp=$withval
2069 else
2070 with_fp=yes
2075 # Check whether --with-binutils was given.
2076 if test "${with_binutils+set}" = set; then
2077 withval=$with_binutils; path_binutils=$withval
2078 else
2079 path_binutils=''
2083 # Check whether --with-elf was given.
2084 if test "${with_elf+set}" = set; then
2085 withval=$with_elf; elf=$withval
2086 else
2087 elf=no
2091 # Check whether --with-selinux was given.
2092 if test "${with_selinux+set}" = set; then
2093 withval=$with_selinux; with_selinux=$withval
2094 else
2095 with_selinux=auto
2099 # Check whether --with-xcoff was given.
2100 if test "${with_xcoff+set}" = set; then
2101 withval=$with_xcoff; xcoff=$withval
2102 else
2103 xcoff=no
2107 # Check whether --with-cvs was given.
2108 if test "${with_cvs+set}" = set; then
2109 withval=$with_cvs; with_cvs=$withval
2110 else
2111 with_cvs=yes
2114 if test "$with_cvs" = yes; then
2115 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
2116 then
2117 with_cvs=no
2123 # Check whether --with-headers was given.
2124 if test "${with_headers+set}" = set; then
2125 withval=$with_headers; sysheaders=$withval
2126 else
2127 sysheaders=''
2131 # Check whether --enable-sanity-checks was given.
2132 if test "${enable_sanity_checks+set}" = set; then
2133 enableval=$enable_sanity_checks; enable_sanity=$enableval
2134 else
2135 enable_sanity=yes
2140 # Check whether --enable-check-abi was given.
2141 if test "${enable_check_abi+set}" = set; then
2142 enableval=$enable_check_abi; enable_check_abi=$enableval
2143 else
2144 enable_check_abi=no
2148 static=yes
2149 # Check whether --enable-shared was given.
2150 if test "${enable_shared+set}" = set; then
2151 enableval=$enable_shared; shared=$enableval
2152 else
2153 shared=default
2156 # Check whether --enable-profile was given.
2157 if test "${enable_profile+set}" = set; then
2158 enableval=$enable_profile; profile=$enableval
2159 else
2160 profile=no
2163 # Check whether --enable-omitfp was given.
2164 if test "${enable_omitfp+set}" = set; then
2165 enableval=$enable_omitfp; omitfp=$enableval
2166 else
2167 omitfp=no
2170 # Check whether --enable-bounded was given.
2171 if test "${enable_bounded+set}" = set; then
2172 enableval=$enable_bounded; bounded=$enableval
2173 else
2174 bounded=no
2177 # Check whether --enable-versioning was given.
2178 if test "${enable_versioning+set}" = set; then
2179 enableval=$enable_versioning; enable_versioning=$enableval
2180 else
2181 enable_versioning=yes
2185 # Check whether --enable-oldest-abi was given.
2186 if test "${enable_oldest_abi+set}" = set; then
2187 enableval=$enable_oldest_abi; oldest_abi=$enableval
2188 else
2189 oldest_abi=no
2192 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
2193 oldest_abi=default
2194 else
2195 cat >>confdefs.h <<_ACEOF
2196 #define GLIBC_OLDEST_ABI "$oldest_abi"
2197 _ACEOF
2202 # Check whether --enable-stackguard-randomization was given.
2203 if test "${enable_stackguard_randomization+set}" = set; then
2204 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
2205 else
2206 enable_stackguard_randomize=no
2209 if test "$enable_stackguard_randomize" = yes; then
2210 cat >>confdefs.h <<\_ACEOF
2211 #define ENABLE_STACKGUARD_RANDOMIZE 1
2212 _ACEOF
2216 # Check whether --enable-add-ons was given.
2217 if test "${enable_add_ons+set}" = set; then
2218 enableval=$enable_add_ons;
2219 else
2220 enable_add_ons=yes
2225 # Check whether --with-tls was given.
2226 if test "${with_tls+set}" = set; then
2227 withval=$with_tls; usetls=$withval
2228 else
2229 usetls=yes
2234 # Check whether --with-__thread was given.
2235 if test "${with___thread+set}" = set; then
2236 withval=$with___thread; use__thread=$withval
2237 else
2238 use__thread=yes
2242 # Check whether --enable-hidden-plt was given.
2243 if test "${enable_hidden_plt+set}" = set; then
2244 enableval=$enable_hidden_plt; hidden=$enableval
2245 else
2246 hidden=yes
2249 if test "x$hidden" = xno; then
2250 cat >>confdefs.h <<\_ACEOF
2251 #define NO_HIDDEN 1
2252 _ACEOF
2256 # Check whether --enable-bind-now was given.
2257 if test "${enable_bind_now+set}" = set; then
2258 enableval=$enable_bind_now; bindnow=$enableval
2259 else
2260 bindnow=no
2265 # Check whether --enable-static-nss was given.
2266 if test "${enable_static_nss+set}" = set; then
2267 enableval=$enable_static_nss; static_nss=$enableval
2268 else
2269 static_nss=no
2272 if test x"$static_nss" = xyes || test x"$shared" = xno; then
2273 static_nss=yes
2274 cat >>confdefs.h <<\_ACEOF
2275 #define DO_STATIC_NSS 1
2276 _ACEOF
2280 # Check whether --enable-force-install was given.
2281 if test "${enable_force_install+set}" = set; then
2282 enableval=$enable_force_install; force_install=$enableval
2283 else
2284 force_install=yes
2289 # Check whether --enable-kernel was given.
2290 if test "${enable_kernel+set}" = set; then
2291 enableval=$enable_kernel; minimum_kernel=$enableval
2294 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
2295 # Better nothing than this.
2296 minimum_kernel=""
2297 else
2298 if test "$minimum_kernel" = current; then
2299 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
2303 # Check whether --enable-all-warnings was given.
2304 if test "${enable_all_warnings+set}" = set; then
2305 enableval=$enable_all_warnings; all_warnings=$enableval
2310 # Check whether --enable-multi-arch was given.
2311 if test "${enable_multi_arch+set}" = set; then
2312 enableval=$enable_multi_arch; multi_arch=$enableval
2313 else
2314 multi_arch=no
2317 if test x"$multi_arch" = xyes; then
2318 cat >>confdefs.h <<\_ACEOF
2319 #define USE_MULTIARCH 1
2320 _ACEOF
2322 multi_arch_d=/multiarch
2326 # Check whether --enable-experimental-malloc was given.
2327 if test "${enable_experimental_malloc+set}" = set; then
2328 enableval=$enable_experimental_malloc; experimental_malloc=$enableval
2333 # Check whether --enable-nss-crypt was given.
2334 if test "${enable_nss_crypt+set}" = set; then
2335 enableval=$enable_nss_crypt; nss_crypt=$enableval
2336 else
2337 nss_crypt=no
2340 if test x$nss_crypt = xyes; then
2341 nss_includes=-I$(nss-config --includedir 2>/dev/null)
2342 if test $? -ne 0; then
2343 { { $as_echo "$as_me:$LINENO: error: cannot find include directory with nss-config" >&5
2344 $as_echo "$as_me: error: cannot find include directory with nss-config" >&2;}
2345 { (exit 1); exit 1; }; }
2347 old_CFLAGS="$CFLAGS"
2348 CFLAGS="$CFLAGS $nss_includes"
2349 ac_ext=c
2350 ac_cpp='$CPP $CPPFLAGS'
2351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2354 if test -n "$ac_tool_prefix"; then
2355 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2356 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2357 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 $as_echo_n "checking for $ac_word... " >&6; }
2359 if test "${ac_cv_prog_CC+set}" = set; then
2360 $as_echo_n "(cached) " >&6
2361 else
2362 if test -n "$CC"; then
2363 ac_cv_prog_CC="$CC" # Let the user override the test.
2364 else
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 for as_dir in $PATH
2368 IFS=$as_save_IFS
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2372 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 break 2
2376 done
2377 done
2378 IFS=$as_save_IFS
2382 CC=$ac_cv_prog_CC
2383 if test -n "$CC"; then
2384 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2385 $as_echo "$CC" >&6; }
2386 else
2387 { $as_echo "$as_me:$LINENO: result: no" >&5
2388 $as_echo "no" >&6; }
2393 if test -z "$ac_cv_prog_CC"; then
2394 ac_ct_CC=$CC
2395 # Extract the first word of "gcc", so it can be a program name with args.
2396 set dummy gcc; ac_word=$2
2397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 $as_echo_n "checking for $ac_word... " >&6; }
2399 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2400 $as_echo_n "(cached) " >&6
2401 else
2402 if test -n "$ac_ct_CC"; then
2403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2404 else
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 for as_dir in $PATH
2408 IFS=$as_save_IFS
2409 test -z "$as_dir" && as_dir=.
2410 for ac_exec_ext in '' $ac_executable_extensions; do
2411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2412 ac_cv_prog_ac_ct_CC="gcc"
2413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 break 2
2416 done
2417 done
2418 IFS=$as_save_IFS
2422 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2423 if test -n "$ac_ct_CC"; then
2424 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2425 $as_echo "$ac_ct_CC" >&6; }
2426 else
2427 { $as_echo "$as_me:$LINENO: result: no" >&5
2428 $as_echo "no" >&6; }
2431 if test "x$ac_ct_CC" = x; then
2432 CC=""
2433 else
2434 case $cross_compiling:$ac_tool_warned in
2435 yes:)
2436 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2438 ac_tool_warned=yes ;;
2439 esac
2440 CC=$ac_ct_CC
2442 else
2443 CC="$ac_cv_prog_CC"
2446 if test -z "$CC"; then
2447 if test -n "$ac_tool_prefix"; then
2448 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2449 set dummy ${ac_tool_prefix}cc; ac_word=$2
2450 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2451 $as_echo_n "checking for $ac_word... " >&6; }
2452 if test "${ac_cv_prog_CC+set}" = set; then
2453 $as_echo_n "(cached) " >&6
2454 else
2455 if test -n "$CC"; then
2456 ac_cv_prog_CC="$CC" # Let the user override the test.
2457 else
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 for as_dir in $PATH
2461 IFS=$as_save_IFS
2462 test -z "$as_dir" && as_dir=.
2463 for ac_exec_ext in '' $ac_executable_extensions; do
2464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2465 ac_cv_prog_CC="${ac_tool_prefix}cc"
2466 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467 break 2
2469 done
2470 done
2471 IFS=$as_save_IFS
2475 CC=$ac_cv_prog_CC
2476 if test -n "$CC"; then
2477 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2478 $as_echo "$CC" >&6; }
2479 else
2480 { $as_echo "$as_me:$LINENO: result: no" >&5
2481 $as_echo "no" >&6; }
2487 if test -z "$CC"; then
2488 # Extract the first word of "cc", so it can be a program name with args.
2489 set dummy cc; ac_word=$2
2490 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 $as_echo_n "checking for $ac_word... " >&6; }
2492 if test "${ac_cv_prog_CC+set}" = set; then
2493 $as_echo_n "(cached) " >&6
2494 else
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC="$CC" # Let the user override the test.
2497 else
2498 ac_prog_rejected=no
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2506 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2507 ac_prog_rejected=yes
2508 continue
2510 ac_cv_prog_CC="cc"
2511 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 break 2
2514 done
2515 done
2516 IFS=$as_save_IFS
2518 if test $ac_prog_rejected = yes; then
2519 # We found a bogon in the path, so make sure we never use it.
2520 set dummy $ac_cv_prog_CC
2521 shift
2522 if test $# != 0; then
2523 # We chose a different compiler from the bogus one.
2524 # However, it has the same basename, so the bogon will be chosen
2525 # first if we set CC to just the basename; use the full file name.
2526 shift
2527 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2532 CC=$ac_cv_prog_CC
2533 if test -n "$CC"; then
2534 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2535 $as_echo "$CC" >&6; }
2536 else
2537 { $as_echo "$as_me:$LINENO: result: no" >&5
2538 $as_echo "no" >&6; }
2543 if test -z "$CC"; then
2544 if test -n "$ac_tool_prefix"; then
2545 for ac_prog in cl.exe
2547 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2548 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2549 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2550 $as_echo_n "checking for $ac_word... " >&6; }
2551 if test "${ac_cv_prog_CC+set}" = set; then
2552 $as_echo_n "(cached) " >&6
2553 else
2554 if test -n "$CC"; then
2555 ac_cv_prog_CC="$CC" # Let the user override the test.
2556 else
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2564 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 break 2
2568 done
2569 done
2570 IFS=$as_save_IFS
2574 CC=$ac_cv_prog_CC
2575 if test -n "$CC"; then
2576 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2577 $as_echo "$CC" >&6; }
2578 else
2579 { $as_echo "$as_me:$LINENO: result: no" >&5
2580 $as_echo "no" >&6; }
2584 test -n "$CC" && break
2585 done
2587 if test -z "$CC"; then
2588 ac_ct_CC=$CC
2589 for ac_prog in cl.exe
2591 # Extract the first word of "$ac_prog", so it can be a program name with args.
2592 set dummy $ac_prog; ac_word=$2
2593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2594 $as_echo_n "checking for $ac_word... " >&6; }
2595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2596 $as_echo_n "(cached) " >&6
2597 else
2598 if test -n "$ac_ct_CC"; then
2599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2600 else
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 for as_dir in $PATH
2604 IFS=$as_save_IFS
2605 test -z "$as_dir" && as_dir=.
2606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2608 ac_cv_prog_ac_ct_CC="$ac_prog"
2609 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 break 2
2612 done
2613 done
2614 IFS=$as_save_IFS
2618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2619 if test -n "$ac_ct_CC"; then
2620 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2621 $as_echo "$ac_ct_CC" >&6; }
2622 else
2623 { $as_echo "$as_me:$LINENO: result: no" >&5
2624 $as_echo "no" >&6; }
2628 test -n "$ac_ct_CC" && break
2629 done
2631 if test "x$ac_ct_CC" = x; then
2632 CC=""
2633 else
2634 case $cross_compiling:$ac_tool_warned in
2635 yes:)
2636 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2638 ac_tool_warned=yes ;;
2639 esac
2640 CC=$ac_ct_CC
2647 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2649 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2650 See \`config.log' for more details." >&5
2651 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2652 See \`config.log' for more details." >&2;}
2653 { (exit 1); exit 1; }; }; }
2655 # Provide some information about the compiler.
2656 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2657 set X $ac_compile
2658 ac_compiler=$2
2659 { (ac_try="$ac_compiler --version >&5"
2660 case "(($ac_try" in
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2663 esac
2664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2665 $as_echo "$ac_try_echo") >&5
2666 (eval "$ac_compiler --version >&5") 2>&5
2667 ac_status=$?
2668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }
2670 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
2678 ac_status=$?
2679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }
2681 { (ac_try="$ac_compiler -V >&5"
2682 case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2685 esac
2686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2687 $as_echo "$ac_try_echo") >&5
2688 (eval "$ac_compiler -V >&5") 2>&5
2689 ac_status=$?
2690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }
2693 EXEEXT=
2694 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2695 $as_echo_n "checking for suffix of object files... " >&6; }
2696 if test "${ac_cv_objext+set}" = set; then
2697 $as_echo_n "(cached) " >&6
2698 else
2699 cat >conftest.$ac_ext <<_ACEOF
2700 /* confdefs.h. */
2701 _ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h. */
2707 main ()
2711 return 0;
2713 _ACEOF
2714 rm -f conftest.o conftest.obj
2715 if { (ac_try="$ac_compile"
2716 case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2719 esac
2720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2721 $as_echo "$ac_try_echo") >&5
2722 (eval "$ac_compile") 2>&5
2723 ac_status=$?
2724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; then
2726 for ac_file in conftest.o conftest.obj conftest.*; do
2727 test -f "$ac_file" || continue;
2728 case $ac_file in
2729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2730 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2731 break;;
2732 esac
2733 done
2734 else
2735 $as_echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2738 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2740 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2741 See \`config.log' for more details." >&5
2742 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2743 See \`config.log' for more details." >&2;}
2744 { (exit 1); exit 1; }; }; }
2747 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2749 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2750 $as_echo "$ac_cv_objext" >&6; }
2751 OBJEXT=$ac_cv_objext
2752 ac_objext=$OBJEXT
2753 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2754 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2755 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2756 $as_echo_n "(cached) " >&6
2757 else
2758 cat >conftest.$ac_ext <<_ACEOF
2759 /* confdefs.h. */
2760 _ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2766 main ()
2768 #ifndef __GNUC__
2769 choke me
2770 #endif
2773 return 0;
2775 _ACEOF
2776 rm -f conftest.$ac_objext
2777 if { (ac_try="$ac_compile"
2778 case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781 esac
2782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2783 $as_echo "$ac_try_echo") >&5
2784 (eval "$ac_compile") 2>conftest.er1
2785 ac_status=$?
2786 grep -v '^ *+' conftest.er1 >conftest.err
2787 rm -f conftest.er1
2788 cat conftest.err >&5
2789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } && {
2791 test -z "$ac_c_werror_flag" ||
2792 test ! -s conftest.err
2793 } && test -s conftest.$ac_objext; then
2794 ac_compiler_gnu=yes
2795 else
2796 $as_echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2799 ac_compiler_gnu=no
2802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2806 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2807 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2808 if test $ac_compiler_gnu = yes; then
2809 GCC=yes
2810 else
2811 GCC=
2813 ac_test_CFLAGS=${CFLAGS+set}
2814 ac_save_CFLAGS=$CFLAGS
2815 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2816 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2817 if test "${ac_cv_prog_cc_g+set}" = set; then
2818 $as_echo_n "(cached) " >&6
2819 else
2820 ac_save_c_werror_flag=$ac_c_werror_flag
2821 ac_c_werror_flag=yes
2822 ac_cv_prog_cc_g=no
2823 CFLAGS="-g"
2824 cat >conftest.$ac_ext <<_ACEOF
2825 /* confdefs.h. */
2826 _ACEOF
2827 cat confdefs.h >>conftest.$ac_ext
2828 cat >>conftest.$ac_ext <<_ACEOF
2829 /* end confdefs.h. */
2832 main ()
2836 return 0;
2838 _ACEOF
2839 rm -f conftest.$ac_objext
2840 if { (ac_try="$ac_compile"
2841 case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844 esac
2845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2846 $as_echo "$ac_try_echo") >&5
2847 (eval "$ac_compile") 2>conftest.er1
2848 ac_status=$?
2849 grep -v '^ *+' conftest.er1 >conftest.err
2850 rm -f conftest.er1
2851 cat conftest.err >&5
2852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); } && {
2854 test -z "$ac_c_werror_flag" ||
2855 test ! -s conftest.err
2856 } && test -s conftest.$ac_objext; then
2857 ac_cv_prog_cc_g=yes
2858 else
2859 $as_echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2862 CFLAGS=""
2863 cat >conftest.$ac_ext <<_ACEOF
2864 /* confdefs.h. */
2865 _ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2871 main ()
2875 return 0;
2877 _ACEOF
2878 rm -f conftest.$ac_objext
2879 if { (ac_try="$ac_compile"
2880 case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2883 esac
2884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2885 $as_echo "$ac_try_echo") >&5
2886 (eval "$ac_compile") 2>conftest.er1
2887 ac_status=$?
2888 grep -v '^ *+' conftest.er1 >conftest.err
2889 rm -f conftest.er1
2890 cat conftest.err >&5
2891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } && {
2893 test -z "$ac_c_werror_flag" ||
2894 test ! -s conftest.err
2895 } && test -s conftest.$ac_objext; then
2897 else
2898 $as_echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2901 ac_c_werror_flag=$ac_save_c_werror_flag
2902 CFLAGS="-g"
2903 cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h. */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2911 main ()
2915 return 0;
2917 _ACEOF
2918 rm -f conftest.$ac_objext
2919 if { (ac_try="$ac_compile"
2920 case "(($ac_try" in
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2923 esac
2924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2925 $as_echo "$ac_try_echo") >&5
2926 (eval "$ac_compile") 2>conftest.er1
2927 ac_status=$?
2928 grep -v '^ *+' conftest.er1 >conftest.err
2929 rm -f conftest.er1
2930 cat conftest.err >&5
2931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } && {
2933 test -z "$ac_c_werror_flag" ||
2934 test ! -s conftest.err
2935 } && test -s conftest.$ac_objext; then
2936 ac_cv_prog_cc_g=yes
2937 else
2938 $as_echo "$as_me: failed program was:" >&5
2939 sed 's/^/| /' conftest.$ac_ext >&5
2944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2951 ac_c_werror_flag=$ac_save_c_werror_flag
2953 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2954 $as_echo "$ac_cv_prog_cc_g" >&6; }
2955 if test "$ac_test_CFLAGS" = set; then
2956 CFLAGS=$ac_save_CFLAGS
2957 elif test $ac_cv_prog_cc_g = yes; then
2958 if test "$GCC" = yes; then
2959 CFLAGS="-g -O2"
2960 else
2961 CFLAGS="-g"
2963 else
2964 if test "$GCC" = yes; then
2965 CFLAGS="-O2"
2966 else
2967 CFLAGS=
2970 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2971 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2972 if test "${ac_cv_prog_cc_c89+set}" = set; then
2973 $as_echo_n "(cached) " >&6
2974 else
2975 ac_cv_prog_cc_c89=no
2976 ac_save_CC=$CC
2977 cat >conftest.$ac_ext <<_ACEOF
2978 /* confdefs.h. */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2983 #include <stdarg.h>
2984 #include <stdio.h>
2985 #include <sys/types.h>
2986 #include <sys/stat.h>
2987 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2988 struct buf { int x; };
2989 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2990 static char *e (p, i)
2991 char **p;
2992 int i;
2994 return p[i];
2996 static char *f (char * (*g) (char **, int), char **p, ...)
2998 char *s;
2999 va_list v;
3000 va_start (v,p);
3001 s = g (p, va_arg (v,int));
3002 va_end (v);
3003 return s;
3006 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3007 function prototypes and stuff, but not '\xHH' hex character constants.
3008 These don't provoke an error unfortunately, instead are silently treated
3009 as 'x'. The following induces an error, until -std is added to get
3010 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3011 array size at least. It's necessary to write '\x00'==0 to get something
3012 that's true only with -std. */
3013 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3015 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3016 inside strings and character constants. */
3017 #define FOO(x) 'x'
3018 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3020 int test (int i, double x);
3021 struct s1 {int (*f) (int a);};
3022 struct s2 {int (*f) (double a);};
3023 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3024 int argc;
3025 char **argv;
3027 main ()
3029 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3031 return 0;
3033 _ACEOF
3034 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3035 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3037 CC="$ac_save_CC $ac_arg"
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3040 case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043 esac
3044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3045 $as_echo "$ac_try_echo") >&5
3046 (eval "$ac_compile") 2>conftest.er1
3047 ac_status=$?
3048 grep -v '^ *+' conftest.er1 >conftest.err
3049 rm -f conftest.er1
3050 cat conftest.err >&5
3051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } && {
3053 test -z "$ac_c_werror_flag" ||
3054 test ! -s conftest.err
3055 } && test -s conftest.$ac_objext; then
3056 ac_cv_prog_cc_c89=$ac_arg
3057 else
3058 $as_echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3064 rm -f core conftest.err conftest.$ac_objext
3065 test "x$ac_cv_prog_cc_c89" != "xno" && break
3066 done
3067 rm -f conftest.$ac_ext
3068 CC=$ac_save_CC
3071 # AC_CACHE_VAL
3072 case "x$ac_cv_prog_cc_c89" in
3074 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3075 $as_echo "none needed" >&6; } ;;
3076 xno)
3077 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3078 $as_echo "unsupported" >&6; } ;;
3080 CC="$CC $ac_cv_prog_cc_c89"
3081 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3082 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3083 esac
3086 ac_ext=c
3087 ac_cpp='$CPP $CPPFLAGS'
3088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3093 cat >conftest.$ac_ext <<_ACEOF
3094 typedef int PRBool;
3095 #include <hasht.h>
3096 #include <nsslowhash.h>
3097 void f (void) { NSSLOW_Init (); }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3101 case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104 esac
3105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3106 $as_echo "$ac_try_echo") >&5
3107 (eval "$ac_compile") 2>conftest.er1
3108 ac_status=$?
3109 grep -v '^ *+' conftest.er1 >conftest.err
3110 rm -f conftest.er1
3111 cat conftest.err >&5
3112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); } && {
3114 test -z "$ac_c_werror_flag" ||
3115 test ! -s conftest.err
3116 } && test -s conftest.$ac_objext; then
3117 libc_cv_nss_crypt=yes
3118 else
3119 $as_echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3122 { { $as_echo "$as_me:$LINENO: error:
3123 cannot find NSS headers with lowlevel hash function interfaces" >&5
3124 $as_echo "$as_me: error:
3125 cannot find NSS headers with lowlevel hash function interfaces" >&2;}
3126 { (exit 1); exit 1; }; }
3129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3130 old_LIBS="$LIBS"
3131 LIBS="$LIBS -lfreebl3"
3132 cat >conftest.$ac_ext <<_ACEOF
3133 /* confdefs.h. */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3138 typedef int PRBool;
3139 #include <hasht.h>
3140 #include <nsslowhash.h>
3142 main ()
3144 NSSLOW_Init();
3146 return 0;
3148 _ACEOF
3149 rm -f conftest.$ac_objext conftest$ac_exeext
3150 if { (ac_try="$ac_link"
3151 case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154 esac
3155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3156 $as_echo "$ac_try_echo") >&5
3157 (eval "$ac_link") 2>conftest.er1
3158 ac_status=$?
3159 grep -v '^ *+' conftest.er1 >conftest.err
3160 rm -f conftest.er1
3161 cat conftest.err >&5
3162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } && {
3164 test -z "$ac_c_werror_flag" ||
3165 test ! -s conftest.err
3166 } && test -s conftest$ac_exeext && {
3167 test "$cross_compiling" = yes ||
3168 $as_test_x conftest$ac_exeext
3169 }; then
3170 libc_cv_nss_crypt=yes
3171 else
3172 $as_echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3175 { { $as_echo "$as_me:$LINENO: error:
3176 cannot link program using lowlevel NSS hash functions" >&5
3177 $as_echo "$as_me: error:
3178 cannot link program using lowlevel NSS hash functions" >&2;}
3179 { (exit 1); exit 1; }; }
3182 rm -rf conftest.dSYM
3183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3184 conftest$ac_exeext conftest.$ac_ext
3185 CFLAGS="$old_CFLAGS"
3186 LIBS="$old_LIBS"
3187 else
3188 libc_cv_nss_crypt=no
3192 # Make sure we can run config.sub.
3193 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3194 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3195 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3196 { (exit 1); exit 1; }; }
3198 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3199 $as_echo_n "checking build system type... " >&6; }
3200 if test "${ac_cv_build+set}" = set; then
3201 $as_echo_n "(cached) " >&6
3202 else
3203 ac_build_alias=$build_alias
3204 test "x$ac_build_alias" = x &&
3205 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3206 test "x$ac_build_alias" = x &&
3207 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3208 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3209 { (exit 1); exit 1; }; }
3210 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3211 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3212 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3213 { (exit 1); exit 1; }; }
3216 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3217 $as_echo "$ac_cv_build" >&6; }
3218 case $ac_cv_build in
3219 *-*-*) ;;
3220 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3221 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3222 { (exit 1); exit 1; }; };;
3223 esac
3224 build=$ac_cv_build
3225 ac_save_IFS=$IFS; IFS='-'
3226 set x $ac_cv_build
3227 shift
3228 build_cpu=$1
3229 build_vendor=$2
3230 shift; shift
3231 # Remember, the first character of IFS is used to create $*,
3232 # except with old shells:
3233 build_os=$*
3234 IFS=$ac_save_IFS
3235 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3238 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3239 $as_echo_n "checking host system type... " >&6; }
3240 if test "${ac_cv_host+set}" = set; then
3241 $as_echo_n "(cached) " >&6
3242 else
3243 if test "x$host_alias" = x; then
3244 ac_cv_host=$ac_cv_build
3245 else
3246 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3247 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3248 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3249 { (exit 1); exit 1; }; }
3253 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3254 $as_echo "$ac_cv_host" >&6; }
3255 case $ac_cv_host in
3256 *-*-*) ;;
3257 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3258 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3259 { (exit 1); exit 1; }; };;
3260 esac
3261 host=$ac_cv_host
3262 ac_save_IFS=$IFS; IFS='-'
3263 set x $ac_cv_host
3264 shift
3265 host_cpu=$1
3266 host_vendor=$2
3267 shift; shift
3268 # Remember, the first character of IFS is used to create $*,
3269 # except with old shells:
3270 host_os=$*
3271 IFS=$ac_save_IFS
3272 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3276 # The way shlib-versions is used to generate soversions.mk uses a
3277 # fairly simplistic model for name recognition that can't distinguish
3278 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
3279 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
3280 # tell. This doesn't get used much beyond that, so it's fairly safe.
3281 case "$host_os" in
3282 linux*)
3284 gnu*)
3285 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3287 esac
3289 # We keep the original values in `$config_*' and never modify them, so we
3290 # can write them unchanged into config.make. Everything else uses
3291 # $machine, $vendor, and $os, and changes them whenever convenient.
3292 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3294 # Don't allow vendor == "unknown"
3295 test "$config_vendor" = unknown && config_vendor=
3296 config_os="`echo $config_os | sed 's/^unknown-//'`"
3298 # Some configurations imply other options.
3299 case "$host_os" in
3300 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
3301 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
3303 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
3304 # These systems (almost) always use the ELF format.
3305 elf=yes
3307 aix*)
3308 # These systems are always xcoff
3309 xcoff=yes
3310 elf=no
3312 esac
3314 # The configure fragment of an add-on port can modify these to supplement
3315 # or override the table in the case statement below. No fragment should
3316 # ever change the config_* variables, however.
3317 machine=$config_machine
3318 vendor=$config_vendor
3319 os=$config_os
3320 base_os=''
3322 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
3323 # Unify this here.
3324 if test "$machine" = rs6000; then
3325 machine="powerpc"
3328 # Braindead PowerPC box with absolutely no FPU.
3329 case "$machine-$host_os" in
3330 powerpc*-*soft)
3331 with_fp=no
3333 esac
3335 submachine=
3337 # Check whether --with-cpu was given.
3338 if test "${with_cpu+set}" = set; then
3339 withval=$with_cpu; case "$withval" in
3340 yes|'') { { $as_echo "$as_me:$LINENO: error: --with-cpu requires an argument" >&5
3341 $as_echo "$as_me: error: --with-cpu requires an argument" >&2;}
3342 { (exit 1); exit 1; }; } ;;
3343 no) ;;
3344 *) submachine="$withval" ;;
3345 esac
3350 # An add-on can set this when it wants to disable the sanity check below.
3351 libc_config_ok=no
3355 subdirs="$subdirs "
3358 case "$enable_add_ons" in
3359 ''|no) add_ons= ;;
3360 yes|'*')
3361 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
3362 sed 's@/[^/]*$@@' | sort | uniq`
3363 add_ons_automatic=yes
3365 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
3366 add_ons_automatic=no ;;
3367 esac
3369 configured_add_ons=
3370 add_ons_sfx=
3371 add_ons_pfx=
3372 if test x"$add_ons" != x; then
3373 for f in $add_ons; do
3374 # Some sanity checks
3375 case "$f" in
3376 crypt)
3377 { { $as_echo "$as_me:$LINENO: error:
3378 *** It seems that you're using an old \`crypt' add-on. crypt is now
3379 *** part of glibc and using the old add-on will not work with this
3380 *** release. Start again with fresh sources and without the old
3381 *** \`crypt' add-on." >&5
3382 $as_echo "$as_me: error:
3383 *** It seems that you're using an old \`crypt' add-on. crypt is now
3384 *** part of glibc and using the old add-on will not work with this
3385 *** release. Start again with fresh sources and without the old
3386 *** \`crypt' add-on." >&2;}
3387 { (exit 1); exit 1; }; }
3389 localedata)
3390 { { $as_echo "$as_me:$LINENO: error:
3391 *** It seems that you're using an old \`localedata' add-on. localedata
3392 *** is now part of glibc and using the old add-on will not work with
3393 *** this release. Start again with fresh sources and without the old
3394 *** \`localedata' add-on." >&5
3395 $as_echo "$as_me: error:
3396 *** It seems that you're using an old \`localedata' add-on. localedata
3397 *** is now part of glibc and using the old add-on will not work with
3398 *** this release. Start again with fresh sources and without the old
3399 *** \`localedata' add-on." >&2;}
3400 { (exit 1); exit 1; }; }
3402 esac
3403 done
3405 # Now source each add-on's configure fragment.
3406 # The fragments can use $srcdir/$libc_add_on to find themselves,
3407 # and test $add_ons_automatic to see if they were explicitly requested.
3408 # A fragment can clear (or even change) $libc_add_on to affect
3409 # whether it goes into the list to be actually used in the build.
3410 use_add_ons=
3411 for libc_add_on in $add_ons; do
3412 # Test whether such a directory really exists.
3413 # It can be absolute, or relative to $srcdir, or relative to the build dir.
3414 case "$libc_add_on" in
3416 libc_add_on_srcdir=$libc_add_on
3419 test -d "$srcdir/$libc_add_on" || {
3420 if test -d "$libc_add_on"; then
3421 libc_add_on="`pwd`/$libc_add_on"
3422 else
3423 { { $as_echo "$as_me:$LINENO: error: add-on directory \"$libc_add_on\" does not exist" >&5
3424 $as_echo "$as_me: error: add-on directory \"$libc_add_on\" does not exist" >&2;}
3425 { (exit 1); exit 1; }; }
3428 libc_add_on_srcdir=$srcdir/$libc_add_on
3430 esac
3432 libc_add_on_frag=$libc_add_on_srcdir/configure
3433 libc_add_on_canonical=
3434 if test -r "$libc_add_on_frag"; then
3435 { $as_echo "$as_me:$LINENO: running configure fragment for add-on $libc_add_on" >&5
3436 $as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
3437 libc_add_on_canonical=unknown
3438 libc_add_on_subdirs=
3439 . "$libc_add_on_frag"
3440 test -z "$libc_add_on" || {
3441 configured_add_ons="$configured_add_ons $libc_add_on"
3442 if test "x$libc_add_on_canonical" = xunknown; then
3443 { { $as_echo "$as_me:$LINENO: error: fragment must set \$libc_add_on_canonical" >&5
3444 $as_echo "$as_me: error: fragment must set \$libc_add_on_canonical" >&2;}
3445 { (exit 1); exit 1; }; }
3447 for d in $libc_add_on_subdirs; do
3448 case "$libc_add_on" in
3449 /*) subdir_srcdir="$libc_add_on" ;;
3450 *) subdir_srcdir="\$(..)$libc_add_on" ;;
3451 esac
3452 case "$d" in
3454 d="${libc_add_on_canonical:-$libc_add_on}"
3457 subdir_srcdir="$d"
3460 subdir_srcdir="$subdir_srcdir/$d"
3462 esac
3463 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
3464 add_on_subdirs="$add_on_subdirs $d"
3465 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
3466 $d-srcdir = $subdir_srcdir"
3467 done
3470 if test -n "$libc_add_on"; then
3471 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
3472 then
3473 { $as_echo "$as_me:$LINENO: checking add-on $libc_add_on for preconfigure fragments" >&5
3474 $as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
3475 for frag in $frags; do
3476 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
3477 echo $ECHO_N "$name $ECHO_C" >&6
3478 . "$frag"
3479 done
3480 { $as_echo "$as_me:$LINENO: result: " >&5
3481 $as_echo "" >&6; }
3483 use_add_ons="$use_add_ons $libc_add_on"
3484 add_ons_pfx="$add_ons_pfx $libc_add_on/"
3485 test -z "$libc_add_on_canonical" ||
3486 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
3488 done
3489 # Use echo to strip excess whitespace.
3490 add_ons="`echo $use_add_ons`"
3497 ### I put this here to prevent those annoying emails from people who cannot
3498 ### read and try to compile glibc on unsupported platforms. --drepper
3500 ### By using the undocumented --enable-hacker-mode option for configure
3501 ### one can skip this test to make the configuration not fail for unsupported
3502 ### platforms.
3504 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
3505 case "$machine-$host_os" in
3506 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
3509 echo "*** The GNU C library is currently not available for this platform."
3510 echo "*** So far nobody cared to port it and if there is no volunteer it"
3511 echo "*** might never happen. So, if you have interest to see glibc on"
3512 echo "*** this platform visit"
3513 echo "*** http://www.gnu.org/software/libc/porting.html"
3514 echo "*** and join the group of porters"
3515 exit 1
3517 esac
3520 # Expand the configuration machine name into a subdirectory by architecture
3521 # type and particular chip. If an add-on configure fragment already set
3522 # base_machine, we don't change it.
3523 test -n "$base_machine" || case "$machine" in
3524 a29k | am29000) base_machine=a29k machine=a29k ;;
3525 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
3526 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
3527 i[34567]86) base_machine=i386 machine=i386/$machine ;;
3528 ia64) base_machine=ia64 machine=ia64 ;;
3529 m88???) base_machine=m88k machine=m88k/$machine ;;
3530 m88k) base_machine=m88k machine=m88k/m88100 ;;
3531 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
3532 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
3533 s390) base_machine=s390 machine=s390/s390-32 ;;
3534 s390x) base_machine=s390 machine=s390/s390-64 ;;
3535 sh3*) base_machine=sh machine=sh/sh3 ;;
3536 sh4*) base_machine=sh machine=sh/sh4 ;;
3537 sparc | sparcv[67])
3538 base_machine=sparc machine=sparc/sparc32 ;;
3539 sparcv8 | supersparc | hypersparc)
3540 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
3541 sparcv8plus | sparcv8plusa | sparcv9)
3542 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
3543 sparcv8plusb | sparcv9b)
3544 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
3545 sparcv9v)
3546 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
3547 sparcv9v2)
3548 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
3549 sparc64)
3550 base_machine=sparc machine=sparc/sparc64 ;;
3551 sparc64b)
3552 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
3553 sparc64v)
3554 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
3555 sparc64v2)
3556 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
3557 *) base_machine=$machine ;;
3558 esac
3561 if test "$base_machine" = "i386"; then
3562 cat >>confdefs.h <<\_ACEOF
3563 #define USE_REGPARMS 1
3564 _ACEOF
3568 # Compute the list of sysdep directories for this configuration.
3569 # This can take a while to compute.
3570 sysdep_dir=$srcdir/sysdeps
3571 { $as_echo "$as_me:$LINENO: checking sysdep dirs" >&5
3572 $as_echo_n "checking sysdep dirs... " >&6; }
3573 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
3574 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
3576 test "x$base_os" != x || case "$os" in
3577 gnu*)
3578 base_os=mach/hurd ;;
3579 netbsd* | 386bsd* | freebsd* | bsdi*)
3580 base_os=unix/bsd/bsd4.4 ;;
3581 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
3582 base_os=unix/bsd ;;
3583 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
3584 base_os=unix/sysv ;;
3585 irix6*)
3586 base_os=unix/sysv/irix6/$os ;;
3587 solaris[2-9]*)
3588 base_os=unix/sysv/sysv4 ;;
3589 hpux*)
3590 base_os=unix/sysv/hpux/$os ;;
3591 aix4.3*)
3592 base_os=unix/sysv/aix/aix4.3 ;;
3593 none)
3594 base_os=standalone ;;
3595 esac
3597 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
3598 tail=$os
3599 ostry=$os
3600 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
3601 ostry="$ostry /$o"
3602 tail=$o
3603 done
3604 o=`echo $tail | sed 's/[0-9]*$//'`
3605 if test $o != $tail; then
3606 ostry="$ostry /$o"
3608 # For linux-gnu, try linux-gnu, then linux.
3609 o=`echo $tail | sed 's/-.*$//'`
3610 if test $o != $tail; then
3611 ostry="$ostry /$o"
3614 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
3615 base=
3616 tail=$base_os
3617 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
3618 set $b
3619 base="$base /$1"
3620 tail="$2"
3621 done
3623 # For sparc/sparc32, try sparc/sparc32 and then sparc.
3624 mach=
3625 tail=$machine${submachine:+/$submachine}
3626 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
3627 set $m
3628 # Prepend the machine's FPU directory unless --without-fp.
3629 if test "$with_fp" = yes; then
3630 mach="$mach /$1/fpu"
3631 else
3632 mach="$mach /$1/nofpu"
3634 mach="$mach /$1"
3635 tail="$2"
3636 done
3639 # Find what sysdep directories exist.
3640 sysnames_add_ons=
3641 sysnames=
3642 for b in $base ''; do
3643 for m0 in $mach ''; do
3644 for v in /$vendor ''; do
3645 test "$v" = / && continue
3646 for o in /$ostry ''; do
3647 test "$o" = / && continue
3648 for m in $multi_arch_d $mach ''; do
3649 for d in $add_ons_pfx ''; do
3650 for a in $add_ons_sfx ''; do
3651 if test -n "$m0$m0sub$b$v$o$m$msub"; then
3652 try_srcdir="${srcdir}/"
3653 case "$d" in
3654 /*) try_srcdir= ;;
3655 esac
3656 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
3657 test -n "$enable_debug_configure" &&
3658 echo "$0 DEBUG: try $try" >&2
3659 if test -d "$try_srcdir$try"; then
3660 sysnames="$sysnames $try"
3661 { test -n "$o" || test -n "$b"; } && os_used=t
3662 { test -n "$m" || test -n "$m0"; } && machine_used=t
3663 case x${m0:-$m} in
3664 x*/$submachine) submachine_used=t ;;
3665 esac
3666 if test -n "$d"; then
3667 case "$sysnames_add_ons" in
3668 *" $d "*) ;;
3669 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
3670 esac
3674 done
3675 done
3676 done
3677 done
3678 done
3679 done
3680 done
3682 if test -z "$os_used" && test "$os" != none; then
3683 { { $as_echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
3684 $as_echo "$as_me: error: Operating system $os is not supported." >&2;}
3685 { (exit 1); exit 1; }; }
3687 if test -z "$machine_used" && test "$machine" != none; then
3688 { { $as_echo "$as_me:$LINENO: error: The $machine is not supported." >&5
3689 $as_echo "$as_me: error: The $machine is not supported." >&2;}
3690 { (exit 1); exit 1; }; }
3692 if test -z "$submachine_used" && test -n "$submachine"; then
3693 { { $as_echo "$as_me:$LINENO: error: The $submachine subspecies of $host_cpu is not supported." >&5
3694 $as_echo "$as_me: error: The $submachine subspecies of $host_cpu is not supported." >&2;}
3695 { (exit 1); exit 1; }; }
3699 # We have now validated the configuration.
3702 # If using ELF, look for an `elf' subdirectory of each machine directory.
3703 # We prepend these rather than inserting them whereever the machine appears
3704 # because things specified by the machine's ELF ABI should override
3705 # OS-specific things, and should always be the same for any OS on the
3706 # machine (otherwise what's the point of an ABI?).
3707 if test "$elf" = yes; then
3708 elf_dirs=
3709 for d in $add_ons_pfx ''; do
3710 for m in $mach; do
3711 if test -d $srcdir/${d}sysdeps$m/elf; then
3712 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
3714 done
3715 done
3716 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
3720 # Expand the list of system names into a full list of directories
3721 # from each element's parent name and Implies file (if present).
3722 set $sysnames
3723 names=
3724 while test $# -gt 0; do
3725 name=$1
3726 shift
3728 case " $names " in *" $name "*)
3729 # Already in the list.
3730 continue
3731 esac
3733 # Report each name as we discover it, so there is no long pause in output.
3734 echo $ECHO_N "$name $ECHO_C" >&6
3736 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
3738 case $name in
3739 /*) xsrcdir= ;;
3740 *) xsrcdir=$srcdir/ ;;
3741 esac
3742 test -n "$enable_debug_configure" &&
3743 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
3745 if test -f $xsrcdir$name/Implies; then
3746 # Collect more names from the `Implies' file (removing comments).
3747 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
3748 implied=
3749 for x in $implied_candidate; do
3750 found=no
3751 if test -d $xsrcdir$name_base/$x; then
3752 implied="$implied $name_base/$x";
3753 found=yes
3755 for d in $add_ons_pfx ''; do
3756 try="${d}sysdeps/$x"
3757 case $d in
3758 /*) try_srcdir= ;;
3759 *) try_srcdir=$srcdir/ ;;
3760 esac
3761 test -n "$enable_debug_configure" &&
3762 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
3763 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
3764 then
3765 implied="$implied $try"
3766 found=yes
3767 case "$sysnames_add_ons" in
3768 *" $d "*) ;;
3769 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
3770 esac
3772 done
3773 if test $found = no; then
3774 { $as_echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
3775 $as_echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
3777 done
3778 else
3779 implied=
3782 # Add NAME to the list of names.
3783 names="$names $name"
3785 # Find the parent of NAME, using the empty string if it has none.
3786 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
3788 # Add the names implied by NAME, and NAME's parent (if it has one), to
3789 # the list of names to be processed (the argument list). We prepend the
3790 # implied names to the list and append the parent. We want implied
3791 # directories to come before further directories inferred from the
3792 # configuration components; this ensures that for sysv4, unix/common
3793 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
3794 # after sysv4).
3795 sysnames="`echo $implied $* $parent`"
3796 test -n "$sysnames" && set $sysnames
3797 done
3799 # Add the default directories.
3800 default_sysnames=sysdeps/generic
3801 if test "$elf" = yes; then
3802 default_sysnames="sysdeps/generic/elf $default_sysnames"
3804 sysnames="$names $default_sysnames"
3806 # The other names were emitted during the scan.
3807 { $as_echo "$as_me:$LINENO: result: $default_sysnames" >&5
3808 $as_echo "$default_sysnames" >&6; }
3810 # Collect the list of add-ons that supply partial sysdeps trees.
3811 sysdeps_add_ons=
3812 for add_on in $add_ons; do
3813 case "$add_on" in
3814 /*) xsrcdir= ;;
3815 *) xsrcdir="$srcdir/" ;;
3816 esac
3818 test -d "$xsrcdir$add_on/sysdeps" || {
3819 case "$configured_add_ons " in
3820 *" $add_on "*) ;;
3821 *|'')
3822 { { $as_echo "$as_me:$LINENO: error: add-on $add_on has no configure fragment or sysdeps tree" >&5
3823 $as_echo "$as_me: error: add-on $add_on has no configure fragment or sysdeps tree" >&2;}
3824 { (exit 1); exit 1; }; }
3826 esac
3827 continue
3830 sysdeps_add_ons="$sysdeps_add_ons $add_on"
3831 case "$sysnames_add_ons" in
3832 *" $add_on/ "*) ;;
3833 *|'')
3834 { $as_echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no sysdeps directories" >&5
3835 $as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
3836 continue ;;
3837 esac
3839 found=no
3840 for d in $sysnames; do
3841 case "$d" in
3842 $add_on/sysdeps/*) ;;
3843 *) continue ;;
3844 esac
3845 (cd "$xsrcdir$d" && for f in *[!~]; do
3846 case "$f" in
3847 sys|bits)
3848 for ff in $f/*.h; do
3849 test -d "$ff" || { test -e "$ff" && exit 88; }
3850 done
3853 test -d "$f" || { test -e "$f" && exit 88; }
3855 esac
3856 done)
3857 if test $? -eq 88; then
3858 found=yes
3859 break
3861 done
3862 if test $found = no; then
3863 { $as_echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
3864 $as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
3866 done
3870 ### Locate tools.
3872 # Find a good install program. We prefer a C program (faster),
3873 # so one script is as good as another. But avoid the broken or
3874 # incompatible versions:
3875 # SysV /etc/install, /usr/sbin/install
3876 # SunOS /usr/etc/install
3877 # IRIX /sbin/install
3878 # AIX /bin/install
3879 # AmigaOS /C/install, which installs bootblocks on floppy discs
3880 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3881 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3882 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3883 # OS/2's system install, which has a completely different semantic
3884 # ./install, which can be erroneously created by make from ./install.sh.
3885 # Reject install programs that cannot install multiple files.
3886 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3887 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3888 if test -z "$INSTALL"; then
3889 if test "${ac_cv_path_install+set}" = set; then
3890 $as_echo_n "(cached) " >&6
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 # Account for people who put trailing slashes in PATH elements.
3898 case $as_dir/ in
3899 ./ | .// | /cC/* | \
3900 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3901 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3902 /usr/ucb/* ) ;;
3904 # OSF1 and SCO ODT 3.0 have their own names for install.
3905 # Don't use installbsd from OSF since it installs stuff as root
3906 # by default.
3907 for ac_prog in ginstall scoinst install; do
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3910 if test $ac_prog = install &&
3911 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3912 # AIX install. It has an incompatible calling convention.
3914 elif test $ac_prog = install &&
3915 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3916 # program-specific install script used by HP pwplus--don't use.
3918 else
3919 rm -rf conftest.one conftest.two conftest.dir
3920 echo one > conftest.one
3921 echo two > conftest.two
3922 mkdir conftest.dir
3923 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3924 test -s conftest.one && test -s conftest.two &&
3925 test -s conftest.dir/conftest.one &&
3926 test -s conftest.dir/conftest.two
3927 then
3928 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3929 break 3
3933 done
3934 done
3936 esac
3938 done
3939 IFS=$as_save_IFS
3941 rm -rf conftest.one conftest.two conftest.dir
3944 if test "${ac_cv_path_install+set}" = set; then
3945 INSTALL=$ac_cv_path_install
3946 else
3947 # As a last resort, use the slow shell script. Don't cache a
3948 # value for INSTALL within a source directory, because that will
3949 # break other packages using the cache if that directory is
3950 # removed, or if the value is a relative name.
3951 INSTALL=$ac_install_sh
3954 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3955 $as_echo "$INSTALL" >&6; }
3957 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3958 # It thinks the first close brace ends the variable substitution.
3959 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3961 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3963 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3965 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
3966 # The makefiles need to use a different form to find it in $srcdir.
3967 INSTALL='\$(..)./scripts/install-sh -c'
3969 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3970 $as_echo_n "checking whether ln -s works... " >&6; }
3971 LN_S=$as_ln_s
3972 if test "$LN_S" = "ln -s"; then
3973 { $as_echo "$as_me:$LINENO: result: yes" >&5
3974 $as_echo "yes" >&6; }
3975 else
3976 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3977 $as_echo "no, using $LN_S" >&6; }
3981 ac_ext=c
3982 ac_cpp='$CPP $CPPFLAGS'
3983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986 if test -n "$ac_tool_prefix"; then
3987 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3988 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3989 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3990 $as_echo_n "checking for $ac_word... " >&6; }
3991 if test "${ac_cv_prog_CC+set}" = set; then
3992 $as_echo_n "(cached) " >&6
3993 else
3994 if test -n "$CC"; then
3995 ac_cv_prog_CC="$CC" # Let the user override the test.
3996 else
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4004 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4005 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 break 2
4008 done
4009 done
4010 IFS=$as_save_IFS
4014 CC=$ac_cv_prog_CC
4015 if test -n "$CC"; then
4016 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4017 $as_echo "$CC" >&6; }
4018 else
4019 { $as_echo "$as_me:$LINENO: result: no" >&5
4020 $as_echo "no" >&6; }
4025 if test -z "$ac_cv_prog_CC"; then
4026 ac_ct_CC=$CC
4027 # Extract the first word of "gcc", so it can be a program name with args.
4028 set dummy gcc; ac_word=$2
4029 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4030 $as_echo_n "checking for $ac_word... " >&6; }
4031 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4032 $as_echo_n "(cached) " >&6
4033 else
4034 if test -n "$ac_ct_CC"; then
4035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4036 else
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 for as_dir in $PATH
4040 IFS=$as_save_IFS
4041 test -z "$as_dir" && as_dir=.
4042 for ac_exec_ext in '' $ac_executable_extensions; do
4043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4044 ac_cv_prog_ac_ct_CC="gcc"
4045 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4046 break 2
4048 done
4049 done
4050 IFS=$as_save_IFS
4054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4055 if test -n "$ac_ct_CC"; then
4056 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4057 $as_echo "$ac_ct_CC" >&6; }
4058 else
4059 { $as_echo "$as_me:$LINENO: result: no" >&5
4060 $as_echo "no" >&6; }
4063 if test "x$ac_ct_CC" = x; then
4064 CC=""
4065 else
4066 case $cross_compiling:$ac_tool_warned in
4067 yes:)
4068 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4070 ac_tool_warned=yes ;;
4071 esac
4072 CC=$ac_ct_CC
4074 else
4075 CC="$ac_cv_prog_CC"
4078 if test -z "$CC"; then
4079 if test -n "$ac_tool_prefix"; then
4080 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4081 set dummy ${ac_tool_prefix}cc; ac_word=$2
4082 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4083 $as_echo_n "checking for $ac_word... " >&6; }
4084 if test "${ac_cv_prog_CC+set}" = set; then
4085 $as_echo_n "(cached) " >&6
4086 else
4087 if test -n "$CC"; then
4088 ac_cv_prog_CC="$CC" # Let the user override the test.
4089 else
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4097 ac_cv_prog_CC="${ac_tool_prefix}cc"
4098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4101 done
4102 done
4103 IFS=$as_save_IFS
4107 CC=$ac_cv_prog_CC
4108 if test -n "$CC"; then
4109 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4110 $as_echo "$CC" >&6; }
4111 else
4112 { $as_echo "$as_me:$LINENO: result: no" >&5
4113 $as_echo "no" >&6; }
4119 if test -z "$CC"; then
4120 # Extract the first word of "cc", so it can be a program name with args.
4121 set dummy cc; ac_word=$2
4122 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if test "${ac_cv_prog_CC+set}" = set; then
4125 $as_echo_n "(cached) " >&6
4126 else
4127 if test -n "$CC"; then
4128 ac_cv_prog_CC="$CC" # Let the user override the test.
4129 else
4130 ac_prog_rejected=no
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4134 IFS=$as_save_IFS
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4138 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4139 ac_prog_rejected=yes
4140 continue
4142 ac_cv_prog_CC="cc"
4143 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 break 2
4146 done
4147 done
4148 IFS=$as_save_IFS
4150 if test $ac_prog_rejected = yes; then
4151 # We found a bogon in the path, so make sure we never use it.
4152 set dummy $ac_cv_prog_CC
4153 shift
4154 if test $# != 0; then
4155 # We chose a different compiler from the bogus one.
4156 # However, it has the same basename, so the bogon will be chosen
4157 # first if we set CC to just the basename; use the full file name.
4158 shift
4159 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4164 CC=$ac_cv_prog_CC
4165 if test -n "$CC"; then
4166 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4167 $as_echo "$CC" >&6; }
4168 else
4169 { $as_echo "$as_me:$LINENO: result: no" >&5
4170 $as_echo "no" >&6; }
4175 if test -z "$CC"; then
4176 if test -n "$ac_tool_prefix"; then
4177 for ac_prog in cl.exe
4179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4180 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4181 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if test "${ac_cv_prog_CC+set}" = set; then
4184 $as_echo_n "(cached) " >&6
4185 else
4186 if test -n "$CC"; then
4187 ac_cv_prog_CC="$CC" # Let the user override the test.
4188 else
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4196 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4197 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 break 2
4200 done
4201 done
4202 IFS=$as_save_IFS
4206 CC=$ac_cv_prog_CC
4207 if test -n "$CC"; then
4208 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4209 $as_echo "$CC" >&6; }
4210 else
4211 { $as_echo "$as_me:$LINENO: result: no" >&5
4212 $as_echo "no" >&6; }
4216 test -n "$CC" && break
4217 done
4219 if test -z "$CC"; then
4220 ac_ct_CC=$CC
4221 for ac_prog in cl.exe
4223 # Extract the first word of "$ac_prog", so it can be a program name with args.
4224 set dummy $ac_prog; ac_word=$2
4225 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4226 $as_echo_n "checking for $ac_word... " >&6; }
4227 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4228 $as_echo_n "(cached) " >&6
4229 else
4230 if test -n "$ac_ct_CC"; then
4231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4240 ac_cv_prog_ac_ct_CC="$ac_prog"
4241 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 break 2
4244 done
4245 done
4246 IFS=$as_save_IFS
4250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4251 if test -n "$ac_ct_CC"; then
4252 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4253 $as_echo "$ac_ct_CC" >&6; }
4254 else
4255 { $as_echo "$as_me:$LINENO: result: no" >&5
4256 $as_echo "no" >&6; }
4260 test -n "$ac_ct_CC" && break
4261 done
4263 if test "x$ac_ct_CC" = x; then
4264 CC=""
4265 else
4266 case $cross_compiling:$ac_tool_warned in
4267 yes:)
4268 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4270 ac_tool_warned=yes ;;
4271 esac
4272 CC=$ac_ct_CC
4279 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4282 See \`config.log' for more details." >&5
4283 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4284 See \`config.log' for more details." >&2;}
4285 { (exit 1); exit 1; }; }; }
4287 # Provide some information about the compiler.
4288 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4289 set X $ac_compile
4290 ac_compiler=$2
4291 { (ac_try="$ac_compiler --version >&5"
4292 case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4297 $as_echo "$ac_try_echo") >&5
4298 (eval "$ac_compiler --version >&5") 2>&5
4299 ac_status=$?
4300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }
4302 { (ac_try="$ac_compiler -v >&5"
4303 case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4306 esac
4307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4308 $as_echo "$ac_try_echo") >&5
4309 (eval "$ac_compiler -v >&5") 2>&5
4310 ac_status=$?
4311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }
4313 { (ac_try="$ac_compiler -V >&5"
4314 case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4317 esac
4318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4319 $as_echo "$ac_try_echo") >&5
4320 (eval "$ac_compiler -V >&5") 2>&5
4321 ac_status=$?
4322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }
4325 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4326 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4327 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4328 $as_echo_n "(cached) " >&6
4329 else
4330 cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h. */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4338 main ()
4340 #ifndef __GNUC__
4341 choke me
4342 #endif
4345 return 0;
4347 _ACEOF
4348 rm -f conftest.$ac_objext
4349 if { (ac_try="$ac_compile"
4350 case "(($ac_try" in
4351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352 *) ac_try_echo=$ac_try;;
4353 esac
4354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4355 $as_echo "$ac_try_echo") >&5
4356 (eval "$ac_compile") 2>conftest.er1
4357 ac_status=$?
4358 grep -v '^ *+' conftest.er1 >conftest.err
4359 rm -f conftest.er1
4360 cat conftest.err >&5
4361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } && {
4363 test -z "$ac_c_werror_flag" ||
4364 test ! -s conftest.err
4365 } && test -s conftest.$ac_objext; then
4366 ac_compiler_gnu=yes
4367 else
4368 $as_echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4371 ac_compiler_gnu=no
4374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4378 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4379 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4380 if test $ac_compiler_gnu = yes; then
4381 GCC=yes
4382 else
4383 GCC=
4385 ac_test_CFLAGS=${CFLAGS+set}
4386 ac_save_CFLAGS=$CFLAGS
4387 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4388 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4389 if test "${ac_cv_prog_cc_g+set}" = set; then
4390 $as_echo_n "(cached) " >&6
4391 else
4392 ac_save_c_werror_flag=$ac_c_werror_flag
4393 ac_c_werror_flag=yes
4394 ac_cv_prog_cc_g=no
4395 CFLAGS="-g"
4396 cat >conftest.$ac_ext <<_ACEOF
4397 /* confdefs.h. */
4398 _ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h. */
4404 main ()
4408 return 0;
4410 _ACEOF
4411 rm -f conftest.$ac_objext
4412 if { (ac_try="$ac_compile"
4413 case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416 esac
4417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4418 $as_echo "$ac_try_echo") >&5
4419 (eval "$ac_compile") 2>conftest.er1
4420 ac_status=$?
4421 grep -v '^ *+' conftest.er1 >conftest.err
4422 rm -f conftest.er1
4423 cat conftest.err >&5
4424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } && {
4426 test -z "$ac_c_werror_flag" ||
4427 test ! -s conftest.err
4428 } && test -s conftest.$ac_objext; then
4429 ac_cv_prog_cc_g=yes
4430 else
4431 $as_echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4434 CFLAGS=""
4435 cat >conftest.$ac_ext <<_ACEOF
4436 /* confdefs.h. */
4437 _ACEOF
4438 cat confdefs.h >>conftest.$ac_ext
4439 cat >>conftest.$ac_ext <<_ACEOF
4440 /* end confdefs.h. */
4443 main ()
4447 return 0;
4449 _ACEOF
4450 rm -f conftest.$ac_objext
4451 if { (ac_try="$ac_compile"
4452 case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4455 esac
4456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4457 $as_echo "$ac_try_echo") >&5
4458 (eval "$ac_compile") 2>conftest.er1
4459 ac_status=$?
4460 grep -v '^ *+' conftest.er1 >conftest.err
4461 rm -f conftest.er1
4462 cat conftest.err >&5
4463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } && {
4465 test -z "$ac_c_werror_flag" ||
4466 test ! -s conftest.err
4467 } && test -s conftest.$ac_objext; then
4469 else
4470 $as_echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4473 ac_c_werror_flag=$ac_save_c_werror_flag
4474 CFLAGS="-g"
4475 cat >conftest.$ac_ext <<_ACEOF
4476 /* confdefs.h. */
4477 _ACEOF
4478 cat confdefs.h >>conftest.$ac_ext
4479 cat >>conftest.$ac_ext <<_ACEOF
4480 /* end confdefs.h. */
4483 main ()
4487 return 0;
4489 _ACEOF
4490 rm -f conftest.$ac_objext
4491 if { (ac_try="$ac_compile"
4492 case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4495 esac
4496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4497 $as_echo "$ac_try_echo") >&5
4498 (eval "$ac_compile") 2>conftest.er1
4499 ac_status=$?
4500 grep -v '^ *+' conftest.er1 >conftest.err
4501 rm -f conftest.er1
4502 cat conftest.err >&5
4503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } && {
4505 test -z "$ac_c_werror_flag" ||
4506 test ! -s conftest.err
4507 } && test -s conftest.$ac_objext; then
4508 ac_cv_prog_cc_g=yes
4509 else
4510 $as_echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 ac_c_werror_flag=$ac_save_c_werror_flag
4525 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4526 $as_echo "$ac_cv_prog_cc_g" >&6; }
4527 if test "$ac_test_CFLAGS" = set; then
4528 CFLAGS=$ac_save_CFLAGS
4529 elif test $ac_cv_prog_cc_g = yes; then
4530 if test "$GCC" = yes; then
4531 CFLAGS="-g -O2"
4532 else
4533 CFLAGS="-g"
4535 else
4536 if test "$GCC" = yes; then
4537 CFLAGS="-O2"
4538 else
4539 CFLAGS=
4542 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4543 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4544 if test "${ac_cv_prog_cc_c89+set}" = set; then
4545 $as_echo_n "(cached) " >&6
4546 else
4547 ac_cv_prog_cc_c89=no
4548 ac_save_CC=$CC
4549 cat >conftest.$ac_ext <<_ACEOF
4550 /* confdefs.h. */
4551 _ACEOF
4552 cat confdefs.h >>conftest.$ac_ext
4553 cat >>conftest.$ac_ext <<_ACEOF
4554 /* end confdefs.h. */
4555 #include <stdarg.h>
4556 #include <stdio.h>
4557 #include <sys/types.h>
4558 #include <sys/stat.h>
4559 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4560 struct buf { int x; };
4561 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4562 static char *e (p, i)
4563 char **p;
4564 int i;
4566 return p[i];
4568 static char *f (char * (*g) (char **, int), char **p, ...)
4570 char *s;
4571 va_list v;
4572 va_start (v,p);
4573 s = g (p, va_arg (v,int));
4574 va_end (v);
4575 return s;
4578 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4579 function prototypes and stuff, but not '\xHH' hex character constants.
4580 These don't provoke an error unfortunately, instead are silently treated
4581 as 'x'. The following induces an error, until -std is added to get
4582 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4583 array size at least. It's necessary to write '\x00'==0 to get something
4584 that's true only with -std. */
4585 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4587 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4588 inside strings and character constants. */
4589 #define FOO(x) 'x'
4590 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4592 int test (int i, double x);
4593 struct s1 {int (*f) (int a);};
4594 struct s2 {int (*f) (double a);};
4595 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4596 int argc;
4597 char **argv;
4599 main ()
4601 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4603 return 0;
4605 _ACEOF
4606 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4607 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4609 CC="$ac_save_CC $ac_arg"
4610 rm -f conftest.$ac_objext
4611 if { (ac_try="$ac_compile"
4612 case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4615 esac
4616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4617 $as_echo "$ac_try_echo") >&5
4618 (eval "$ac_compile") 2>conftest.er1
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } && {
4625 test -z "$ac_c_werror_flag" ||
4626 test ! -s conftest.err
4627 } && test -s conftest.$ac_objext; then
4628 ac_cv_prog_cc_c89=$ac_arg
4629 else
4630 $as_echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4636 rm -f core conftest.err conftest.$ac_objext
4637 test "x$ac_cv_prog_cc_c89" != "xno" && break
4638 done
4639 rm -f conftest.$ac_ext
4640 CC=$ac_save_CC
4643 # AC_CACHE_VAL
4644 case "x$ac_cv_prog_cc_c89" in
4646 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4647 $as_echo "none needed" >&6; } ;;
4648 xno)
4649 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4650 $as_echo "unsupported" >&6; } ;;
4652 CC="$CC $ac_cv_prog_cc_c89"
4653 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4654 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4655 esac
4658 ac_ext=c
4659 ac_cpp='$CPP $CPPFLAGS'
4660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4664 if test $host != $build; then
4665 for ac_prog in gcc cc
4667 # Extract the first word of "$ac_prog", so it can be a program name with args.
4668 set dummy $ac_prog; ac_word=$2
4669 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4670 $as_echo_n "checking for $ac_word... " >&6; }
4671 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4672 $as_echo_n "(cached) " >&6
4673 else
4674 if test -n "$BUILD_CC"; then
4675 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4676 else
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4684 ac_cv_prog_BUILD_CC="$ac_prog"
4685 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 break 2
4688 done
4689 done
4690 IFS=$as_save_IFS
4694 BUILD_CC=$ac_cv_prog_BUILD_CC
4695 if test -n "$BUILD_CC"; then
4696 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4697 $as_echo "$BUILD_CC" >&6; }
4698 else
4699 { $as_echo "$as_me:$LINENO: result: no" >&5
4700 $as_echo "no" >&6; }
4704 test -n "$BUILD_CC" && break
4705 done
4709 ac_ext=c
4710 ac_cpp='$CPP $CPPFLAGS'
4711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4714 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4715 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4716 # On Suns, sometimes $CPP names a directory.
4717 if test -n "$CPP" && test -d "$CPP"; then
4718 CPP=
4720 if test -z "$CPP"; then
4721 if test "${ac_cv_prog_CPP+set}" = set; then
4722 $as_echo_n "(cached) " >&6
4723 else
4724 # Double quotes because CPP needs to be expanded
4725 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4727 ac_preproc_ok=false
4728 for ac_c_preproc_warn_flag in '' yes
4730 # Use a header file that comes with gcc, so configuring glibc
4731 # with a fresh cross-compiler works.
4732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4733 # <limits.h> exists even on freestanding compilers.
4734 # On the NeXT, cc -E runs the code through the compiler's parser,
4735 # not just through cpp. "Syntax error" is here to catch this case.
4736 cat >conftest.$ac_ext <<_ACEOF
4737 /* confdefs.h. */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4742 #ifdef __STDC__
4743 # include <limits.h>
4744 #else
4745 # include <assert.h>
4746 #endif
4747 Syntax error
4748 _ACEOF
4749 if { (ac_try="$ac_cpp conftest.$ac_ext"
4750 case "(($ac_try" in
4751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752 *) ac_try_echo=$ac_try;;
4753 esac
4754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4755 $as_echo "$ac_try_echo") >&5
4756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4757 ac_status=$?
4758 grep -v '^ *+' conftest.er1 >conftest.err
4759 rm -f conftest.er1
4760 cat conftest.err >&5
4761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } >/dev/null && {
4763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4764 test ! -s conftest.err
4765 }; then
4767 else
4768 $as_echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.$ac_ext >&5
4771 # Broken: fails on valid input.
4772 continue
4775 rm -f conftest.err conftest.$ac_ext
4777 # OK, works on sane cases. Now check whether nonexistent headers
4778 # can be detected and how.
4779 cat >conftest.$ac_ext <<_ACEOF
4780 /* confdefs.h. */
4781 _ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4785 #include <ac_nonexistent.h>
4786 _ACEOF
4787 if { (ac_try="$ac_cpp conftest.$ac_ext"
4788 case "(($ac_try" in
4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4791 esac
4792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4793 $as_echo "$ac_try_echo") >&5
4794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } >/dev/null && {
4801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4802 test ! -s conftest.err
4803 }; then
4804 # Broken: success on invalid input.
4805 continue
4806 else
4807 $as_echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4810 # Passes both tests.
4811 ac_preproc_ok=:
4812 break
4815 rm -f conftest.err conftest.$ac_ext
4817 done
4818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4819 rm -f conftest.err conftest.$ac_ext
4820 if $ac_preproc_ok; then
4821 break
4824 done
4825 ac_cv_prog_CPP=$CPP
4828 CPP=$ac_cv_prog_CPP
4829 else
4830 ac_cv_prog_CPP=$CPP
4832 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4833 $as_echo "$CPP" >&6; }
4834 ac_preproc_ok=false
4835 for ac_c_preproc_warn_flag in '' yes
4837 # Use a header file that comes with gcc, so configuring glibc
4838 # with a fresh cross-compiler works.
4839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4840 # <limits.h> exists even on freestanding compilers.
4841 # On the NeXT, cc -E runs the code through the compiler's parser,
4842 # not just through cpp. "Syntax error" is here to catch this case.
4843 cat >conftest.$ac_ext <<_ACEOF
4844 /* confdefs.h. */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4849 #ifdef __STDC__
4850 # include <limits.h>
4851 #else
4852 # include <assert.h>
4853 #endif
4854 Syntax error
4855 _ACEOF
4856 if { (ac_try="$ac_cpp conftest.$ac_ext"
4857 case "(($ac_try" in
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4860 esac
4861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4862 $as_echo "$ac_try_echo") >&5
4863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4864 ac_status=$?
4865 grep -v '^ *+' conftest.er1 >conftest.err
4866 rm -f conftest.er1
4867 cat conftest.err >&5
4868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } >/dev/null && {
4870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4871 test ! -s conftest.err
4872 }; then
4874 else
4875 $as_echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4878 # Broken: fails on valid input.
4879 continue
4882 rm -f conftest.err conftest.$ac_ext
4884 # OK, works on sane cases. Now check whether nonexistent headers
4885 # can be detected and how.
4886 cat >conftest.$ac_ext <<_ACEOF
4887 /* confdefs.h. */
4888 _ACEOF
4889 cat confdefs.h >>conftest.$ac_ext
4890 cat >>conftest.$ac_ext <<_ACEOF
4891 /* end confdefs.h. */
4892 #include <ac_nonexistent.h>
4893 _ACEOF
4894 if { (ac_try="$ac_cpp conftest.$ac_ext"
4895 case "(($ac_try" in
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4898 esac
4899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4900 $as_echo "$ac_try_echo") >&5
4901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4902 ac_status=$?
4903 grep -v '^ *+' conftest.er1 >conftest.err
4904 rm -f conftest.er1
4905 cat conftest.err >&5
4906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } >/dev/null && {
4908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4909 test ! -s conftest.err
4910 }; then
4911 # Broken: success on invalid input.
4912 continue
4913 else
4914 $as_echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4917 # Passes both tests.
4918 ac_preproc_ok=:
4919 break
4922 rm -f conftest.err conftest.$ac_ext
4924 done
4925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4926 rm -f conftest.err conftest.$ac_ext
4927 if $ac_preproc_ok; then
4929 else
4930 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4932 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4933 See \`config.log' for more details." >&5
4934 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4935 See \`config.log' for more details." >&2;}
4936 { (exit 1); exit 1; }; }; }
4939 ac_ext=c
4940 ac_cpp='$CPP $CPPFLAGS'
4941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4945 # We need the C++ compiler only for testing.
4946 ac_ext=cpp
4947 ac_cpp='$CXXCPP $CPPFLAGS'
4948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4951 if test -z "$CXX"; then
4952 if test -n "$CCC"; then
4953 CXX=$CCC
4954 else
4955 if test -n "$ac_tool_prefix"; then
4956 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4959 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4960 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4961 $as_echo_n "checking for $ac_word... " >&6; }
4962 if test "${ac_cv_prog_CXX+set}" = set; then
4963 $as_echo_n "(cached) " >&6
4964 else
4965 if test -n "$CXX"; then
4966 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4967 else
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 for as_dir in $PATH
4971 IFS=$as_save_IFS
4972 test -z "$as_dir" && as_dir=.
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4975 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4976 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 break 2
4979 done
4980 done
4981 IFS=$as_save_IFS
4985 CXX=$ac_cv_prog_CXX
4986 if test -n "$CXX"; then
4987 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4988 $as_echo "$CXX" >&6; }
4989 else
4990 { $as_echo "$as_me:$LINENO: result: no" >&5
4991 $as_echo "no" >&6; }
4995 test -n "$CXX" && break
4996 done
4998 if test -z "$CXX"; then
4999 ac_ct_CXX=$CXX
5000 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5002 # Extract the first word of "$ac_prog", so it can be a program name with args.
5003 set dummy $ac_prog; ac_word=$2
5004 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5005 $as_echo_n "checking for $ac_word... " >&6; }
5006 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5007 $as_echo_n "(cached) " >&6
5008 else
5009 if test -n "$ac_ct_CXX"; then
5010 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5011 else
5012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_ac_ct_CXX="$ac_prog"
5020 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5021 break 2
5023 done
5024 done
5025 IFS=$as_save_IFS
5029 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5030 if test -n "$ac_ct_CXX"; then
5031 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5032 $as_echo "$ac_ct_CXX" >&6; }
5033 else
5034 { $as_echo "$as_me:$LINENO: result: no" >&5
5035 $as_echo "no" >&6; }
5039 test -n "$ac_ct_CXX" && break
5040 done
5042 if test "x$ac_ct_CXX" = x; then
5043 CXX="g++"
5044 else
5045 case $cross_compiling:$ac_tool_warned in
5046 yes:)
5047 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5049 ac_tool_warned=yes ;;
5050 esac
5051 CXX=$ac_ct_CXX
5057 # Provide some information about the compiler.
5058 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5059 set X $ac_compile
5060 ac_compiler=$2
5061 { (ac_try="$ac_compiler --version >&5"
5062 case "(($ac_try" in
5063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064 *) ac_try_echo=$ac_try;;
5065 esac
5066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5067 $as_echo "$ac_try_echo") >&5
5068 (eval "$ac_compiler --version >&5") 2>&5
5069 ac_status=$?
5070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }
5072 { (ac_try="$ac_compiler -v >&5"
5073 case "(($ac_try" in
5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5076 esac
5077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5078 $as_echo "$ac_try_echo") >&5
5079 (eval "$ac_compiler -v >&5") 2>&5
5080 ac_status=$?
5081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }
5083 { (ac_try="$ac_compiler -V >&5"
5084 case "(($ac_try" in
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5087 esac
5088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5089 $as_echo "$ac_try_echo") >&5
5090 (eval "$ac_compiler -V >&5") 2>&5
5091 ac_status=$?
5092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }
5095 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5096 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5097 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5098 $as_echo_n "(cached) " >&6
5099 else
5100 cat >conftest.$ac_ext <<_ACEOF
5101 /* confdefs.h. */
5102 _ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5108 main ()
5110 #ifndef __GNUC__
5111 choke me
5112 #endif
5115 return 0;
5117 _ACEOF
5118 rm -f conftest.$ac_objext
5119 if { (ac_try="$ac_compile"
5120 case "(($ac_try" in
5121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122 *) ac_try_echo=$ac_try;;
5123 esac
5124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5125 $as_echo "$ac_try_echo") >&5
5126 (eval "$ac_compile") 2>conftest.er1
5127 ac_status=$?
5128 grep -v '^ *+' conftest.er1 >conftest.err
5129 rm -f conftest.er1
5130 cat conftest.err >&5
5131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } && {
5133 test -z "$ac_cxx_werror_flag" ||
5134 test ! -s conftest.err
5135 } && test -s conftest.$ac_objext; then
5136 ac_compiler_gnu=yes
5137 else
5138 $as_echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5141 ac_compiler_gnu=no
5144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5148 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5149 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5150 if test $ac_compiler_gnu = yes; then
5151 GXX=yes
5152 else
5153 GXX=
5155 ac_test_CXXFLAGS=${CXXFLAGS+set}
5156 ac_save_CXXFLAGS=$CXXFLAGS
5157 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5158 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5159 if test "${ac_cv_prog_cxx_g+set}" = set; then
5160 $as_echo_n "(cached) " >&6
5161 else
5162 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5163 ac_cxx_werror_flag=yes
5164 ac_cv_prog_cxx_g=no
5165 CXXFLAGS="-g"
5166 cat >conftest.$ac_ext <<_ACEOF
5167 /* confdefs.h. */
5168 _ACEOF
5169 cat confdefs.h >>conftest.$ac_ext
5170 cat >>conftest.$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5174 main ()
5178 return 0;
5180 _ACEOF
5181 rm -f conftest.$ac_objext
5182 if { (ac_try="$ac_compile"
5183 case "(($ac_try" in
5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185 *) ac_try_echo=$ac_try;;
5186 esac
5187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5188 $as_echo "$ac_try_echo") >&5
5189 (eval "$ac_compile") 2>conftest.er1
5190 ac_status=$?
5191 grep -v '^ *+' conftest.er1 >conftest.err
5192 rm -f conftest.er1
5193 cat conftest.err >&5
5194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } && {
5196 test -z "$ac_cxx_werror_flag" ||
5197 test ! -s conftest.err
5198 } && test -s conftest.$ac_objext; then
5199 ac_cv_prog_cxx_g=yes
5200 else
5201 $as_echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.$ac_ext >&5
5204 CXXFLAGS=""
5205 cat >conftest.$ac_ext <<_ACEOF
5206 /* confdefs.h. */
5207 _ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5213 main ()
5217 return 0;
5219 _ACEOF
5220 rm -f conftest.$ac_objext
5221 if { (ac_try="$ac_compile"
5222 case "(($ac_try" in
5223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5224 *) ac_try_echo=$ac_try;;
5225 esac
5226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5227 $as_echo "$ac_try_echo") >&5
5228 (eval "$ac_compile") 2>conftest.er1
5229 ac_status=$?
5230 grep -v '^ *+' conftest.er1 >conftest.err
5231 rm -f conftest.er1
5232 cat conftest.err >&5
5233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } && {
5235 test -z "$ac_cxx_werror_flag" ||
5236 test ! -s conftest.err
5237 } && test -s conftest.$ac_objext; then
5239 else
5240 $as_echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.$ac_ext >&5
5243 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5244 CXXFLAGS="-g"
5245 cat >conftest.$ac_ext <<_ACEOF
5246 /* confdefs.h. */
5247 _ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5253 main ()
5257 return 0;
5259 _ACEOF
5260 rm -f conftest.$ac_objext
5261 if { (ac_try="$ac_compile"
5262 case "(($ac_try" in
5263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264 *) ac_try_echo=$ac_try;;
5265 esac
5266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5267 $as_echo "$ac_try_echo") >&5
5268 (eval "$ac_compile") 2>conftest.er1
5269 ac_status=$?
5270 grep -v '^ *+' conftest.er1 >conftest.err
5271 rm -f conftest.er1
5272 cat conftest.err >&5
5273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } && {
5275 test -z "$ac_cxx_werror_flag" ||
5276 test ! -s conftest.err
5277 } && test -s conftest.$ac_objext; then
5278 ac_cv_prog_cxx_g=yes
5279 else
5280 $as_echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5295 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5296 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5297 if test "$ac_test_CXXFLAGS" = set; then
5298 CXXFLAGS=$ac_save_CXXFLAGS
5299 elif test $ac_cv_prog_cxx_g = yes; then
5300 if test "$GXX" = yes; then
5301 CXXFLAGS="-g -O2"
5302 else
5303 CXXFLAGS="-g"
5305 else
5306 if test "$GXX" = yes; then
5307 CXXFLAGS="-O2"
5308 else
5309 CXXFLAGS=
5312 ac_ext=c
5313 ac_cpp='$CPP $CPPFLAGS'
5314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5318 # Was a --with-binutils option given?
5319 if test -n "$path_binutils"; then
5320 # Make absolute; ensure a single trailing slash.
5321 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
5322 CC="$CC -B$path_binutils"
5324 AS=`$CC -print-prog-name=as`
5325 LD=`$CC -print-prog-name=ld`
5326 AR=`$CC -print-prog-name=ar`
5328 OBJDUMP=`$CC -print-prog-name=objdump`
5331 # ranlib has to be treated a bit differently since it might not exist at all.
5332 ac_ranlib=`$CC -print-prog-name=ranlib`
5333 if test "x$ac_ranlib" = xranlib; then
5334 # This extra check has to happen since gcc simply echos the parameter in
5335 # case it cannot find the value in its own directories.
5336 if test -n "$ac_tool_prefix"; then
5337 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5338 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5339 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 $as_echo_n "checking for $ac_word... " >&6; }
5341 if test "${ac_cv_prog_RANLIB+set}" = set; then
5342 $as_echo_n "(cached) " >&6
5343 else
5344 if test -n "$RANLIB"; then
5345 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5346 else
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5358 done
5359 done
5360 IFS=$as_save_IFS
5364 RANLIB=$ac_cv_prog_RANLIB
5365 if test -n "$RANLIB"; then
5366 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5367 $as_echo "$RANLIB" >&6; }
5368 else
5369 { $as_echo "$as_me:$LINENO: result: no" >&5
5370 $as_echo "no" >&6; }
5375 if test -z "$ac_cv_prog_RANLIB"; then
5376 ac_ct_RANLIB=$RANLIB
5377 # Extract the first word of "ranlib", so it can be a program name with args.
5378 set dummy ranlib; ac_word=$2
5379 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5382 $as_echo_n "(cached) " >&6
5383 else
5384 if test -n "$ac_ct_RANLIB"; then
5385 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5386 else
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5394 ac_cv_prog_ac_ct_RANLIB="ranlib"
5395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 break 2
5398 done
5399 done
5400 IFS=$as_save_IFS
5404 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5405 if test -n "$ac_ct_RANLIB"; then
5406 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5407 $as_echo "$ac_ct_RANLIB" >&6; }
5408 else
5409 { $as_echo "$as_me:$LINENO: result: no" >&5
5410 $as_echo "no" >&6; }
5413 if test "x$ac_ct_RANLIB" = x; then
5414 RANLIB=":"
5415 else
5416 case $cross_compiling:$ac_tool_warned in
5417 yes:)
5418 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5420 ac_tool_warned=yes ;;
5421 esac
5422 RANLIB=$ac_ct_RANLIB
5424 else
5425 RANLIB="$ac_cv_prog_RANLIB"
5428 else
5429 RANLIB=$ac_ranlib
5433 # Determine whether we are using GNU binutils.
5434 { $as_echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
5435 $as_echo_n "checking whether $AS is GNU as... " >&6; }
5436 if test "${libc_cv_prog_as_gnu+set}" = set; then
5437 $as_echo_n "(cached) " >&6
5438 else
5439 # Most GNU programs take a -v and spit out some text including
5440 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
5441 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
5442 libc_cv_prog_as_gnu=yes
5443 else
5444 libc_cv_prog_as_gnu=no
5446 rm -fr contest*
5448 { $as_echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
5449 $as_echo "$libc_cv_prog_as_gnu" >&6; }
5450 rm -f a.out
5451 gnu_as=$libc_cv_prog_as_gnu
5453 { $as_echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
5454 $as_echo_n "checking whether $LD is GNU ld... " >&6; }
5455 if test "${libc_cv_prog_ld_gnu+set}" = set; then
5456 $as_echo_n "(cached) " >&6
5457 else
5458 # Most GNU programs take a -v and spit out some text including
5459 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
5460 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
5461 libc_cv_prog_ld_gnu=yes
5462 else
5463 libc_cv_prog_ld_gnu=no
5465 rm -fr contest*
5467 { $as_echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
5468 $as_echo "$libc_cv_prog_ld_gnu" >&6; }
5469 gnu_ld=$libc_cv_prog_ld_gnu
5472 # Accept binutils 2.13 or newer.
5473 for ac_prog in $AS
5475 # Extract the first word of "$ac_prog", so it can be a program name with args.
5476 set dummy $ac_prog; ac_word=$2
5477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if test "${ac_cv_prog_AS+set}" = set; then
5480 $as_echo_n "(cached) " >&6
5481 else
5482 if test -n "$AS"; then
5483 ac_cv_prog_AS="$AS" # Let the user override the test.
5484 else
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in $PATH
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_prog_AS="$ac_prog"
5493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5496 done
5497 done
5498 IFS=$as_save_IFS
5502 AS=$ac_cv_prog_AS
5503 if test -n "$AS"; then
5504 { $as_echo "$as_me:$LINENO: result: $AS" >&5
5505 $as_echo "$AS" >&6; }
5506 else
5507 { $as_echo "$as_me:$LINENO: result: no" >&5
5508 $as_echo "no" >&6; }
5512 test -n "$AS" && break
5513 done
5515 if test -z "$AS"; then
5516 ac_verc_fail=yes
5517 else
5518 # Found it, now check the version.
5519 { $as_echo "$as_me:$LINENO: checking version of $AS" >&5
5520 $as_echo_n "checking version of $AS... " >&6; }
5521 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5522 case $ac_prog_version in
5523 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5524 2.1[3-9]*)
5525 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5526 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5528 esac
5529 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5530 $as_echo "$ac_prog_version" >&6; }
5532 if test $ac_verc_fail = yes; then
5533 AS=: critic_missing="$critic_missing as"
5536 for ac_prog in $LD
5538 # Extract the first word of "$ac_prog", so it can be a program name with args.
5539 set dummy $ac_prog; ac_word=$2
5540 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if test "${ac_cv_prog_LD+set}" = set; then
5543 $as_echo_n "(cached) " >&6
5544 else
5545 if test -n "$LD"; then
5546 ac_cv_prog_LD="$LD" # Let the user override the test.
5547 else
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH
5551 IFS=$as_save_IFS
5552 test -z "$as_dir" && as_dir=.
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555 ac_cv_prog_LD="$ac_prog"
5556 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5557 break 2
5559 done
5560 done
5561 IFS=$as_save_IFS
5565 LD=$ac_cv_prog_LD
5566 if test -n "$LD"; then
5567 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5568 $as_echo "$LD" >&6; }
5569 else
5570 { $as_echo "$as_me:$LINENO: result: no" >&5
5571 $as_echo "no" >&6; }
5575 test -n "$LD" && break
5576 done
5578 if test -z "$LD"; then
5579 ac_verc_fail=yes
5580 else
5581 # Found it, now check the version.
5582 { $as_echo "$as_me:$LINENO: checking version of $LD" >&5
5583 $as_echo_n "checking version of $LD... " >&6; }
5584 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
5585 case $ac_prog_version in
5586 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5587 2.1[3-9]*)
5588 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5589 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5591 esac
5592 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5593 $as_echo "$ac_prog_version" >&6; }
5595 if test $ac_verc_fail = yes; then
5596 LD=: critic_missing="$critic_missing ld"
5600 # We need the physical current working directory. We cannot use the
5601 # "pwd -P" shell builtin since that's not portable. Instead we try to
5602 # find a pwd binary. Note that assigning to the PWD environment
5603 # variable might have some interesting side effects, so we don't do
5604 # that.
5605 # Extract the first word of "pwd", so it can be a program name with args.
5606 set dummy pwd; ac_word=$2
5607 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5608 $as_echo_n "checking for $ac_word... " >&6; }
5609 if test "${ac_cv_path_PWD_P+set}" = set; then
5610 $as_echo_n "(cached) " >&6
5611 else
5612 case $PWD_P in
5613 [\\/]* | ?:[\\/]*)
5614 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
5625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 break 2
5628 done
5629 done
5630 IFS=$as_save_IFS
5632 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
5634 esac
5636 PWD_P=$ac_cv_path_PWD_P
5637 if test -n "$PWD_P"; then
5638 { $as_echo "$as_me:$LINENO: result: $PWD_P" >&5
5639 $as_echo "$PWD_P" >&6; }
5640 else
5641 { $as_echo "$as_me:$LINENO: result: no" >&5
5642 $as_echo "no" >&6; }
5646 if test "$PWD_P" = no; then
5647 { { $as_echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
5648 $as_echo "$as_me: error: *** A pwd binary could not be found." >&2;}
5649 { (exit 1); exit 1; }; }
5652 # These programs are version sensitive.
5654 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
5656 # Extract the first word of "$ac_prog", so it can be a program name with args.
5657 set dummy $ac_prog; ac_word=$2
5658 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5659 $as_echo_n "checking for $ac_word... " >&6; }
5660 if test "${ac_cv_prog_CC+set}" = set; then
5661 $as_echo_n "(cached) " >&6
5662 else
5663 if test -n "$CC"; then
5664 ac_cv_prog_CC="$CC" # Let the user override the test.
5665 else
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5669 IFS=$as_save_IFS
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5673 ac_cv_prog_CC="$ac_prog"
5674 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 break 2
5677 done
5678 done
5679 IFS=$as_save_IFS
5683 CC=$ac_cv_prog_CC
5684 if test -n "$CC"; then
5685 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5686 $as_echo "$CC" >&6; }
5687 else
5688 { $as_echo "$as_me:$LINENO: result: no" >&5
5689 $as_echo "no" >&6; }
5693 test -n "$CC" && break
5694 done
5696 if test -z "$CC"; then
5697 ac_verc_fail=yes
5698 else
5699 # Found it, now check the version.
5700 { $as_echo "$as_me:$LINENO: checking version of $CC" >&5
5701 $as_echo_n "checking version of $CC... " >&6; }
5702 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
5703 case $ac_prog_version in
5704 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5705 3.4* | 4.[0-9]* )
5706 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5707 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5709 esac
5710 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5711 $as_echo "$ac_prog_version" >&6; }
5713 if test $ac_verc_fail = yes; then
5714 critic_missing="$critic_missing gcc"
5717 for ac_prog in gnumake gmake make
5719 # Extract the first word of "$ac_prog", so it can be a program name with args.
5720 set dummy $ac_prog; ac_word=$2
5721 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if test "${ac_cv_prog_MAKE+set}" = set; then
5724 $as_echo_n "(cached) " >&6
5725 else
5726 if test -n "$MAKE"; then
5727 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5728 else
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH
5732 IFS=$as_save_IFS
5733 test -z "$as_dir" && as_dir=.
5734 for ac_exec_ext in '' $ac_executable_extensions; do
5735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5736 ac_cv_prog_MAKE="$ac_prog"
5737 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 break 2
5740 done
5741 done
5742 IFS=$as_save_IFS
5746 MAKE=$ac_cv_prog_MAKE
5747 if test -n "$MAKE"; then
5748 { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
5749 $as_echo "$MAKE" >&6; }
5750 else
5751 { $as_echo "$as_me:$LINENO: result: no" >&5
5752 $as_echo "no" >&6; }
5756 test -n "$MAKE" && break
5757 done
5759 if test -z "$MAKE"; then
5760 ac_verc_fail=yes
5761 else
5762 # Found it, now check the version.
5763 { $as_echo "$as_me:$LINENO: checking version of $MAKE" >&5
5764 $as_echo_n "checking version of $MAKE... " >&6; }
5765 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5766 case $ac_prog_version in
5767 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5768 3.79* | 3.[89]*)
5769 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5770 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5772 esac
5773 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5774 $as_echo "$ac_prog_version" >&6; }
5776 if test $ac_verc_fail = yes; then
5777 critic_missing="$critic_missing make"
5781 for ac_prog in gnumsgfmt gmsgfmt msgfmt
5783 # Extract the first word of "$ac_prog", so it can be a program name with args.
5784 set dummy $ac_prog; ac_word=$2
5785 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5786 $as_echo_n "checking for $ac_word... " >&6; }
5787 if test "${ac_cv_prog_MSGFMT+set}" = set; then
5788 $as_echo_n "(cached) " >&6
5789 else
5790 if test -n "$MSGFMT"; then
5791 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5792 else
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 for as_dir in $PATH
5796 IFS=$as_save_IFS
5797 test -z "$as_dir" && as_dir=.
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5800 ac_cv_prog_MSGFMT="$ac_prog"
5801 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5802 break 2
5804 done
5805 done
5806 IFS=$as_save_IFS
5810 MSGFMT=$ac_cv_prog_MSGFMT
5811 if test -n "$MSGFMT"; then
5812 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5813 $as_echo "$MSGFMT" >&6; }
5814 else
5815 { $as_echo "$as_me:$LINENO: result: no" >&5
5816 $as_echo "no" >&6; }
5820 test -n "$MSGFMT" && break
5821 done
5823 if test -z "$MSGFMT"; then
5824 ac_verc_fail=yes
5825 else
5826 # Found it, now check the version.
5827 { $as_echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
5828 $as_echo_n "checking version of $MSGFMT... " >&6; }
5829 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5830 case $ac_prog_version in
5831 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5832 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
5833 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5834 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5836 esac
5837 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5838 $as_echo "$ac_prog_version" >&6; }
5840 if test $ac_verc_fail = yes; then
5841 MSGFMT=: aux_missing="$aux_missing msgfmt"
5844 for ac_prog in makeinfo
5846 # Extract the first word of "$ac_prog", so it can be a program name with args.
5847 set dummy $ac_prog; ac_word=$2
5848 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5851 $as_echo_n "(cached) " >&6
5852 else
5853 if test -n "$MAKEINFO"; then
5854 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5863 ac_cv_prog_MAKEINFO="$ac_prog"
5864 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 break 2
5867 done
5868 done
5869 IFS=$as_save_IFS
5873 MAKEINFO=$ac_cv_prog_MAKEINFO
5874 if test -n "$MAKEINFO"; then
5875 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5876 $as_echo "$MAKEINFO" >&6; }
5877 else
5878 { $as_echo "$as_me:$LINENO: result: no" >&5
5879 $as_echo "no" >&6; }
5883 test -n "$MAKEINFO" && break
5884 done
5886 if test -z "$MAKEINFO"; then
5887 ac_verc_fail=yes
5888 else
5889 # Found it, now check the version.
5890 { $as_echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
5891 $as_echo_n "checking version of $MAKEINFO... " >&6; }
5892 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5893 case $ac_prog_version in
5894 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5895 4.*)
5896 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5897 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5899 esac
5900 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5901 $as_echo "$ac_prog_version" >&6; }
5903 if test $ac_verc_fail = yes; then
5904 MAKEINFO=: aux_missing="$aux_missing makeinfo"
5907 for ac_prog in sed
5909 # Extract the first word of "$ac_prog", so it can be a program name with args.
5910 set dummy $ac_prog; ac_word=$2
5911 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5912 $as_echo_n "checking for $ac_word... " >&6; }
5913 if test "${ac_cv_prog_SED+set}" = set; then
5914 $as_echo_n "(cached) " >&6
5915 else
5916 if test -n "$SED"; then
5917 ac_cv_prog_SED="$SED" # Let the user override the test.
5918 else
5919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 for as_dir in $PATH
5922 IFS=$as_save_IFS
5923 test -z "$as_dir" && as_dir=.
5924 for ac_exec_ext in '' $ac_executable_extensions; do
5925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5926 ac_cv_prog_SED="$ac_prog"
5927 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 break 2
5930 done
5931 done
5932 IFS=$as_save_IFS
5936 SED=$ac_cv_prog_SED
5937 if test -n "$SED"; then
5938 { $as_echo "$as_me:$LINENO: result: $SED" >&5
5939 $as_echo "$SED" >&6; }
5940 else
5941 { $as_echo "$as_me:$LINENO: result: no" >&5
5942 $as_echo "no" >&6; }
5946 test -n "$SED" && break
5947 done
5949 if test -z "$SED"; then
5950 ac_verc_fail=yes
5951 else
5952 # Found it, now check the version.
5953 { $as_echo "$as_me:$LINENO: checking version of $SED" >&5
5954 $as_echo_n "checking version of $SED... " >&6; }
5955 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
5956 case $ac_prog_version in
5957 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5958 3.0[2-9]*|3.[1-9]*|[4-9]*)
5959 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5960 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5962 esac
5963 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5964 $as_echo "$ac_prog_version" >&6; }
5966 if test $ac_verc_fail = yes; then
5967 SED=: aux_missing="$aux_missing sed"
5971 for ac_prog in autoconf
5973 # Extract the first word of "$ac_prog", so it can be a program name with args.
5974 set dummy $ac_prog; ac_word=$2
5975 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5976 $as_echo_n "checking for $ac_word... " >&6; }
5977 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
5978 $as_echo_n "(cached) " >&6
5979 else
5980 if test -n "$AUTOCONF"; then
5981 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5990 ac_cv_prog_AUTOCONF="$ac_prog"
5991 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 break 2
5994 done
5995 done
5996 IFS=$as_save_IFS
6000 AUTOCONF=$ac_cv_prog_AUTOCONF
6001 if test -n "$AUTOCONF"; then
6002 { $as_echo "$as_me:$LINENO: result: $AUTOCONF" >&5
6003 $as_echo "$AUTOCONF" >&6; }
6004 else
6005 { $as_echo "$as_me:$LINENO: result: no" >&5
6006 $as_echo "no" >&6; }
6010 test -n "$AUTOCONF" && break
6011 done
6012 test -n "$AUTOCONF" || AUTOCONF="no"
6014 case "x$AUTOCONF" in
6015 xno|x|x:) AUTOCONF=no ;;
6017 { $as_echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
6018 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
6019 if test "${libc_cv_autoconf_works+set}" = set; then
6020 $as_echo_n "(cached) " >&6
6021 else
6022 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
6023 libc_cv_autoconf_works=yes
6024 else
6025 libc_cv_autoconf_works=no
6028 { $as_echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
6029 $as_echo "$libc_cv_autoconf_works" >&6; }
6030 test $libc_cv_autoconf_works = yes || AUTOCONF=no
6032 esac
6033 if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
6034 # If --without-cvs they probably won't change configure.in, so no complaints.
6035 aux_missing="$aux_missing autoconf"
6038 test -n "$critic_missing" && { { $as_echo "$as_me:$LINENO: error:
6039 *** These critical programs are missing or too old:$critic_missing
6040 *** Check the INSTALL file for required versions." >&5
6041 $as_echo "$as_me: error:
6042 *** These critical programs are missing or too old:$critic_missing
6043 *** Check the INSTALL file for required versions." >&2;}
6044 { (exit 1); exit 1; }; }
6046 test -n "$aux_missing" && { $as_echo "$as_me:$LINENO: WARNING:
6047 *** These auxiliary programs are missing or incompatible versions:$aux_missing
6048 *** some features will be disabled.
6049 *** Check the INSTALL file for required versions." >&5
6050 $as_echo "$as_me: WARNING:
6051 *** These auxiliary programs are missing or incompatible versions:$aux_missing
6052 *** some features will be disabled.
6053 *** Check the INSTALL file for required versions." >&2;}
6055 # if using special system headers, find out the compiler's sekrit
6056 # header directory and add that to the list. NOTE: Only does the right
6057 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
6058 if test -n "$sysheaders"; then
6059 SYSINCLUDES=-nostdinc
6060 for d in include include-fixed; do
6061 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
6062 SYSINCLUDES="$SYSINCLUDES -isystem $i"
6063 done
6064 SYSINCLUDES="$SYSINCLUDES \
6065 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
6066 if test -n "$CXX"; then
6067 cxxversion=`$CXX -dumpversion 2>&5` &&
6068 cxxmachine=`$CXX -dumpmachine 2>&5` &&
6069 cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" &&
6070 CXX_SYSINCLUDES="-isystem $cxxheaders \
6071 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
6077 # check if ranlib is necessary
6078 { $as_echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
6079 $as_echo_n "checking whether ranlib is necessary... " >&6; }
6080 if test "${libc_cv_ranlib_necessary+set}" = set; then
6081 $as_echo_n "(cached) " >&6
6082 else
6083 cat > conftest.c <<EOF
6084 int a;
6085 char b;
6086 void c(void) {}
6088 $CC $CFLAGS $CPPFLAGS -c conftest.c
6089 $AR cr conftest.a conftest.o
6090 cp conftest.a conftest2.a
6091 $RANLIB conftest.a
6092 if cmp -s conftest.a conftest2.a; then
6093 libc_cv_ranlib_necessary=no
6094 else
6095 libc_cv_ranlib_necessary=yes
6097 rm -rf conftest*
6099 { $as_echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
6100 $as_echo "$libc_cv_ranlib_necessary" >&6; }
6101 if test "$libc_cv_ranlib_necessary" = no; then
6102 RANLIB=:
6105 # Test if LD_LIBRARY_PATH contains the notation for the current directory
6106 # since this would lead to problems installing/building glibc.
6107 # LD_LIBRARY_PATH contains the current directory if one of the following
6108 # is true:
6109 # - one of the terminals (":" and ";") is the first or last sign
6110 # - two terminals occur directly after each other
6111 # - the path contains an element with a dot in it
6112 { $as_echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
6113 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
6114 case ${LD_LIBRARY_PATH} in
6115 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
6116 ld_library_path_setting="contains current directory"
6119 ld_library_path_setting="ok"
6121 esac
6122 { $as_echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
6123 $as_echo "$ld_library_path_setting" >&6; }
6124 if test "$ld_library_path_setting" != "ok"; then
6125 { { $as_echo "$as_me:$LINENO: error:
6126 *** LD_LIBRARY_PATH shouldn't contain the current directory when
6127 *** building glibc. Please change the environment variable
6128 *** and run configure again." >&5
6129 $as_echo "$as_me: error:
6130 *** LD_LIBRARY_PATH shouldn't contain the current directory when
6131 *** building glibc. Please change the environment variable
6132 *** and run configure again." >&2;}
6133 { (exit 1); exit 1; }; }
6136 { $as_echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
6137 $as_echo_n "checking whether GCC supports -static-libgcc... " >&6; }
6138 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
6139 $as_echo_n "(cached) " >&6
6140 else
6141 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
6142 libc_cv_gcc_static_libgcc=
6143 else
6144 libc_cv_gcc_static_libgcc=-static-libgcc
6147 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
6148 $as_echo "$libc_cv_gcc_static_libgcc" >&6; }
6151 # Extract the first word of "bash", so it can be a program name with args.
6152 set dummy bash; ac_word=$2
6153 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6154 $as_echo_n "checking for $ac_word... " >&6; }
6155 if test "${ac_cv_path_BASH_SHELL+set}" = set; then
6156 $as_echo_n "(cached) " >&6
6157 else
6158 case $BASH_SHELL in
6159 [\\/]* | ?:[\\/]*)
6160 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 for as_dir in $PATH
6166 IFS=$as_save_IFS
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6170 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
6171 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6172 break 2
6174 done
6175 done
6176 IFS=$as_save_IFS
6178 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
6180 esac
6182 BASH_SHELL=$ac_cv_path_BASH_SHELL
6183 if test -n "$BASH_SHELL"; then
6184 { $as_echo "$as_me:$LINENO: result: $BASH_SHELL" >&5
6185 $as_echo "$BASH_SHELL" >&6; }
6186 else
6187 { $as_echo "$as_me:$LINENO: result: no" >&5
6188 $as_echo "no" >&6; }
6192 if test "$BASH_SHELL" != no &&
6193 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
6194 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
6195 libc_cv_have_bash2=yes
6196 else
6197 libc_cv_have_bash2=no
6201 if test "$BASH_SHELL" = no; then
6202 # Extract the first word of "ksh", so it can be a program name with args.
6203 set dummy ksh; ac_word=$2
6204 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if test "${ac_cv_path_KSH+set}" = set; then
6207 $as_echo_n "(cached) " >&6
6208 else
6209 case $KSH in
6210 [\\/]* | ?:[\\/]*)
6211 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 for as_dir in $PATH
6217 IFS=$as_save_IFS
6218 test -z "$as_dir" && as_dir=.
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6221 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
6222 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 break 2
6225 done
6226 done
6227 IFS=$as_save_IFS
6229 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
6231 esac
6233 KSH=$ac_cv_path_KSH
6234 if test -n "$KSH"; then
6235 { $as_echo "$as_me:$LINENO: result: $KSH" >&5
6236 $as_echo "$KSH" >&6; }
6237 else
6238 { $as_echo "$as_me:$LINENO: result: no" >&5
6239 $as_echo "no" >&6; }
6243 if test "$KSH" = no; then
6244 libc_cv_have_ksh=no
6245 else
6246 libc_cv_have_ksh=yes
6248 else
6249 KSH="$BASH_SHELL"
6251 libc_cv_have_ksh=yes
6255 for ac_prog in gawk mawk nawk awk
6257 # Extract the first word of "$ac_prog", so it can be a program name with args.
6258 set dummy $ac_prog; ac_word=$2
6259 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if test "${ac_cv_prog_AWK+set}" = set; then
6262 $as_echo_n "(cached) " >&6
6263 else
6264 if test -n "$AWK"; then
6265 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6266 else
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 for as_dir in $PATH
6270 IFS=$as_save_IFS
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6274 ac_cv_prog_AWK="$ac_prog"
6275 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 break 2
6278 done
6279 done
6280 IFS=$as_save_IFS
6284 AWK=$ac_cv_prog_AWK
6285 if test -n "$AWK"; then
6286 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6287 $as_echo "$AWK" >&6; }
6288 else
6289 { $as_echo "$as_me:$LINENO: result: no" >&5
6290 $as_echo "no" >&6; }
6294 test -n "$AWK" && break
6295 done
6297 # Extract the first word of "perl", so it can be a program name with args.
6298 set dummy perl; ac_word=$2
6299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6300 $as_echo_n "checking for $ac_word... " >&6; }
6301 if test "${ac_cv_path_PERL+set}" = set; then
6302 $as_echo_n "(cached) " >&6
6303 else
6304 case $PERL in
6305 [\\/]* | ?:[\\/]*)
6306 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6320 done
6321 done
6322 IFS=$as_save_IFS
6324 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
6326 esac
6328 PERL=$ac_cv_path_PERL
6329 if test -n "$PERL"; then
6330 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6331 $as_echo "$PERL" >&6; }
6332 else
6333 { $as_echo "$as_me:$LINENO: result: no" >&5
6334 $as_echo "no" >&6; }
6338 if test "$PERL" != no &&
6339 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
6340 PERL=no
6342 # Extract the first word of "install-info", so it can be a program name with args.
6343 set dummy install-info; ac_word=$2
6344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6345 $as_echo_n "checking for $ac_word... " >&6; }
6346 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
6347 $as_echo_n "(cached) " >&6
6348 else
6349 case $INSTALL_INFO in
6350 [\\/]* | ?:[\\/]*)
6351 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
6356 for as_dir in $as_dummy
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6366 done
6367 done
6368 IFS=$as_save_IFS
6370 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
6372 esac
6374 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6375 if test -n "$INSTALL_INFO"; then
6376 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
6377 $as_echo "$INSTALL_INFO" >&6; }
6378 else
6379 { $as_echo "$as_me:$LINENO: result: no" >&5
6380 $as_echo "no" >&6; }
6384 # Extract the first word of "bison", so it can be a program name with args.
6385 set dummy bison; ac_word=$2
6386 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if test "${ac_cv_path_BISON+set}" = set; then
6389 $as_echo_n "(cached) " >&6
6390 else
6391 case $BISON in
6392 [\\/]* | ?:[\\/]*)
6393 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
6398 for as_dir in $as_dummy
6400 IFS=$as_save_IFS
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6405 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 break 2
6408 done
6409 done
6410 IFS=$as_save_IFS
6412 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
6414 esac
6416 BISON=$ac_cv_path_BISON
6417 if test -n "$BISON"; then
6418 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6419 $as_echo "$BISON" >&6; }
6420 else
6421 { $as_echo "$as_me:$LINENO: result: no" >&5
6422 $as_echo "no" >&6; }
6427 { $as_echo "$as_me:$LINENO: checking for signed size_t type" >&5
6428 $as_echo_n "checking for signed size_t type... " >&6; }
6429 if test "${libc_cv_signed_size_t+set}" = set; then
6430 $as_echo_n "(cached) " >&6
6431 else
6432 echo '#include <stddef.h>
6433 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
6434 if eval "$ac_cpp conftest.c 2>/dev/null" \
6435 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
6436 libc_cv_signed_size_t=no
6437 else
6438 libc_cv_signed_size_t=yes
6440 rm -f conftest*
6442 { $as_echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
6443 $as_echo "$libc_cv_signed_size_t" >&6; }
6444 if test $libc_cv_signed_size_t = yes; then
6445 cat >> confdefs.h <<\EOF
6446 #undef __SIZE_TYPE__
6447 #define __SIZE_TYPE__ unsigned
6451 { $as_echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
6452 $as_echo_n "checking for libc-friendly stddef.h... " >&6; }
6453 if test "${libc_cv_friendly_stddef+set}" = set; then
6454 $as_echo_n "(cached) " >&6
6455 else
6456 cat >conftest.$ac_ext <<_ACEOF
6457 /* confdefs.h. */
6458 _ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6462 #define __need_size_t
6463 #define __need_wchar_t
6464 #include <stddef.h>
6465 #define __need_NULL
6466 #include <stddef.h>
6468 main ()
6470 size_t size; wchar_t wchar;
6471 #ifdef offsetof
6472 #error stddef.h ignored __need_*
6473 #endif
6474 if (&size == NULL || &wchar == NULL) abort ();
6476 return 0;
6478 _ACEOF
6479 rm -f conftest.$ac_objext
6480 if { (ac_try="$ac_compile"
6481 case "(($ac_try" in
6482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6483 *) ac_try_echo=$ac_try;;
6484 esac
6485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6486 $as_echo "$ac_try_echo") >&5
6487 (eval "$ac_compile") 2>conftest.er1
6488 ac_status=$?
6489 grep -v '^ *+' conftest.er1 >conftest.err
6490 rm -f conftest.er1
6491 cat conftest.err >&5
6492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } && {
6494 test -z "$ac_c_werror_flag" ||
6495 test ! -s conftest.err
6496 } && test -s conftest.$ac_objext; then
6497 libc_cv_friendly_stddef=yes
6498 else
6499 $as_echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6502 libc_cv_friendly_stddef=no
6505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507 { $as_echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
6508 $as_echo "$libc_cv_friendly_stddef" >&6; }
6509 if test $libc_cv_friendly_stddef = yes; then
6510 config_vars="$config_vars
6511 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
6514 { $as_echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
6515 $as_echo_n "checking whether we need to use -P to assemble .S files... " >&6; }
6516 if test "${libc_cv_need_minus_P+set}" = set; then
6517 $as_echo_n "(cached) " >&6
6518 else
6519 cat > conftest.S <<EOF
6520 #include "confdefs.h"
6521 /* Nothing whatsoever. */
6523 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
6524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 (eval $ac_try) 2>&5
6526 ac_status=$?
6527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); }; }; then
6529 libc_cv_need_minus_P=no
6530 else
6531 libc_cv_need_minus_P=yes
6533 rm -f conftest*
6535 { $as_echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
6536 $as_echo "$libc_cv_need_minus_P" >&6; }
6537 if test $libc_cv_need_minus_P = yes; then
6538 config_vars="$config_vars
6539 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
6542 { $as_echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
6543 $as_echo_n "checking whether .text pseudo-op must be used... " >&6; }
6544 if test "${libc_cv_dot_text+set}" = set; then
6545 $as_echo_n "(cached) " >&6
6546 else
6547 cat > conftest.s <<EOF
6548 .text
6550 libc_cv_dot_text=
6551 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553 (eval $ac_try) 2>&5
6554 ac_status=$?
6555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; }; then
6557 libc_cv_dot_text=.text
6559 rm -f conftest*
6562 if test -z "$libc_cv_dot_text"; then
6563 { $as_echo "$as_me:$LINENO: result: no" >&5
6564 $as_echo "no" >&6; }
6565 else
6566 { $as_echo "$as_me:$LINENO: result: yes" >&5
6567 $as_echo "yes" >&6; }
6570 { $as_echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
6571 $as_echo_n "checking for assembler global-symbol directive... " >&6; }
6572 if test "${libc_cv_asm_global_directive+set}" = set; then
6573 $as_echo_n "(cached) " >&6
6574 else
6575 libc_cv_asm_global_directive=UNKNOWN
6576 for ac_globl in .globl .global .EXPORT; do
6577 cat > conftest.s <<EOF
6578 ${libc_cv_dot_text}
6579 ${ac_globl} foo
6580 foo:
6582 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 (eval $ac_try) 2>&5
6585 ac_status=$?
6586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; }; then
6588 libc_cv_asm_global_directive=${ac_globl}
6590 rm -f conftest*
6591 test $libc_cv_asm_global_directive != UNKNOWN && break
6592 done
6594 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
6595 $as_echo "$libc_cv_asm_global_directive" >&6; }
6596 if test $libc_cv_asm_global_directive = UNKNOWN; then
6597 { { $as_echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
6598 $as_echo "$as_me: error: cannot determine asm global directive" >&2;}
6599 { (exit 1); exit 1; }; }
6600 else
6601 cat >>confdefs.h <<_ACEOF
6602 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
6603 _ACEOF
6607 { $as_echo "$as_me:$LINENO: checking for .set assembler directive" >&5
6608 $as_echo_n "checking for .set assembler directive... " >&6; }
6609 if test "${libc_cv_asm_set_directive+set}" = set; then
6610 $as_echo_n "(cached) " >&6
6611 else
6612 cat > conftest.s <<EOF
6613 ${libc_cv_dot_text}
6614 foo:
6615 .set glibc_conftest_frobozz,foo
6616 $libc_cv_asm_global_directive glibc_conftest_frobozz
6618 # The alpha-dec-osf1 assembler gives only a warning for `.set'
6619 # (but it doesn't work), so we must do a linking check to be sure.
6620 cat > conftest1.c <<\EOF
6621 extern int glibc_conftest_frobozz;
6622 void _start() { glibc_conftest_frobozz = 1; }
6624 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6625 -nostartfiles -nostdlib \
6626 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
6627 libc_cv_asm_set_directive=yes
6628 else
6629 libc_cv_asm_set_directive=no
6631 rm -f conftest*
6633 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
6634 $as_echo "$libc_cv_asm_set_directive" >&6; }
6635 if test $libc_cv_asm_set_directive = yes; then
6636 cat >>confdefs.h <<\_ACEOF
6637 #define HAVE_ASM_SET_DIRECTIVE 1
6638 _ACEOF
6642 { $as_echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
6643 $as_echo_n "checking for assembler .type directive prefix... " >&6; }
6644 if test "${libc_cv_asm_type_prefix+set}" = set; then
6645 $as_echo_n "(cached) " >&6
6646 else
6647 libc_cv_asm_type_prefix=no
6648 for ac_try_prefix in '@' '%' '#'; do
6649 cat > conftest.s <<EOF
6650 ${libc_cv_dot_text}
6651 ${libc_cv_asm_global_directive} foo
6652 .type foo, ${ac_try_prefix}object
6653 .size foo, 1
6654 foo:
6655 .byte 1
6657 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 (eval $ac_try) 2>&5
6660 ac_status=$?
6661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 libc_cv_asm_type_prefix=${ac_try_prefix}
6665 rm -f conftest*
6666 test "x$libc_cv_asm_type_prefix" != xno && break
6667 done
6669 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
6670 $as_echo "$libc_cv_asm_type_prefix" >&6; }
6671 if test "x$libc_cv_asm_type_prefix" != xno; then
6672 cat >>confdefs.h <<_ACEOF
6673 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
6674 _ACEOF
6678 # For the multi-arch option we need support in the assembler.
6679 if test "$multi_arch" = yes; then
6680 if test "x$libc_cv_asm_type_prefix" != xno; then
6681 { $as_echo "$as_me:$LINENO: checking for assembler gnu_indirect_function symbol type support" >&5
6682 $as_echo_n "checking for assembler gnu_indirect_function symbol type support... " >&6; }
6683 if test "${libc_cv_asm_gnu_indirect_function+set}" = set; then
6684 $as_echo_n "(cached) " >&6
6685 else
6686 cat > conftest.s <<EOF
6687 .type foo,%gnu_indirect_function
6689 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
6690 then
6691 libc_cv_asm_gnu_indirect_function=yes
6692 else
6693 libc_cv_asm_gnu_indirect_function=no
6695 rm -f conftest*
6697 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_gnu_indirect_function" >&5
6698 $as_echo "$libc_cv_asm_gnu_indirect_function" >&6; }
6699 else
6700 libc_cv_asm_gnu_indirect_function=no
6702 if test x"$libc_cv_asm_gnu_indirect_function" != xyes; then
6703 { { $as_echo "$as_me:$LINENO: error: --enable-multi-arch support requires assembler and linker support" >&5
6704 $as_echo "$as_me: error: --enable-multi-arch support requires assembler and linker support" >&2;}
6705 { (exit 1); exit 1; }; }
6709 { $as_echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
6710 $as_echo_n "checking for .symver assembler directive... " >&6; }
6711 if test "${libc_cv_asm_symver_directive+set}" = set; then
6712 $as_echo_n "(cached) " >&6
6713 else
6714 cat > conftest.s <<EOF
6715 ${libc_cv_dot_text}
6716 _sym:
6717 .symver _sym,sym@VERS
6719 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6720 libc_cv_asm_symver_directive=yes
6721 else
6722 libc_cv_asm_symver_directive=no
6724 rm -f conftest*
6726 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
6727 $as_echo "$libc_cv_asm_symver_directive" >&6; }
6728 { $as_echo "$as_me:$LINENO: checking for ld --version-script" >&5
6729 $as_echo_n "checking for ld --version-script... " >&6; }
6730 if test "${libc_cv_ld_version_script_option+set}" = set; then
6731 $as_echo_n "(cached) " >&6
6732 else
6733 if test $libc_cv_asm_symver_directive = yes; then
6734 cat > conftest.s <<EOF
6735 ${libc_cv_dot_text}
6736 _sym:
6737 .symver _sym,sym@VERS
6739 cat > conftest.map <<EOF
6740 VERS_1 {
6741 global: sym;
6744 VERS_2 {
6745 global: sym;
6746 } VERS_1;
6748 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6749 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
6750 -o conftest.so conftest.o
6751 -nostartfiles -nostdlib
6752 -Wl,--version-script,conftest.map
6753 1>&5'
6754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755 (eval $ac_try) 2>&5
6756 ac_status=$?
6757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; };
6759 then
6760 libc_cv_ld_version_script_option=yes
6761 else
6762 libc_cv_ld_version_script_option=no
6764 else
6765 libc_cv_ld_version_script_option=no
6767 else
6768 libc_cv_ld_version_script_option=no
6770 rm -f conftest*
6772 { $as_echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
6773 $as_echo "$libc_cv_ld_version_script_option" >&6; }
6774 if test $shared != no &&
6775 test $libc_cv_asm_symver_directive = yes &&
6776 test $libc_cv_ld_version_script_option = yes &&
6777 test $enable_versioning = yes; then
6778 VERSIONING=yes
6779 cat >>confdefs.h <<\_ACEOF
6780 #define DO_VERSIONING 1
6781 _ACEOF
6783 else
6784 VERSIONING=no
6788 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
6789 echo "\
6790 *** WARNING: You should not compile GNU libc without versioning. Not using
6791 *** versioning will introduce incompatibilities so that old binaries
6792 *** will not run anymore.
6793 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
6795 if test $elf = yes; then
6796 { $as_echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
6797 $as_echo_n "checking for .previous assembler directive... " >&6; }
6798 if test "${libc_cv_asm_previous_directive+set}" = set; then
6799 $as_echo_n "(cached) " >&6
6800 else
6801 cat > conftest.s <<EOF
6802 .section foo_section
6803 .previous
6805 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 (eval $ac_try) 2>&5
6808 ac_status=$?
6809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; }; then
6811 libc_cv_asm_previous_directive=yes
6812 else
6813 libc_cv_asm_previous_directive=no
6815 rm -f conftest*
6817 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
6818 $as_echo "$libc_cv_asm_previous_directive" >&6; }
6819 if test $libc_cv_asm_previous_directive = yes; then
6820 cat >>confdefs.h <<\_ACEOF
6821 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
6822 _ACEOF
6824 else
6825 { $as_echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
6826 $as_echo_n "checking for .popsection assembler directive... " >&6; }
6827 if test "${libc_cv_asm_popsection_directive+set}" = set; then
6828 $as_echo_n "(cached) " >&6
6829 else
6830 cat > conftest.s <<EOF
6831 .pushsection foo_section
6832 .popsection
6834 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836 (eval $ac_try) 2>&5
6837 ac_status=$?
6838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); }; }; then
6840 libc_cv_asm_popsection_directive=yes
6841 else
6842 libc_cv_asm_popsection_directive=no
6844 rm -f conftest*
6846 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
6847 $as_echo "$libc_cv_asm_popsection_directive" >&6; }
6848 if test $libc_cv_asm_popsection_directive = yes; then
6849 cat >>confdefs.h <<\_ACEOF
6850 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
6851 _ACEOF
6855 { $as_echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
6856 $as_echo_n "checking for .protected and .hidden assembler directive... " >&6; }
6857 if test "${libc_cv_asm_protected_directive+set}" = set; then
6858 $as_echo_n "(cached) " >&6
6859 else
6860 cat > conftest.s <<EOF
6861 .protected foo
6862 foo:
6863 .hidden bar
6864 bar:
6866 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868 (eval $ac_try) 2>&5
6869 ac_status=$?
6870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; }; then
6872 libc_cv_asm_protected_directive=yes
6873 else
6874 { { $as_echo "$as_me:$LINENO: error: assembler support for symbol visibility is required" >&5
6875 $as_echo "$as_me: error: assembler support for symbol visibility is required" >&2;}
6876 { (exit 1); exit 1; }; }
6878 rm -f conftest*
6880 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
6881 $as_echo "$libc_cv_asm_protected_directive" >&6; }
6883 if test $libc_cv_asm_protected_directive = yes; then
6884 { $as_echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
6885 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
6886 if test "${libc_cv_visibility_attribute+set}" = set; then
6887 $as_echo_n "(cached) " >&6
6888 else
6889 cat > conftest.c <<EOF
6890 int foo __attribute__ ((visibility ("hidden"))) = 1;
6891 int bar __attribute__ ((visibility ("protected"))) = 1;
6893 libc_cv_visibility_attribute=no
6894 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896 (eval $ac_try) 2>&5
6897 ac_status=$?
6898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; }; then
6900 if grep '\.hidden.*foo' conftest.s >/dev/null; then
6901 if grep '\.protected.*bar' conftest.s >/dev/null; then
6902 libc_cv_visibility_attribute=yes
6906 rm -f conftest.cs
6909 { $as_echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
6910 $as_echo "$libc_cv_visibility_attribute" >&6; }
6911 if test $libc_cv_visibility_attribute != yes; then
6912 { { $as_echo "$as_me:$LINENO: error: compiler support for visibility attribute is required" >&5
6913 $as_echo "$as_me: error: compiler support for visibility attribute is required" >&2;}
6914 { (exit 1); exit 1; }; }
6918 if test $libc_cv_visibility_attribute = yes; then
6919 { $as_echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
6920 $as_echo_n "checking for broken __attribute__((visibility()))... " >&6; }
6921 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
6922 $as_echo_n "(cached) " >&6
6923 else
6924 cat > conftest.c <<EOF
6925 int foo (int x);
6926 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
6927 int bar (int x) { return x; }
6929 libc_cv_broken_visibility_attribute=yes
6930 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
6931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932 (eval $ac_try) 2>&5
6933 ac_status=$?
6934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); }; }; then
6936 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
6937 libc_cv_broken_visibility_attribute=no
6940 rm -f conftest.c conftest.s
6943 { $as_echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
6944 $as_echo "$libc_cv_broken_visibility_attribute" >&6; }
6945 if test $libc_cv_broken_visibility_attribute = yes; then
6946 { { $as_echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
6947 $as_echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
6948 { (exit 1); exit 1; }; }
6952 { $as_echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
6953 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
6954 if test "${libc_cv_broken_alias_attribute+set}" = set; then
6955 $as_echo_n "(cached) " >&6
6956 else
6957 cat > conftest.c <<EOF
6958 extern int foo (int x) __asm ("xyzzy");
6959 int bar (int x) { return x; }
6960 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
6961 extern int dfoo;
6962 extern __typeof (dfoo) dfoo __asm ("abccb");
6963 int dfoo = 1;
6965 libc_cv_broken_alias_attribute=yes
6966 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968 (eval $ac_try) 2>&5
6969 ac_status=$?
6970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; }; then
6972 if grep 'xyzzy' conftest.s >/dev/null &&
6973 grep 'abccb' conftest.s >/dev/null; then
6974 libc_cv_broken_alias_attribute=no
6977 rm -f conftest.c conftest.s
6980 { $as_echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
6981 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
6982 if test $libc_cv_broken_alias_attribute = yes; then
6983 { { $as_echo "$as_me:$LINENO: error: working alias attribute support required" >&5
6984 $as_echo "$as_me: error: working alias attribute support required" >&2;}
6985 { (exit 1); exit 1; }; }
6988 if test $libc_cv_visibility_attribute = yes; then
6989 { $as_echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
6990 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
6991 if test "${libc_cv_have_sdata_section+set}" = set; then
6992 $as_echo_n "(cached) " >&6
6993 else
6994 echo "int i;" > conftest.c
6995 libc_cv_have_sdata_section=no
6996 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
6997 | grep '\.sdata' >/dev/null; then
6998 libc_cv_have_sdata_section=yes
7000 rm -f conftest.c conftest.so
7003 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
7004 $as_echo "$libc_cv_have_sdata_section" >&6; }
7005 if test $libc_cv_have_sdata_section = yes; then
7006 cat >>confdefs.h <<\_ACEOF
7007 #define HAVE_SDATA_SECTION 1
7008 _ACEOF
7013 { $as_echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
7014 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
7015 if test "${libc_cv_initfini_array+set}" = set; then
7016 $as_echo_n "(cached) " >&6
7017 else
7018 cat > conftest.c <<EOF
7019 int _start (void) { return 0; }
7020 int __start (void) { return 0; }
7021 int foo (void) { return 1; }
7022 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
7024 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
7025 -static -nostartfiles -nostdlib 1>&5'
7026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027 (eval $ac_try) 2>&5
7028 ac_status=$?
7029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }; }
7031 then
7032 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
7033 libc_cv_initfini_array=yes
7034 else
7035 libc_cv_initfini_array=no
7037 else
7038 libc_cv_initfini_array=no
7040 rm -f conftest*
7042 { $as_echo "$as_me:$LINENO: result: $libc_cv_initfini_array" >&5
7043 $as_echo "$libc_cv_initfini_array" >&6; }
7044 if test $libc_cv_initfini_array != yes; then
7045 { { $as_echo "$as_me:$LINENO: error: Need linker with .init_array/.fini_array support." >&5
7046 $as_echo "$as_me: error: Need linker with .init_array/.fini_array support." >&2;}
7047 { (exit 1); exit 1; }; }
7050 { $as_echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
7051 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
7052 if test "${libc_cv_cc_with_libunwind+set}" = set; then
7053 $as_echo_n "(cached) " >&6
7054 else
7056 cat > conftest.c <<EOF
7057 int main (void) { return 0; }
7059 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
7060 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
7061 libc_cv_cc_with_libunwind=yes
7062 else
7063 libc_cv_cc_with_libunwind=no
7065 rm -f conftest*
7067 { $as_echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
7068 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
7070 if test $libc_cv_cc_with_libunwind = yes; then
7071 cat >>confdefs.h <<\_ACEOF
7072 #define HAVE_CC_WITH_LIBUNWIND 1
7073 _ACEOF
7077 { $as_echo "$as_me:$LINENO: checking for -z nodelete option" >&5
7078 $as_echo_n "checking for -z nodelete option... " >&6; }
7079 if test "${libc_cv_z_nodelete+set}" = set; then
7080 $as_echo_n "(cached) " >&6
7081 else
7082 cat > conftest.c <<EOF
7083 int _start (void) { return 42; }
7085 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7086 -fPIC -shared -o conftest.so conftest.c
7087 -nostartfiles -nostdlib
7088 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
7089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 (eval $ac_try) 2>&5
7091 ac_status=$?
7092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); }; }
7094 then
7095 libc_cv_z_nodelete=yes
7096 else
7097 { { $as_echo "$as_me:$LINENO: error: linker with -z nodelete support required" >&5
7098 $as_echo "$as_me: error: linker with -z nodelete support required" >&2;}
7099 { (exit 1); exit 1; }; }
7101 rm -f conftest*
7103 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
7104 $as_echo "$libc_cv_z_nodelete" >&6; }
7106 { $as_echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
7107 $as_echo_n "checking for -z nodlopen option... " >&6; }
7108 if test "${libc_cv_z_nodlopen+set}" = set; then
7109 $as_echo_n "(cached) " >&6
7110 else
7111 cat > conftest.c <<EOF
7112 int _start (void) { return 42; }
7114 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7115 -fPIC -shared -o conftest.so conftest.c
7116 -nostartfiles -nostdlib
7117 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 (eval $ac_try) 2>&5
7120 ac_status=$?
7121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; }
7123 then
7124 libc_cv_z_nodlopen=yes
7125 else
7126 { { $as_echo "$as_me:$LINENO: error: linker with -z nodlopen support required" >&5
7127 $as_echo "$as_me: error: linker with -z nodlopen support required" >&2;}
7128 { (exit 1); exit 1; }; }
7130 rm -f conftest*
7132 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
7133 $as_echo "$libc_cv_z_nodlopen" >&6; }
7135 { $as_echo "$as_me:$LINENO: checking for -z initfirst option" >&5
7136 $as_echo_n "checking for -z initfirst option... " >&6; }
7137 if test "${libc_cv_z_initfirst+set}" = set; then
7138 $as_echo_n "(cached) " >&6
7139 else
7140 cat > conftest.c <<EOF
7141 int _start (void) { return 42; }
7143 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7144 -fPIC -shared -o conftest.so conftest.c
7145 -nostartfiles -nostdlib
7146 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
7147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148 (eval $ac_try) 2>&5
7149 ac_status=$?
7150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); }; }
7152 then
7153 libc_cv_z_initfirst=yes
7154 else
7155 { { $as_echo "$as_me:$LINENO: error: linker with -z initfirst support required" >&5
7156 $as_echo "$as_me: error: linker with -z initfirst support required" >&2;}
7157 { (exit 1); exit 1; }; }
7159 rm -f conftest*
7161 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
7162 $as_echo "$libc_cv_z_initfirst" >&6; }
7164 case "$base_machine" in
7165 i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*)
7166 { $as_echo "$as_me:$LINENO: checking for -z relro option" >&5
7167 $as_echo_n "checking for -z relro option... " >&6; }
7168 if test "${libc_cv_z_relro+set}" = set; then
7169 $as_echo_n "(cached) " >&6
7170 else
7171 libc_cv_z_relro=no
7172 if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 (eval $ac_try) 2>&5
7175 ac_status=$?
7176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }
7178 then
7179 if { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181 (eval $ac_try) 2>&5
7182 ac_status=$?
7183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; }
7185 then
7186 libc_cv_z_relro=yes
7190 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
7191 $as_echo "$libc_cv_z_relro" >&6; }
7192 if test "$libc_cv_z_relro" = no; then
7193 { { $as_echo "$as_me:$LINENO: error: linker with -z relro support required" >&5
7194 $as_echo "$as_me: error: linker with -z relro support required" >&2;}
7195 { (exit 1); exit 1; }; }
7198 *) ;;
7199 esac
7201 { $as_echo "$as_me:$LINENO: checking for -Bgroup option" >&5
7202 $as_echo_n "checking for -Bgroup option... " >&6; }
7203 if test "${libc_cv_Bgroup+set}" = set; then
7204 $as_echo_n "(cached) " >&6
7205 else
7206 cat > conftest.c <<EOF
7207 int _start (void) { return 42; }
7209 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7210 -fPIC -shared -o conftest.so conftest.c
7211 -Wl,-Bgroup -nostdlib 1>&5'
7212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213 (eval $ac_try) 2>&5
7214 ac_status=$?
7215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); }; }
7217 then
7218 libc_cv_Bgroup=yes
7219 else
7220 libc_cv_Bgroup=no
7222 rm -f conftest*
7224 { $as_echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
7225 $as_echo "$libc_cv_Bgroup" >&6; }
7228 { $as_echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
7229 $as_echo_n "checking for libgcc_s suffix... " >&6; }
7230 if test "${libc_cv_libgcc_s_suffix+set}" = set; then
7231 $as_echo_n "(cached) " >&6
7232 else
7233 cat > conftest.c <<EOF
7234 int main (void) { return 0; }
7236 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
7237 -fPIC -shared -shared-libgcc -o conftest.so \
7238 conftest.c -v 2>&1 >/dev/null \
7239 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
7240 rm -f conftest*
7242 { $as_echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
7243 $as_echo "$libc_cv_libgcc_s_suffix" >&6; }
7246 { $as_echo "$as_me:$LINENO: checking for --as-needed option" >&5
7247 $as_echo_n "checking for --as-needed option... " >&6; }
7248 if test "${libc_cv_as_needed+set}" = set; then
7249 $as_echo_n "(cached) " >&6
7250 else
7251 cat > conftest.c <<EOF
7252 int main (void) { return 0; }
7254 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7255 -fPIC -shared -o conftest.so conftest.c
7256 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
7257 -nostdlib 1>&5'
7258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259 (eval $ac_try) 2>&5
7260 ac_status=$?
7261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); }; }
7263 then
7264 libc_cv_as_needed=yes
7265 else
7266 libc_cv_as_needed=no
7268 rm -f conftest*
7270 { $as_echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
7271 $as_echo "$libc_cv_as_needed" >&6; }
7274 ASFLAGS_config=
7275 { $as_echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
7276 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
7277 if test "${libc_cv_as_noexecstack+set}" = set; then
7278 $as_echo_n "(cached) " >&6
7279 else
7280 cat > conftest.c <<EOF
7281 void foo (void) { }
7283 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
7284 -S -o conftest.s conftest.c 1>&5'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 (eval $ac_try) 2>&5
7287 ac_status=$?
7288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; } \
7290 && grep -q .note.GNU-stack conftest.s \
7291 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
7292 -c -o conftest.o conftest.s 1>&5'
7293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 (eval $ac_try) 2>&5
7295 ac_status=$?
7296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); }; }
7298 then
7299 libc_cv_as_noexecstack=yes
7300 else
7301 libc_cv_as_noexecstack=no
7303 rm -f conftest*
7305 { $as_echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
7306 $as_echo "$libc_cv_as_noexecstack" >&6; }
7307 if test $libc_cv_as_noexecstack = yes; then
7308 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
7312 { $as_echo "$as_me:$LINENO: checking for -z combreloc" >&5
7313 $as_echo_n "checking for -z combreloc... " >&6; }
7314 if test "${libc_cv_z_combreloc+set}" = set; then
7315 $as_echo_n "(cached) " >&6
7316 else
7317 cat > conftest.c <<EOF
7318 extern int bar (int);
7319 extern int mumble;
7320 int foo (void) { return bar (mumble); }
7322 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7323 -fPIC -shared -o conftest.so conftest.c
7324 -nostdlib -nostartfiles
7325 -Wl,-z,combreloc 1>&5'
7326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327 (eval $ac_try) 2>&5
7328 ac_status=$?
7329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); }; }
7331 then
7332 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
7333 libc_cv_z_combreloc=yes
7334 else
7335 libc_cv_z_combreloc=no
7337 else
7338 libc_cv_z_combreloc=no
7340 rm -f conftest*
7342 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
7343 $as_echo "$libc_cv_z_combreloc" >&6; }
7344 if test "$libc_cv_z_combreloc" = yes; then
7345 cat >>confdefs.h <<\_ACEOF
7346 #define HAVE_Z_COMBRELOC 1
7347 _ACEOF
7352 { $as_echo "$as_me:$LINENO: checking for -z execstack" >&5
7353 $as_echo_n "checking for -z execstack... " >&6; }
7354 if test "${libc_cv_z_execstack+set}" = set; then
7355 $as_echo_n "(cached) " >&6
7356 else
7357 cat > conftest.c <<EOF
7358 int _start (void) { return 42; }
7360 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7361 -fPIC -shared -o conftest.so conftest.c
7362 -Wl,-z,execstack -nostdlib
7363 1>&5'
7364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365 (eval $ac_try) 2>&5
7366 ac_status=$?
7367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; }
7369 then
7370 libc_cv_z_execstack=yes
7371 else
7372 libc_cv_z_execstack=no
7374 rm -f conftest*
7376 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
7377 $as_echo "$libc_cv_z_execstack" >&6; }
7380 { $as_echo "$as_me:$LINENO: checking for -fpie" >&5
7381 $as_echo_n "checking for -fpie... " >&6; }
7382 if test "${libc_cv_fpie+set}" = set; then
7383 $as_echo_n "(cached) " >&6
7384 else
7385 cat > conftest.c <<EOF
7386 int foo;
7387 main () { return 0;}
7389 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
7390 -o conftest conftest.c 1>&5'
7391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392 (eval $ac_try) 2>&5
7393 ac_status=$?
7394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); }; }
7396 then
7397 libc_cv_fpie=yes
7398 else
7399 libc_cv_fpie=no
7401 rm -f conftest*
7403 { $as_echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
7404 $as_echo "$libc_cv_fpie" >&6; }
7408 { $as_echo "$as_me:$LINENO: checking for --hash-style option" >&5
7409 $as_echo_n "checking for --hash-style option... " >&6; }
7410 if test "${libc_cv_hashstyle+set}" = set; then
7411 $as_echo_n "(cached) " >&6
7412 else
7413 cat > conftest.c <<EOF
7414 int _start (void) { return 42; }
7416 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7417 -fPIC -shared -o conftest.so conftest.c
7418 -Wl,--hash-style=both -nostdlib 1>&5'
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420 (eval $ac_try) 2>&5
7421 ac_status=$?
7422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; }
7424 then
7425 libc_cv_hashstyle=yes
7426 else
7427 libc_cv_hashstyle=no
7429 rm -f conftest*
7431 { $as_echo "$as_me:$LINENO: result: $libc_cv_hashstyle" >&5
7432 $as_echo "$libc_cv_hashstyle" >&6; }
7436 { $as_echo "$as_me:$LINENO: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
7437 $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
7438 if test "${libc_cv_fno_toplevel_reorder+set}" = set; then
7439 $as_echo_n "(cached) " >&6
7440 else
7441 cat > conftest.c <<EOF
7442 int foo;
7444 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
7445 conftest.c 1>&5'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 (eval $ac_try) 2>&5
7448 ac_status=$?
7449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; }
7451 then
7452 libc_cv_fno_toplevel_reorder=yes
7453 else
7454 libc_cv_fno_toplevel_reorder=no
7456 rm -f conftest*
7458 { $as_echo "$as_me:$LINENO: result: $libc_cv_fno_toplevel_reorder" >&5
7459 $as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
7460 if test $libc_cv_fno_toplevel_reorder = yes; then
7461 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
7462 else
7463 fno_unit_at_a_time=-fno-unit-at-a-time
7467 { $as_echo "$as_me:$LINENO: checking for -fstack-protector" >&5
7468 $as_echo_n "checking for -fstack-protector... " >&6; }
7469 if test "${libc_cv_ssp+set}" = set; then
7470 $as_echo_n "(cached) " >&6
7471 else
7472 cat > conftest.c <<EOF
7473 int foo;
7474 main () { return 0;}
7476 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
7477 -o conftest conftest.c 1>&5'
7478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479 (eval $ac_try) 2>&5
7480 ac_status=$?
7481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); }; }
7483 then
7484 libc_cv_ssp=yes
7485 else
7486 libc_cv_ssp=no
7488 rm -f conftest*
7490 { $as_echo "$as_me:$LINENO: result: $libc_cv_ssp" >&5
7491 $as_echo "$libc_cv_ssp" >&6; }
7494 { $as_echo "$as_me:$LINENO: checking for -fgnu89-inline" >&5
7495 $as_echo_n "checking for -fgnu89-inline... " >&6; }
7496 if test "${libc_cv_gnu89_inline+set}" = set; then
7497 $as_echo_n "(cached) " >&6
7498 else
7499 cat > conftest.c <<EOF
7500 int foo;
7501 #ifdef __GNUC_GNU_INLINE__
7502 main () { return 0;}
7503 #else
7504 #error
7505 #endif
7507 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
7508 -o conftest.s conftest.c 1>&5'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 (eval $ac_try) 2>&5
7511 ac_status=$?
7512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; }
7514 then
7515 libc_cv_gnu89_inline=yes
7516 else
7517 libc_cv_gnu89_inline=no
7519 rm -f conftest*
7521 { $as_echo "$as_me:$LINENO: result: $libc_cv_gnu89_inline" >&5
7522 $as_echo "$libc_cv_gnu89_inline" >&6; }
7523 if test $libc_cv_gnu89_inline = yes; then
7524 libc_cv_gnu89_inline=-fgnu89-inline
7525 else
7526 libc_cv_gnu89_inline=
7530 if test $elf != yes; then
7531 { $as_echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
7532 $as_echo_n "checking for .init and .fini sections... " >&6; }
7533 if test "${libc_cv_have_initfini+set}" = set; then
7534 $as_echo_n "(cached) " >&6
7535 else
7536 cat >conftest.$ac_ext <<_ACEOF
7537 /* confdefs.h. */
7538 _ACEOF
7539 cat confdefs.h >>conftest.$ac_ext
7540 cat >>conftest.$ac_ext <<_ACEOF
7541 /* end confdefs.h. */
7544 main ()
7546 asm (".section .init");
7547 asm (".section .fini");
7548 asm ("${libc_cv_dot_text}");
7550 return 0;
7552 _ACEOF
7553 rm -f conftest.$ac_objext
7554 if { (ac_try="$ac_compile"
7555 case "(($ac_try" in
7556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7557 *) ac_try_echo=$ac_try;;
7558 esac
7559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7560 $as_echo "$ac_try_echo") >&5
7561 (eval "$ac_compile") 2>conftest.er1
7562 ac_status=$?
7563 grep -v '^ *+' conftest.er1 >conftest.err
7564 rm -f conftest.er1
7565 cat conftest.err >&5
7566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } && {
7568 test -z "$ac_c_werror_flag" ||
7569 test ! -s conftest.err
7570 } && test -s conftest.$ac_objext; then
7571 libc_cv_have_initfini=yes
7572 else
7573 $as_echo "$as_me: failed program was:" >&5
7574 sed 's/^/| /' conftest.$ac_ext >&5
7576 libc_cv_have_initfini=no
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
7582 $as_echo "$libc_cv_have_initfini" >&6; }
7583 if test $libc_cv_have_initfini = yes; then
7584 cat >>confdefs.h <<\_ACEOF
7585 #define HAVE_INITFINI 1
7586 _ACEOF
7591 if test $elf = yes; then
7592 { $as_echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
7593 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
7594 if test "${libc_cv_have_section_quotes+set}" = set; then
7595 $as_echo_n "(cached) " >&6
7596 else
7597 cat > conftest.c <<EOF
7598 static const int foo
7599 __attribute__ ((section ("bar"))) = 1;
7601 if ${CC-cc} -S conftest.c -o conftest.s; then
7602 if grep '\.section.*"bar"' conftest.s >/dev/null; then
7603 libc_cv_have_section_quotes=yes
7604 else
7605 libc_cv_have_section_quotes=no
7607 else
7608 libc_cv_have_section_quotes=unknown
7610 rm -f conftest.cs
7613 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
7614 $as_echo "$libc_cv_have_section_quotes" >&6; }
7615 if test $libc_cv_have_section_quotes = yes; then
7616 cat >>confdefs.h <<\_ACEOF
7617 #define HAVE_SECTION_QUOTES 1
7618 _ACEOF
7625 if test $elf = yes; then
7626 libc_cv_asm_underscores=no
7627 else
7628 if test $ac_cv_prog_cc_works = yes; then
7629 { $as_echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
7630 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
7631 if test "${libc_cv_asm_underscores+set}" = set; then
7632 $as_echo_n "(cached) " >&6
7633 else
7634 cat >conftest.$ac_ext <<_ACEOF
7635 /* confdefs.h. */
7636 _ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h. */
7640 asm ("_glibc_foobar:");
7642 main ()
7644 glibc_foobar ();
7646 return 0;
7648 _ACEOF
7649 rm -f conftest.$ac_objext conftest$ac_exeext
7650 if { (ac_try="$ac_link"
7651 case "(($ac_try" in
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7654 esac
7655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7656 $as_echo "$ac_try_echo") >&5
7657 (eval "$ac_link") 2>conftest.er1
7658 ac_status=$?
7659 grep -v '^ *+' conftest.er1 >conftest.err
7660 rm -f conftest.er1
7661 cat conftest.err >&5
7662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); } && {
7664 test -z "$ac_c_werror_flag" ||
7665 test ! -s conftest.err
7666 } && test -s conftest$ac_exeext && {
7667 test "$cross_compiling" = yes ||
7668 $as_test_x conftest$ac_exeext
7669 }; then
7670 libc_cv_asm_underscores=yes
7671 else
7672 $as_echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7675 libc_cv_asm_underscores=no
7678 rm -rf conftest.dSYM
7679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7680 conftest$ac_exeext conftest.$ac_ext
7682 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
7683 $as_echo "$libc_cv_asm_underscores" >&6; }
7684 else
7685 { $as_echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
7686 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
7687 if test "${libc_cv_asm_underscores+set}" = set; then
7688 $as_echo_n "(cached) " >&6
7689 else
7690 cat > conftest.$ac_ext <<EOF
7691 #line $LINENO "configure"
7692 #include "confdefs.h"
7693 void underscore_test(void) {
7694 return; }
7696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7697 (eval $ac_compile) 2>&5
7698 ac_status=$?
7699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; then
7701 if grep _underscore_test conftest* >/dev/null; then
7702 rm -f conftest*
7703 libc_cv_asm_underscores=yes
7704 else
7705 rm -f conftest*
7706 libc_cv_asm_underscores=no
7708 else
7709 echo "configure: failed program was:" >&5
7710 cat conftest.$ac_ext >&5
7711 rm -f conftest*
7712 libc_cv_asm_underscores=no
7714 rm -f conftest*
7716 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
7717 $as_echo "$libc_cv_asm_underscores" >&6; }
7720 if test $libc_cv_asm_underscores = no; then
7721 cat >>confdefs.h <<\_ACEOF
7722 #define NO_UNDERSCORES 1
7723 _ACEOF
7727 if test $elf = yes; then
7728 libc_cv_weak_symbols=yes
7731 { $as_echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
7732 $as_echo_n "checking for assembler .weak directive... " >&6; }
7733 if test "${libc_cv_asm_weak_directive+set}" = set; then
7734 $as_echo_n "(cached) " >&6
7735 else
7736 cat > conftest.s <<EOF
7737 ${libc_cv_dot_text}
7738 ${libc_cv_asm_global_directive} foo
7739 foo:
7740 .weak foo
7741 .weak bar; bar = foo
7743 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745 (eval $ac_try) 2>&5
7746 ac_status=$?
7747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7749 libc_cv_asm_weak_directive=yes
7750 else
7751 libc_cv_asm_weak_directive=no
7753 rm -f conftest*
7755 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
7756 $as_echo "$libc_cv_asm_weak_directive" >&6; }
7758 if test $libc_cv_asm_weak_directive = no; then
7759 { $as_echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
7760 $as_echo_n "checking for assembler .weakext directive... " >&6; }
7761 if test "${libc_cv_asm_weakext_directive+set}" = set; then
7762 $as_echo_n "(cached) " >&6
7763 else
7764 cat > conftest.s <<EOF
7765 ${libc_cv_dot_text}
7766 ${libc_cv_asm_global_directive} foo
7767 foo:
7768 .weakext bar foo
7769 .weakext baz
7770 ${libc_cv_asm_global_directive} baz
7771 baz:
7773 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 (eval $ac_try) 2>&5
7776 ac_status=$?
7777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; }; then
7779 libc_cv_asm_weakext_directive=yes
7780 else
7781 libc_cv_asm_weakext_directive=no
7783 rm -f conftest*
7785 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
7786 $as_echo "$libc_cv_asm_weakext_directive" >&6; }
7788 fi # no .weak
7790 if test $libc_cv_asm_weak_directive = yes; then
7791 cat >>confdefs.h <<\_ACEOF
7792 #define HAVE_ASM_WEAK_DIRECTIVE 1
7793 _ACEOF
7795 elif test $libc_cv_asm_weakext_directive = yes; then
7796 cat >>confdefs.h <<\_ACEOF
7797 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
7798 _ACEOF
7802 { $as_echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
7803 $as_echo_n "checking whether CFI directives are supported... " >&6; }
7804 if test "${libc_cv_asm_cfi_directives+set}" = set; then
7805 $as_echo_n "(cached) " >&6
7806 else
7807 case $machine in
7808 sparc/sparc64*) cfi_offset=2047;;
7809 *) cfi_offset=0;;
7810 esac
7811 cat > conftest.s <<EOF
7812 .text
7813 .type func,%function
7814 func:
7815 .cfi_startproc
7816 .cfi_remember_state
7817 .cfi_rel_offset 1, $cfi_offset
7818 .cfi_endproc
7820 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822 (eval $ac_try) 2>&5
7823 ac_status=$?
7824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7826 libc_cv_asm_cfi_directives=yes
7827 else
7828 libc_cv_asm_cfi_directives=no
7830 rm -f conftest*
7832 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
7833 $as_echo "$libc_cv_asm_cfi_directives" >&6; }
7834 if test $libc_cv_asm_cfi_directives = yes; then
7835 cat >>confdefs.h <<\_ACEOF
7836 #define HAVE_ASM_CFI_DIRECTIVES 1
7837 _ACEOF
7841 { $as_echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
7842 $as_echo_n "checking for ld --no-whole-archive... " >&6; }
7843 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
7844 $as_echo_n "(cached) " >&6
7845 else
7846 cat > conftest.c <<\EOF
7847 _start () {}
7848 int __eh_pc;
7849 __throw () {}
7851 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7852 -nostdlib -nostartfiles -Wl,--no-whole-archive
7853 -o conftest conftest.c 1>&5'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855 (eval $ac_try) 2>&5
7856 ac_status=$?
7857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7859 libc_cv_ld_no_whole_archive=yes
7860 else
7861 libc_cv_ld_no_whole_archive=no
7863 rm -f conftest*
7865 { $as_echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
7866 $as_echo "$libc_cv_ld_no_whole_archive" >&6; }
7867 if test $libc_cv_ld_no_whole_archive = yes; then
7868 no_whole_archive=-Wl,--no-whole-archive
7871 { $as_echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
7872 $as_echo_n "checking for gcc -fexceptions... " >&6; }
7873 if test "${libc_cv_gcc_exceptions+set}" = set; then
7874 $as_echo_n "(cached) " >&6
7875 else
7876 cat > conftest.c <<\EOF
7877 _start () {}
7878 int __eh_pc;
7879 __throw () {}
7881 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7882 -nostdlib -nostartfiles -fexceptions
7883 -o conftest conftest.c 1>&5'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 (eval $ac_try) 2>&5
7886 ac_status=$?
7887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; }; then
7889 libc_cv_gcc_exceptions=yes
7890 else
7891 libc_cv_gcc_exceptions=no
7893 rm -f conftest*
7895 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
7896 $as_echo "$libc_cv_gcc_exceptions" >&6; }
7897 if test $libc_cv_gcc_exceptions = yes; then
7898 exceptions=-fexceptions
7901 if test "$host_cpu" = powerpc ; then
7902 # Check for a bug present in at least versions 2.8.x of GCC
7903 # and versions 1.0.x of EGCS.
7904 { $as_echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
7905 $as_echo_n "checking whether clobbering cr0 causes problems... " >&6; }
7906 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
7907 $as_echo_n "(cached) " >&6
7908 else
7909 cat >conftest.$ac_ext <<_ACEOF
7910 /* confdefs.h. */
7911 _ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7915 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
7917 main ()
7921 return 0;
7923 _ACEOF
7924 rm -f conftest.$ac_objext
7925 if { (ac_try="$ac_compile"
7926 case "(($ac_try" in
7927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928 *) ac_try_echo=$ac_try;;
7929 esac
7930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7931 $as_echo "$ac_try_echo") >&5
7932 (eval "$ac_compile") 2>conftest.er1
7933 ac_status=$?
7934 grep -v '^ *+' conftest.er1 >conftest.err
7935 rm -f conftest.er1
7936 cat conftest.err >&5
7937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); } && {
7939 test -z "$ac_c_werror_flag" ||
7940 test ! -s conftest.err
7941 } && test -s conftest.$ac_objext; then
7942 libc_cv_c_asmcr0_bug='no'
7943 else
7944 $as_echo "$as_me: failed program was:" >&5
7945 sed 's/^/| /' conftest.$ac_ext >&5
7947 libc_cv_c_asmcr0_bug='yes'
7950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952 { $as_echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
7953 $as_echo "$libc_cv_c_asmcr0_bug" >&6; }
7954 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
7955 cat >>confdefs.h <<\_ACEOF
7956 #define BROKEN_PPC_ASM_CR0 1
7957 _ACEOF
7962 { $as_echo "$as_me:$LINENO: checking for __builtin_expect" >&5
7963 $as_echo_n "checking for __builtin_expect... " >&6; }
7964 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
7965 $as_echo_n "(cached) " >&6
7966 else
7967 cat > conftest.c <<EOF
7968 #line $LINENO "configure"
7969 int foo (int a)
7971 a = __builtin_expect (a, 10);
7972 return a == 10 ? 0 : 1;
7975 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
7976 -o conftest conftest.c -lgcc >&5'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 (eval $ac_try) 2>&5
7979 ac_status=$?
7980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; }; then
7982 libc_cv_gcc_builtin_expect=yes
7983 else
7984 libc_cv_gcc_builtin_expect=no
7986 rm -f conftest*
7988 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
7989 $as_echo "$libc_cv_gcc_builtin_expect" >&6; }
7990 if test "$libc_cv_gcc_builtin_expect" = yes; then
7991 cat >>confdefs.h <<\_ACEOF
7992 #define HAVE_BUILTIN_EXPECT 1
7993 _ACEOF
7997 { $as_echo "$as_me:$LINENO: checking for __builtin_memset" >&5
7998 $as_echo_n "checking for __builtin_memset... " >&6; }
7999 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
8000 $as_echo_n "(cached) " >&6
8001 else
8002 cat > conftest.c <<\EOF
8003 void zero (void *x)
8005 __builtin_memset (x, 0, 1000);
8008 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 (eval $ac_try) 2>&5
8011 ac_status=$?
8012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; };
8014 then
8015 libc_cv_gcc_builtin_memset=no
8016 else
8017 libc_cv_gcc_builtin_memset=yes
8019 rm -f conftest*
8021 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
8022 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
8023 if test "$libc_cv_gcc_builtin_memset" = yes ; then
8024 cat >>confdefs.h <<\_ACEOF
8025 #define HAVE_BUILTIN_MEMSET 1
8026 _ACEOF
8030 { $as_echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
8031 $as_echo_n "checking for redirection of built-in functions... " >&6; }
8032 if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
8033 $as_echo_n "(cached) " >&6
8034 else
8035 cat > conftest.c <<\EOF
8036 extern char *strstr (const char *, const char *) __asm ("my_strstr");
8037 char *foo (const char *a, const char *b)
8039 return __builtin_strstr (a, b);
8042 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044 (eval $ac_try) 2>&5
8045 ac_status=$?
8046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; };
8048 then
8049 libc_cv_gcc_builtin_redirection=yes
8050 else
8051 libc_cv_gcc_builtin_redirection=no
8053 rm -f conftest*
8055 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
8056 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
8057 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
8058 cat >>confdefs.h <<\_ACEOF
8059 #define HAVE_BUILTIN_REDIRECTION 1
8060 _ACEOF
8064 if test "x$use__thread" != xno; then
8065 { $as_echo "$as_me:$LINENO: checking for __thread" >&5
8066 $as_echo_n "checking for __thread... " >&6; }
8067 if test "${libc_cv_gcc___thread+set}" = set; then
8068 $as_echo_n "(cached) " >&6
8069 else
8070 cat > conftest.c <<\EOF
8071 __thread int a = 42;
8073 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
8074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075 (eval $ac_try) 2>&5
8076 ac_status=$?
8077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; }; then
8079 libc_cv_gcc___thread=yes
8080 else
8081 libc_cv_gcc___thread=no
8083 rm -f conftest*
8085 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
8086 $as_echo "$libc_cv_gcc___thread" >&6; }
8087 if test "$libc_cv_gcc___thread" = yes; then
8088 cat >>confdefs.h <<\_ACEOF
8089 #define HAVE___THREAD 1
8090 _ACEOF
8093 else
8094 libc_cv_gcc___thread=no
8097 if test "$libc_cv_gcc___thread" = yes; then
8098 { $as_echo "$as_me:$LINENO: checking for tls_model attribute" >&5
8099 $as_echo_n "checking for tls_model attribute... " >&6; }
8100 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
8101 $as_echo_n "(cached) " >&6
8102 else
8103 cat > conftest.c <<\EOF
8104 extern __thread int a __attribute__((tls_model ("initial-exec")));
8106 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
8107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108 (eval $ac_try) 2>&5
8109 ac_status=$?
8110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; }; then
8112 libc_cv_gcc_tls_model_attr=yes
8113 else
8114 libc_cv_gcc_tls_model_attr=no
8116 rm -f conftest*
8118 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
8119 $as_echo "$libc_cv_gcc_tls_model_attr" >&6; }
8120 if test "$libc_cv_gcc_tls_model_attr" = yes; then
8121 cat >>confdefs.h <<\_ACEOF
8122 #define HAVE_TLS_MODEL_ATTRIBUTE 1
8123 _ACEOF
8128 if test -n "$submachine"; then
8129 { $as_echo "$as_me:$LINENO: checking for compiler option for CPU variant" >&5
8130 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
8131 if test "${libc_cv_cc_submachine+set}" = set; then
8132 $as_echo_n "(cached) " >&6
8133 else
8134 libc_cv_cc_submachine=no
8135 for opt in "-march=$submachine" "-mcpu=$submachine"; do
8136 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
8137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 (eval $ac_try) 2>&5
8139 ac_status=$?
8140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; }; then
8142 libc_cv_cc_submachine="$opt"
8143 break
8145 done
8147 { $as_echo "$as_me:$LINENO: result: $libc_cv_cc_submachine" >&5
8148 $as_echo "$libc_cv_cc_submachine" >&6; }
8149 if test "x$libc_cv_cc_submachine" = xno; then
8150 { { $as_echo "$as_me:$LINENO: error: ${CC-cc} does not support $submachine" >&5
8151 $as_echo "$as_me: error: ${CC-cc} does not support $submachine" >&2;}
8152 { (exit 1); exit 1; }; }
8157 { $as_echo "$as_me:$LINENO: checking for libgd" >&5
8158 $as_echo_n "checking for libgd... " >&6; }
8159 if test "$with_gd" != "no"; then
8160 old_CFLAGS="$CFLAGS"
8161 CFLAGS="$CFLAGS $libgd_include"
8162 old_LDFLAGS="$LDFLAGS"
8163 LDFLAGS="$LDFLAGS $libgd_ldflags"
8164 old_LIBS="$LIBS"
8165 LIBS="$LIBS -lgd -lpng -lz -lm"
8166 cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h. */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8172 #include <gd.h>
8174 main ()
8176 gdImagePng (0, 0)
8178 return 0;
8180 _ACEOF
8181 rm -f conftest.$ac_objext conftest$ac_exeext
8182 if { (ac_try="$ac_link"
8183 case "(($ac_try" in
8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8186 esac
8187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8188 $as_echo "$ac_try_echo") >&5
8189 (eval "$ac_link") 2>conftest.er1
8190 ac_status=$?
8191 grep -v '^ *+' conftest.er1 >conftest.err
8192 rm -f conftest.er1
8193 cat conftest.err >&5
8194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); } && {
8196 test -z "$ac_c_werror_flag" ||
8197 test ! -s conftest.err
8198 } && test -s conftest$ac_exeext && {
8199 test "$cross_compiling" = yes ||
8200 $as_test_x conftest$ac_exeext
8201 }; then
8202 LIBGD=yes
8203 else
8204 $as_echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8207 LIBGD=no
8210 rm -rf conftest.dSYM
8211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8212 conftest$ac_exeext conftest.$ac_ext
8213 CFLAGS="$old_CFLAGS"
8214 LDFLAGS="$old_LDFLAGS"
8215 LIBS="$old_LIBS"
8216 else
8217 LIBGD=no
8219 { $as_echo "$as_me:$LINENO: result: $LIBGD" >&5
8220 $as_echo "$LIBGD" >&6; }
8223 # SELinux detection
8224 if test x$with_selinux = xno ; then
8225 have_selinux=no;
8226 else
8227 # See if we have the SELinux library
8228 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
8229 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
8230 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
8231 $as_echo_n "(cached) " >&6
8232 else
8233 ac_check_lib_save_LIBS=$LIBS
8234 LIBS="-lselinux $LIBS"
8235 cat >conftest.$ac_ext <<_ACEOF
8236 /* confdefs.h. */
8237 _ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8242 /* Override any GCC internal prototype to avoid an error.
8243 Use char because int might match the return type of a GCC
8244 builtin and then its argument prototype would still apply. */
8245 #ifdef __cplusplus
8246 extern "C"
8247 #endif
8248 char is_selinux_enabled ();
8250 main ()
8252 return is_selinux_enabled ();
8254 return 0;
8256 _ACEOF
8257 rm -f conftest.$ac_objext conftest$ac_exeext
8258 if { (ac_try="$ac_link"
8259 case "(($ac_try" in
8260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261 *) ac_try_echo=$ac_try;;
8262 esac
8263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8264 $as_echo "$ac_try_echo") >&5
8265 (eval "$ac_link") 2>conftest.er1
8266 ac_status=$?
8267 grep -v '^ *+' conftest.er1 >conftest.err
8268 rm -f conftest.er1
8269 cat conftest.err >&5
8270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } && {
8272 test -z "$ac_c_werror_flag" ||
8273 test ! -s conftest.err
8274 } && test -s conftest$ac_exeext && {
8275 test "$cross_compiling" = yes ||
8276 $as_test_x conftest$ac_exeext
8277 }; then
8278 ac_cv_lib_selinux_is_selinux_enabled=yes
8279 else
8280 $as_echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8283 ac_cv_lib_selinux_is_selinux_enabled=no
8286 rm -rf conftest.dSYM
8287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8288 conftest$ac_exeext conftest.$ac_ext
8289 LIBS=$ac_check_lib_save_LIBS
8291 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
8292 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
8293 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
8294 have_selinux=yes
8295 else
8296 have_selinux=no
8299 # See if we have the SELinux header with the NSCD permissions in it.
8300 if test x$have_selinux = xyes ; then
8301 { $as_echo "$as_me:$LINENO: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
8302 $as_echo_n "checking for NSCD Flask permissions in selinux/av_permissions.h... " >&6; }
8303 cat >conftest.$ac_ext <<_ACEOF
8304 /* confdefs.h. */
8305 _ACEOF
8306 cat confdefs.h >>conftest.$ac_ext
8307 cat >>conftest.$ac_ext <<_ACEOF
8308 /* end confdefs.h. */
8309 #include <selinux/av_permissions.h>
8311 main ()
8313 #ifdef NSCD__SHMEMHOST
8314 return 0;
8315 #else
8316 #error NSCD__SHMEMHOST not defined
8317 #endif
8319 return 0;
8321 _ACEOF
8322 rm -f conftest.$ac_objext
8323 if { (ac_try="$ac_compile"
8324 case "(($ac_try" in
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8327 esac
8328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8329 $as_echo "$ac_try_echo") >&5
8330 (eval "$ac_compile") 2>conftest.er1
8331 ac_status=$?
8332 grep -v '^ *+' conftest.er1 >conftest.err
8333 rm -f conftest.er1
8334 cat conftest.err >&5
8335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } && {
8337 test -z "$ac_c_werror_flag" ||
8338 test ! -s conftest.err
8339 } && test -s conftest.$ac_objext; then
8340 have_selinux=yes
8341 else
8342 $as_echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8345 have_selinux=no
8348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349 { $as_echo "$as_me:$LINENO: result: $have_selinux" >&5
8350 $as_echo "$have_selinux" >&6; }
8353 if test x$with_selinux = xyes ; then
8354 if test x$have_selinux = xno ; then
8355 { { $as_echo "$as_me:$LINENO: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&5
8356 $as_echo "$as_me: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&2;}
8357 { (exit 1); exit 1; }; }
8361 # Check if we're building with SELinux support.
8362 if test "x$have_selinux" = xyes; then
8364 cat >>confdefs.h <<\_ACEOF
8365 #define HAVE_SELINUX 1
8366 _ACEOF
8369 # See if we have the libaudit library
8370 { $as_echo "$as_me:$LINENO: checking for audit_log_user_avc_message in -laudit" >&5
8371 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
8372 if test "${ac_cv_lib_audit_audit_log_user_avc_message+set}" = set; then
8373 $as_echo_n "(cached) " >&6
8374 else
8375 ac_check_lib_save_LIBS=$LIBS
8376 LIBS="-laudit $LIBS"
8377 cat >conftest.$ac_ext <<_ACEOF
8378 /* confdefs.h. */
8379 _ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h. */
8384 /* Override any GCC internal prototype to avoid an error.
8385 Use char because int might match the return type of a GCC
8386 builtin and then its argument prototype would still apply. */
8387 #ifdef __cplusplus
8388 extern "C"
8389 #endif
8390 char audit_log_user_avc_message ();
8392 main ()
8394 return audit_log_user_avc_message ();
8396 return 0;
8398 _ACEOF
8399 rm -f conftest.$ac_objext conftest$ac_exeext
8400 if { (ac_try="$ac_link"
8401 case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8404 esac
8405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8406 $as_echo "$ac_try_echo") >&5
8407 (eval "$ac_link") 2>conftest.er1
8408 ac_status=$?
8409 grep -v '^ *+' conftest.er1 >conftest.err
8410 rm -f conftest.er1
8411 cat conftest.err >&5
8412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } && {
8414 test -z "$ac_c_werror_flag" ||
8415 test ! -s conftest.err
8416 } && test -s conftest$ac_exeext && {
8417 test "$cross_compiling" = yes ||
8418 $as_test_x conftest$ac_exeext
8419 }; then
8420 ac_cv_lib_audit_audit_log_user_avc_message=yes
8421 else
8422 $as_echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8425 ac_cv_lib_audit_audit_log_user_avc_message=no
8428 rm -rf conftest.dSYM
8429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8430 conftest$ac_exeext conftest.$ac_ext
8431 LIBS=$ac_check_lib_save_LIBS
8433 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
8434 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
8435 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = x""yes; then
8436 have_libaudit=yes
8437 else
8438 have_libaudit=no
8441 if test "x$have_libaudit" = xyes; then
8443 cat >>confdefs.h <<\_ACEOF
8444 #define HAVE_LIBAUDIT 1
8445 _ACEOF
8450 # See if we have the libcap library
8451 { $as_echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
8452 $as_echo_n "checking for cap_init in -lcap... " >&6; }
8453 if test "${ac_cv_lib_cap_cap_init+set}" = set; then
8454 $as_echo_n "(cached) " >&6
8455 else
8456 ac_check_lib_save_LIBS=$LIBS
8457 LIBS="-lcap $LIBS"
8458 cat >conftest.$ac_ext <<_ACEOF
8459 /* confdefs.h. */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8465 /* Override any GCC internal prototype to avoid an error.
8466 Use char because int might match the return type of a GCC
8467 builtin and then its argument prototype would still apply. */
8468 #ifdef __cplusplus
8469 extern "C"
8470 #endif
8471 char cap_init ();
8473 main ()
8475 return cap_init ();
8477 return 0;
8479 _ACEOF
8480 rm -f conftest.$ac_objext conftest$ac_exeext
8481 if { (ac_try="$ac_link"
8482 case "(($ac_try" in
8483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484 *) ac_try_echo=$ac_try;;
8485 esac
8486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8487 $as_echo "$ac_try_echo") >&5
8488 (eval "$ac_link") 2>conftest.er1
8489 ac_status=$?
8490 grep -v '^ *+' conftest.er1 >conftest.err
8491 rm -f conftest.er1
8492 cat conftest.err >&5
8493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } && {
8495 test -z "$ac_c_werror_flag" ||
8496 test ! -s conftest.err
8497 } && test -s conftest$ac_exeext && {
8498 test "$cross_compiling" = yes ||
8499 $as_test_x conftest$ac_exeext
8500 }; then
8501 ac_cv_lib_cap_cap_init=yes
8502 else
8503 $as_echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8506 ac_cv_lib_cap_cap_init=no
8509 rm -rf conftest.dSYM
8510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8511 conftest$ac_exeext conftest.$ac_ext
8512 LIBS=$ac_check_lib_save_LIBS
8514 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
8515 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
8516 if test "x$ac_cv_lib_cap_cap_init" = x""yes; then
8517 have_libcap=yes
8518 else
8519 have_libcap=no
8522 if test "x$have_libcap" = xyes; then
8524 cat >>confdefs.h <<\_ACEOF
8525 #define HAVE_LIBCAP 1
8526 _ACEOF
8534 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
8535 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
8536 if test "${ac_cv_path_GREP+set}" = set; then
8537 $as_echo_n "(cached) " >&6
8538 else
8539 if test -z "$GREP"; then
8540 ac_path_GREP_found=false
8541 # Loop through the user's path and test for each of PROGNAME-LIST
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8545 IFS=$as_save_IFS
8546 test -z "$as_dir" && as_dir=.
8547 for ac_prog in grep ggrep; do
8548 for ac_exec_ext in '' $ac_executable_extensions; do
8549 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8550 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
8551 # Check for GNU ac_path_GREP and select it if it is found.
8552 # Check for GNU $ac_path_GREP
8553 case `"$ac_path_GREP" --version 2>&1` in
8554 *GNU*)
8555 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8557 ac_count=0
8558 $as_echo_n 0123456789 >"conftest.in"
8559 while :
8561 cat "conftest.in" "conftest.in" >"conftest.tmp"
8562 mv "conftest.tmp" "conftest.in"
8563 cp "conftest.in" "conftest.nl"
8564 $as_echo 'GREP' >> "conftest.nl"
8565 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8566 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8567 ac_count=`expr $ac_count + 1`
8568 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8569 # Best one so far, save it but keep looking for a better one
8570 ac_cv_path_GREP="$ac_path_GREP"
8571 ac_path_GREP_max=$ac_count
8573 # 10*(2^10) chars as input seems more than enough
8574 test $ac_count -gt 10 && break
8575 done
8576 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8577 esac
8579 $ac_path_GREP_found && break 3
8580 done
8581 done
8582 done
8583 IFS=$as_save_IFS
8584 if test -z "$ac_cv_path_GREP"; then
8585 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8586 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8587 { (exit 1); exit 1; }; }
8589 else
8590 ac_cv_path_GREP=$GREP
8594 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8595 $as_echo "$ac_cv_path_GREP" >&6; }
8596 GREP="$ac_cv_path_GREP"
8599 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
8600 $as_echo_n "checking for egrep... " >&6; }
8601 if test "${ac_cv_path_EGREP+set}" = set; then
8602 $as_echo_n "(cached) " >&6
8603 else
8604 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8605 then ac_cv_path_EGREP="$GREP -E"
8606 else
8607 if test -z "$EGREP"; then
8608 ac_path_EGREP_found=false
8609 # Loop through the user's path and test for each of PROGNAME-LIST
8610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8613 IFS=$as_save_IFS
8614 test -z "$as_dir" && as_dir=.
8615 for ac_prog in egrep; do
8616 for ac_exec_ext in '' $ac_executable_extensions; do
8617 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8618 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
8619 # Check for GNU ac_path_EGREP and select it if it is found.
8620 # Check for GNU $ac_path_EGREP
8621 case `"$ac_path_EGREP" --version 2>&1` in
8622 *GNU*)
8623 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8625 ac_count=0
8626 $as_echo_n 0123456789 >"conftest.in"
8627 while :
8629 cat "conftest.in" "conftest.in" >"conftest.tmp"
8630 mv "conftest.tmp" "conftest.in"
8631 cp "conftest.in" "conftest.nl"
8632 $as_echo 'EGREP' >> "conftest.nl"
8633 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8635 ac_count=`expr $ac_count + 1`
8636 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8637 # Best one so far, save it but keep looking for a better one
8638 ac_cv_path_EGREP="$ac_path_EGREP"
8639 ac_path_EGREP_max=$ac_count
8641 # 10*(2^10) chars as input seems more than enough
8642 test $ac_count -gt 10 && break
8643 done
8644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8645 esac
8647 $ac_path_EGREP_found && break 3
8648 done
8649 done
8650 done
8651 IFS=$as_save_IFS
8652 if test -z "$ac_cv_path_EGREP"; then
8653 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8654 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8655 { (exit 1); exit 1; }; }
8657 else
8658 ac_cv_path_EGREP=$EGREP
8663 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8664 $as_echo "$ac_cv_path_EGREP" >&6; }
8665 EGREP="$ac_cv_path_EGREP"
8668 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8669 $as_echo_n "checking for ANSI C header files... " >&6; }
8670 if test "${ac_cv_header_stdc+set}" = set; then
8671 $as_echo_n "(cached) " >&6
8672 else
8673 cat >conftest.$ac_ext <<_ACEOF
8674 /* confdefs.h. */
8675 _ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h. */
8679 #include <stdlib.h>
8680 #include <stdarg.h>
8681 #include <string.h>
8682 #include <float.h>
8685 main ()
8689 return 0;
8691 _ACEOF
8692 rm -f conftest.$ac_objext
8693 if { (ac_try="$ac_compile"
8694 case "(($ac_try" in
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8697 esac
8698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8699 $as_echo "$ac_try_echo") >&5
8700 (eval "$ac_compile") 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest.$ac_objext; then
8710 ac_cv_header_stdc=yes
8711 else
8712 $as_echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 ac_cv_header_stdc=no
8718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720 if test $ac_cv_header_stdc = yes; then
8721 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8722 cat >conftest.$ac_ext <<_ACEOF
8723 /* confdefs.h. */
8724 _ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8728 #include <string.h>
8730 _ACEOF
8731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8732 $EGREP "memchr" >/dev/null 2>&1; then
8734 else
8735 ac_cv_header_stdc=no
8737 rm -f conftest*
8741 if test $ac_cv_header_stdc = yes; then
8742 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8743 cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h. */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8749 #include <stdlib.h>
8751 _ACEOF
8752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8753 $EGREP "free" >/dev/null 2>&1; then
8755 else
8756 ac_cv_header_stdc=no
8758 rm -f conftest*
8762 if test $ac_cv_header_stdc = yes; then
8763 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8764 if test "$cross_compiling" = yes; then
8766 else
8767 cat >conftest.$ac_ext <<_ACEOF
8768 /* confdefs.h. */
8769 _ACEOF
8770 cat confdefs.h >>conftest.$ac_ext
8771 cat >>conftest.$ac_ext <<_ACEOF
8772 /* end confdefs.h. */
8773 #include <ctype.h>
8774 #include <stdlib.h>
8775 #if ((' ' & 0x0FF) == 0x020)
8776 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8777 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8778 #else
8779 # define ISLOWER(c) \
8780 (('a' <= (c) && (c) <= 'i') \
8781 || ('j' <= (c) && (c) <= 'r') \
8782 || ('s' <= (c) && (c) <= 'z'))
8783 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8784 #endif
8786 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8788 main ()
8790 int i;
8791 for (i = 0; i < 256; i++)
8792 if (XOR (islower (i), ISLOWER (i))
8793 || toupper (i) != TOUPPER (i))
8794 return 2;
8795 return 0;
8797 _ACEOF
8798 rm -f conftest$ac_exeext
8799 if { (ac_try="$ac_link"
8800 case "(($ac_try" in
8801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8803 esac
8804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8805 $as_echo "$ac_try_echo") >&5
8806 (eval "$ac_link") 2>&5
8807 ac_status=$?
8808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8810 { (case "(($ac_try" in
8811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8813 esac
8814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8815 $as_echo "$ac_try_echo") >&5
8816 (eval "$ac_try") 2>&5
8817 ac_status=$?
8818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8821 else
8822 $as_echo "$as_me: program exited with status $ac_status" >&5
8823 $as_echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8826 ( exit $ac_status )
8827 ac_cv_header_stdc=no
8829 rm -rf conftest.dSYM
8830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8836 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8837 $as_echo "$ac_cv_header_stdc" >&6; }
8838 if test $ac_cv_header_stdc = yes; then
8840 cat >>confdefs.h <<\_ACEOF
8841 #define STDC_HEADERS 1
8842 _ACEOF
8846 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8856 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8857 inttypes.h stdint.h unistd.h
8859 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8860 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8861 $as_echo_n "checking for $ac_header... " >&6; }
8862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8863 $as_echo_n "(cached) " >&6
8864 else
8865 cat >conftest.$ac_ext <<_ACEOF
8866 /* confdefs.h. */
8867 _ACEOF
8868 cat confdefs.h >>conftest.$ac_ext
8869 cat >>conftest.$ac_ext <<_ACEOF
8870 /* end confdefs.h. */
8871 $ac_includes_default
8873 #include <$ac_header>
8874 _ACEOF
8875 rm -f conftest.$ac_objext
8876 if { (ac_try="$ac_compile"
8877 case "(($ac_try" in
8878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879 *) ac_try_echo=$ac_try;;
8880 esac
8881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8882 $as_echo "$ac_try_echo") >&5
8883 (eval "$ac_compile") 2>conftest.er1
8884 ac_status=$?
8885 grep -v '^ *+' conftest.er1 >conftest.err
8886 rm -f conftest.er1
8887 cat conftest.err >&5
8888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } && {
8890 test -z "$ac_c_werror_flag" ||
8891 test ! -s conftest.err
8892 } && test -s conftest.$ac_objext; then
8893 eval "$as_ac_Header=yes"
8894 else
8895 $as_echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8898 eval "$as_ac_Header=no"
8901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8903 ac_res=`eval 'as_val=${'$as_ac_Header'}
8904 $as_echo "$as_val"'`
8905 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8906 $as_echo "$ac_res" >&6; }
8907 as_val=`eval 'as_val=${'$as_ac_Header'}
8908 $as_echo "$as_val"'`
8909 if test "x$as_val" = x""yes; then
8910 cat >>confdefs.h <<_ACEOF
8911 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8912 _ACEOF
8916 done
8919 # The cast to long int works around a bug in the HP C Compiler
8920 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8921 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8922 # This bug is HP SR number 8606223364.
8923 { $as_echo "$as_me:$LINENO: checking size of long double" >&5
8924 $as_echo_n "checking size of long double... " >&6; }
8925 if test "${ac_cv_sizeof_long_double+set}" = set; then
8926 $as_echo_n "(cached) " >&6
8927 else
8928 if test "$cross_compiling" = yes; then
8929 # Depending upon the size, compute the lo and hi bounds.
8930 cat >conftest.$ac_ext <<_ACEOF
8931 /* confdefs.h. */
8932 _ACEOF
8933 cat confdefs.h >>conftest.$ac_ext
8934 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h. */
8936 $ac_includes_default
8938 main ()
8940 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
8941 test_array [0] = 0
8944 return 0;
8946 _ACEOF
8947 rm -f conftest.$ac_objext
8948 if { (ac_try="$ac_compile"
8949 case "(($ac_try" in
8950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8951 *) ac_try_echo=$ac_try;;
8952 esac
8953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8954 $as_echo "$ac_try_echo") >&5
8955 (eval "$ac_compile") 2>conftest.er1
8956 ac_status=$?
8957 grep -v '^ *+' conftest.er1 >conftest.err
8958 rm -f conftest.er1
8959 cat conftest.err >&5
8960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } && {
8962 test -z "$ac_c_werror_flag" ||
8963 test ! -s conftest.err
8964 } && test -s conftest.$ac_objext; then
8965 ac_lo=0 ac_mid=0
8966 while :; do
8967 cat >conftest.$ac_ext <<_ACEOF
8968 /* confdefs.h. */
8969 _ACEOF
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h. */
8973 $ac_includes_default
8975 main ()
8977 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
8978 test_array [0] = 0
8981 return 0;
8983 _ACEOF
8984 rm -f conftest.$ac_objext
8985 if { (ac_try="$ac_compile"
8986 case "(($ac_try" in
8987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988 *) ac_try_echo=$ac_try;;
8989 esac
8990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8991 $as_echo "$ac_try_echo") >&5
8992 (eval "$ac_compile") 2>conftest.er1
8993 ac_status=$?
8994 grep -v '^ *+' conftest.er1 >conftest.err
8995 rm -f conftest.er1
8996 cat conftest.err >&5
8997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } && {
8999 test -z "$ac_c_werror_flag" ||
9000 test ! -s conftest.err
9001 } && test -s conftest.$ac_objext; then
9002 ac_hi=$ac_mid; break
9003 else
9004 $as_echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9007 ac_lo=`expr $ac_mid + 1`
9008 if test $ac_lo -le $ac_mid; then
9009 ac_lo= ac_hi=
9010 break
9012 ac_mid=`expr 2 '*' $ac_mid + 1`
9015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9016 done
9017 else
9018 $as_echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9021 cat >conftest.$ac_ext <<_ACEOF
9022 /* confdefs.h. */
9023 _ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h. */
9027 $ac_includes_default
9029 main ()
9031 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
9032 test_array [0] = 0
9035 return 0;
9037 _ACEOF
9038 rm -f conftest.$ac_objext
9039 if { (ac_try="$ac_compile"
9040 case "(($ac_try" in
9041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9043 esac
9044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9045 $as_echo "$ac_try_echo") >&5
9046 (eval "$ac_compile") 2>conftest.er1
9047 ac_status=$?
9048 grep -v '^ *+' conftest.er1 >conftest.err
9049 rm -f conftest.er1
9050 cat conftest.err >&5
9051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } && {
9053 test -z "$ac_c_werror_flag" ||
9054 test ! -s conftest.err
9055 } && test -s conftest.$ac_objext; then
9056 ac_hi=-1 ac_mid=-1
9057 while :; do
9058 cat >conftest.$ac_ext <<_ACEOF
9059 /* confdefs.h. */
9060 _ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h. */
9064 $ac_includes_default
9066 main ()
9068 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
9069 test_array [0] = 0
9072 return 0;
9074 _ACEOF
9075 rm -f conftest.$ac_objext
9076 if { (ac_try="$ac_compile"
9077 case "(($ac_try" in
9078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9079 *) ac_try_echo=$ac_try;;
9080 esac
9081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9082 $as_echo "$ac_try_echo") >&5
9083 (eval "$ac_compile") 2>conftest.er1
9084 ac_status=$?
9085 grep -v '^ *+' conftest.er1 >conftest.err
9086 rm -f conftest.er1
9087 cat conftest.err >&5
9088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); } && {
9090 test -z "$ac_c_werror_flag" ||
9091 test ! -s conftest.err
9092 } && test -s conftest.$ac_objext; then
9093 ac_lo=$ac_mid; break
9094 else
9095 $as_echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9098 ac_hi=`expr '(' $ac_mid ')' - 1`
9099 if test $ac_mid -le $ac_hi; then
9100 ac_lo= ac_hi=
9101 break
9103 ac_mid=`expr 2 '*' $ac_mid`
9106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9107 done
9108 else
9109 $as_echo "$as_me: failed program was:" >&5
9110 sed 's/^/| /' conftest.$ac_ext >&5
9112 ac_lo= ac_hi=
9115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9119 # Binary search between lo and hi bounds.
9120 while test "x$ac_lo" != "x$ac_hi"; do
9121 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9122 cat >conftest.$ac_ext <<_ACEOF
9123 /* confdefs.h. */
9124 _ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h. */
9128 $ac_includes_default
9130 main ()
9132 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
9133 test_array [0] = 0
9136 return 0;
9138 _ACEOF
9139 rm -f conftest.$ac_objext
9140 if { (ac_try="$ac_compile"
9141 case "(($ac_try" in
9142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143 *) ac_try_echo=$ac_try;;
9144 esac
9145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9146 $as_echo "$ac_try_echo") >&5
9147 (eval "$ac_compile") 2>conftest.er1
9148 ac_status=$?
9149 grep -v '^ *+' conftest.er1 >conftest.err
9150 rm -f conftest.er1
9151 cat conftest.err >&5
9152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); } && {
9154 test -z "$ac_c_werror_flag" ||
9155 test ! -s conftest.err
9156 } && test -s conftest.$ac_objext; then
9157 ac_hi=$ac_mid
9158 else
9159 $as_echo "$as_me: failed program was:" >&5
9160 sed 's/^/| /' conftest.$ac_ext >&5
9162 ac_lo=`expr '(' $ac_mid ')' + 1`
9165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9166 done
9167 case $ac_lo in
9168 ?*) ac_cv_sizeof_long_double=$ac_lo;;
9169 '') if test "$ac_cv_type_long_double" = yes; then
9170 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9172 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
9173 See \`config.log' for more details." >&5
9174 $as_echo "$as_me: error: cannot compute sizeof (long double)
9175 See \`config.log' for more details." >&2;}
9176 { (exit 77); exit 77; }; }; }
9177 else
9178 ac_cv_sizeof_long_double=0
9179 fi ;;
9180 esac
9181 else
9182 cat >conftest.$ac_ext <<_ACEOF
9183 /* confdefs.h. */
9184 _ACEOF
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9188 $ac_includes_default
9189 static long int longval () { return (long int) (sizeof (long double)); }
9190 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
9191 #include <stdio.h>
9192 #include <stdlib.h>
9194 main ()
9197 FILE *f = fopen ("conftest.val", "w");
9198 if (! f)
9199 return 1;
9200 if (((long int) (sizeof (long double))) < 0)
9202 long int i = longval ();
9203 if (i != ((long int) (sizeof (long double))))
9204 return 1;
9205 fprintf (f, "%ld", i);
9207 else
9209 unsigned long int i = ulongval ();
9210 if (i != ((long int) (sizeof (long double))))
9211 return 1;
9212 fprintf (f, "%lu", i);
9214 /* Do not output a trailing newline, as this causes \r\n confusion
9215 on some platforms. */
9216 return ferror (f) || fclose (f) != 0;
9219 return 0;
9221 _ACEOF
9222 rm -f conftest$ac_exeext
9223 if { (ac_try="$ac_link"
9224 case "(($ac_try" in
9225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9226 *) ac_try_echo=$ac_try;;
9227 esac
9228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9229 $as_echo "$ac_try_echo") >&5
9230 (eval "$ac_link") 2>&5
9231 ac_status=$?
9232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9234 { (case "(($ac_try" in
9235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9236 *) ac_try_echo=$ac_try;;
9237 esac
9238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9239 $as_echo "$ac_try_echo") >&5
9240 (eval "$ac_try") 2>&5
9241 ac_status=$?
9242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); }; }; then
9244 ac_cv_sizeof_long_double=`cat conftest.val`
9245 else
9246 $as_echo "$as_me: program exited with status $ac_status" >&5
9247 $as_echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9250 ( exit $ac_status )
9251 if test "$ac_cv_type_long_double" = yes; then
9252 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9254 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
9255 See \`config.log' for more details." >&5
9256 $as_echo "$as_me: error: cannot compute sizeof (long double)
9257 See \`config.log' for more details." >&2;}
9258 { (exit 77); exit 77; }; }; }
9259 else
9260 ac_cv_sizeof_long_double=0
9263 rm -rf conftest.dSYM
9264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9266 rm -f conftest.val
9268 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
9269 $as_echo "$ac_cv_sizeof_long_double" >&6; }
9273 cat >>confdefs.h <<_ACEOF
9274 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
9275 _ACEOF
9278 sizeof_long_double=$ac_cv_sizeof_long_double
9281 ### End of automated tests.
9282 ### Now run sysdeps configure fragments.
9284 # They also can set these variables.
9285 use_ldconfig=no
9286 ldd_rewrite_script=no
9287 libc_cv_sysconfdir=$sysconfdir
9288 libc_cv_gcc_unwind_find_fde=no
9289 libc_cv_idn=no
9291 # Iterate over all the sysdep directories we will use, running their
9292 # configure fragments, and looking for a uname implementation.
9293 uname=
9294 for dir in $sysnames; do
9295 case $dir in
9296 /*) dest=$dir ;;
9297 *) dest=$srcdir/$dir ;;
9298 esac
9299 if test -r $dest/configure; then
9300 { $as_echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
9301 $as_echo "running configure fragment for $dir" >&6; }
9302 . $dest/configure
9305 if test -z "$uname"; then
9306 if test -r $dest/uname.c ||
9307 test -r $dest/uname.S ||
9308 { test -r $dest/syscalls.list &&
9309 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
9310 uname=$dir
9313 done
9315 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
9316 cat >>confdefs.h <<\_ACEOF
9317 #define EXPORT_UNWIND_FIND_FDE 1
9318 _ACEOF
9323 # If we will use the generic uname implementation, we must figure out what
9324 # it will say by examining the system, and write the results in config-name.h.
9325 if test "$uname" = "sysdeps/generic"; then
9327 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
9328 if test $uname_sysname != $config_os; then
9329 config_release=`echo $config_os | sed s/$uname_sysname//`
9332 { $as_echo "$as_me:$LINENO: checking OS release for uname" >&5
9333 $as_echo_n "checking OS release for uname... " >&6; }
9334 if test "${libc_cv_uname_release+set}" = set; then
9335 $as_echo_n "(cached) " >&6
9336 else
9337 if test -r /vmunix; then
9338 kernel_id=`strings /vmunix | grep UNIX`
9339 elif test -r /dynix; then
9340 kernel_id=`strings /dynix | grep DYNIX`
9341 else
9342 kernel_id=
9345 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
9346 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
9347 != x$config_release; then
9348 # The configuration release is a substring of the kernel release.
9349 libc_cv_uname_release=$kernel_release
9350 elif test x$config_release != x; then
9351 libc_cv_uname_release=$config_release
9352 elif test x$kernel_release != x; then
9353 libc_cv_uname_release=$kernel_release
9354 else
9355 libc_cv_uname_release=unknown
9358 { $as_echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
9359 $as_echo "$libc_cv_uname_release" >&6; }
9360 uname_release="$libc_cv_uname_release"
9362 { $as_echo "$as_me:$LINENO: checking OS version for uname" >&5
9363 $as_echo_n "checking OS version for uname... " >&6; }
9364 if test "${libc_cv_uname_version+set}" = set; then
9365 $as_echo_n "(cached) " >&6
9366 else
9367 if test -r /vmunix; then
9368 kernel_id=`strings /vmunix | grep UNIX`
9369 elif test -r /dynix; then
9370 kernel_id=`strings /dynix | grep DYNIX`
9371 else
9372 kernel_id=
9375 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
9376 if test -n "$kernel_version"; then
9377 libc_cv_uname_version="$kernel_version"
9378 else
9379 libc_cv_uname_version=unknown
9382 { $as_echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
9383 $as_echo "$libc_cv_uname_version" >&6; }
9384 uname_version="$libc_cv_uname_version"
9386 config_uname=config-name.h:config-name.in
9387 else
9388 # For non-generic uname, we don't need to create config-name.h at all.
9389 config_uname=
9392 cat >>confdefs.h <<\_ACEOF
9393 #define USE_IN_LIBIO 1
9394 _ACEOF
9397 # Test for old glibc 2.0.x headers so that they can be removed properly
9398 # Search only in includedir.
9399 { $as_echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
9400 $as_echo_n "checking for old glibc 2.0.x headers... " >&6; }
9401 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
9402 then
9403 old_glibc_headers=yes
9404 else
9405 old_glibc_headers=no
9407 { $as_echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
9408 $as_echo "$old_glibc_headers" >&6; }
9409 if test ${old_glibc_headers} = yes; then
9410 { $as_echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
9411 $as_echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
9412 { $as_echo "$as_me:$LINENO: WARNING: *** be removed." >&5
9413 $as_echo "$as_me: WARNING: *** be removed." >&2;}
9429 if test $elf = yes; then
9430 cat >>confdefs.h <<\_ACEOF
9431 #define HAVE_ELF 1
9432 _ACEOF
9435 if test $xcoff = yes; then
9436 cat >>confdefs.h <<\_ACEOF
9437 #define HAVE_XCOFF 1
9438 _ACEOF
9444 if test $shared = default; then
9445 shared=$elf
9448 { $as_echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
9449 $as_echo_n "checking whether -fPIC is default... " >&6; }
9450 if test "${libc_cv_pic_default+set}" = set; then
9451 $as_echo_n "(cached) " >&6
9452 else
9453 libc_cv_pic_default=yes
9454 cat > conftest.c <<EOF
9455 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
9456 # error PIC is default.
9457 #endif
9459 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
9460 libc_cv_pic_default=no
9462 rm -f conftest.*
9464 { $as_echo "$as_me:$LINENO: result: $libc_cv_pic_default" >&5
9465 $as_echo "$libc_cv_pic_default" >&6; }
9478 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
9479 config_makefile=
9480 else
9481 config_makefile=Makefile
9484 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
9485 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
9489 ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
9491 ac_config_commands="$ac_config_commands default"
9493 cat >confcache <<\_ACEOF
9494 # This file is a shell script that caches the results of configure
9495 # tests run on this system so they can be shared between configure
9496 # scripts and configure runs, see configure's option --config-cache.
9497 # It is not useful on other systems. If it contains results you don't
9498 # want to keep, you may remove or edit it.
9500 # config.status only pays attention to the cache file if you give it
9501 # the --recheck option to rerun configure.
9503 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9504 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9505 # following values.
9507 _ACEOF
9509 # The following way of writing the cache mishandles newlines in values,
9510 # but we know of no workaround that is simple, portable, and efficient.
9511 # So, we kill variables containing newlines.
9512 # Ultrix sh set writes to stderr and can't be redirected directly,
9513 # and sets the high bit in the cache file unless we assign to the vars.
9515 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9516 eval ac_val=\$$ac_var
9517 case $ac_val in #(
9518 *${as_nl}*)
9519 case $ac_var in #(
9520 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
9521 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9522 esac
9523 case $ac_var in #(
9524 _ | IFS | as_nl) ;; #(
9525 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9526 *) $as_unset $ac_var ;;
9527 esac ;;
9528 esac
9529 done
9531 (set) 2>&1 |
9532 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9533 *${as_nl}ac_space=\ *)
9534 # `set' does not quote correctly, so add quotes (double-quote
9535 # substitution turns \\\\ into \\, and sed turns \\ into \).
9536 sed -n \
9537 "s/'/'\\\\''/g;
9538 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9539 ;; #(
9541 # `set' quotes correctly as required by POSIX, so do not add quotes.
9542 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9544 esac |
9545 sort
9547 sed '
9548 /^ac_cv_env_/b end
9549 t clear
9550 :clear
9551 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9552 t end
9553 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9554 :end' >>confcache
9555 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9556 if test -w "$cache_file"; then
9557 test "x$cache_file" != "x/dev/null" &&
9558 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
9559 $as_echo "$as_me: updating cache $cache_file" >&6;}
9560 cat confcache >$cache_file
9561 else
9562 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9563 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9566 rm -f confcache
9568 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9569 # Let make expand exec_prefix.
9570 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9572 DEFS=-DHAVE_CONFIG_H
9574 ac_libobjs=
9575 ac_ltlibobjs=
9576 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9577 # 1. Remove the extension, and $U if already installed.
9578 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9579 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9580 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9581 # will be set to the directory where LIBOBJS objects are built.
9582 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9583 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9584 done
9585 LIBOBJS=$ac_libobjs
9587 LTLIBOBJS=$ac_ltlibobjs
9591 : ${CONFIG_STATUS=./config.status}
9592 ac_write_fail=0
9593 ac_clean_files_save=$ac_clean_files
9594 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9595 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9596 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9597 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9598 #! $SHELL
9599 # Generated by $as_me.
9600 # Run this file to recreate the current configuration.
9601 # Compiler output produced by configure, useful for debugging
9602 # configure, is in config.log if it exists.
9604 debug=false
9605 ac_cs_recheck=false
9606 ac_cs_silent=false
9607 SHELL=\${CONFIG_SHELL-$SHELL}
9608 _ACEOF
9610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9611 ## --------------------- ##
9612 ## M4sh Initialization. ##
9613 ## --------------------- ##
9615 # Be more Bourne compatible
9616 DUALCASE=1; export DUALCASE # for MKS sh
9617 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9618 emulate sh
9619 NULLCMD=:
9620 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9621 # is contrary to our usage. Disable this feature.
9622 alias -g '${1+"$@"}'='"$@"'
9623 setopt NO_GLOB_SUBST
9624 else
9625 case `(set -o) 2>/dev/null` in
9626 *posix*) set -o posix ;;
9627 esac
9634 # PATH needs CR
9635 # Avoid depending upon Character Ranges.
9636 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9637 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9638 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9639 as_cr_digits='0123456789'
9640 as_cr_alnum=$as_cr_Letters$as_cr_digits
9642 as_nl='
9644 export as_nl
9645 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9646 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9647 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9648 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9649 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9650 as_echo='printf %s\n'
9651 as_echo_n='printf %s'
9652 else
9653 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9654 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9655 as_echo_n='/usr/ucb/echo -n'
9656 else
9657 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9658 as_echo_n_body='eval
9659 arg=$1;
9660 case $arg in
9661 *"$as_nl"*)
9662 expr "X$arg" : "X\\(.*\\)$as_nl";
9663 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9664 esac;
9665 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9667 export as_echo_n_body
9668 as_echo_n='sh -c $as_echo_n_body as_echo'
9670 export as_echo_body
9671 as_echo='sh -c $as_echo_body as_echo'
9674 # The user is always right.
9675 if test "${PATH_SEPARATOR+set}" != set; then
9676 PATH_SEPARATOR=:
9677 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9678 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9679 PATH_SEPARATOR=';'
9683 # Support unset when possible.
9684 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9685 as_unset=unset
9686 else
9687 as_unset=false
9691 # IFS
9692 # We need space, tab and new line, in precisely that order. Quoting is
9693 # there to prevent editors from complaining about space-tab.
9694 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9695 # splitting by setting IFS to empty value.)
9696 IFS=" "" $as_nl"
9698 # Find who we are. Look in the path if we contain no directory separator.
9699 case $0 in
9700 *[\\/]* ) as_myself=$0 ;;
9701 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9702 for as_dir in $PATH
9704 IFS=$as_save_IFS
9705 test -z "$as_dir" && as_dir=.
9706 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9707 done
9708 IFS=$as_save_IFS
9711 esac
9712 # We did not find ourselves, most probably we were run as `sh COMMAND'
9713 # in which case we are not to be found in the path.
9714 if test "x$as_myself" = x; then
9715 as_myself=$0
9717 if test ! -f "$as_myself"; then
9718 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9719 { (exit 1); exit 1; }
9722 # Work around bugs in pre-3.0 UWIN ksh.
9723 for as_var in ENV MAIL MAILPATH
9724 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9725 done
9726 PS1='$ '
9727 PS2='> '
9728 PS4='+ '
9730 # NLS nuisances.
9731 LC_ALL=C
9732 export LC_ALL
9733 LANGUAGE=C
9734 export LANGUAGE
9736 # Required to use basename.
9737 if expr a : '\(a\)' >/dev/null 2>&1 &&
9738 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9739 as_expr=expr
9740 else
9741 as_expr=false
9744 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9745 as_basename=basename
9746 else
9747 as_basename=false
9751 # Name of the executable.
9752 as_me=`$as_basename -- "$0" ||
9753 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9754 X"$0" : 'X\(//\)$' \| \
9755 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9756 $as_echo X/"$0" |
9757 sed '/^.*\/\([^/][^/]*\)\/*$/{
9758 s//\1/
9761 /^X\/\(\/\/\)$/{
9762 s//\1/
9765 /^X\/\(\/\).*/{
9766 s//\1/
9769 s/.*/./; q'`
9771 # CDPATH.
9772 $as_unset CDPATH
9776 as_lineno_1=$LINENO
9777 as_lineno_2=$LINENO
9778 test "x$as_lineno_1" != "x$as_lineno_2" &&
9779 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9781 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9782 # uniformly replaced by the line number. The first 'sed' inserts a
9783 # line-number line after each line using $LINENO; the second 'sed'
9784 # does the real work. The second script uses 'N' to pair each
9785 # line-number line with the line containing $LINENO, and appends
9786 # trailing '-' during substitution so that $LINENO is not a special
9787 # case at line end.
9788 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9789 # scripts with optimization help from Paolo Bonzini. Blame Lee
9790 # E. McMahon (1931-1989) for sed's syntax. :-)
9791 sed -n '
9793 /[$]LINENO/=
9794 ' <$as_myself |
9795 sed '
9796 s/[$]LINENO.*/&-/
9797 t lineno
9799 :lineno
9801 :loop
9802 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9803 t loop
9804 s/-\n.*//
9805 ' >$as_me.lineno &&
9806 chmod +x "$as_me.lineno" ||
9807 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9808 { (exit 1); exit 1; }; }
9810 # Don't try to exec as it changes $[0], causing all sort of problems
9811 # (the dirname of $[0] is not the place where we might find the
9812 # original and so on. Autoconf is especially sensitive to this).
9813 . "./$as_me.lineno"
9814 # Exit status is that of the last command.
9815 exit
9819 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9820 as_dirname=dirname
9821 else
9822 as_dirname=false
9825 ECHO_C= ECHO_N= ECHO_T=
9826 case `echo -n x` in
9827 -n*)
9828 case `echo 'x\c'` in
9829 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9830 *) ECHO_C='\c';;
9831 esac;;
9833 ECHO_N='-n';;
9834 esac
9835 if expr a : '\(a\)' >/dev/null 2>&1 &&
9836 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9837 as_expr=expr
9838 else
9839 as_expr=false
9842 rm -f conf$$ conf$$.exe conf$$.file
9843 if test -d conf$$.dir; then
9844 rm -f conf$$.dir/conf$$.file
9845 else
9846 rm -f conf$$.dir
9847 mkdir conf$$.dir 2>/dev/null
9849 if (echo >conf$$.file) 2>/dev/null; then
9850 if ln -s conf$$.file conf$$ 2>/dev/null; then
9851 as_ln_s='ln -s'
9852 # ... but there are two gotchas:
9853 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9854 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9855 # In both cases, we have to default to `cp -p'.
9856 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9857 as_ln_s='cp -p'
9858 elif ln conf$$.file conf$$ 2>/dev/null; then
9859 as_ln_s=ln
9860 else
9861 as_ln_s='cp -p'
9863 else
9864 as_ln_s='cp -p'
9866 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9867 rmdir conf$$.dir 2>/dev/null
9869 if mkdir -p . 2>/dev/null; then
9870 as_mkdir_p=:
9871 else
9872 test -d ./-p && rmdir ./-p
9873 as_mkdir_p=false
9876 if test -x / >/dev/null 2>&1; then
9877 as_test_x='test -x'
9878 else
9879 if ls -dL / >/dev/null 2>&1; then
9880 as_ls_L_option=L
9881 else
9882 as_ls_L_option=
9884 as_test_x='
9885 eval sh -c '\''
9886 if test -d "$1"; then
9887 test -d "$1/.";
9888 else
9889 case $1 in
9890 -*)set "./$1";;
9891 esac;
9892 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9893 ???[sx]*):;;*)false;;esac;fi
9894 '\'' sh
9897 as_executable_p=$as_test_x
9899 # Sed expression to map a string onto a valid CPP name.
9900 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9902 # Sed expression to map a string onto a valid variable name.
9903 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9906 exec 6>&1
9908 # Save the log message, to keep $[0] and so on meaningful, and to
9909 # report actual input values of CONFIG_FILES etc. instead of their
9910 # values after options handling.
9911 ac_log="
9912 This file was extended by GNU C Library $as_me (see version.h), which was
9913 generated by GNU Autoconf 2.63. Invocation command line was
9915 CONFIG_FILES = $CONFIG_FILES
9916 CONFIG_HEADERS = $CONFIG_HEADERS
9917 CONFIG_LINKS = $CONFIG_LINKS
9918 CONFIG_COMMANDS = $CONFIG_COMMANDS
9919 $ $0 $@
9921 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9924 _ACEOF
9926 case $ac_config_files in *"
9927 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9928 esac
9930 case $ac_config_headers in *"
9931 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9932 esac
9935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9936 # Files that config.status was made for.
9937 config_files="$ac_config_files"
9938 config_headers="$ac_config_headers"
9939 config_commands="$ac_config_commands"
9941 _ACEOF
9943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9944 ac_cs_usage="\
9945 \`$as_me' instantiates files from templates according to the
9946 current configuration.
9948 Usage: $0 [OPTION]... [FILE]...
9950 -h, --help print this help, then exit
9951 -V, --version print version number and configuration settings, then exit
9952 -q, --quiet, --silent
9953 do not print progress messages
9954 -d, --debug don't remove temporary files
9955 --recheck update $as_me by reconfiguring in the same conditions
9956 --file=FILE[:TEMPLATE]
9957 instantiate the configuration file FILE
9958 --header=FILE[:TEMPLATE]
9959 instantiate the configuration header FILE
9961 Configuration files:
9962 $config_files
9964 Configuration headers:
9965 $config_headers
9967 Configuration commands:
9968 $config_commands
9970 Report bugs to <bug-autoconf@gnu.org>."
9972 _ACEOF
9973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9974 ac_cs_version="\\
9975 GNU C Library config.status (see version.h)
9976 configured by $0, generated by GNU Autoconf 2.63,
9977 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9979 Copyright (C) 2008 Free Software Foundation, Inc.
9980 This config.status script is free software; the Free Software Foundation
9981 gives unlimited permission to copy, distribute and modify it."
9983 ac_pwd='$ac_pwd'
9984 srcdir='$srcdir'
9985 INSTALL='$INSTALL'
9986 AWK='$AWK'
9987 test -n "\$AWK" || AWK=awk
9988 _ACEOF
9990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9991 # The default lists apply if the user does not specify any file.
9992 ac_need_defaults=:
9993 while test $# != 0
9995 case $1 in
9996 --*=*)
9997 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9998 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9999 ac_shift=:
10002 ac_option=$1
10003 ac_optarg=$2
10004 ac_shift=shift
10006 esac
10008 case $ac_option in
10009 # Handling of the options.
10010 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10011 ac_cs_recheck=: ;;
10012 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10013 $as_echo "$ac_cs_version"; exit ;;
10014 --debug | --debu | --deb | --de | --d | -d )
10015 debug=: ;;
10016 --file | --fil | --fi | --f )
10017 $ac_shift
10018 case $ac_optarg in
10019 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10020 esac
10021 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10022 ac_need_defaults=false;;
10023 --header | --heade | --head | --hea )
10024 $ac_shift
10025 case $ac_optarg in
10026 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10027 esac
10028 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10029 ac_need_defaults=false;;
10030 --he | --h)
10031 # Conflict between --help and --header
10032 { $as_echo "$as_me: error: ambiguous option: $1
10033 Try \`$0 --help' for more information." >&2
10034 { (exit 1); exit 1; }; };;
10035 --help | --hel | -h )
10036 $as_echo "$ac_cs_usage"; exit ;;
10037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10038 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10039 ac_cs_silent=: ;;
10041 # This is an error.
10042 -*) { $as_echo "$as_me: error: unrecognized option: $1
10043 Try \`$0 --help' for more information." >&2
10044 { (exit 1); exit 1; }; } ;;
10046 *) ac_config_targets="$ac_config_targets $1"
10047 ac_need_defaults=false ;;
10049 esac
10050 shift
10051 done
10053 ac_configure_extra_args=
10055 if $ac_cs_silent; then
10056 exec 6>/dev/null
10057 ac_configure_extra_args="$ac_configure_extra_args --silent"
10060 _ACEOF
10061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10062 if \$ac_cs_recheck; then
10063 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10064 shift
10065 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10066 CONFIG_SHELL='$SHELL'
10067 export CONFIG_SHELL
10068 exec "\$@"
10071 _ACEOF
10072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10073 exec 5>>config.log
10075 echo
10076 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10077 ## Running $as_me. ##
10078 _ASBOX
10079 $as_echo "$ac_log"
10080 } >&5
10082 _ACEOF
10083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10085 # INIT-COMMANDS
10087 config_vars='$config_vars'
10089 _ACEOF
10091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10093 # Handling of arguments.
10094 for ac_config_target in $ac_config_targets
10096 case $ac_config_target in
10097 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10098 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
10099 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
10100 "${config_uname}") CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
10101 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10103 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10104 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10105 { (exit 1); exit 1; }; };;
10106 esac
10107 done
10110 # If the user did not use the arguments to specify the items to instantiate,
10111 # then the envvar interface is used. Set only those that are not.
10112 # We use the long form for the default assignment because of an extremely
10113 # bizarre bug on SunOS 4.1.3.
10114 if $ac_need_defaults; then
10115 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10116 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10117 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10120 # Have a temporary directory for convenience. Make it in the build tree
10121 # simply because there is no reason against having it here, and in addition,
10122 # creating and moving files from /tmp can sometimes cause problems.
10123 # Hook for its removal unless debugging.
10124 # Note that there is a small window in which the directory will not be cleaned:
10125 # after its creation but before its name has been assigned to `$tmp'.
10126 $debug ||
10128 tmp=
10129 trap 'exit_status=$?
10130 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10132 trap '{ (exit 1); exit 1; }' 1 2 13 15
10134 # Create a (secure) tmp directory for tmp files.
10137 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10138 test -n "$tmp" && test -d "$tmp"
10139 } ||
10141 tmp=./conf$$-$RANDOM
10142 (umask 077 && mkdir "$tmp")
10143 } ||
10145 $as_echo "$as_me: cannot create a temporary directory in ." >&2
10146 { (exit 1); exit 1; }
10149 # Set up the scripts for CONFIG_FILES section.
10150 # No need to generate them if there are no CONFIG_FILES.
10151 # This happens for instance with `./config.status config.h'.
10152 if test -n "$CONFIG_FILES"; then
10155 ac_cr=' '
10156 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10157 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10158 ac_cs_awk_cr='\\r'
10159 else
10160 ac_cs_awk_cr=$ac_cr
10163 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10164 _ACEOF
10168 echo "cat >conf$$subs.awk <<_ACEOF" &&
10169 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10170 echo "_ACEOF"
10171 } >conf$$subs.sh ||
10172 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10173 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10174 { (exit 1); exit 1; }; }
10175 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10176 ac_delim='%!_!# '
10177 for ac_last_try in false false false false false :; do
10178 . ./conf$$subs.sh ||
10179 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10180 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10181 { (exit 1); exit 1; }; }
10183 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10184 if test $ac_delim_n = $ac_delim_num; then
10185 break
10186 elif $ac_last_try; then
10187 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10188 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10189 { (exit 1); exit 1; }; }
10190 else
10191 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10193 done
10194 rm -f conf$$subs.sh
10196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10197 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10198 _ACEOF
10199 sed -n '
10201 s/^/S["/; s/!.*/"]=/
10204 s/^[^!]*!//
10205 :repl
10206 t repl
10207 s/'"$ac_delim"'$//
10208 t delim
10211 s/\(.\{148\}\).*/\1/
10212 t more1
10213 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10216 b repl
10217 :more1
10218 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10221 s/.\{148\}//
10222 t nl
10223 :delim
10225 s/\(.\{148\}\).*/\1/
10226 t more2
10227 s/["\\]/\\&/g; s/^/"/; s/$/"/
10230 :more2
10231 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10234 s/.\{148\}//
10235 t delim
10236 ' <conf$$subs.awk | sed '
10237 /^[^""]/{
10239 s/\n//
10241 ' >>$CONFIG_STATUS || ac_write_fail=1
10242 rm -f conf$$subs.awk
10243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10244 _ACAWK
10245 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10246 for (key in S) S_is_set[key] = 1
10247 FS = "\a"
10251 line = $ 0
10252 nfields = split(line, field, "@")
10253 substed = 0
10254 len = length(field[1])
10255 for (i = 2; i < nfields; i++) {
10256 key = field[i]
10257 keylen = length(key)
10258 if (S_is_set[key]) {
10259 value = S[key]
10260 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10261 len += length(value) + length(field[++i])
10262 substed = 1
10263 } else
10264 len += 1 + keylen
10267 print line
10270 _ACAWK
10271 _ACEOF
10272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10273 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10274 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10275 else
10277 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10278 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10279 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10280 { (exit 1); exit 1; }; }
10281 _ACEOF
10283 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10284 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10285 # trailing colons and then remove the whole line if VPATH becomes empty
10286 # (actually we leave an empty line to preserve line numbers).
10287 if test "x$srcdir" = x.; then
10288 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10289 s/:*\$(srcdir):*/:/
10290 s/:*\${srcdir}:*/:/
10291 s/:*@srcdir@:*/:/
10292 s/^\([^=]*=[ ]*\):*/\1/
10293 s/:*$//
10294 s/^[^=]*=[ ]*$//
10298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10299 fi # test -n "$CONFIG_FILES"
10301 # Set up the scripts for CONFIG_HEADERS section.
10302 # No need to generate them if there are no CONFIG_HEADERS.
10303 # This happens for instance with `./config.status Makefile'.
10304 if test -n "$CONFIG_HEADERS"; then
10305 cat >"$tmp/defines.awk" <<\_ACAWK ||
10306 BEGIN {
10307 _ACEOF
10309 # Transform confdefs.h into an awk script `defines.awk', embedded as
10310 # here-document in config.status, that substitutes the proper values into
10311 # config.h.in to produce config.h.
10313 # Create a delimiter string that does not exist in confdefs.h, to ease
10314 # handling of long lines.
10315 ac_delim='%!_!# '
10316 for ac_last_try in false false :; do
10317 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10318 if test -z "$ac_t"; then
10319 break
10320 elif $ac_last_try; then
10321 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
10322 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
10323 { (exit 1); exit 1; }; }
10324 else
10325 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10327 done
10329 # For the awk script, D is an array of macro values keyed by name,
10330 # likewise P contains macro parameters if any. Preserve backslash
10331 # newline sequences.
10333 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10334 sed -n '
10335 s/.\{148\}/&'"$ac_delim"'/g
10336 t rset
10337 :rset
10338 s/^[ ]*#[ ]*define[ ][ ]*/ /
10339 t def
10341 :def
10342 s/\\$//
10343 t bsnl
10344 s/["\\]/\\&/g
10345 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10346 D["\1"]=" \3"/p
10347 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10349 :bsnl
10350 s/["\\]/\\&/g
10351 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10352 D["\1"]=" \3\\\\\\n"\\/p
10353 t cont
10354 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10355 t cont
10357 :cont
10359 s/.\{148\}/&'"$ac_delim"'/g
10360 t clear
10361 :clear
10362 s/\\$//
10363 t bsnlc
10364 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10366 :bsnlc
10367 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10368 b cont
10369 ' <confdefs.h | sed '
10370 s/'"$ac_delim"'/"\\\
10371 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10374 for (key in D) D_is_set[key] = 1
10375 FS = "\a"
10377 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10378 line = \$ 0
10379 split(line, arg, " ")
10380 if (arg[1] == "#") {
10381 defundef = arg[2]
10382 mac1 = arg[3]
10383 } else {
10384 defundef = substr(arg[1], 2)
10385 mac1 = arg[2]
10387 split(mac1, mac2, "(") #)
10388 macro = mac2[1]
10389 prefix = substr(line, 1, index(line, defundef) - 1)
10390 if (D_is_set[macro]) {
10391 # Preserve the white space surrounding the "#".
10392 print prefix "define", macro P[macro] D[macro]
10393 next
10394 } else {
10395 # Replace #undef with comments. This is necessary, for example,
10396 # in the case of _POSIX_SOURCE, which is predefined and required
10397 # on some systems where configure will not decide to define it.
10398 if (defundef == "undef") {
10399 print "/*", prefix defundef, macro, "*/"
10400 next
10404 { print }
10405 _ACAWK
10406 _ACEOF
10407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10408 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
10409 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
10410 { (exit 1); exit 1; }; }
10411 fi # test -n "$CONFIG_HEADERS"
10414 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10415 shift
10416 for ac_tag
10418 case $ac_tag in
10419 :[FHLC]) ac_mode=$ac_tag; continue;;
10420 esac
10421 case $ac_mode$ac_tag in
10422 :[FHL]*:*);;
10423 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
10424 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
10425 { (exit 1); exit 1; }; };;
10426 :[FH]-) ac_tag=-:-;;
10427 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10428 esac
10429 ac_save_IFS=$IFS
10430 IFS=:
10431 set x $ac_tag
10432 IFS=$ac_save_IFS
10433 shift
10434 ac_file=$1
10435 shift
10437 case $ac_mode in
10438 :L) ac_source=$1;;
10439 :[FH])
10440 ac_file_inputs=
10441 for ac_f
10443 case $ac_f in
10444 -) ac_f="$tmp/stdin";;
10445 *) # Look for the file first in the build tree, then in the source tree
10446 # (if the path is not absolute). The absolute path cannot be DOS-style,
10447 # because $ac_f cannot contain `:'.
10448 test -f "$ac_f" ||
10449 case $ac_f in
10450 [\\/$]*) false;;
10451 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10452 esac ||
10453 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10454 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10455 { (exit 1); exit 1; }; };;
10456 esac
10457 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10458 ac_file_inputs="$ac_file_inputs '$ac_f'"
10459 done
10461 # Let's still pretend it is `configure' which instantiates (i.e., don't
10462 # use $as_me), people would be surprised to read:
10463 # /* config.h. Generated by config.status. */
10464 configure_input='Generated from '`
10465 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10466 `' by configure.'
10467 if test x"$ac_file" != x-; then
10468 configure_input="$ac_file. $configure_input"
10469 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
10470 $as_echo "$as_me: creating $ac_file" >&6;}
10472 # Neutralize special characters interpreted by sed in replacement strings.
10473 case $configure_input in #(
10474 *\&* | *\|* | *\\* )
10475 ac_sed_conf_input=`$as_echo "$configure_input" |
10476 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10477 *) ac_sed_conf_input=$configure_input;;
10478 esac
10480 case $ac_tag in
10481 *:-:* | *:-) cat >"$tmp/stdin" \
10482 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10483 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10484 { (exit 1); exit 1; }; } ;;
10485 esac
10487 esac
10489 ac_dir=`$as_dirname -- "$ac_file" ||
10490 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10491 X"$ac_file" : 'X\(//\)[^/]' \| \
10492 X"$ac_file" : 'X\(//\)$' \| \
10493 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10494 $as_echo X"$ac_file" |
10495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10496 s//\1/
10499 /^X\(\/\/\)[^/].*/{
10500 s//\1/
10503 /^X\(\/\/\)$/{
10504 s//\1/
10507 /^X\(\/\).*/{
10508 s//\1/
10511 s/.*/./; q'`
10512 { as_dir="$ac_dir"
10513 case $as_dir in #(
10514 -*) as_dir=./$as_dir;;
10515 esac
10516 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10517 as_dirs=
10518 while :; do
10519 case $as_dir in #(
10520 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10521 *) as_qdir=$as_dir;;
10522 esac
10523 as_dirs="'$as_qdir' $as_dirs"
10524 as_dir=`$as_dirname -- "$as_dir" ||
10525 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10526 X"$as_dir" : 'X\(//\)[^/]' \| \
10527 X"$as_dir" : 'X\(//\)$' \| \
10528 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10529 $as_echo X"$as_dir" |
10530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10531 s//\1/
10534 /^X\(\/\/\)[^/].*/{
10535 s//\1/
10538 /^X\(\/\/\)$/{
10539 s//\1/
10542 /^X\(\/\).*/{
10543 s//\1/
10546 s/.*/./; q'`
10547 test -d "$as_dir" && break
10548 done
10549 test -z "$as_dirs" || eval "mkdir $as_dirs"
10550 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10551 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10552 { (exit 1); exit 1; }; }; }
10553 ac_builddir=.
10555 case "$ac_dir" in
10556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10558 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10559 # A ".." for each directory in $ac_dir_suffix.
10560 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10561 case $ac_top_builddir_sub in
10562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10564 esac ;;
10565 esac
10566 ac_abs_top_builddir=$ac_pwd
10567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10568 # for backward compatibility:
10569 ac_top_builddir=$ac_top_build_prefix
10571 case $srcdir in
10572 .) # We are building in place.
10573 ac_srcdir=.
10574 ac_top_srcdir=$ac_top_builddir_sub
10575 ac_abs_top_srcdir=$ac_pwd ;;
10576 [\\/]* | ?:[\\/]* ) # Absolute name.
10577 ac_srcdir=$srcdir$ac_dir_suffix;
10578 ac_top_srcdir=$srcdir
10579 ac_abs_top_srcdir=$srcdir ;;
10580 *) # Relative name.
10581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10582 ac_top_srcdir=$ac_top_build_prefix$srcdir
10583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10584 esac
10585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10588 case $ac_mode in
10591 # CONFIG_FILE
10594 case $INSTALL in
10595 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10596 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10597 esac
10598 _ACEOF
10600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10601 # If the template does not know about datarootdir, expand it.
10602 # FIXME: This hack should be removed a few years after 2.60.
10603 ac_datarootdir_hack=; ac_datarootdir_seen=
10605 ac_sed_dataroot='
10606 /datarootdir/ {
10610 /@datadir@/p
10611 /@docdir@/p
10612 /@infodir@/p
10613 /@localedir@/p
10614 /@mandir@/p
10616 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10617 *datarootdir*) ac_datarootdir_seen=yes;;
10618 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10619 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10620 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10621 _ACEOF
10622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10623 ac_datarootdir_hack='
10624 s&@datadir@&$datadir&g
10625 s&@docdir@&$docdir&g
10626 s&@infodir@&$infodir&g
10627 s&@localedir@&$localedir&g
10628 s&@mandir@&$mandir&g
10629 s&\\\${datarootdir}&$datarootdir&g' ;;
10630 esac
10631 _ACEOF
10633 # Neutralize VPATH when `$srcdir' = `.'.
10634 # Shell code in configure.ac might set extrasub.
10635 # FIXME: do we really want to maintain this feature?
10636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10637 ac_sed_extra="$ac_vpsub
10638 $extrasub
10639 _ACEOF
10640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10642 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10643 s|@configure_input@|$ac_sed_conf_input|;t t
10644 s&@top_builddir@&$ac_top_builddir_sub&;t t
10645 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10646 s&@srcdir@&$ac_srcdir&;t t
10647 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10648 s&@top_srcdir@&$ac_top_srcdir&;t t
10649 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10650 s&@builddir@&$ac_builddir&;t t
10651 s&@abs_builddir@&$ac_abs_builddir&;t t
10652 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10653 s&@INSTALL@&$ac_INSTALL&;t t
10654 $ac_datarootdir_hack
10656 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10657 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10658 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10659 { (exit 1); exit 1; }; }
10661 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10662 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10663 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10664 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10665 which seems to be undefined. Please make sure it is defined." >&5
10666 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10667 which seems to be undefined. Please make sure it is defined." >&2;}
10669 rm -f "$tmp/stdin"
10670 case $ac_file in
10671 -) cat "$tmp/out" && rm -f "$tmp/out";;
10672 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10673 esac \
10674 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10675 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10676 { (exit 1); exit 1; }; }
10680 # CONFIG_HEADER
10682 if test x"$ac_file" != x-; then
10684 $as_echo "/* $configure_input */" \
10685 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10686 } >"$tmp/config.h" \
10687 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10688 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10689 { (exit 1); exit 1; }; }
10690 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10691 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10692 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10693 else
10694 rm -f "$ac_file"
10695 mv "$tmp/config.h" "$ac_file" \
10696 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10697 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10698 { (exit 1); exit 1; }; }
10700 else
10701 $as_echo "/* $configure_input */" \
10702 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10703 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
10704 $as_echo "$as_me: error: could not create -" >&2;}
10705 { (exit 1); exit 1; }; }
10709 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
10710 $as_echo "$as_me: executing $ac_file commands" >&6;}
10712 esac
10715 case $ac_file$ac_mode in
10716 "default":C)
10717 case $CONFIG_FILES in *config.make*)
10718 echo "$config_vars" >> config.make;;
10719 esac
10720 test -d bits || mkdir bits ;;
10722 esac
10723 done # for ac_tag
10726 { (exit 0); exit 0; }
10727 _ACEOF
10728 chmod +x $CONFIG_STATUS
10729 ac_clean_files=$ac_clean_files_save
10731 test $ac_write_fail = 0 ||
10732 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
10733 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
10734 { (exit 1); exit 1; }; }
10737 # configure is writing to config.log, and then calls config.status.
10738 # config.status does its own redirection, appending to config.log.
10739 # Unfortunately, on DOS this fails, as config.log is still kept open
10740 # by configure, so config.status won't be able to write to it; its
10741 # output is simply discarded. So we exec the FD to /dev/null,
10742 # effectively closing config.log, so it can be properly (re)opened and
10743 # appended to by config.status. When coming back to configure, we
10744 # need to make the FD available again.
10745 if test "$no_create" != yes; then
10746 ac_cs_success=:
10747 ac_config_status_args=
10748 test "$silent" = yes &&
10749 ac_config_status_args="$ac_config_status_args --quiet"
10750 exec 5>/dev/null
10751 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10752 exec 5>>config.log
10753 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10754 # would make configure fail if this is the last instruction.
10755 $ac_cs_success || { (exit 1); exit 1; }
10759 # CONFIG_SUBDIRS section.
10761 if test "$no_recursion" != yes; then
10763 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10764 # so they do not pile up.
10765 ac_sub_configure_args=
10766 ac_prev=
10767 eval "set x $ac_configure_args"
10768 shift
10769 for ac_arg
10771 if test -n "$ac_prev"; then
10772 ac_prev=
10773 continue
10775 case $ac_arg in
10776 -cache-file | --cache-file | --cache-fil | --cache-fi \
10777 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10778 ac_prev=cache_file ;;
10779 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10780 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10781 | --c=*)
10783 --config-cache | -C)
10785 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10786 ac_prev=srcdir ;;
10787 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10789 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10790 ac_prev=prefix ;;
10791 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10793 --disable-option-checking)
10796 case $ac_arg in
10797 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10798 esac
10799 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
10800 esac
10801 done
10803 # Always prepend --prefix to ensure using the same prefix
10804 # in subdir configurations.
10805 ac_arg="--prefix=$prefix"
10806 case $ac_arg in
10807 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10808 esac
10809 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10811 # Pass --silent
10812 if test "$silent" = yes; then
10813 ac_sub_configure_args="--silent $ac_sub_configure_args"
10816 # Always prepend --disable-option-checking to silence warnings, since
10817 # different subdirs can have different --enable and --with options.
10818 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10820 ac_popdir=`pwd`
10821 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10823 # Do not complain, so a configure script can configure whichever
10824 # parts of a large source tree are present.
10825 test -d "$srcdir/$ac_dir" || continue
10827 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10828 $as_echo "$as_me:$LINENO: $ac_msg" >&5
10829 $as_echo "$ac_msg" >&6
10830 { as_dir="$ac_dir"
10831 case $as_dir in #(
10832 -*) as_dir=./$as_dir;;
10833 esac
10834 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10835 as_dirs=
10836 while :; do
10837 case $as_dir in #(
10838 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10839 *) as_qdir=$as_dir;;
10840 esac
10841 as_dirs="'$as_qdir' $as_dirs"
10842 as_dir=`$as_dirname -- "$as_dir" ||
10843 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10844 X"$as_dir" : 'X\(//\)[^/]' \| \
10845 X"$as_dir" : 'X\(//\)$' \| \
10846 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10847 $as_echo X"$as_dir" |
10848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10849 s//\1/
10852 /^X\(\/\/\)[^/].*/{
10853 s//\1/
10856 /^X\(\/\/\)$/{
10857 s//\1/
10860 /^X\(\/\).*/{
10861 s//\1/
10864 s/.*/./; q'`
10865 test -d "$as_dir" && break
10866 done
10867 test -z "$as_dirs" || eval "mkdir $as_dirs"
10868 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10869 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10870 { (exit 1); exit 1; }; }; }
10871 ac_builddir=.
10873 case "$ac_dir" in
10874 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10876 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10877 # A ".." for each directory in $ac_dir_suffix.
10878 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10879 case $ac_top_builddir_sub in
10880 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10881 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10882 esac ;;
10883 esac
10884 ac_abs_top_builddir=$ac_pwd
10885 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10886 # for backward compatibility:
10887 ac_top_builddir=$ac_top_build_prefix
10889 case $srcdir in
10890 .) # We are building in place.
10891 ac_srcdir=.
10892 ac_top_srcdir=$ac_top_builddir_sub
10893 ac_abs_top_srcdir=$ac_pwd ;;
10894 [\\/]* | ?:[\\/]* ) # Absolute name.
10895 ac_srcdir=$srcdir$ac_dir_suffix;
10896 ac_top_srcdir=$srcdir
10897 ac_abs_top_srcdir=$srcdir ;;
10898 *) # Relative name.
10899 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10900 ac_top_srcdir=$ac_top_build_prefix$srcdir
10901 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10902 esac
10903 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10906 cd "$ac_dir"
10908 # Check for guested configure; otherwise get Cygnus style configure.
10909 if test -f "$ac_srcdir/configure.gnu"; then
10910 ac_sub_configure=$ac_srcdir/configure.gnu
10911 elif test -f "$ac_srcdir/configure"; then
10912 ac_sub_configure=$ac_srcdir/configure
10913 elif test -f "$ac_srcdir/configure.in"; then
10914 # This should be Cygnus configure.
10915 ac_sub_configure=$ac_aux_dir/configure
10916 else
10917 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
10918 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10919 ac_sub_configure=
10922 # The recursion is here.
10923 if test -n "$ac_sub_configure"; then
10924 # Make the cache file name correct relative to the subdirectory.
10925 case $cache_file in
10926 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10927 *) # Relative name.
10928 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10929 esac
10931 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10932 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10933 # The eval makes quoting arguments work.
10934 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10935 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10936 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
10937 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
10938 { (exit 1); exit 1; }; }
10941 cd "$ac_popdir"
10942 done
10944 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10945 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10946 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}