2007-10-06 David S. Miller <davem@davemloft.net>
[platform/upstream/glibc.git] / configure
1 #! /bin/sh
2 # From configure.in CVSid.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for GNU C Library (see version.h).
5 #
6 # Report bugs to <glibc>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
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
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555 exec 7<&0 </dev/null 6>&1
556
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562 #
563 # Initializations.
564 #
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
574
575 # Identity of this package.
576 PACKAGE_NAME='GNU C Library'
577 PACKAGE_TARNAME='c-library'
578 PACKAGE_VERSION='(see version.h)'
579 PACKAGE_STRING='GNU C Library (see version.h)'
580 PACKAGE_BUGREPORT='glibc'
581
582 ac_unique_file="include/features.h"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 #  include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #  include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
618
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 with_fp
657 with_cvs
658 enable_check_abi
659 oldest_abi
660 bindnow
661 force_install
662 all_warnings
663 build
664 build_cpu
665 build_vendor
666 build_os
667 host
668 host_cpu
669 host_vendor
670 host_os
671 subdirs
672 add_ons
673 add_on_subdirs
674 base_machine
675 submachine
676 sysnames
677 sysdeps_add_ons
678 INSTALL_PROGRAM
679 INSTALL_SCRIPT
680 INSTALL_DATA
681 LN_S
682 CC
683 CFLAGS
684 LDFLAGS
685 CPPFLAGS
686 ac_ct_CC
687 OBJEXT
688 BUILD_CC
689 cross_compiling
690 CPP
691 CXX
692 CXXFLAGS
693 ac_ct_CXX
694 AR
695 OBJDUMP
696 RANLIB
697 MIG
698 AS
699 LD
700 PWD_P
701 MAKE
702 MSGFMT
703 MAKEINFO
704 SED
705 AUTOCONF
706 SYSINCLUDES
707 CXX_SYSINCLUDES
708 libc_cv_gcc_static_libgcc
709 BASH_SHELL
710 libc_cv_have_bash2
711 KSH
712 libc_cv_have_ksh
713 AWK
714 PERL
715 INSTALL_INFO
716 BISON
717 VERSIONING
718 libc_cv_cc_with_libunwind
719 libc_cv_Bgroup
720 libc_cv_libgcc_s_suffix
721 libc_cv_as_needed
722 ASFLAGS_config
723 libc_cv_z_combreloc
724 libc_cv_z_execstack
725 libc_cv_fpie
726 libc_cv_hashstyle
727 fno_unit_at_a_time
728 libc_cv_ssp
729 libc_cv_gnu89_inline
730 libc_cv_have_initfini
731 no_whole_archive
732 exceptions
733 LIBGD
734 have_libaudit
735 have_libcap
736 have_selinux
737 GREP
738 EGREP
739 sizeof_long_double
740 libc_cv_gcc_unwind_find_fde
741 uname_sysname
742 uname_release
743 uname_version
744 old_glibc_headers
745 libc_cv_slibdir
746 libc_cv_localedir
747 libc_cv_sysconfdir
748 libc_cv_rootsbindir
749 libc_cv_forced_unwind
750 use_ldconfig
751 ldd_rewrite_script
752 elf
753 xcoff
754 static
755 shared
756 pic_default
757 profile
758 omitfp
759 bounded
760 static_nss
761 nopic_initfini
762 DEFINES
763 mach_interface_list
764 VERSION
765 RELEASE
766 LIBOBJS
767 LTLIBOBJS'
768 ac_subst_files=''
769       ac_precious_vars='build_alias
770 host_alias
771 target_alias
772 CC
773 CFLAGS
774 LDFLAGS
775 LIBS
776 CPPFLAGS
777 CPP
778 CXX
779 CXXFLAGS
780 CCC'
781 ac_subdirs_all=''
782
783 # Initialize some variables set by options.
784 ac_init_help=
785 ac_init_version=false
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
788 cache_file=/dev/null
789 exec_prefix=NONE
790 no_create=
791 no_recursion=
792 prefix=NONE
793 program_prefix=NONE
794 program_suffix=NONE
795 program_transform_name=s,x,x,
796 silent=
797 site=
798 srcdir=
799 verbose=
800 x_includes=NONE
801 x_libraries=NONE
802
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir='${exec_prefix}/bin'
810 sbindir='${exec_prefix}/sbin'
811 libexecdir='${exec_prefix}/libexec'
812 datarootdir='${prefix}/share'
813 datadir='${datarootdir}'
814 sysconfdir='${prefix}/etc'
815 sharedstatedir='${prefix}/com'
816 localstatedir='${prefix}/var'
817 includedir='${prefix}/include'
818 oldincludedir='/usr/include'
819 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820 infodir='${datarootdir}/info'
821 htmldir='${docdir}'
822 dvidir='${docdir}'
823 pdfdir='${docdir}'
824 psdir='${docdir}'
825 libdir='${exec_prefix}/lib'
826 localedir='${datarootdir}/locale'
827 mandir='${datarootdir}/man'
828
829 ac_prev=
830 ac_dashdash=
831 for ac_option
832 do
833   # If the previous option needs an argument, assign it.
834   if test -n "$ac_prev"; then
835     eval $ac_prev=\$ac_option
836     ac_prev=
837     continue
838   fi
839
840   case $ac_option in
841   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842   *)    ac_optarg=yes ;;
843   esac
844
845   # Accept the important Cygnus configure options, so we can diagnose typos.
846
847   case $ac_dashdash$ac_option in
848   --)
849     ac_dashdash=yes ;;
850
851   -bindir | --bindir | --bindi | --bind | --bin | --bi)
852     ac_prev=bindir ;;
853   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854     bindir=$ac_optarg ;;
855
856   -build | --build | --buil | --bui | --bu)
857     ac_prev=build_alias ;;
858   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859     build_alias=$ac_optarg ;;
860
861   -cache-file | --cache-file | --cache-fil | --cache-fi \
862   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863     ac_prev=cache_file ;;
864   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866     cache_file=$ac_optarg ;;
867
868   --config-cache | -C)
869     cache_file=config.cache ;;
870
871   -datadir | --datadir | --datadi | --datad)
872     ac_prev=datadir ;;
873   -datadir=* | --datadir=* | --datadi=* | --datad=*)
874     datadir=$ac_optarg ;;
875
876   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877   | --dataroo | --dataro | --datar)
878     ac_prev=datarootdir ;;
879   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881     datarootdir=$ac_optarg ;;
882
883   -disable-* | --disable-*)
884     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885     # Reject names that are not valid shell variable names.
886     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
887       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
888    { (exit 1); exit 1; }; }
889     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
890     eval enable_$ac_feature=no ;;
891
892   -docdir | --docdir | --docdi | --doc | --do)
893     ac_prev=docdir ;;
894   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895     docdir=$ac_optarg ;;
896
897   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898     ac_prev=dvidir ;;
899   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900     dvidir=$ac_optarg ;;
901
902   -enable-* | --enable-*)
903     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904     # Reject names that are not valid shell variable names.
905     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
906       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
907    { (exit 1); exit 1; }; }
908     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
909     eval enable_$ac_feature=\$ac_optarg ;;
910
911   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
912   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
913   | --exec | --exe | --ex)
914     ac_prev=exec_prefix ;;
915   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
916   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
917   | --exec=* | --exe=* | --ex=*)
918     exec_prefix=$ac_optarg ;;
919
920   -gas | --gas | --ga | --g)
921     # Obsolete; use --with-gas.
922     with_gas=yes ;;
923
924   -help | --help | --hel | --he | -h)
925     ac_init_help=long ;;
926   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
927     ac_init_help=recursive ;;
928   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
929     ac_init_help=short ;;
930
931   -host | --host | --hos | --ho)
932     ac_prev=host_alias ;;
933   -host=* | --host=* | --hos=* | --ho=*)
934     host_alias=$ac_optarg ;;
935
936   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
937     ac_prev=htmldir ;;
938   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
939   | --ht=*)
940     htmldir=$ac_optarg ;;
941
942   -includedir | --includedir | --includedi | --included | --include \
943   | --includ | --inclu | --incl | --inc)
944     ac_prev=includedir ;;
945   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
946   | --includ=* | --inclu=* | --incl=* | --inc=*)
947     includedir=$ac_optarg ;;
948
949   -infodir | --infodir | --infodi | --infod | --info | --inf)
950     ac_prev=infodir ;;
951   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
952     infodir=$ac_optarg ;;
953
954   -libdir | --libdir | --libdi | --libd)
955     ac_prev=libdir ;;
956   -libdir=* | --libdir=* | --libdi=* | --libd=*)
957     libdir=$ac_optarg ;;
958
959   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
960   | --libexe | --libex | --libe)
961     ac_prev=libexecdir ;;
962   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
963   | --libexe=* | --libex=* | --libe=*)
964     libexecdir=$ac_optarg ;;
965
966   -localedir | --localedir | --localedi | --localed | --locale)
967     ac_prev=localedir ;;
968   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
969     localedir=$ac_optarg ;;
970
971   -localstatedir | --localstatedir | --localstatedi | --localstated \
972   | --localstate | --localstat | --localsta | --localst | --locals)
973     ac_prev=localstatedir ;;
974   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
975   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
976     localstatedir=$ac_optarg ;;
977
978   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
979     ac_prev=mandir ;;
980   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981     mandir=$ac_optarg ;;
982
983   -nfp | --nfp | --nf)
984     # Obsolete; use --without-fp.
985     with_fp=no ;;
986
987   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988   | --no-cr | --no-c | -n)
989     no_create=yes ;;
990
991   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993     no_recursion=yes ;;
994
995   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
996   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
997   | --oldin | --oldi | --old | --ol | --o)
998     ac_prev=oldincludedir ;;
999   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1000   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1001   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1002     oldincludedir=$ac_optarg ;;
1003
1004   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1005     ac_prev=prefix ;;
1006   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1007     prefix=$ac_optarg ;;
1008
1009   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1010   | --program-pre | --program-pr | --program-p)
1011     ac_prev=program_prefix ;;
1012   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1013   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1014     program_prefix=$ac_optarg ;;
1015
1016   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1017   | --program-suf | --program-su | --program-s)
1018     ac_prev=program_suffix ;;
1019   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1020   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1021     program_suffix=$ac_optarg ;;
1022
1023   -program-transform-name | --program-transform-name \
1024   | --program-transform-nam | --program-transform-na \
1025   | --program-transform-n | --program-transform- \
1026   | --program-transform | --program-transfor \
1027   | --program-transfo | --program-transf \
1028   | --program-trans | --program-tran \
1029   | --progr-tra | --program-tr | --program-t)
1030     ac_prev=program_transform_name ;;
1031   -program-transform-name=* | --program-transform-name=* \
1032   | --program-transform-nam=* | --program-transform-na=* \
1033   | --program-transform-n=* | --program-transform-=* \
1034   | --program-transform=* | --program-transfor=* \
1035   | --program-transfo=* | --program-transf=* \
1036   | --program-trans=* | --program-tran=* \
1037   | --progr-tra=* | --program-tr=* | --program-t=*)
1038     program_transform_name=$ac_optarg ;;
1039
1040   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1041     ac_prev=pdfdir ;;
1042   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1043     pdfdir=$ac_optarg ;;
1044
1045   -psdir | --psdir | --psdi | --psd | --ps)
1046     ac_prev=psdir ;;
1047   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048     psdir=$ac_optarg ;;
1049
1050   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051   | -silent | --silent | --silen | --sile | --sil)
1052     silent=yes ;;
1053
1054   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1055     ac_prev=sbindir ;;
1056   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1057   | --sbi=* | --sb=*)
1058     sbindir=$ac_optarg ;;
1059
1060   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1061   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1062   | --sharedst | --shareds | --shared | --share | --shar \
1063   | --sha | --sh)
1064     ac_prev=sharedstatedir ;;
1065   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1066   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1067   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1068   | --sha=* | --sh=*)
1069     sharedstatedir=$ac_optarg ;;
1070
1071   -site | --site | --sit)
1072     ac_prev=site ;;
1073   -site=* | --site=* | --sit=*)
1074     site=$ac_optarg ;;
1075
1076   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1077     ac_prev=srcdir ;;
1078   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1079     srcdir=$ac_optarg ;;
1080
1081   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1082   | --syscon | --sysco | --sysc | --sys | --sy)
1083     ac_prev=sysconfdir ;;
1084   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1085   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1086     sysconfdir=$ac_optarg ;;
1087
1088   -target | --target | --targe | --targ | --tar | --ta | --t)
1089     ac_prev=target_alias ;;
1090   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1091     target_alias=$ac_optarg ;;
1092
1093   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094     verbose=yes ;;
1095
1096   -version | --version | --versio | --versi | --vers | -V)
1097     ac_init_version=: ;;
1098
1099   -with-* | --with-*)
1100     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101     # Reject names that are not valid shell variable names.
1102     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103       { echo "$as_me: error: invalid package name: $ac_package" >&2
1104    { (exit 1); exit 1; }; }
1105     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1106     eval with_$ac_package=\$ac_optarg ;;
1107
1108   -without-* | --without-*)
1109     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110     # Reject names that are not valid shell variable names.
1111     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112       { echo "$as_me: error: invalid package name: $ac_package" >&2
1113    { (exit 1); exit 1; }; }
1114     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1115     eval with_$ac_package=no ;;
1116
1117   --x)
1118     # Obsolete; use --with-x.
1119     with_x=yes ;;
1120
1121   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122   | --x-incl | --x-inc | --x-in | --x-i)
1123     ac_prev=x_includes ;;
1124   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1126     x_includes=$ac_optarg ;;
1127
1128   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130     ac_prev=x_libraries ;;
1131   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1133     x_libraries=$ac_optarg ;;
1134
1135   -*) { echo "$as_me: error: unrecognized option: $ac_option
1136 Try \`$0 --help' for more information." >&2
1137    { (exit 1); exit 1; }; }
1138     ;;
1139
1140   *=*)
1141     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1142     # Reject names that are not valid shell variable names.
1143     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1144       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1145    { (exit 1); exit 1; }; }
1146     eval $ac_envvar=\$ac_optarg
1147     export $ac_envvar ;;
1148
1149   *)
1150     # FIXME: should be removed in autoconf 3.0.
1151     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1155     ;;
1156
1157   esac
1158 done
1159
1160 if test -n "$ac_prev"; then
1161   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162   { echo "$as_me: error: missing argument to $ac_option" >&2
1163    { (exit 1); exit 1; }; }
1164 fi
1165
1166 # Be sure to have absolute directory names.
1167 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168                 datadir sysconfdir sharedstatedir localstatedir includedir \
1169                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170                 libdir localedir mandir
1171 do
1172   eval ac_val=\$$ac_var
1173   case $ac_val in
1174     [\\/$]* | ?:[\\/]* )  continue;;
1175     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1176   esac
1177   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1178    { (exit 1); exit 1; }; }
1179 done
1180
1181 # There might be people who depend on the old broken behavior: `$host'
1182 # used to hold the argument of --host etc.
1183 # FIXME: To remove some day.
1184 build=$build_alias
1185 host=$host_alias
1186 target=$target_alias
1187
1188 # FIXME: To remove some day.
1189 if test "x$host_alias" != x; then
1190   if test "x$build_alias" = x; then
1191     cross_compiling=maybe
1192     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1193     If a cross compiler is detected then cross compile mode will be used." >&2
1194   elif test "x$build_alias" != "x$host_alias"; then
1195     cross_compiling=yes
1196   fi
1197 fi
1198
1199 ac_tool_prefix=
1200 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1201
1202 test "$silent" = yes && exec 6>/dev/null
1203
1204
1205 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1206 ac_ls_di=`ls -di .` &&
1207 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1208   { echo "$as_me: error: Working directory cannot be determined" >&2
1209    { (exit 1); exit 1; }; }
1210 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1211   { echo "$as_me: error: pwd does not report name of working directory" >&2
1212    { (exit 1); exit 1; }; }
1213
1214
1215 # Find the source files, if location was not specified.
1216 if test -z "$srcdir"; then
1217   ac_srcdir_defaulted=yes
1218   # Try the directory containing this script, then the parent directory.
1219   ac_confdir=`$as_dirname -- "$0" ||
1220 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1221          X"$0" : 'X\(//\)[^/]' \| \
1222          X"$0" : 'X\(//\)$' \| \
1223          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1224 echo X"$0" |
1225     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1226             s//\1/
1227             q
1228           }
1229           /^X\(\/\/\)[^/].*/{
1230             s//\1/
1231             q
1232           }
1233           /^X\(\/\/\)$/{
1234             s//\1/
1235             q
1236           }
1237           /^X\(\/\).*/{
1238             s//\1/
1239             q
1240           }
1241           s/.*/./; q'`
1242   srcdir=$ac_confdir
1243   if test ! -r "$srcdir/$ac_unique_file"; then
1244     srcdir=..
1245   fi
1246 else
1247   ac_srcdir_defaulted=no
1248 fi
1249 if test ! -r "$srcdir/$ac_unique_file"; then
1250   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1251   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1252    { (exit 1); exit 1; }; }
1253 fi
1254 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1255 ac_abs_confdir=`(
1256         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1257    { (exit 1); exit 1; }; }
1258         pwd)`
1259 # When building in place, set srcdir=.
1260 if test "$ac_abs_confdir" = "$ac_pwd"; then
1261   srcdir=.
1262 fi
1263 # Remove unnecessary trailing slashes from srcdir.
1264 # Double slashes in file names in object file debugging info
1265 # mess up M-x gdb in Emacs.
1266 case $srcdir in
1267 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1268 esac
1269 for ac_var in $ac_precious_vars; do
1270   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1271   eval ac_env_${ac_var}_value=\$${ac_var}
1272   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1273   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1274 done
1275
1276 #
1277 # Report the --help message.
1278 #
1279 if test "$ac_init_help" = "long"; then
1280   # Omit some internal or obsolete options to make the list less imposing.
1281   # This message is too long to be a string in the A/UX 3.1 sh.
1282   cat <<_ACEOF
1283 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1284
1285 Usage: $0 [OPTION]... [VAR=VALUE]...
1286
1287 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1288 VAR=VALUE.  See below for descriptions of some of the useful variables.
1289
1290 Defaults for the options are specified in brackets.
1291
1292 Configuration:
1293   -h, --help              display this help and exit
1294       --help=short        display options specific to this package
1295       --help=recursive    display the short help of all the included packages
1296   -V, --version           display version information and exit
1297   -q, --quiet, --silent   do not print \`checking...' messages
1298       --cache-file=FILE   cache test results in FILE [disabled]
1299   -C, --config-cache      alias for \`--cache-file=config.cache'
1300   -n, --no-create         do not create output files
1301       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1302
1303 Installation directories:
1304   --prefix=PREFIX         install architecture-independent files in PREFIX
1305                           [$ac_default_prefix]
1306   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1307                           [PREFIX]
1308
1309 By default, \`make install' will install all the files in
1310 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1311 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1312 for instance \`--prefix=\$HOME'.
1313
1314 For better control, use the options below.
1315
1316 Fine tuning of the installation directories:
1317   --bindir=DIR           user executables [EPREFIX/bin]
1318   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1319   --libexecdir=DIR       program executables [EPREFIX/libexec]
1320   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1321   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1322   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1323   --libdir=DIR           object code libraries [EPREFIX/lib]
1324   --includedir=DIR       C header files [PREFIX/include]
1325   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1326   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1327   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1328   --infodir=DIR          info documentation [DATAROOTDIR/info]
1329   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1330   --mandir=DIR           man documentation [DATAROOTDIR/man]
1331   --docdir=DIR           documentation root [DATAROOTDIR/doc/c-library]
1332   --htmldir=DIR          html documentation [DOCDIR]
1333   --dvidir=DIR           dvi documentation [DOCDIR]
1334   --pdfdir=DIR           pdf documentation [DOCDIR]
1335   --psdir=DIR            ps documentation [DOCDIR]
1336 _ACEOF
1337
1338   cat <<\_ACEOF
1339
1340 System types:
1341   --build=BUILD     configure for building on BUILD [guessed]
1342   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1343 _ACEOF
1344 fi
1345
1346 if test -n "$ac_init_help"; then
1347   case $ac_init_help in
1348      short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1349    esac
1350   cat <<\_ACEOF
1351
1352 Optional Features:
1353   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1354   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1355   --disable-sanity-checks really do not use threads (should not be used except
1356                           in special situations) [default=yes]
1357   --enable-check-abi      do "make check-abi" in "make check" (no/warn/yes)
1358                           [default=no]
1359   --enable-shared         build shared library [default=yes if GNU ld & ELF]
1360   --enable-profile        build profiled library [default=no]
1361   --enable-omitfp         build undebuggable optimized library [default=no]
1362   --enable-bounded        build with runtime bounds checking [default=no]
1363   --disable-versioning    do not include versioning information in the library
1364                           objects [default=yes if supported]
1365   --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1366                           [default=glibc default]
1367   --enable-stackguard-randomization
1368                           initialize __stack_chk_guard canary with a random
1369                           number at program start
1370   --enable-add-ons[=DIRS...]
1371                           configure and build add-ons in DIR1,DIR2,... search
1372                           for add-ons if no parameter given
1373   --disable-hidden-plt    do not hide internal function calls to avoid PLT
1374   --enable-bind-now       disable lazy relocations in DSOs
1375   --enable-static-nss     build static NSS modules [default=no]
1376   --disable-force-install don't force installation of files from this package,
1377                           even if they are older than the installed files
1378   --enable-kernel=VERSION compile for compatibility with kernel not older than
1379                           VERSION
1380   --enable-all-warnings   enable all useful warnings gcc can issue
1381
1382 Optional Packages:
1383   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1384   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1385   --with-gd=DIR           find libgd include dir and library with prefix DIR
1386   --with-gd-include=DIR   find libgd include files in DIR
1387   --with-gd-lib=DIR       find libgd library files in DIR
1388   --with-fp               if using floating-point hardware [default=yes]
1389   --with-binutils=PATH    specify location of binutils (as and ld)
1390   --with-elf              if using the ELF object format
1391   --with-selinux          if building with SELinux support
1392   --with-xcoff            if using the XCOFF object format
1393   --without-cvs           if CVS should not be used
1394   --with-headers=PATH     location of system headers to use (for example
1395                           /usr/src/linux/include) [default=compiler default]
1396   --with-tls              enable support for TLS
1397   --without-__thread      do not use TLS features even when supporting them
1398   --with-cpu=CPU          select code for CPU variant
1399
1400 Some influential environment variables:
1401   CC          C compiler command
1402   CFLAGS      C compiler flags
1403   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1404               nonstandard directory <lib dir>
1405   LIBS        libraries to pass to the linker, e.g. -l<library>
1406   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1407               you have headers in a nonstandard directory <include dir>
1408   CPP         C preprocessor
1409   CXX         C++ compiler command
1410   CXXFLAGS    C++ compiler flags
1411
1412 Use these variables to override the choices made by `configure' or to help
1413 it to find libraries and programs with nonstandard names/locations.
1414
1415 Report bugs to <glibc>.
1416 _ACEOF
1417 ac_status=$?
1418 fi
1419
1420 if test "$ac_init_help" = "recursive"; then
1421   # If there are subdirs, report their specific --help.
1422   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423     test -d "$ac_dir" || continue
1424     ac_builddir=.
1425
1426 case "$ac_dir" in
1427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 *)
1429   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1430   # A ".." for each directory in $ac_dir_suffix.
1431   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1432   case $ac_top_builddir_sub in
1433   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435   esac ;;
1436 esac
1437 ac_abs_top_builddir=$ac_pwd
1438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439 # for backward compatibility:
1440 ac_top_builddir=$ac_top_build_prefix
1441
1442 case $srcdir in
1443   .)  # We are building in place.
1444     ac_srcdir=.
1445     ac_top_srcdir=$ac_top_builddir_sub
1446     ac_abs_top_srcdir=$ac_pwd ;;
1447   [\\/]* | ?:[\\/]* )  # Absolute name.
1448     ac_srcdir=$srcdir$ac_dir_suffix;
1449     ac_top_srcdir=$srcdir
1450     ac_abs_top_srcdir=$srcdir ;;
1451   *) # Relative name.
1452     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453     ac_top_srcdir=$ac_top_build_prefix$srcdir
1454     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1455 esac
1456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1457
1458     cd "$ac_dir" || { ac_status=$?; continue; }
1459     # Check for guested configure.
1460     if test -f "$ac_srcdir/configure.gnu"; then
1461       echo &&
1462       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1463     elif test -f "$ac_srcdir/configure"; then
1464       echo &&
1465       $SHELL "$ac_srcdir/configure" --help=recursive
1466     else
1467       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1468     fi || ac_status=$?
1469     cd "$ac_pwd" || { ac_status=$?; break; }
1470   done
1471 fi
1472
1473 test -n "$ac_init_help" && exit $ac_status
1474 if $ac_init_version; then
1475   cat <<\_ACEOF
1476 GNU C Library configure (see version.h)
1477 generated by GNU Autoconf 2.61
1478
1479 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1480 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1481 This configure script is free software; the Free Software Foundation
1482 gives unlimited permission to copy, distribute and modify it.
1483 _ACEOF
1484   exit
1485 fi
1486 cat >config.log <<_ACEOF
1487 This file contains any messages produced by compilers while
1488 running configure, to aid debugging if configure makes a mistake.
1489
1490 It was created by GNU C Library $as_me (see version.h), which was
1491 generated by GNU Autoconf 2.61.  Invocation command line was
1492
1493   $ $0 $@
1494
1495 _ACEOF
1496 exec 5>>config.log
1497 {
1498 cat <<_ASUNAME
1499 ## --------- ##
1500 ## Platform. ##
1501 ## --------- ##
1502
1503 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1504 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1505 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1506 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1507 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1508
1509 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1510 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1511
1512 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1513 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1514 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1515 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1516 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1517 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1518 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1519
1520 _ASUNAME
1521
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 for as_dir in $PATH
1524 do
1525   IFS=$as_save_IFS
1526   test -z "$as_dir" && as_dir=.
1527   echo "PATH: $as_dir"
1528 done
1529 IFS=$as_save_IFS
1530
1531 } >&5
1532
1533 cat >&5 <<_ACEOF
1534
1535
1536 ## ----------- ##
1537 ## Core tests. ##
1538 ## ----------- ##
1539
1540 _ACEOF
1541
1542
1543 # Keep a trace of the command line.
1544 # Strip out --no-create and --no-recursion so they do not pile up.
1545 # Strip out --silent because we don't want to record it for future runs.
1546 # Also quote any args containing shell meta-characters.
1547 # Make two passes to allow for proper duplicate-argument suppression.
1548 ac_configure_args=
1549 ac_configure_args0=
1550 ac_configure_args1=
1551 ac_must_keep_next=false
1552 for ac_pass in 1 2
1553 do
1554   for ac_arg
1555   do
1556     case $ac_arg in
1557     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1558     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1559     | -silent | --silent | --silen | --sile | --sil)
1560       continue ;;
1561     *\'*)
1562       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1563     esac
1564     case $ac_pass in
1565     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1566     2)
1567       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1568       if test $ac_must_keep_next = true; then
1569         ac_must_keep_next=false # Got value, back to normal.
1570       else
1571         case $ac_arg in
1572           *=* | --config-cache | -C | -disable-* | --disable-* \
1573           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1574           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1575           | -with-* | --with-* | -without-* | --without-* | --x)
1576             case "$ac_configure_args0 " in
1577               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1578             esac
1579             ;;
1580           -* ) ac_must_keep_next=true ;;
1581         esac
1582       fi
1583       ac_configure_args="$ac_configure_args '$ac_arg'"
1584       ;;
1585     esac
1586   done
1587 done
1588 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1589 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1590
1591 # When interrupted or exit'd, cleanup temporary files, and complete
1592 # config.log.  We remove comments because anyway the quotes in there
1593 # would cause problems or look ugly.
1594 # WARNING: Use '\'' to represent an apostrophe within the trap.
1595 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1596 trap 'exit_status=$?
1597   # Save into config.log some information that might help in debugging.
1598   {
1599     echo
1600
1601     cat <<\_ASBOX
1602 ## ---------------- ##
1603 ## Cache variables. ##
1604 ## ---------------- ##
1605 _ASBOX
1606     echo
1607     # The following way of writing the cache mishandles newlines in values,
1608 (
1609   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1610     eval ac_val=\$$ac_var
1611     case $ac_val in #(
1612     *${as_nl}*)
1613       case $ac_var in #(
1614       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1615 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1616       esac
1617       case $ac_var in #(
1618       _ | IFS | as_nl) ;; #(
1619       *) $as_unset $ac_var ;;
1620       esac ;;
1621     esac
1622   done
1623   (set) 2>&1 |
1624     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1625     *${as_nl}ac_space=\ *)
1626       sed -n \
1627         "s/'\''/'\''\\\\'\'''\''/g;
1628           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1629       ;; #(
1630     *)
1631       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1632       ;;
1633     esac |
1634     sort
1635 )
1636     echo
1637
1638     cat <<\_ASBOX
1639 ## ----------------- ##
1640 ## Output variables. ##
1641 ## ----------------- ##
1642 _ASBOX
1643     echo
1644     for ac_var in $ac_subst_vars
1645     do
1646       eval ac_val=\$$ac_var
1647       case $ac_val in
1648       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649       esac
1650       echo "$ac_var='\''$ac_val'\''"
1651     done | sort
1652     echo
1653
1654     if test -n "$ac_subst_files"; then
1655       cat <<\_ASBOX
1656 ## ------------------- ##
1657 ## File substitutions. ##
1658 ## ------------------- ##
1659 _ASBOX
1660       echo
1661       for ac_var in $ac_subst_files
1662       do
1663         eval ac_val=\$$ac_var
1664         case $ac_val in
1665         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1666         esac
1667         echo "$ac_var='\''$ac_val'\''"
1668       done | sort
1669       echo
1670     fi
1671
1672     if test -s confdefs.h; then
1673       cat <<\_ASBOX
1674 ## ----------- ##
1675 ## confdefs.h. ##
1676 ## ----------- ##
1677 _ASBOX
1678       echo
1679       cat confdefs.h
1680       echo
1681     fi
1682     test "$ac_signal" != 0 &&
1683       echo "$as_me: caught signal $ac_signal"
1684     echo "$as_me: exit $exit_status"
1685   } >&5
1686   rm -f core *.core core.conftest.* &&
1687     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1688     exit $exit_status
1689 ' 0
1690 for ac_signal in 1 2 13 15; do
1691   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1692 done
1693 ac_signal=0
1694
1695 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1696 rm -f -r conftest* confdefs.h
1697
1698 # Predefined preprocessor variables.
1699
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_NAME "$PACKAGE_NAME"
1702 _ACEOF
1703
1704
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1707 _ACEOF
1708
1709
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1712 _ACEOF
1713
1714
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_STRING "$PACKAGE_STRING"
1717 _ACEOF
1718
1719
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1722 _ACEOF
1723
1724
1725 # Let the site file select an alternate cache file if it wants to.
1726 # Prefer explicitly selected file to automatically selected ones.
1727 if test -n "$CONFIG_SITE"; then
1728   set x "$CONFIG_SITE"
1729 elif test "x$prefix" != xNONE; then
1730   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1731 else
1732   set x "$ac_default_prefix/share/config.site" \
1733         "$ac_default_prefix/etc/config.site"
1734 fi
1735 shift
1736 for ac_site_file
1737 do
1738   if test -r "$ac_site_file"; then
1739     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1740 echo "$as_me: loading site script $ac_site_file" >&6;}
1741     sed 's/^/| /' "$ac_site_file" >&5
1742     . "$ac_site_file"
1743   fi
1744 done
1745
1746 if test -r "$cache_file"; then
1747   # Some versions of bash will fail to source /dev/null (special
1748   # files actually), so we avoid doing that.
1749   if test -f "$cache_file"; then
1750     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1751 echo "$as_me: loading cache $cache_file" >&6;}
1752     case $cache_file in
1753       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1754       *)                      . "./$cache_file";;
1755     esac
1756   fi
1757 else
1758   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1759 echo "$as_me: creating cache $cache_file" >&6;}
1760   >$cache_file
1761 fi
1762
1763 # Check that the precious variables saved in the cache have kept the same
1764 # value.
1765 ac_cache_corrupted=false
1766 for ac_var in $ac_precious_vars; do
1767   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1768   eval ac_new_set=\$ac_env_${ac_var}_set
1769   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1770   eval ac_new_val=\$ac_env_${ac_var}_value
1771   case $ac_old_set,$ac_new_set in
1772     set,)
1773       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1774 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1775       ac_cache_corrupted=: ;;
1776     ,set)
1777       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1778 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1779       ac_cache_corrupted=: ;;
1780     ,);;
1781     *)
1782       if test "x$ac_old_val" != "x$ac_new_val"; then
1783         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1784 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1785         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1786 echo "$as_me:   former value:  $ac_old_val" >&2;}
1787         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1788 echo "$as_me:   current value: $ac_new_val" >&2;}
1789         ac_cache_corrupted=:
1790       fi;;
1791   esac
1792   # Pass precious variables to config.status.
1793   if test "$ac_new_set" = set; then
1794     case $ac_new_val in
1795     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1796     *) ac_arg=$ac_var=$ac_new_val ;;
1797     esac
1798     case " $ac_configure_args " in
1799       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1800       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1801     esac
1802   fi
1803 done
1804 if $ac_cache_corrupted; then
1805   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1806 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1807   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1808 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1809    { (exit 1); exit 1; }; }
1810 fi
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836 ac_ext=c
1837 ac_cpp='$CPP $CPPFLAGS'
1838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1841
1842
1843
1844 ac_config_headers="$ac_config_headers config.h"
1845
1846 ac_aux_dir=
1847 for ac_dir in scripts "$srcdir"/scripts; do
1848   if test -f "$ac_dir/install-sh"; then
1849     ac_aux_dir=$ac_dir
1850     ac_install_sh="$ac_aux_dir/install-sh -c"
1851     break
1852   elif test -f "$ac_dir/install.sh"; then
1853     ac_aux_dir=$ac_dir
1854     ac_install_sh="$ac_aux_dir/install.sh -c"
1855     break
1856   elif test -f "$ac_dir/shtool"; then
1857     ac_aux_dir=$ac_dir
1858     ac_install_sh="$ac_aux_dir/shtool install -c"
1859     break
1860   fi
1861 done
1862 if test -z "$ac_aux_dir"; then
1863   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&5
1864 echo "$as_me: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&2;}
1865    { (exit 1); exit 1; }; }
1866 fi
1867
1868 # These three variables are undocumented and unsupported,
1869 # and are intended to be withdrawn in a future Autoconf release.
1870 # They can cause serious problems if a builder's source tree is in a directory
1871 # whose full name contains unusual characters.
1872 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1873 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1874 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1875
1876
1877
1878 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
1879   { { echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
1880 echo "$as_me: error: you must configure in a separate build directory" >&2;}
1881    { (exit 1); exit 1; }; }
1882 fi
1883
1884 # This will get text that should go into config.make.
1885 config_vars=
1886
1887 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
1888
1889 # Check whether --with-gd was given.
1890 if test "${with_gd+set}" = set; then
1891   withval=$with_gd; case "$with_gd" in
1892 yes|''|no) ;;
1893 *) libgd_include="-I$withval/include"
1894    libgd_ldflags="-L$withval/lib" ;;
1895 esac
1896
1897 fi
1898
1899
1900 # Check whether --with-gd-include was given.
1901 if test "${with_gd_include+set}" = set; then
1902   withval=$with_gd_include; case "$with_gd_include" in
1903 ''|no) ;;
1904 *) libgd_include="-I$withval" ;;
1905 esac
1906
1907 fi
1908
1909
1910 # Check whether --with-gd-lib was given.
1911 if test "${with_gd_lib+set}" = set; then
1912   withval=$with_gd_lib; case "$with_gd_lib" in
1913 ''|no) ;;
1914 *) libgd_ldflags="-L$withval" ;;
1915 esac
1916
1917 fi
1918
1919
1920 if test -n "$libgd_include"; then
1921   config_vars="$config_vars
1922 CFLAGS-memusagestat.c = $libgd_include"
1923 fi
1924 if test -n "$libgd_ldflags"; then
1925   config_vars="$config_vars
1926 libgd-LDFLAGS = $libgd_ldflags"
1927 fi
1928
1929
1930 # Check whether --with-fp was given.
1931 if test "${with_fp+set}" = set; then
1932   withval=$with_fp; with_fp=$withval
1933 else
1934   with_fp=yes
1935 fi
1936
1937
1938
1939 # Check whether --with-binutils was given.
1940 if test "${with_binutils+set}" = set; then
1941   withval=$with_binutils; path_binutils=$withval
1942 else
1943   path_binutils=''
1944 fi
1945
1946
1947 # Check whether --with-elf was given.
1948 if test "${with_elf+set}" = set; then
1949   withval=$with_elf; elf=$withval
1950 else
1951   elf=no
1952 fi
1953
1954
1955 # Check whether --with-selinux was given.
1956 if test "${with_selinux+set}" = set; then
1957   withval=$with_selinux; with_selinux=$withval
1958 else
1959   with_selinux=auto
1960 fi
1961
1962
1963 # Check whether --with-xcoff was given.
1964 if test "${with_xcoff+set}" = set; then
1965   withval=$with_xcoff; xcoff=$withval
1966 else
1967   xcoff=no
1968 fi
1969
1970
1971 # Check whether --with-cvs was given.
1972 if test "${with_cvs+set}" = set; then
1973   withval=$with_cvs; with_cvs=$withval
1974 else
1975   with_cvs=yes
1976 fi
1977
1978 if test "$with_cvs" = yes; then
1979   if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
1980   then
1981     with_cvs=no
1982   fi
1983 fi
1984
1985
1986
1987 # Check whether --with-headers was given.
1988 if test "${with_headers+set}" = set; then
1989   withval=$with_headers; sysheaders=$withval
1990 else
1991   sysheaders=''
1992 fi
1993
1994
1995 # Check whether --enable-sanity-checks was given.
1996 if test "${enable_sanity_checks+set}" = set; then
1997   enableval=$enable_sanity_checks; enable_sanity=$enableval
1998 else
1999   enable_sanity=yes
2000 fi
2001
2002
2003
2004 # Check whether --enable-check-abi was given.
2005 if test "${enable_check_abi+set}" = set; then
2006   enableval=$enable_check_abi; enable_check_abi=$enableval
2007 else
2008   enable_check_abi=no
2009 fi
2010
2011
2012 static=yes
2013 # Check whether --enable-shared was given.
2014 if test "${enable_shared+set}" = set; then
2015   enableval=$enable_shared; shared=$enableval
2016 else
2017   shared=default
2018 fi
2019
2020 # Check whether --enable-profile was given.
2021 if test "${enable_profile+set}" = set; then
2022   enableval=$enable_profile; profile=$enableval
2023 else
2024   profile=no
2025 fi
2026
2027 # Check whether --enable-omitfp was given.
2028 if test "${enable_omitfp+set}" = set; then
2029   enableval=$enable_omitfp; omitfp=$enableval
2030 else
2031   omitfp=no
2032 fi
2033
2034 # Check whether --enable-bounded was given.
2035 if test "${enable_bounded+set}" = set; then
2036   enableval=$enable_bounded; bounded=$enableval
2037 else
2038   bounded=no
2039 fi
2040
2041 # Check whether --enable-versioning was given.
2042 if test "${enable_versioning+set}" = set; then
2043   enableval=$enable_versioning; enable_versioning=$enableval
2044 else
2045   enable_versioning=yes
2046 fi
2047
2048
2049 # Check whether --enable-oldest-abi was given.
2050 if test "${enable_oldest_abi+set}" = set; then
2051   enableval=$enable_oldest_abi; oldest_abi=$enableval
2052 else
2053   oldest_abi=no
2054 fi
2055
2056 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
2057   oldest_abi=default
2058 else
2059   cat >>confdefs.h <<_ACEOF
2060 #define GLIBC_OLDEST_ABI "$oldest_abi"
2061 _ACEOF
2062
2063 fi
2064
2065
2066 # Check whether --enable-stackguard-randomization was given.
2067 if test "${enable_stackguard_randomization+set}" = set; then
2068   enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
2069 else
2070   enable_stackguard_randomize=no
2071 fi
2072
2073 if test "$enable_stackguard_randomize" = yes; then
2074   cat >>confdefs.h <<\_ACEOF
2075 #define ENABLE_STACKGUARD_RANDOMIZE 1
2076 _ACEOF
2077
2078 fi
2079
2080 # Check whether --enable-add-ons was given.
2081 if test "${enable_add_ons+set}" = set; then
2082   enableval=$enable_add_ons;
2083 else
2084   enable_add_ons=yes
2085 fi
2086
2087
2088
2089 # Check whether --with-tls was given.
2090 if test "${with_tls+set}" = set; then
2091   withval=$with_tls; usetls=$withval
2092 else
2093   usetls=yes
2094 fi
2095
2096
2097
2098 # Check whether --with-__thread was given.
2099 if test "${with___thread+set}" = set; then
2100   withval=$with___thread; use__thread=$withval
2101 else
2102   use__thread=yes
2103 fi
2104
2105
2106 # Check whether --enable-hidden-plt was given.
2107 if test "${enable_hidden_plt+set}" = set; then
2108   enableval=$enable_hidden_plt; hidden=$enableval
2109 else
2110   hidden=yes
2111 fi
2112
2113 if test "x$hidden" = xno; then
2114   cat >>confdefs.h <<\_ACEOF
2115 #define NO_HIDDEN 1
2116 _ACEOF
2117
2118 fi
2119
2120 # Check whether --enable-bind-now was given.
2121 if test "${enable_bind_now+set}" = set; then
2122   enableval=$enable_bind_now; bindnow=$enableval
2123 else
2124   bindnow=no
2125 fi
2126
2127
2128
2129 # Check whether --enable-static-nss was given.
2130 if test "${enable_static_nss+set}" = set; then
2131   enableval=$enable_static_nss; static_nss=$enableval
2132 else
2133   static_nss=no
2134 fi
2135
2136 if test x"$static_nss" = xyes || test x"$shared" = xno; then
2137   static_nss=yes
2138   cat >>confdefs.h <<\_ACEOF
2139 #define DO_STATIC_NSS 1
2140 _ACEOF
2141
2142 fi
2143
2144 # Check whether --enable-force-install was given.
2145 if test "${enable_force_install+set}" = set; then
2146   enableval=$enable_force_install; force_install=$enableval
2147 else
2148   force_install=yes
2149 fi
2150
2151
2152
2153 # Check whether --enable-kernel was given.
2154 if test "${enable_kernel+set}" = set; then
2155   enableval=$enable_kernel; minimum_kernel=$enableval
2156 fi
2157
2158 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
2159   # Better nothing than this.
2160   minimum_kernel=""
2161 else
2162   if test "$minimum_kernel" = current; then
2163     minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
2164   fi
2165 fi
2166
2167 # Check whether --enable-all-warnings was given.
2168 if test "${enable_all_warnings+set}" = set; then
2169   enableval=$enable_all_warnings; all_warnings=$enableval
2170 fi
2171
2172
2173
2174 # Make sure we can run config.sub.
2175 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2176   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2177 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2178    { (exit 1); exit 1; }; }
2179
2180 { echo "$as_me:$LINENO: checking build system type" >&5
2181 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2182 if test "${ac_cv_build+set}" = set; then
2183   echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
2185   ac_build_alias=$build_alias
2186 test "x$ac_build_alias" = x &&
2187   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2188 test "x$ac_build_alias" = x &&
2189   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2190 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2191    { (exit 1); exit 1; }; }
2192 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2193   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2194 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2195    { (exit 1); exit 1; }; }
2196
2197 fi
2198 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2199 echo "${ECHO_T}$ac_cv_build" >&6; }
2200 case $ac_cv_build in
2201 *-*-*) ;;
2202 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2203 echo "$as_me: error: invalid value of canonical build" >&2;}
2204    { (exit 1); exit 1; }; };;
2205 esac
2206 build=$ac_cv_build
2207 ac_save_IFS=$IFS; IFS='-'
2208 set x $ac_cv_build
2209 shift
2210 build_cpu=$1
2211 build_vendor=$2
2212 shift; shift
2213 # Remember, the first character of IFS is used to create $*,
2214 # except with old shells:
2215 build_os=$*
2216 IFS=$ac_save_IFS
2217 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2218
2219
2220 { echo "$as_me:$LINENO: checking host system type" >&5
2221 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2222 if test "${ac_cv_host+set}" = set; then
2223   echo $ECHO_N "(cached) $ECHO_C" >&6
2224 else
2225   if test "x$host_alias" = x; then
2226   ac_cv_host=$ac_cv_build
2227 else
2228   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2229     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2230 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2231    { (exit 1); exit 1; }; }
2232 fi
2233
2234 fi
2235 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2236 echo "${ECHO_T}$ac_cv_host" >&6; }
2237 case $ac_cv_host in
2238 *-*-*) ;;
2239 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2240 echo "$as_me: error: invalid value of canonical host" >&2;}
2241    { (exit 1); exit 1; }; };;
2242 esac
2243 host=$ac_cv_host
2244 ac_save_IFS=$IFS; IFS='-'
2245 set x $ac_cv_host
2246 shift
2247 host_cpu=$1
2248 host_vendor=$2
2249 shift; shift
2250 # Remember, the first character of IFS is used to create $*,
2251 # except with old shells:
2252 host_os=$*
2253 IFS=$ac_save_IFS
2254 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2255
2256
2257
2258 # The way shlib-versions is used to generate soversions.mk uses a
2259 # fairly simplistic model for name recognition that can't distinguish
2260 # i486-pc-linux-gnu fully from i486-pc-gnu.  So we mutate a $host_os
2261 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
2262 # tell.  This doesn't get used much beyond that, so it's fairly safe.
2263 case "$host_os" in
2264 linux*)
2265   ;;
2266 gnu*)
2267   host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
2268   ;;
2269 esac
2270
2271 # We keep the original values in `$config_*' and never modify them, so we
2272 # can write them unchanged into config.make.  Everything else uses
2273 # $machine, $vendor, and $os, and changes them whenever convenient.
2274 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
2275
2276 # Don't allow vendor == "unknown"
2277 test "$config_vendor" = unknown && config_vendor=
2278 config_os="`echo $config_os | sed 's/^unknown-//'`"
2279
2280 # Some configurations imply other options.
2281 case "$host_os" in
2282 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
2283 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
2284   ;;
2285 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
2286   # These systems (almost) always use the ELF format.
2287   elf=yes
2288   ;;
2289 aix*)
2290   # These systems are always xcoff
2291   xcoff=yes
2292   elf=no
2293   ;;
2294 esac
2295
2296 # The configure fragment of an add-on port can modify these to supplement
2297 # or override the table in the case statement below.  No fragment should
2298 # ever change the config_* variables, however.
2299 machine=$config_machine
2300 vendor=$config_vendor
2301 os=$config_os
2302
2303 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
2304 # Unify this here.
2305 if test "$machine" = rs6000; then
2306   machine="powerpc"
2307 fi
2308
2309 # Braindead PowerPC box with absolutely no FPU.
2310 case "$machine-$host_os" in
2311   powerpc*-*soft)
2312     with_fp=no
2313     ;;
2314 esac
2315
2316 submachine=
2317
2318 # Check whether --with-cpu was given.
2319 if test "${with_cpu+set}" = set; then
2320   withval=$with_cpu;   case "$withval" in
2321   yes|'') { { echo "$as_me:$LINENO: error: --with-cpu requires an argument" >&5
2322 echo "$as_me: error: --with-cpu requires an argument" >&2;}
2323    { (exit 1); exit 1; }; } ;;
2324   no) ;;
2325   *) submachine="$withval" ;;
2326   esac
2327
2328 fi
2329
2330
2331
2332 # An add-on can set this when it wants to disable the sanity check below.
2333 libc_config_ok=no
2334
2335 subdirs="$subdirs "
2336
2337
2338 case "$enable_add_ons" in
2339 ''|no) add_ons= ;;
2340 yes|'*')
2341  add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
2342           sed 's@/[^/]*$@@' | sort | uniq`
2343          add_ons_automatic=yes
2344          ;;
2345 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
2346        add_ons_automatic=no ;;
2347 esac
2348
2349 configured_add_ons=
2350 add_ons_sfx=
2351 add_ons_pfx=
2352 if test x"$add_ons" != x; then
2353   for f in $add_ons; do
2354     # Some sanity checks
2355     case "$f" in
2356     crypt)
2357       { { echo "$as_me:$LINENO: error:
2358 *** It seems that you're using an old \`crypt' add-on.  crypt is now
2359 *** part of glibc and using the old add-on will not work with this
2360 *** release.  Start again with fresh sources and without the old
2361 *** \`crypt' add-on." >&5
2362 echo "$as_me: error:
2363 *** It seems that you're using an old \`crypt' add-on.  crypt is now
2364 *** part of glibc and using the old add-on will not work with this
2365 *** release.  Start again with fresh sources and without the old
2366 *** \`crypt' add-on." >&2;}
2367    { (exit 1); exit 1; }; }
2368     ;;
2369     localedata)
2370       { { echo "$as_me:$LINENO: error:
2371 *** It seems that you're using an old \`localedata' add-on.  localedata
2372 *** is now part of glibc and using the old add-on will not work with
2373 *** this release.  Start again with fresh sources and without the old
2374 *** \`localedata' add-on." >&5
2375 echo "$as_me: error:
2376 *** It seems that you're using an old \`localedata' add-on.  localedata
2377 *** is now part of glibc and using the old add-on will not work with
2378 *** this release.  Start again with fresh sources and without the old
2379 *** \`localedata' add-on." >&2;}
2380    { (exit 1); exit 1; }; }
2381     ;;
2382     esac
2383   done
2384
2385   # Now source each add-on's configure fragment.
2386   # The fragments can use $srcdir/$libc_add_on to find themselves,
2387   # and test $add_ons_automatic to see if they were explicitly requested.
2388   # A fragment can clear (or even change) $libc_add_on to affect
2389   # whether it goes into the list to be actually used in the build.
2390   use_add_ons=
2391   for libc_add_on in $add_ons; do
2392     # Test whether such a directory really exists.
2393     # It can be absolute, or relative to $srcdir, or relative to the build dir.
2394     case "$libc_add_on" in
2395     /*)
2396       libc_add_on_srcdir=$libc_add_on
2397       ;;
2398     *)
2399       test -d "$srcdir/$libc_add_on" || {
2400         if test -d "$libc_add_on"; then
2401           libc_add_on="`pwd`/$libc_add_on"
2402         else
2403           { { echo "$as_me:$LINENO: error: add-on directory \"$libc_add_on\" does not exist" >&5
2404 echo "$as_me: error: add-on directory \"$libc_add_on\" does not exist" >&2;}
2405    { (exit 1); exit 1; }; }
2406         fi
2407       }
2408       libc_add_on_srcdir=$srcdir/$libc_add_on
2409       ;;
2410     esac
2411
2412     libc_add_on_frag=$libc_add_on_srcdir/configure
2413     libc_add_on_canonical=
2414     if test -r "$libc_add_on_frag"; then
2415       { echo "$as_me:$LINENO: running configure fragment for add-on $libc_add_on" >&5
2416 echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
2417       libc_add_on_canonical=unknown
2418       libc_add_on_subdirs=
2419       . "$libc_add_on_frag"
2420       test -z "$libc_add_on" || {
2421         configured_add_ons="$configured_add_ons $libc_add_on"
2422         if test "x$libc_add_on_canonical" = xunknown; then
2423           { { echo "$as_me:$LINENO: error: fragment must set \$libc_add_on_canonical" >&5
2424 echo "$as_me: error: fragment must set \$libc_add_on_canonical" >&2;}
2425    { (exit 1); exit 1; }; }
2426         fi
2427         for d in $libc_add_on_subdirs; do
2428           case "$libc_add_on" in
2429           /*) subdir_srcdir="$libc_add_on" ;;
2430           *) subdir_srcdir="\$(..)$libc_add_on" ;;
2431           esac
2432           case "$d" in
2433           .)
2434             d="${libc_add_on_canonical:-$libc_add_on}"
2435             ;;
2436           /*)
2437             subdir_srcdir="$d"
2438             ;;
2439           *)
2440             subdir_srcdir="$subdir_srcdir/$d"
2441             ;;
2442           esac
2443           d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
2444           add_on_subdirs="$add_on_subdirs $d"
2445           test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
2446 $d-srcdir = $subdir_srcdir"
2447         done
2448       }
2449     fi
2450     if test -n "$libc_add_on"; then
2451       if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
2452       then
2453         { echo "$as_me:$LINENO: checking add-on $libc_add_on for preconfigure fragments" >&5
2454 echo $ECHO_N "checking add-on $libc_add_on for preconfigure fragments... $ECHO_C" >&6; }
2455         for frag in $frags; do
2456           name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
2457           echo $ECHO_N "$name $ECHO_C" >&6
2458           . "$frag"
2459         done
2460         { echo "$as_me:$LINENO: result: " >&5
2461 echo "${ECHO_T}" >&6; }
2462       fi
2463       use_add_ons="$use_add_ons $libc_add_on"
2464       add_ons_pfx="$add_ons_pfx $libc_add_on/"
2465       test -z "$libc_add_on_canonical" ||
2466       add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
2467     fi
2468   done
2469   # Use echo to strip excess whitespace.
2470   add_ons="`echo $use_add_ons`"
2471 fi
2472
2473
2474
2475
2476 ###
2477 ### I put this here to prevent those annoying emails from people who cannot
2478 ### read and try to compile glibc on unsupported platforms.  --drepper
2479 ###
2480 ### By using the undocumented --enable-hacker-mode option for configure
2481 ### one can skip this test to make the configuration not fail for unsupported
2482 ### platforms.
2483 ###
2484 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
2485   case "$machine-$host_os" in
2486   *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
2487     ;;
2488   *)
2489     echo "*** The GNU C library is currently not available for this platform."
2490     echo "*** So far nobody cared to port it and if there is no volunteer it"
2491     echo "*** might never happen.  So, if you have interest to see glibc on"
2492     echo "*** this platform visit"
2493     echo "***   http://www.gnu.org/software/libc/porting.html"
2494     echo "*** and join the group of porters"
2495     exit 1
2496     ;;
2497   esac
2498 fi
2499
2500 # Expand the configuration machine name into a subdirectory by architecture
2501 # type and particular chip.  If an add-on configure fragment already set
2502 # base_machine, we don't change it.
2503 test -n "$base_machine" || case "$machine" in
2504 a29k | am29000) base_machine=a29k machine=a29k ;;
2505 alpha*)         base_machine=alpha machine=alpha/$machine ;;
2506 c3[012])        base_machine=cx0 machine=cx0/c30 ;;
2507 c4[04])         base_machine=cx0 machine=cx0/c40 ;;
2508 i[34567]86)     base_machine=i386 machine=i386/$machine ;;
2509 ia64)           base_machine=ia64 machine=ia64 ;;
2510 m88???)         base_machine=m88k machine=m88k/$machine ;;
2511 m88k)           base_machine=m88k machine=m88k/m88100 ;;
2512 powerpc)        base_machine=powerpc machine=powerpc/powerpc32 ;;
2513 powerpc64)      base_machine=powerpc machine=powerpc/powerpc64 ;;
2514 s390)           base_machine=s390 machine=s390/s390-32 ;;
2515 s390x)          base_machine=s390 machine=s390/s390-64 ;;
2516 sh3*)           base_machine=sh machine=sh/sh3 ;;
2517 sh4*)           base_machine=sh machine=sh/sh4 ;;
2518 sparc | sparcv[67])
2519                 base_machine=sparc machine=sparc/sparc32 ;;
2520 sparcv8 | supersparc | hypersparc)
2521                 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
2522 sparcv8plus | sparcv8plusa | sparcv9)
2523                 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
2524 sparcv8plusb | sparcv9b)
2525                 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
2526 sparcv9v)
2527                 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
2528 sparcv9v2)
2529                 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
2530 sparc64)
2531                 base_machine=sparc machine=sparc/sparc64 ;;
2532 sparc64b)
2533                 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
2534 sparc64v)
2535                 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
2536 sparc64v2)
2537                 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
2538 *)              base_machine=$machine ;;
2539 esac
2540
2541
2542 if test "$base_machine" = "i386"; then
2543   cat >>confdefs.h <<\_ACEOF
2544 #define USE_REGPARMS 1
2545 _ACEOF
2546
2547 fi
2548
2549 # Compute the list of sysdep directories for this configuration.
2550 # This can take a while to compute.
2551 sysdep_dir=$srcdir/sysdeps
2552 { echo "$as_me:$LINENO: checking sysdep dirs" >&5
2553 echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6; }
2554 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
2555 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
2556
2557 case "$os" in
2558 gnu*)
2559   base_os=mach/hurd ;;
2560 netbsd* | 386bsd* | freebsd* | bsdi*)
2561   base_os=unix/bsd/bsd4.4 ;;
2562 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
2563   base_os=unix/bsd ;;
2564 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
2565   base_os=unix/sysv ;;
2566 irix6*)
2567   base_os=unix/sysv/irix6/$os ;;
2568 solaris[2-9]*)
2569   base_os=unix/sysv/sysv4 ;;
2570 hpux*)
2571   base_os=unix/sysv/hpux/$os ;;
2572 aix4.3*)
2573   base_os=unix/sysv/aix/aix4.3 ;;
2574 none)
2575   base_os=standalone ;;
2576 *)
2577   base_os='' ;;
2578 esac
2579
2580 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
2581 tail=$os
2582 ostry=$os
2583 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
2584   ostry="$ostry /$o"
2585   tail=$o
2586 done
2587 o=`echo $tail | sed 's/[0-9]*$//'`
2588 if test $o != $tail; then
2589   ostry="$ostry /$o"
2590 fi
2591 # For linux-gnu, try linux-gnu, then linux.
2592 o=`echo $tail | sed 's/-.*$//'`
2593 if test $o != $tail; then
2594   ostry="$ostry /$o"
2595 fi
2596
2597 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
2598 base=
2599 tail=$base_os
2600 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
2601   set $b
2602   base="$base /$1"
2603   tail="$2"
2604 done
2605
2606 # For sparc/sparc32, try sparc/sparc32 and then sparc.
2607 mach=
2608 tail=$machine${submachine:+/$submachine}
2609 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
2610   set $m
2611   # Prepend the machine's FPU directory unless --without-fp.
2612   if test "$with_fp" = yes; then
2613     mach="$mach /$1/fpu"
2614   else
2615     mach="$mach /$1/nofpu"
2616   fi
2617   mach="$mach /$1"
2618   tail="$2"
2619 done
2620
2621
2622 # Find what sysdep directories exist.
2623 sysnames_add_ons=
2624 sysnames=
2625 for b in $base ''; do
2626   for m0 in $mach ''; do
2627     for v in /$vendor ''; do
2628       test "$v" = / && continue
2629       for o in /$ostry ''; do
2630         test "$o" = / && continue
2631         for m in $mach ''; do
2632           for d in $add_ons_pfx ''; do
2633             for a in $add_ons_sfx ''; do
2634               if test -n "$m0$m0sub$b$v$o$m$msub"; then
2635                 try_srcdir="${srcdir}/"
2636                 case "$d" in
2637                 /*) try_srcdir= ;;
2638                 esac
2639                 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
2640                 test -n "$enable_debug_configure" &&
2641                 echo "$0 DEBUG: try $try" >&2
2642                 if test -d "$try_srcdir$try"; then
2643                   sysnames="$sysnames $try"
2644                   { test -n "$o" || test -n "$b"; } && os_used=t
2645                   { test -n "$m" || test -n "$m0"; } && machine_used=t
2646                   case x${m0:-$m} in
2647                   x*/$submachine) submachine_used=t ;;
2648                   esac
2649                   if test -n "$d"; then
2650                     case "$sysnames_add_ons" in
2651                     *" $d "*) ;;
2652                     *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
2653                     esac
2654                   fi
2655                 fi
2656               fi
2657             done
2658           done
2659         done
2660       done
2661     done
2662   done
2663 done
2664
2665 if test -z "$os_used" && test "$os" != none; then
2666   { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
2667 echo "$as_me: error: Operating system $os is not supported." >&2;}
2668    { (exit 1); exit 1; }; }
2669 fi
2670 if test -z "$machine_used" && test "$machine" != none; then
2671   { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
2672 echo "$as_me: error: The $machine is not supported." >&2;}
2673    { (exit 1); exit 1; }; }
2674 fi
2675 if test -z "$submachine_used" && test -n "$submachine"; then
2676   { { echo "$as_me:$LINENO: error: The $submachine subspecies of $host_cpu is not supported." >&5
2677 echo "$as_me: error: The $submachine subspecies of $host_cpu is not supported." >&2;}
2678    { (exit 1); exit 1; }; }
2679 fi
2680
2681
2682 # We have now validated the configuration.
2683
2684
2685 # If using ELF, look for an `elf' subdirectory of each machine directory.
2686 # We prepend these rather than inserting them whereever the machine appears
2687 # because things specified by the machine's ELF ABI should override
2688 # OS-specific things, and should always be the same for any OS on the
2689 # machine (otherwise what's the point of an ABI?).
2690 if test "$elf" = yes; then
2691   elf_dirs=
2692   for d in $add_ons_pfx ''; do
2693     for m in $mach; do
2694       if test -d $srcdir/${d}sysdeps$m/elf; then
2695         elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
2696       fi
2697     done
2698   done
2699   sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
2700 fi
2701
2702
2703 # Expand the list of system names into a full list of directories
2704 # from each element's parent name and Implies file (if present).
2705 set $sysnames
2706 names=
2707 while test $# -gt 0; do
2708   name=$1
2709   shift
2710
2711   case " $names " in *" $name "*)
2712     # Already in the list.
2713     continue
2714   esac
2715
2716   # Report each name as we discover it, so there is no long pause in output.
2717   echo $ECHO_N "$name $ECHO_C" >&6
2718
2719   name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
2720
2721   case $name in
2722     /*) xsrcdir= ;;
2723     *)  xsrcdir=$srcdir/ ;;
2724   esac
2725   test -n "$enable_debug_configure" &&
2726   echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
2727
2728   if test -f $xsrcdir$name/Implies; then
2729     # Collect more names from the `Implies' file (removing comments).
2730     implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
2731     implied=
2732     for x in $implied_candidate; do
2733       found=no
2734       if test -d $xsrcdir$name_base/$x; then
2735         implied="$implied $name_base/$x";
2736         found=yes
2737       fi
2738       for d in $add_ons_pfx ''; do
2739         try="${d}sysdeps/$x"
2740         case $d in
2741          /*) try_srcdir= ;;
2742          *) try_srcdir=$srcdir/ ;;
2743         esac
2744         test -n "$enable_debug_configure" &&
2745          echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
2746         if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
2747         then
2748           implied="$implied $try"
2749           found=yes
2750           case "$sysnames_add_ons" in
2751           *" $d "*) ;;
2752           *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
2753           esac
2754         fi
2755       done
2756       if test $found = no; then
2757         { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
2758 echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
2759       fi
2760     done
2761   else
2762     implied=
2763   fi
2764
2765   # Add NAME to the list of names.
2766   names="$names $name"
2767
2768   # Find the parent of NAME, using the empty string if it has none.
2769   parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
2770
2771   # Add the names implied by NAME, and NAME's parent (if it has one), to
2772   # the list of names to be processed (the argument list).  We prepend the
2773   # implied names to the list and append the parent.  We want implied
2774   # directories to come before further directories inferred from the
2775   # configuration components; this ensures that for sysv4, unix/common
2776   # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
2777   # after sysv4).
2778   sysnames="`echo $implied $* $parent`"
2779   test -n "$sysnames" && set $sysnames
2780 done
2781
2782 # Add the default directories.
2783 default_sysnames=sysdeps/generic
2784 if test "$elf" = yes; then
2785   default_sysnames="sysdeps/generic/elf $default_sysnames"
2786 fi
2787 sysnames="$names $default_sysnames"
2788
2789 # The other names were emitted during the scan.
2790 { echo "$as_me:$LINENO: result: $default_sysnames" >&5
2791 echo "${ECHO_T}$default_sysnames" >&6; }
2792
2793 # Collect the list of add-ons that supply partial sysdeps trees.
2794 sysdeps_add_ons=
2795 for add_on in $add_ons; do
2796   case "$add_on" in
2797   /*) xsrcdir= ;;
2798   *) xsrcdir="$srcdir/" ;;
2799   esac
2800
2801   test -d "$xsrcdir$add_on/sysdeps" || {
2802     case "$configured_add_ons " in
2803     *" $add_on "*) ;;
2804     *|'')
2805       { { echo "$as_me:$LINENO: error: add-on $add_on has no configure fragment or sysdeps tree" >&5
2806 echo "$as_me: error: add-on $add_on has no configure fragment or sysdeps tree" >&2;}
2807    { (exit 1); exit 1; }; }
2808       ;;
2809     esac
2810     continue
2811   }
2812
2813   sysdeps_add_ons="$sysdeps_add_ons $add_on"
2814   case "$sysnames_add_ons" in
2815   *" $add_on/ "*) ;;
2816   *|'')
2817     { echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no sysdeps directories" >&5
2818 echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
2819     continue ;;
2820   esac
2821
2822   found=no
2823   for d in $sysnames; do
2824     case "$d" in
2825     $add_on/sysdeps/*) ;;
2826     *) continue ;;
2827     esac
2828     (cd "$xsrcdir$d" && for f in *[!~]; do
2829        case "$f" in
2830        sys|bits)
2831          for ff in $f/*.h; do
2832            test -d "$ff" || { test -e "$ff" && exit 88; }
2833          done
2834          ;;
2835        *)
2836          test -d "$f" || { test -e "$f" && exit 88; }
2837          ;;
2838        esac
2839      done)
2840     if test $? -eq 88; then
2841       found=yes
2842       break
2843     fi
2844   done
2845   if test $found = no; then
2846     { echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
2847 echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
2848   fi
2849 done
2850
2851
2852
2853 ### Locate tools.
2854
2855 # Find a good install program.  We prefer a C program (faster),
2856 # so one script is as good as another.  But avoid the broken or
2857 # incompatible versions:
2858 # SysV /etc/install, /usr/sbin/install
2859 # SunOS /usr/etc/install
2860 # IRIX /sbin/install
2861 # AIX /bin/install
2862 # AmigaOS /C/install, which installs bootblocks on floppy discs
2863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2866 # OS/2's system install, which has a completely different semantic
2867 # ./install, which can be erroneously created by make from ./install.sh.
2868 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2869 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2870 if test -z "$INSTALL"; then
2871 if test "${ac_cv_path_install+set}" = set; then
2872   echo $ECHO_N "(cached) $ECHO_C" >&6
2873 else
2874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2876 do
2877   IFS=$as_save_IFS
2878   test -z "$as_dir" && as_dir=.
2879   # Account for people who put trailing slashes in PATH elements.
2880 case $as_dir/ in
2881   ./ | .// | /cC/* | \
2882   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2883   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2884   /usr/ucb/* ) ;;
2885   *)
2886     # OSF1 and SCO ODT 3.0 have their own names for install.
2887     # Don't use installbsd from OSF since it installs stuff as root
2888     # by default.
2889     for ac_prog in ginstall scoinst install; do
2890       for ac_exec_ext in '' $ac_executable_extensions; do
2891         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2892           if test $ac_prog = install &&
2893             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2894             # AIX install.  It has an incompatible calling convention.
2895             :
2896           elif test $ac_prog = install &&
2897             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2898             # program-specific install script used by HP pwplus--don't use.
2899             :
2900           else
2901             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2902             break 3
2903           fi
2904         fi
2905       done
2906     done
2907     ;;
2908 esac
2909 done
2910 IFS=$as_save_IFS
2911
2912
2913 fi
2914   if test "${ac_cv_path_install+set}" = set; then
2915     INSTALL=$ac_cv_path_install
2916   else
2917     # As a last resort, use the slow shell script.  Don't cache a
2918     # value for INSTALL within a source directory, because that will
2919     # break other packages using the cache if that directory is
2920     # removed, or if the value is a relative name.
2921     INSTALL=$ac_install_sh
2922   fi
2923 fi
2924 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2925 echo "${ECHO_T}$INSTALL" >&6; }
2926
2927 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2928 # It thinks the first close brace ends the variable substitution.
2929 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2930
2931 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2932
2933 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2934
2935 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
2936   # The makefiles need to use a different form to find it in $srcdir.
2937   INSTALL='\$(..)./scripts/install-sh -c'
2938 fi
2939 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
2940 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2941 LN_S=$as_ln_s
2942 if test "$LN_S" = "ln -s"; then
2943   { echo "$as_me:$LINENO: result: yes" >&5
2944 echo "${ECHO_T}yes" >&6; }
2945 else
2946   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2947 echo "${ECHO_T}no, using $LN_S" >&6; }
2948 fi
2949
2950
2951 ac_ext=c
2952 ac_cpp='$CPP $CPPFLAGS'
2953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2956 if test -n "$ac_tool_prefix"; then
2957   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2958 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2961 if test "${ac_cv_prog_CC+set}" = set; then
2962   echo $ECHO_N "(cached) $ECHO_C" >&6
2963 else
2964   if test -n "$CC"; then
2965   ac_cv_prog_CC="$CC" # Let the user override the test.
2966 else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH
2969 do
2970   IFS=$as_save_IFS
2971   test -z "$as_dir" && as_dir=.
2972   for ac_exec_ext in '' $ac_executable_extensions; do
2973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2974     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2976     break 2
2977   fi
2978 done
2979 done
2980 IFS=$as_save_IFS
2981
2982 fi
2983 fi
2984 CC=$ac_cv_prog_CC
2985 if test -n "$CC"; then
2986   { echo "$as_me:$LINENO: result: $CC" >&5
2987 echo "${ECHO_T}$CC" >&6; }
2988 else
2989   { echo "$as_me:$LINENO: result: no" >&5
2990 echo "${ECHO_T}no" >&6; }
2991 fi
2992
2993
2994 fi
2995 if test -z "$ac_cv_prog_CC"; then
2996   ac_ct_CC=$CC
2997   # Extract the first word of "gcc", so it can be a program name with args.
2998 set dummy gcc; ac_word=$2
2999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3001 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3002   echo $ECHO_N "(cached) $ECHO_C" >&6
3003 else
3004   if test -n "$ac_ct_CC"; then
3005   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3006 else
3007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 for as_dir in $PATH
3009 do
3010   IFS=$as_save_IFS
3011   test -z "$as_dir" && as_dir=.
3012   for ac_exec_ext in '' $ac_executable_extensions; do
3013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014     ac_cv_prog_ac_ct_CC="gcc"
3015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3016     break 2
3017   fi
3018 done
3019 done
3020 IFS=$as_save_IFS
3021
3022 fi
3023 fi
3024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3025 if test -n "$ac_ct_CC"; then
3026   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3027 echo "${ECHO_T}$ac_ct_CC" >&6; }
3028 else
3029   { echo "$as_me:$LINENO: result: no" >&5
3030 echo "${ECHO_T}no" >&6; }
3031 fi
3032
3033   if test "x$ac_ct_CC" = x; then
3034     CC=""
3035   else
3036     case $cross_compiling:$ac_tool_warned in
3037 yes:)
3038 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3039 whose name does not start with the host triplet.  If you think this
3040 configuration is useful to you, please write to autoconf@gnu.org." >&5
3041 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3042 whose name does not start with the host triplet.  If you think this
3043 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3044 ac_tool_warned=yes ;;
3045 esac
3046     CC=$ac_ct_CC
3047   fi
3048 else
3049   CC="$ac_cv_prog_CC"
3050 fi
3051
3052 if test -z "$CC"; then
3053           if test -n "$ac_tool_prefix"; then
3054     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3055 set dummy ${ac_tool_prefix}cc; ac_word=$2
3056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3058 if test "${ac_cv_prog_CC+set}" = set; then
3059   echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061   if test -n "$CC"; then
3062   ac_cv_prog_CC="$CC" # Let the user override the test.
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067   IFS=$as_save_IFS
3068   test -z "$as_dir" && as_dir=.
3069   for ac_exec_ext in '' $ac_executable_extensions; do
3070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071     ac_cv_prog_CC="${ac_tool_prefix}cc"
3072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3073     break 2
3074   fi
3075 done
3076 done
3077 IFS=$as_save_IFS
3078
3079 fi
3080 fi
3081 CC=$ac_cv_prog_CC
3082 if test -n "$CC"; then
3083   { echo "$as_me:$LINENO: result: $CC" >&5
3084 echo "${ECHO_T}$CC" >&6; }
3085 else
3086   { echo "$as_me:$LINENO: result: no" >&5
3087 echo "${ECHO_T}no" >&6; }
3088 fi
3089
3090
3091   fi
3092 fi
3093 if test -z "$CC"; then
3094   # Extract the first word of "cc", so it can be a program name with args.
3095 set dummy cc; ac_word=$2
3096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3098 if test "${ac_cv_prog_CC+set}" = set; then
3099   echo $ECHO_N "(cached) $ECHO_C" >&6
3100 else
3101   if test -n "$CC"; then
3102   ac_cv_prog_CC="$CC" # Let the user override the test.
3103 else
3104   ac_prog_rejected=no
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108   IFS=$as_save_IFS
3109   test -z "$as_dir" && as_dir=.
3110   for ac_exec_ext in '' $ac_executable_extensions; do
3111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3113        ac_prog_rejected=yes
3114        continue
3115      fi
3116     ac_cv_prog_CC="cc"
3117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118     break 2
3119   fi
3120 done
3121 done
3122 IFS=$as_save_IFS
3123
3124 if test $ac_prog_rejected = yes; then
3125   # We found a bogon in the path, so make sure we never use it.
3126   set dummy $ac_cv_prog_CC
3127   shift
3128   if test $# != 0; then
3129     # We chose a different compiler from the bogus one.
3130     # However, it has the same basename, so the bogon will be chosen
3131     # first if we set CC to just the basename; use the full file name.
3132     shift
3133     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3134   fi
3135 fi
3136 fi
3137 fi
3138 CC=$ac_cv_prog_CC
3139 if test -n "$CC"; then
3140   { echo "$as_me:$LINENO: result: $CC" >&5
3141 echo "${ECHO_T}$CC" >&6; }
3142 else
3143   { echo "$as_me:$LINENO: result: no" >&5
3144 echo "${ECHO_T}no" >&6; }
3145 fi
3146
3147
3148 fi
3149 if test -z "$CC"; then
3150   if test -n "$ac_tool_prefix"; then
3151   for ac_prog in cl.exe
3152   do
3153     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3154 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3157 if test "${ac_cv_prog_CC+set}" = set; then
3158   echo $ECHO_N "(cached) $ECHO_C" >&6
3159 else
3160   if test -n "$CC"; then
3161   ac_cv_prog_CC="$CC" # Let the user override the test.
3162 else
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 for as_dir in $PATH
3165 do
3166   IFS=$as_save_IFS
3167   test -z "$as_dir" && as_dir=.
3168   for ac_exec_ext in '' $ac_executable_extensions; do
3169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3172     break 2
3173   fi
3174 done
3175 done
3176 IFS=$as_save_IFS
3177
3178 fi
3179 fi
3180 CC=$ac_cv_prog_CC
3181 if test -n "$CC"; then
3182   { echo "$as_me:$LINENO: result: $CC" >&5
3183 echo "${ECHO_T}$CC" >&6; }
3184 else
3185   { echo "$as_me:$LINENO: result: no" >&5
3186 echo "${ECHO_T}no" >&6; }
3187 fi
3188
3189
3190     test -n "$CC" && break
3191   done
3192 fi
3193 if test -z "$CC"; then
3194   ac_ct_CC=$CC
3195   for ac_prog in cl.exe
3196 do
3197   # Extract the first word of "$ac_prog", so it can be a program name with args.
3198 set dummy $ac_prog; ac_word=$2
3199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3201 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3202   echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204   if test -n "$ac_ct_CC"; then
3205   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3206 else
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3209 do
3210   IFS=$as_save_IFS
3211   test -z "$as_dir" && as_dir=.
3212   for ac_exec_ext in '' $ac_executable_extensions; do
3213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214     ac_cv_prog_ac_ct_CC="$ac_prog"
3215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216     break 2
3217   fi
3218 done
3219 done
3220 IFS=$as_save_IFS
3221
3222 fi
3223 fi
3224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3225 if test -n "$ac_ct_CC"; then
3226   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3227 echo "${ECHO_T}$ac_ct_CC" >&6; }
3228 else
3229   { echo "$as_me:$LINENO: result: no" >&5
3230 echo "${ECHO_T}no" >&6; }
3231 fi
3232
3233
3234   test -n "$ac_ct_CC" && break
3235 done
3236
3237   if test "x$ac_ct_CC" = x; then
3238     CC=""
3239   else
3240     case $cross_compiling:$ac_tool_warned in
3241 yes:)
3242 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3243 whose name does not start with the host triplet.  If you think this
3244 configuration is useful to you, please write to autoconf@gnu.org." >&5
3245 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3246 whose name does not start with the host triplet.  If you think this
3247 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3248 ac_tool_warned=yes ;;
3249 esac
3250     CC=$ac_ct_CC
3251   fi
3252 fi
3253
3254 fi
3255
3256
3257 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3258 See \`config.log' for more details." >&5
3259 echo "$as_me: error: no acceptable C compiler found in \$PATH
3260 See \`config.log' for more details." >&2;}
3261    { (exit 1); exit 1; }; }
3262
3263 # Provide some information about the compiler.
3264 echo "$as_me:$LINENO: checking for C compiler version" >&5
3265 ac_compiler=`set X $ac_compile; echo $2`
3266 { (ac_try="$ac_compiler --version >&5"
3267 case "(($ac_try" in
3268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269   *) ac_try_echo=$ac_try;;
3270 esac
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272   (eval "$ac_compiler --version >&5") 2>&5
3273   ac_status=$?
3274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275   (exit $ac_status); }
3276 { (ac_try="$ac_compiler -v >&5"
3277 case "(($ac_try" in
3278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279   *) ac_try_echo=$ac_try;;
3280 esac
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282   (eval "$ac_compiler -v >&5") 2>&5
3283   ac_status=$?
3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); }
3286 { (ac_try="$ac_compiler -V >&5"
3287 case "(($ac_try" in
3288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289   *) ac_try_echo=$ac_try;;
3290 esac
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292   (eval "$ac_compiler -V >&5") 2>&5
3293   ac_status=$?
3294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295   (exit $ac_status); }
3296
3297 EXEEXT=
3298 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3299 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3300 if test "${ac_cv_objext+set}" = set; then
3301   echo $ECHO_N "(cached) $ECHO_C" >&6
3302 else
3303   cat >conftest.$ac_ext <<_ACEOF
3304 /* confdefs.h.  */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h.  */
3309
3310 int
3311 main ()
3312 {
3313
3314   ;
3315   return 0;
3316 }
3317 _ACEOF
3318 rm -f conftest.o conftest.obj
3319 if { (ac_try="$ac_compile"
3320 case "(($ac_try" in
3321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322   *) ac_try_echo=$ac_try;;
3323 esac
3324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325   (eval "$ac_compile") 2>&5
3326   ac_status=$?
3327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328   (exit $ac_status); }; then
3329   for ac_file in conftest.o conftest.obj conftest.*; do
3330   test -f "$ac_file" || continue;
3331   case $ac_file in
3332     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3333     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3334        break;;
3335   esac
3336 done
3337 else
3338   echo "$as_me: failed program was:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3340
3341 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3342 See \`config.log' for more details." >&5
3343 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3344 See \`config.log' for more details." >&2;}
3345    { (exit 1); exit 1; }; }
3346 fi
3347
3348 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3349 fi
3350 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3351 echo "${ECHO_T}$ac_cv_objext" >&6; }
3352 OBJEXT=$ac_cv_objext
3353 ac_objext=$OBJEXT
3354 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3355 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3356 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3357   echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359   cat >conftest.$ac_ext <<_ACEOF
3360 /* confdefs.h.  */
3361 _ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h.  */
3365
3366 int
3367 main ()
3368 {
3369 #ifndef __GNUC__
3370        choke me
3371 #endif
3372
3373   ;
3374   return 0;
3375 }
3376 _ACEOF
3377 rm -f conftest.$ac_objext
3378 if { (ac_try="$ac_compile"
3379 case "(($ac_try" in
3380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381   *) ac_try_echo=$ac_try;;
3382 esac
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384   (eval "$ac_compile") 2>conftest.er1
3385   ac_status=$?
3386   grep -v '^ *+' conftest.er1 >conftest.err
3387   rm -f conftest.er1
3388   cat conftest.err >&5
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); } && {
3391          test -z "$ac_c_werror_flag" ||
3392          test ! -s conftest.err
3393        } && test -s conftest.$ac_objext; then
3394   ac_compiler_gnu=yes
3395 else
3396   echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399         ac_compiler_gnu=no
3400 fi
3401
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3404
3405 fi
3406 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3407 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3408 GCC=`test $ac_compiler_gnu = yes && echo yes`
3409 ac_test_CFLAGS=${CFLAGS+set}
3410 ac_save_CFLAGS=$CFLAGS
3411 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3412 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3413 if test "${ac_cv_prog_cc_g+set}" = set; then
3414   echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416   ac_save_c_werror_flag=$ac_c_werror_flag
3417    ac_c_werror_flag=yes
3418    ac_cv_prog_cc_g=no
3419    CFLAGS="-g"
3420    cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h.  */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h.  */
3426
3427 int
3428 main ()
3429 {
3430
3431   ;
3432   return 0;
3433 }
3434 _ACEOF
3435 rm -f conftest.$ac_objext
3436 if { (ac_try="$ac_compile"
3437 case "(($ac_try" in
3438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439   *) ac_try_echo=$ac_try;;
3440 esac
3441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442   (eval "$ac_compile") 2>conftest.er1
3443   ac_status=$?
3444   grep -v '^ *+' conftest.er1 >conftest.err
3445   rm -f conftest.er1
3446   cat conftest.err >&5
3447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448   (exit $ac_status); } && {
3449          test -z "$ac_c_werror_flag" ||
3450          test ! -s conftest.err
3451        } && test -s conftest.$ac_objext; then
3452   ac_cv_prog_cc_g=yes
3453 else
3454   echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3456
3457         CFLAGS=""
3458       cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h.  */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h.  */
3464
3465 int
3466 main ()
3467 {
3468
3469   ;
3470   return 0;
3471 }
3472 _ACEOF
3473 rm -f conftest.$ac_objext
3474 if { (ac_try="$ac_compile"
3475 case "(($ac_try" in
3476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477   *) ac_try_echo=$ac_try;;
3478 esac
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480   (eval "$ac_compile") 2>conftest.er1
3481   ac_status=$?
3482   grep -v '^ *+' conftest.er1 >conftest.err
3483   rm -f conftest.er1
3484   cat conftest.err >&5
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); } && {
3487          test -z "$ac_c_werror_flag" ||
3488          test ! -s conftest.err
3489        } && test -s conftest.$ac_objext; then
3490   :
3491 else
3492   echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3494
3495         ac_c_werror_flag=$ac_save_c_werror_flag
3496          CFLAGS="-g"
3497          cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h.  */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h.  */
3503
3504 int
3505 main ()
3506 {
3507
3508   ;
3509   return 0;
3510 }
3511 _ACEOF
3512 rm -f conftest.$ac_objext
3513 if { (ac_try="$ac_compile"
3514 case "(($ac_try" in
3515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516   *) ac_try_echo=$ac_try;;
3517 esac
3518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3519   (eval "$ac_compile") 2>conftest.er1
3520   ac_status=$?
3521   grep -v '^ *+' conftest.er1 >conftest.err
3522   rm -f conftest.er1
3523   cat conftest.err >&5
3524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525   (exit $ac_status); } && {
3526          test -z "$ac_c_werror_flag" ||
3527          test ! -s conftest.err
3528        } && test -s conftest.$ac_objext; then
3529   ac_cv_prog_cc_g=yes
3530 else
3531   echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3533
3534
3535 fi
3536
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538 fi
3539
3540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3541 fi
3542
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544    ac_c_werror_flag=$ac_save_c_werror_flag
3545 fi
3546 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3547 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3548 if test "$ac_test_CFLAGS" = set; then
3549   CFLAGS=$ac_save_CFLAGS
3550 elif test $ac_cv_prog_cc_g = yes; then
3551   if test "$GCC" = yes; then
3552     CFLAGS="-g -O2"
3553   else
3554     CFLAGS="-g"
3555   fi
3556 else
3557   if test "$GCC" = yes; then
3558     CFLAGS="-O2"
3559   else
3560     CFLAGS=
3561   fi
3562 fi
3563 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3564 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3565 if test "${ac_cv_prog_cc_c89+set}" = set; then
3566   echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568   ac_cv_prog_cc_c89=no
3569 ac_save_CC=$CC
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h.  */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h.  */
3576 #include <stdarg.h>
3577 #include <stdio.h>
3578 #include <sys/types.h>
3579 #include <sys/stat.h>
3580 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3581 struct buf { int x; };
3582 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3583 static char *e (p, i)
3584      char **p;
3585      int i;
3586 {
3587   return p[i];
3588 }
3589 static char *f (char * (*g) (char **, int), char **p, ...)
3590 {
3591   char *s;
3592   va_list v;
3593   va_start (v,p);
3594   s = g (p, va_arg (v,int));
3595   va_end (v);
3596   return s;
3597 }
3598
3599 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3600    function prototypes and stuff, but not '\xHH' hex character constants.
3601    These don't provoke an error unfortunately, instead are silently treated
3602    as 'x'.  The following induces an error, until -std is added to get
3603    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3604    array size at least.  It's necessary to write '\x00'==0 to get something
3605    that's true only with -std.  */
3606 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3607
3608 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3609    inside strings and character constants.  */
3610 #define FOO(x) 'x'
3611 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3612
3613 int test (int i, double x);
3614 struct s1 {int (*f) (int a);};
3615 struct s2 {int (*f) (double a);};
3616 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3617 int argc;
3618 char **argv;
3619 int
3620 main ()
3621 {
3622 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3623   ;
3624   return 0;
3625 }
3626 _ACEOF
3627 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3628         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3629 do
3630   CC="$ac_save_CC $ac_arg"
3631   rm -f conftest.$ac_objext
3632 if { (ac_try="$ac_compile"
3633 case "(($ac_try" in
3634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635   *) ac_try_echo=$ac_try;;
3636 esac
3637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3638   (eval "$ac_compile") 2>conftest.er1
3639   ac_status=$?
3640   grep -v '^ *+' conftest.er1 >conftest.err
3641   rm -f conftest.er1
3642   cat conftest.err >&5
3643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644   (exit $ac_status); } && {
3645          test -z "$ac_c_werror_flag" ||
3646          test ! -s conftest.err
3647        } && test -s conftest.$ac_objext; then
3648   ac_cv_prog_cc_c89=$ac_arg
3649 else
3650   echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3652
3653
3654 fi
3655
3656 rm -f core conftest.err conftest.$ac_objext
3657   test "x$ac_cv_prog_cc_c89" != "xno" && break
3658 done
3659 rm -f conftest.$ac_ext
3660 CC=$ac_save_CC
3661
3662 fi
3663 # AC_CACHE_VAL
3664 case "x$ac_cv_prog_cc_c89" in
3665   x)
3666     { echo "$as_me:$LINENO: result: none needed" >&5
3667 echo "${ECHO_T}none needed" >&6; } ;;
3668   xno)
3669     { echo "$as_me:$LINENO: result: unsupported" >&5
3670 echo "${ECHO_T}unsupported" >&6; } ;;
3671   *)
3672     CC="$CC $ac_cv_prog_cc_c89"
3673     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3674 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3675 esac
3676
3677
3678 ac_ext=c
3679 ac_cpp='$CPP $CPPFLAGS'
3680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3683
3684 if test $host != $build; then
3685   for ac_prog in gcc cc
3686 do
3687   # Extract the first word of "$ac_prog", so it can be a program name with args.
3688 set dummy $ac_prog; ac_word=$2
3689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3691 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3692   echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694   if test -n "$BUILD_CC"; then
3695   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3699 do
3700   IFS=$as_save_IFS
3701   test -z "$as_dir" && as_dir=.
3702   for ac_exec_ext in '' $ac_executable_extensions; do
3703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704     ac_cv_prog_BUILD_CC="$ac_prog"
3705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3706     break 2
3707   fi
3708 done
3709 done
3710 IFS=$as_save_IFS
3711
3712 fi
3713 fi
3714 BUILD_CC=$ac_cv_prog_BUILD_CC
3715 if test -n "$BUILD_CC"; then
3716   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3717 echo "${ECHO_T}$BUILD_CC" >&6; }
3718 else
3719   { echo "$as_me:$LINENO: result: no" >&5
3720 echo "${ECHO_T}no" >&6; }
3721 fi
3722
3723
3724   test -n "$BUILD_CC" && break
3725 done
3726
3727 fi
3728
3729 ac_ext=c
3730 ac_cpp='$CPP $CPPFLAGS'
3731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3735 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3736 # On Suns, sometimes $CPP names a directory.
3737 if test -n "$CPP" && test -d "$CPP"; then
3738   CPP=
3739 fi
3740 if test -z "$CPP"; then
3741   if test "${ac_cv_prog_CPP+set}" = set; then
3742   echo $ECHO_N "(cached) $ECHO_C" >&6
3743 else
3744       # Double quotes because CPP needs to be expanded
3745     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3746     do
3747       ac_preproc_ok=false
3748 for ac_c_preproc_warn_flag in '' yes
3749 do
3750   # Use a header file that comes with gcc, so configuring glibc
3751   # with a fresh cross-compiler works.
3752   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3753   # <limits.h> exists even on freestanding compilers.
3754   # On the NeXT, cc -E runs the code through the compiler's parser,
3755   # not just through cpp. "Syntax error" is here to catch this case.
3756   cat >conftest.$ac_ext <<_ACEOF
3757 /* confdefs.h.  */
3758 _ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h.  */
3762 #ifdef __STDC__
3763 # include <limits.h>
3764 #else
3765 # include <assert.h>
3766 #endif
3767                      Syntax error
3768 _ACEOF
3769 if { (ac_try="$ac_cpp conftest.$ac_ext"
3770 case "(($ac_try" in
3771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772   *) ac_try_echo=$ac_try;;
3773 esac
3774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3775   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3776   ac_status=$?
3777   grep -v '^ *+' conftest.er1 >conftest.err
3778   rm -f conftest.er1
3779   cat conftest.err >&5
3780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781   (exit $ac_status); } >/dev/null && {
3782          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3783          test ! -s conftest.err
3784        }; then
3785   :
3786 else
3787   echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3789
3790   # Broken: fails on valid input.
3791 continue
3792 fi
3793
3794 rm -f conftest.err conftest.$ac_ext
3795
3796   # OK, works on sane cases.  Now check whether nonexistent headers
3797   # can be detected and how.
3798   cat >conftest.$ac_ext <<_ACEOF
3799 /* confdefs.h.  */
3800 _ACEOF
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h.  */
3804 #include <ac_nonexistent.h>
3805 _ACEOF
3806 if { (ac_try="$ac_cpp conftest.$ac_ext"
3807 case "(($ac_try" in
3808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809   *) ac_try_echo=$ac_try;;
3810 esac
3811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3812   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3813   ac_status=$?
3814   grep -v '^ *+' conftest.er1 >conftest.err
3815   rm -f conftest.er1
3816   cat conftest.err >&5
3817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818   (exit $ac_status); } >/dev/null && {
3819          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3820          test ! -s conftest.err
3821        }; then
3822   # Broken: success on invalid input.
3823 continue
3824 else
3825   echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3827
3828   # Passes both tests.
3829 ac_preproc_ok=:
3830 break
3831 fi
3832
3833 rm -f conftest.err conftest.$ac_ext
3834
3835 done
3836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3837 rm -f conftest.err conftest.$ac_ext
3838 if $ac_preproc_ok; then
3839   break
3840 fi
3841
3842     done
3843     ac_cv_prog_CPP=$CPP
3844
3845 fi
3846   CPP=$ac_cv_prog_CPP
3847 else
3848   ac_cv_prog_CPP=$CPP
3849 fi
3850 { echo "$as_me:$LINENO: result: $CPP" >&5
3851 echo "${ECHO_T}$CPP" >&6; }
3852 ac_preproc_ok=false
3853 for ac_c_preproc_warn_flag in '' yes
3854 do
3855   # Use a header file that comes with gcc, so configuring glibc
3856   # with a fresh cross-compiler works.
3857   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3858   # <limits.h> exists even on freestanding compilers.
3859   # On the NeXT, cc -E runs the code through the compiler's parser,
3860   # not just through cpp. "Syntax error" is here to catch this case.
3861   cat >conftest.$ac_ext <<_ACEOF
3862 /* confdefs.h.  */
3863 _ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h.  */
3867 #ifdef __STDC__
3868 # include <limits.h>
3869 #else
3870 # include <assert.h>
3871 #endif
3872                      Syntax error
3873 _ACEOF
3874 if { (ac_try="$ac_cpp conftest.$ac_ext"
3875 case "(($ac_try" in
3876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877   *) ac_try_echo=$ac_try;;
3878 esac
3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3881   ac_status=$?
3882   grep -v '^ *+' conftest.er1 >conftest.err
3883   rm -f conftest.er1
3884   cat conftest.err >&5
3885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886   (exit $ac_status); } >/dev/null && {
3887          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3888          test ! -s conftest.err
3889        }; then
3890   :
3891 else
3892   echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3894
3895   # Broken: fails on valid input.
3896 continue
3897 fi
3898
3899 rm -f conftest.err conftest.$ac_ext
3900
3901   # OK, works on sane cases.  Now check whether nonexistent headers
3902   # can be detected and how.
3903   cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h.  */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h.  */
3909 #include <ac_nonexistent.h>
3910 _ACEOF
3911 if { (ac_try="$ac_cpp conftest.$ac_ext"
3912 case "(($ac_try" in
3913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914   *) ac_try_echo=$ac_try;;
3915 esac
3916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3917   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3918   ac_status=$?
3919   grep -v '^ *+' conftest.er1 >conftest.err
3920   rm -f conftest.er1
3921   cat conftest.err >&5
3922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923   (exit $ac_status); } >/dev/null && {
3924          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3925          test ! -s conftest.err
3926        }; then
3927   # Broken: success on invalid input.
3928 continue
3929 else
3930   echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3932
3933   # Passes both tests.
3934 ac_preproc_ok=:
3935 break
3936 fi
3937
3938 rm -f conftest.err conftest.$ac_ext
3939
3940 done
3941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3942 rm -f conftest.err conftest.$ac_ext
3943 if $ac_preproc_ok; then
3944   :
3945 else
3946   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3947 See \`config.log' for more details." >&5
3948 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3949 See \`config.log' for more details." >&2;}
3950    { (exit 1); exit 1; }; }
3951 fi
3952
3953 ac_ext=c
3954 ac_cpp='$CPP $CPPFLAGS'
3955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958
3959 # We need the C++ compiler only for testing.
3960 ac_ext=cpp
3961 ac_cpp='$CXXCPP $CPPFLAGS'
3962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3965 if test -z "$CXX"; then
3966   if test -n "$CCC"; then
3967     CXX=$CCC
3968   else
3969     if test -n "$ac_tool_prefix"; then
3970   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3971   do
3972     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3976 if test "${ac_cv_prog_CXX+set}" = set; then
3977   echo $ECHO_N "(cached) $ECHO_C" >&6
3978 else
3979   if test -n "$CXX"; then
3980   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3981 else
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH
3984 do
3985   IFS=$as_save_IFS
3986   test -z "$as_dir" && as_dir=.
3987   for ac_exec_ext in '' $ac_executable_extensions; do
3988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3989     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3991     break 2
3992   fi
3993 done
3994 done
3995 IFS=$as_save_IFS
3996
3997 fi
3998 fi
3999 CXX=$ac_cv_prog_CXX
4000 if test -n "$CXX"; then
4001   { echo "$as_me:$LINENO: result: $CXX" >&5
4002 echo "${ECHO_T}$CXX" >&6; }
4003 else
4004   { echo "$as_me:$LINENO: result: no" >&5
4005 echo "${ECHO_T}no" >&6; }
4006 fi
4007
4008
4009     test -n "$CXX" && break
4010   done
4011 fi
4012 if test -z "$CXX"; then
4013   ac_ct_CXX=$CXX
4014   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4015 do
4016   # Extract the first word of "$ac_prog", so it can be a program name with args.
4017 set dummy $ac_prog; ac_word=$2
4018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4020 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4021   echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023   if test -n "$ac_ct_CXX"; then
4024   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4025 else
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH
4028 do
4029   IFS=$as_save_IFS
4030   test -z "$as_dir" && as_dir=.
4031   for ac_exec_ext in '' $ac_executable_extensions; do
4032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4033     ac_cv_prog_ac_ct_CXX="$ac_prog"
4034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4035     break 2
4036   fi
4037 done
4038 done
4039 IFS=$as_save_IFS
4040
4041 fi
4042 fi
4043 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4044 if test -n "$ac_ct_CXX"; then
4045   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4046 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4047 else
4048   { echo "$as_me:$LINENO: result: no" >&5
4049 echo "${ECHO_T}no" >&6; }
4050 fi
4051
4052
4053   test -n "$ac_ct_CXX" && break
4054 done
4055
4056   if test "x$ac_ct_CXX" = x; then
4057     CXX="g++"
4058   else
4059     case $cross_compiling:$ac_tool_warned in
4060 yes:)
4061 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4062 whose name does not start with the host triplet.  If you think this
4063 configuration is useful to you, please write to autoconf@gnu.org." >&5
4064 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4065 whose name does not start with the host triplet.  If you think this
4066 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4067 ac_tool_warned=yes ;;
4068 esac
4069     CXX=$ac_ct_CXX
4070   fi
4071 fi
4072
4073   fi
4074 fi
4075 # Provide some information about the compiler.
4076 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4077 ac_compiler=`set X $ac_compile; echo $2`
4078 { (ac_try="$ac_compiler --version >&5"
4079 case "(($ac_try" in
4080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081   *) ac_try_echo=$ac_try;;
4082 esac
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084   (eval "$ac_compiler --version >&5") 2>&5
4085   ac_status=$?
4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087   (exit $ac_status); }
4088 { (ac_try="$ac_compiler -v >&5"
4089 case "(($ac_try" in
4090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091   *) ac_try_echo=$ac_try;;
4092 esac
4093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094   (eval "$ac_compiler -v >&5") 2>&5
4095   ac_status=$?
4096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097   (exit $ac_status); }
4098 { (ac_try="$ac_compiler -V >&5"
4099 case "(($ac_try" in
4100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101   *) ac_try_echo=$ac_try;;
4102 esac
4103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4104   (eval "$ac_compiler -V >&5") 2>&5
4105   ac_status=$?
4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); }
4108
4109 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4110 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4111 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4112   echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114   cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h.  */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h.  */
4120
4121 int
4122 main ()
4123 {
4124 #ifndef __GNUC__
4125        choke me
4126 #endif
4127
4128   ;
4129   return 0;
4130 }
4131 _ACEOF
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4134 case "(($ac_try" in
4135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136   *) ac_try_echo=$ac_try;;
4137 esac
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139   (eval "$ac_compile") 2>conftest.er1
4140   ac_status=$?
4141   grep -v '^ *+' conftest.er1 >conftest.err
4142   rm -f conftest.er1
4143   cat conftest.err >&5
4144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145   (exit $ac_status); } && {
4146          test -z "$ac_cxx_werror_flag" ||
4147          test ! -s conftest.err
4148        } && test -s conftest.$ac_objext; then
4149   ac_compiler_gnu=yes
4150 else
4151   echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4153
4154         ac_compiler_gnu=no
4155 fi
4156
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4159
4160 fi
4161 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4162 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4163 GXX=`test $ac_compiler_gnu = yes && echo yes`
4164 ac_test_CXXFLAGS=${CXXFLAGS+set}
4165 ac_save_CXXFLAGS=$CXXFLAGS
4166 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4167 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4168 if test "${ac_cv_prog_cxx_g+set}" = set; then
4169   echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4172    ac_cxx_werror_flag=yes
4173    ac_cv_prog_cxx_g=no
4174    CXXFLAGS="-g"
4175    cat >conftest.$ac_ext <<_ACEOF
4176 /* confdefs.h.  */
4177 _ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h.  */
4181
4182 int
4183 main ()
4184 {
4185
4186   ;
4187   return 0;
4188 }
4189 _ACEOF
4190 rm -f conftest.$ac_objext
4191 if { (ac_try="$ac_compile"
4192 case "(($ac_try" in
4193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194   *) ac_try_echo=$ac_try;;
4195 esac
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197   (eval "$ac_compile") 2>conftest.er1
4198   ac_status=$?
4199   grep -v '^ *+' conftest.er1 >conftest.err
4200   rm -f conftest.er1
4201   cat conftest.err >&5
4202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203   (exit $ac_status); } && {
4204          test -z "$ac_cxx_werror_flag" ||
4205          test ! -s conftest.err
4206        } && test -s conftest.$ac_objext; then
4207   ac_cv_prog_cxx_g=yes
4208 else
4209   echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4211
4212         CXXFLAGS=""
4213       cat >conftest.$ac_ext <<_ACEOF
4214 /* confdefs.h.  */
4215 _ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h.  */
4219
4220 int
4221 main ()
4222 {
4223
4224   ;
4225   return 0;
4226 }
4227 _ACEOF
4228 rm -f conftest.$ac_objext
4229 if { (ac_try="$ac_compile"
4230 case "(($ac_try" in
4231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232   *) ac_try_echo=$ac_try;;
4233 esac
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235   (eval "$ac_compile") 2>conftest.er1
4236   ac_status=$?
4237   grep -v '^ *+' conftest.er1 >conftest.err
4238   rm -f conftest.er1
4239   cat conftest.err >&5
4240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241   (exit $ac_status); } && {
4242          test -z "$ac_cxx_werror_flag" ||
4243          test ! -s conftest.err
4244        } && test -s conftest.$ac_objext; then
4245   :
4246 else
4247   echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4249
4250         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4251          CXXFLAGS="-g"
4252          cat >conftest.$ac_ext <<_ACEOF
4253 /* confdefs.h.  */
4254 _ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h.  */
4258
4259 int
4260 main ()
4261 {
4262
4263   ;
4264   return 0;
4265 }
4266 _ACEOF
4267 rm -f conftest.$ac_objext
4268 if { (ac_try="$ac_compile"
4269 case "(($ac_try" in
4270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271   *) ac_try_echo=$ac_try;;
4272 esac
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274   (eval "$ac_compile") 2>conftest.er1
4275   ac_status=$?
4276   grep -v '^ *+' conftest.er1 >conftest.err
4277   rm -f conftest.er1
4278   cat conftest.err >&5
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); } && {
4281          test -z "$ac_cxx_werror_flag" ||
4282          test ! -s conftest.err
4283        } && test -s conftest.$ac_objext; then
4284   ac_cv_prog_cxx_g=yes
4285 else
4286   echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4288
4289
4290 fi
4291
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293 fi
4294
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 fi
4297
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4300 fi
4301 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4302 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4303 if test "$ac_test_CXXFLAGS" = set; then
4304   CXXFLAGS=$ac_save_CXXFLAGS
4305 elif test $ac_cv_prog_cxx_g = yes; then
4306   if test "$GXX" = yes; then
4307     CXXFLAGS="-g -O2"
4308   else
4309     CXXFLAGS="-g"
4310   fi
4311 else
4312   if test "$GXX" = yes; then
4313     CXXFLAGS="-O2"
4314   else
4315     CXXFLAGS=
4316   fi
4317 fi
4318 ac_ext=c
4319 ac_cpp='$CPP $CPPFLAGS'
4320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323
4324 # Was a --with-binutils option given?
4325 if test -n "$path_binutils"; then
4326     # Make absolute; ensure a single trailing slash.
4327     path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4328     CC="$CC -B$path_binutils"
4329 fi
4330 AS=`$CC -print-prog-name=as`
4331 LD=`$CC -print-prog-name=ld`
4332 AR=`$CC -print-prog-name=ar`
4333
4334 OBJDUMP=`$CC -print-prog-name=objdump`
4335
4336
4337 # ranlib has to be treated a bit differently since it might not exist at all.
4338 ac_ranlib=`$CC -print-prog-name=ranlib`
4339 if test "x$ac_ranlib" = xranlib; then
4340 # This extra check has to happen since gcc simply echos the parameter in
4341 # case it cannot find the value in its own directories.
4342 if test -n "$ac_tool_prefix"; then
4343   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4344 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4347 if test "${ac_cv_prog_RANLIB+set}" = set; then
4348   echo $ECHO_N "(cached) $ECHO_C" >&6
4349 else
4350   if test -n "$RANLIB"; then
4351   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4352 else
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH
4355 do
4356   IFS=$as_save_IFS
4357   test -z "$as_dir" && as_dir=.
4358   for ac_exec_ext in '' $ac_executable_extensions; do
4359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4360     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4362     break 2
4363   fi
4364 done
4365 done
4366 IFS=$as_save_IFS
4367
4368 fi
4369 fi
4370 RANLIB=$ac_cv_prog_RANLIB
4371 if test -n "$RANLIB"; then
4372   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4373 echo "${ECHO_T}$RANLIB" >&6; }
4374 else
4375   { echo "$as_me:$LINENO: result: no" >&5
4376 echo "${ECHO_T}no" >&6; }
4377 fi
4378
4379
4380 fi
4381 if test -z "$ac_cv_prog_RANLIB"; then
4382   ac_ct_RANLIB=$RANLIB
4383   # Extract the first word of "ranlib", so it can be a program name with args.
4384 set dummy ranlib; ac_word=$2
4385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4387 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4388   echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390   if test -n "$ac_ct_RANLIB"; then
4391   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4392 else
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4395 do
4396   IFS=$as_save_IFS
4397   test -z "$as_dir" && as_dir=.
4398   for ac_exec_ext in '' $ac_executable_extensions; do
4399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4400     ac_cv_prog_ac_ct_RANLIB="ranlib"
4401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4402     break 2
4403   fi
4404 done
4405 done
4406 IFS=$as_save_IFS
4407
4408 fi
4409 fi
4410 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4411 if test -n "$ac_ct_RANLIB"; then
4412   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4413 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4414 else
4415   { echo "$as_me:$LINENO: result: no" >&5
4416 echo "${ECHO_T}no" >&6; }
4417 fi
4418
4419   if test "x$ac_ct_RANLIB" = x; then
4420     RANLIB=":"
4421   else
4422     case $cross_compiling:$ac_tool_warned in
4423 yes:)
4424 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4425 whose name does not start with the host triplet.  If you think this
4426 configuration is useful to you, please write to autoconf@gnu.org." >&5
4427 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4428 whose name does not start with the host triplet.  If you think this
4429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4430 ac_tool_warned=yes ;;
4431 esac
4432     RANLIB=$ac_ct_RANLIB
4433   fi
4434 else
4435   RANLIB="$ac_cv_prog_RANLIB"
4436 fi
4437
4438 else
4439   RANLIB=$ac_ranlib
4440 fi
4441
4442
4443 # Determine whether we are using GNU binutils.
4444 { echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
4445 echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6; }
4446 if test "${libc_cv_prog_as_gnu+set}" = set; then
4447   echo $ECHO_N "(cached) $ECHO_C" >&6
4448 else
4449   # Most GNU programs take a -v and spit out some text including
4450 # the word 'GNU'.  Some try to read stdin, so give them /dev/null.
4451 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4452   libc_cv_prog_as_gnu=yes
4453 else
4454   libc_cv_prog_as_gnu=no
4455 fi
4456 rm -fr contest*
4457 fi
4458 { echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
4459 echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6; }
4460 rm -f a.out
4461 gnu_as=$libc_cv_prog_as_gnu
4462
4463 { echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
4464 echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6; }
4465 if test "${libc_cv_prog_ld_gnu+set}" = set; then
4466   echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468   # Most GNU programs take a -v and spit out some text including
4469 # the word 'GNU'.  Some try to read stdin, so give them /dev/null.
4470 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4471   libc_cv_prog_ld_gnu=yes
4472 else
4473   libc_cv_prog_ld_gnu=no
4474 fi
4475 rm -fr contest*
4476 fi
4477 { echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
4478 echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6; }
4479 gnu_ld=$libc_cv_prog_ld_gnu
4480
4481
4482 # Accept binutils 2.13 or newer.
4483 for ac_prog in $AS
4484 do
4485   # Extract the first word of "$ac_prog", so it can be a program name with args.
4486 set dummy $ac_prog; ac_word=$2
4487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4489 if test "${ac_cv_prog_AS+set}" = set; then
4490   echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492   if test -n "$AS"; then
4493   ac_cv_prog_AS="$AS" # Let the user override the test.
4494 else
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4497 do
4498   IFS=$as_save_IFS
4499   test -z "$as_dir" && as_dir=.
4500   for ac_exec_ext in '' $ac_executable_extensions; do
4501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502     ac_cv_prog_AS="$ac_prog"
4503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4504     break 2
4505   fi
4506 done
4507 done
4508 IFS=$as_save_IFS
4509
4510 fi
4511 fi
4512 AS=$ac_cv_prog_AS
4513 if test -n "$AS"; then
4514   { echo "$as_me:$LINENO: result: $AS" >&5
4515 echo "${ECHO_T}$AS" >&6; }
4516 else
4517   { echo "$as_me:$LINENO: result: no" >&5
4518 echo "${ECHO_T}no" >&6; }
4519 fi
4520
4521
4522   test -n "$AS" && break
4523 done
4524
4525 if test -z "$AS"; then
4526   ac_verc_fail=yes
4527 else
4528   # Found it, now check the version.
4529   { echo "$as_me:$LINENO: checking version of $AS" >&5
4530 echo $ECHO_N "checking version of $AS... $ECHO_C" >&6; }
4531   ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4532   case $ac_prog_version in
4533     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4534     2.1[3-9]*)
4535        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4536     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4537
4538   esac
4539   { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4540 echo "${ECHO_T}$ac_prog_version" >&6; }
4541 fi
4542 if test $ac_verc_fail = yes; then
4543   AS=: critic_missing="$critic_missing as"
4544 fi
4545
4546 for ac_prog in $LD
4547 do
4548   # Extract the first word of "$ac_prog", so it can be a program name with args.
4549 set dummy $ac_prog; ac_word=$2
4550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4552 if test "${ac_cv_prog_LD+set}" = set; then
4553   echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555   if test -n "$LD"; then
4556   ac_cv_prog_LD="$LD" # Let the user override the test.
4557 else
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH
4560 do
4561   IFS=$as_save_IFS
4562   test -z "$as_dir" && as_dir=.
4563   for ac_exec_ext in '' $ac_executable_extensions; do
4564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4565     ac_cv_prog_LD="$ac_prog"
4566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4567     break 2
4568   fi
4569 done
4570 done
4571 IFS=$as_save_IFS
4572
4573 fi
4574 fi
4575 LD=$ac_cv_prog_LD
4576 if test -n "$LD"; then
4577   { echo "$as_me:$LINENO: result: $LD" >&5
4578 echo "${ECHO_T}$LD" >&6; }
4579 else
4580   { echo "$as_me:$LINENO: result: no" >&5
4581 echo "${ECHO_T}no" >&6; }
4582 fi
4583
4584
4585   test -n "$LD" && break
4586 done
4587
4588 if test -z "$LD"; then
4589   ac_verc_fail=yes
4590 else
4591   # Found it, now check the version.
4592   { echo "$as_me:$LINENO: checking version of $LD" >&5
4593 echo $ECHO_N "checking version of $LD... $ECHO_C" >&6; }
4594   ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4595   case $ac_prog_version in
4596     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4597     2.1[3-9]*)
4598        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4599     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4600
4601   esac
4602   { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4603 echo "${ECHO_T}$ac_prog_version" >&6; }
4604 fi
4605 if test $ac_verc_fail = yes; then
4606   LD=: critic_missing="$critic_missing ld"
4607 fi
4608
4609
4610 # We need the physical current working directory.  We cannot use the
4611 # "pwd -P" shell builtin since that's not portable.  Instead we try to
4612 # find a pwd binary.  Note that assigning to the PWD environment
4613 # variable might have some interesting side effects, so we don't do
4614 # that.
4615 # Extract the first word of "pwd", so it can be a program name with args.
4616 set dummy pwd; ac_word=$2
4617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4619 if test "${ac_cv_path_PWD_P+set}" = set; then
4620   echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622   case $PWD_P in
4623   [\\/]* | ?:[\\/]*)
4624   ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4625   ;;
4626   *)
4627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4629 do
4630   IFS=$as_save_IFS
4631   test -z "$as_dir" && as_dir=.
4632   for ac_exec_ext in '' $ac_executable_extensions; do
4633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634     ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4636     break 2
4637   fi
4638 done
4639 done
4640 IFS=$as_save_IFS
4641
4642   test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4643   ;;
4644 esac
4645 fi
4646 PWD_P=$ac_cv_path_PWD_P
4647 if test -n "$PWD_P"; then
4648   { echo "$as_me:$LINENO: result: $PWD_P" >&5
4649 echo "${ECHO_T}$PWD_P" >&6; }
4650 else
4651   { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4653 fi
4654
4655
4656 if test "$PWD_P" = no; then
4657   { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
4658 echo "$as_me: error: *** A pwd binary could not be found." >&2;}
4659    { (exit 1); exit 1; }; }
4660 fi
4661
4662 # These programs are version sensitive.
4663
4664 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4665 do
4666   # Extract the first word of "$ac_prog", so it can be a program name with args.
4667 set dummy $ac_prog; ac_word=$2
4668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4670 if test "${ac_cv_prog_CC+set}" = set; then
4671   echo $ECHO_N "(cached) $ECHO_C" >&6
4672 else
4673   if test -n "$CC"; then
4674   ac_cv_prog_CC="$CC" # Let the user override the test.
4675 else
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 for as_dir in $PATH
4678 do
4679   IFS=$as_save_IFS
4680   test -z "$as_dir" && as_dir=.
4681   for ac_exec_ext in '' $ac_executable_extensions; do
4682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4683     ac_cv_prog_CC="$ac_prog"
4684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685     break 2
4686   fi
4687 done
4688 done
4689 IFS=$as_save_IFS
4690
4691 fi
4692 fi
4693 CC=$ac_cv_prog_CC
4694 if test -n "$CC"; then
4695   { echo "$as_me:$LINENO: result: $CC" >&5
4696 echo "${ECHO_T}$CC" >&6; }
4697 else
4698   { echo "$as_me:$LINENO: result: no" >&5
4699 echo "${ECHO_T}no" >&6; }
4700 fi
4701
4702
4703   test -n "$CC" && break
4704 done
4705
4706 if test -z "$CC"; then
4707   ac_verc_fail=yes
4708 else
4709   # Found it, now check the version.
4710   { echo "$as_me:$LINENO: checking version of $CC" >&5
4711 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6; }
4712   ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
4713   case $ac_prog_version in
4714     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4715     3.4* | 4.[0-9]* )
4716        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4717     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4718
4719   esac
4720   { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4721 echo "${ECHO_T}$ac_prog_version" >&6; }
4722 fi
4723 if test $ac_verc_fail = yes; then
4724   critic_missing="$critic_missing gcc"
4725 fi
4726
4727 for ac_prog in gnumake gmake make
4728 do
4729   # Extract the first word of "$ac_prog", so it can be a program name with args.
4730 set dummy $ac_prog; ac_word=$2
4731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4733 if test "${ac_cv_prog_MAKE+set}" = set; then
4734   echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736   if test -n "$MAKE"; then
4737   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4738 else
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH
4741 do
4742   IFS=$as_save_IFS
4743   test -z "$as_dir" && as_dir=.
4744   for ac_exec_ext in '' $ac_executable_extensions; do
4745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746     ac_cv_prog_MAKE="$ac_prog"
4747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4748     break 2
4749   fi
4750 done
4751 done
4752 IFS=$as_save_IFS
4753
4754 fi
4755 fi
4756 MAKE=$ac_cv_prog_MAKE
4757 if test -n "$MAKE"; then
4758   { echo "$as_me:$LINENO: result: $MAKE" >&5
4759 echo "${ECHO_T}$MAKE" >&6; }
4760 else
4761   { echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6; }
4763 fi
4764
4765
4766   test -n "$MAKE" && break
4767 done
4768
4769 if test -z "$MAKE"; then
4770   ac_verc_fail=yes
4771 else
4772   # Found it, now check the version.
4773   { echo "$as_me:$LINENO: checking version of $MAKE" >&5
4774 echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6; }
4775   ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4776   case $ac_prog_version in
4777     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4778     3.79* | 3.[89]*)
4779        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4780     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4781
4782   esac
4783   { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4784 echo "${ECHO_T}$ac_prog_version" >&6; }
4785 fi
4786 if test $ac_verc_fail = yes; then
4787   critic_missing="$critic_missing make"
4788 fi
4789
4790
4791 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4792 do
4793   # Extract the first word of "$ac_prog", so it can be a program name with args.
4794 set dummy $ac_prog; ac_word=$2
4795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4797 if test "${ac_cv_prog_MSGFMT+set}" = set; then
4798   echo $ECHO_N "(cached) $ECHO_C" >&6
4799 else
4800   if test -n "$MSGFMT"; then
4801   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4802 else
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4805 do
4806   IFS=$as_save_IFS
4807   test -z "$as_dir" && as_dir=.
4808   for ac_exec_ext in '' $ac_executable_extensions; do
4809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4810     ac_cv_prog_MSGFMT="$ac_prog"
4811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4812     break 2
4813   fi
4814 done
4815 done
4816 IFS=$as_save_IFS
4817
4818 fi
4819 fi
4820 MSGFMT=$ac_cv_prog_MSGFMT
4821 if test -n "$MSGFMT"; then
4822   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4823 echo "${ECHO_T}$MSGFMT" >&6; }
4824 else
4825   { echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6; }
4827 fi
4828
4829
4830   test -n "$MSGFMT" && break
4831 done
4832
4833 if test -z "$MSGFMT"; then
4834   ac_verc_fail=yes
4835 else
4836   # Found it, now check the version.
4837   { echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
4838 echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6; }
4839   ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4840   case $ac_prog_version in
4841     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4842     0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4843        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4844     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4845
4846   esac
4847   { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4848 echo "${ECHO_T}$ac_prog_version" >&6; }
4849 fi
4850 if test $ac_verc_fail = yes; then
4851   MSGFMT=: aux_missing="$aux_missing msgfmt"
4852 fi
4853
4854 for ac_prog in makeinfo
4855 do
4856   # Extract the first word of "$ac_prog", so it can be a program name with args.
4857 set dummy $ac_prog; ac_word=$2
4858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4860 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4861   echo $ECHO_N "(cached) $ECHO_C" >&6
4862 else
4863   if test -n "$MAKEINFO"; then
4864   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869   IFS=$as_save_IFS
4870   test -z "$as_dir" && as_dir=.
4871   for ac_exec_ext in '' $ac_executable_extensions; do
4872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873     ac_cv_prog_MAKEINFO="$ac_prog"
4874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875     break 2
4876   fi
4877 done
4878 done
4879 IFS=$as_save_IFS
4880
4881 fi
4882 fi
4883 MAKEINFO=$ac_cv_prog_MAKEINFO
4884 if test -n "$MAKEINFO"; then
4885   { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4886 echo "${ECHO_T}$MAKEINFO" >&6; }
4887 else
4888   { echo "$as_me:$LINENO: result: no" >&5
4889 echo "${ECHO_T}no" >&6; }
4890 fi
4891
4892
4893   test -n "$MAKEINFO" && break
4894 done
4895
4896 if test -z "$MAKEINFO"; then
4897   ac_verc_fail=yes
4898 else
4899   # Found it, now check the version.
4900   { echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
4901 echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6; }
4902   ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4903   case $ac_prog_version in
4904     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4905     4.*)
4906        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4907     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4908
4909   esac
4910   { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4911 echo "${ECHO_T}$ac_prog_version" >&6; }
4912 fi
4913 if test $ac_verc_fail = yes; then
4914   MAKEINFO=: aux_missing="$aux_missing makeinfo"
4915 fi
4916
4917 for ac_prog in sed
4918 do
4919   # Extract the first word of "$ac_prog", so it can be a program name with args.
4920 set dummy $ac_prog; ac_word=$2
4921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4923 if test "${ac_cv_prog_SED+set}" = set; then
4924   echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926   if test -n "$SED"; then
4927   ac_cv_prog_SED="$SED" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932   IFS=$as_save_IFS
4933   test -z "$as_dir" && as_dir=.
4934   for ac_exec_ext in '' $ac_executable_extensions; do
4935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936     ac_cv_prog_SED="$ac_prog"
4937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938     break 2
4939   fi
4940 done
4941 done
4942 IFS=$as_save_IFS
4943
4944 fi
4945 fi
4946 SED=$ac_cv_prog_SED
4947 if test -n "$SED"; then
4948   { echo "$as_me:$LINENO: result: $SED" >&5
4949 echo "${ECHO_T}$SED" >&6; }
4950 else
4951   { echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6; }
4953 fi
4954
4955
4956   test -n "$SED" && break
4957 done
4958
4959 if test -z "$SED"; then
4960   ac_verc_fail=yes
4961 else
4962   # Found it, now check the version.
4963   { echo "$as_me:$LINENO: checking version of $SED" >&5
4964 echo $ECHO_N "checking version of $SED... $ECHO_C" >&6; }
4965   ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
4966   case $ac_prog_version in
4967     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4968     3.0[2-9]*|3.[1-9]*|[4-9]*)
4969        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4970     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4971
4972   esac
4973   { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4974 echo "${ECHO_T}$ac_prog_version" >&6; }
4975 fi
4976 if test $ac_verc_fail = yes; then
4977   SED=: aux_missing="$aux_missing sed"
4978 fi
4979
4980
4981 for ac_prog in autoconf
4982 do
4983   # Extract the first word of "$ac_prog", so it can be a program name with args.
4984 set dummy $ac_prog; ac_word=$2
4985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4987 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
4988   echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990   if test -n "$AUTOCONF"; then
4991   ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4992 else
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4995 do
4996   IFS=$as_save_IFS
4997   test -z "$as_dir" && as_dir=.
4998   for ac_exec_ext in '' $ac_executable_extensions; do
4999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000     ac_cv_prog_AUTOCONF="$ac_prog"
5001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5002     break 2
5003   fi
5004 done
5005 done
5006 IFS=$as_save_IFS
5007
5008 fi
5009 fi
5010 AUTOCONF=$ac_cv_prog_AUTOCONF
5011 if test -n "$AUTOCONF"; then
5012   { echo "$as_me:$LINENO: result: $AUTOCONF" >&5
5013 echo "${ECHO_T}$AUTOCONF" >&6; }
5014 else
5015   { echo "$as_me:$LINENO: result: no" >&5
5016 echo "${ECHO_T}no" >&6; }
5017 fi
5018
5019
5020   test -n "$AUTOCONF" && break
5021 done
5022 test -n "$AUTOCONF" || AUTOCONF="no"
5023
5024 case "x$AUTOCONF" in
5025 xno|x|x:) AUTOCONF=no ;;
5026 *)
5027   { echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5028 echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6; }
5029 if test "${libc_cv_autoconf_works+set}" = set; then
5030   echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5032     if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5033     libc_cv_autoconf_works=yes
5034   else
5035     libc_cv_autoconf_works=no
5036   fi
5037 fi
5038 { echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
5039 echo "${ECHO_T}$libc_cv_autoconf_works" >&6; }
5040   test $libc_cv_autoconf_works = yes || AUTOCONF=no
5041   ;;
5042 esac
5043 if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
5044   # If --without-cvs they probably won't change configure.in, so no complaints.
5045   aux_missing="$aux_missing autoconf"
5046 fi
5047
5048 test -n "$critic_missing" && { { echo "$as_me:$LINENO: error:
5049 *** These critical programs are missing or too old:$critic_missing
5050 *** Check the INSTALL file for required versions." >&5
5051 echo "$as_me: error:
5052 *** These critical programs are missing or too old:$critic_missing
5053 *** Check the INSTALL file for required versions." >&2;}
5054    { (exit 1); exit 1; }; }
5055
5056 test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
5057 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5058 *** some features will be disabled.
5059 *** Check the INSTALL file for required versions." >&5
5060 echo "$as_me: WARNING:
5061 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5062 *** some features will be disabled.
5063 *** Check the INSTALL file for required versions." >&2;}
5064
5065 # if using special system headers, find out the compiler's sekrit
5066 # header directory and add that to the list.  NOTE: Only does the right
5067 # thing on a system that doesn't need fixincludes.  (Not presently a problem.)
5068 if test -n "$sysheaders"; then
5069   ccheaders=`$CC -print-file-name=include`
5070   SYSINCLUDES="-nostdinc -isystem $ccheaders \
5071 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5072   if test -n "$CXX"; then
5073     cxxversion=`$CXX -dumpversion 2>&5` &&
5074     cxxmachine=`$CXX -dumpmachine 2>&5` &&
5075     cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" &&
5076     CXX_SYSINCLUDES="-isystem $cxxheaders \
5077 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5078   fi
5079 fi
5080
5081
5082
5083 # check if ranlib is necessary
5084 { echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
5085 echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6; }
5086 if test "${libc_cv_ranlib_necessary+set}" = set; then
5087   echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089   cat > conftest.c <<EOF
5090 int a;
5091 char b;
5092 void c(void) {}
5093 EOF
5094 $CC $CFLAGS $CPPFLAGS -c conftest.c
5095 $AR cr conftest.a conftest.o
5096 cp conftest.a conftest2.a
5097 $RANLIB conftest.a
5098 if cmp -s conftest.a conftest2.a; then
5099   libc_cv_ranlib_necessary=no
5100 else
5101   libc_cv_ranlib_necessary=yes
5102 fi
5103 rm -rf conftest*
5104 fi
5105 { echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
5106 echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6; }
5107 if test "$libc_cv_ranlib_necessary" = no; then
5108  RANLIB=:
5109 fi
5110
5111 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5112 # since this would lead to problems installing/building glibc.
5113 # LD_LIBRARY_PATH contains the current directory if one of the following
5114 # is true:
5115 # - one of the terminals (":" and ";") is the first or last sign
5116 # - two terminals occur directly after each other
5117 # - the path contains an element with a dot in it
5118 { echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
5119 echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6; }
5120 case ${LD_LIBRARY_PATH} in
5121   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5122     ld_library_path_setting="contains current directory"
5123     ;;
5124   *)
5125     ld_library_path_setting="ok"
5126     ;;
5127 esac
5128 { echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
5129 echo "${ECHO_T}$ld_library_path_setting" >&6; }
5130 if test "$ld_library_path_setting" != "ok"; then
5131 { { echo "$as_me:$LINENO: error:
5132 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5133 *** building glibc. Please change the environment variable
5134 *** and run configure again." >&5
5135 echo "$as_me: error:
5136 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5137 *** building glibc. Please change the environment variable
5138 *** and run configure again." >&2;}
5139    { (exit 1); exit 1; }; }
5140 fi
5141
5142 { echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
5143 echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6; }
5144 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
5145   echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147   if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5148   libc_cv_gcc_static_libgcc=
5149 else
5150   libc_cv_gcc_static_libgcc=-static-libgcc
5151 fi
5152 fi
5153 { echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
5154 echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6; }
5155
5156
5157 # Extract the first word of "bash", so it can be a program name with args.
5158 set dummy bash; ac_word=$2
5159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5161 if test "${ac_cv_path_BASH_SHELL+set}" = set; then
5162   echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164   case $BASH_SHELL in
5165   [\\/]* | ?:[\\/]*)
5166   ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5167   ;;
5168   *)
5169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5171 do
5172   IFS=$as_save_IFS
5173   test -z "$as_dir" && as_dir=.
5174   for ac_exec_ext in '' $ac_executable_extensions; do
5175   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5176     ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5178     break 2
5179   fi
5180 done
5181 done
5182 IFS=$as_save_IFS
5183
5184   test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5185   ;;
5186 esac
5187 fi
5188 BASH_SHELL=$ac_cv_path_BASH_SHELL
5189 if test -n "$BASH_SHELL"; then
5190   { echo "$as_me:$LINENO: result: $BASH_SHELL" >&5
5191 echo "${ECHO_T}$BASH_SHELL" >&6; }
5192 else
5193   { echo "$as_me:$LINENO: result: no" >&5
5194 echo "${ECHO_T}no" >&6; }
5195 fi
5196
5197
5198 if test "$BASH_SHELL" != no &&
5199    $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5200              && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5201   libc_cv_have_bash2=yes
5202 else
5203   libc_cv_have_bash2=no
5204 fi
5205
5206
5207 if test "$BASH_SHELL" = no; then
5208   # Extract the first word of "ksh", so it can be a program name with args.
5209 set dummy ksh; ac_word=$2
5210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5212 if test "${ac_cv_path_KSH+set}" = set; then
5213   echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215   case $KSH in
5216   [\\/]* | ?:[\\/]*)
5217   ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5218   ;;
5219   *)
5220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5222 do
5223   IFS=$as_save_IFS
5224   test -z "$as_dir" && as_dir=.
5225   for ac_exec_ext in '' $ac_executable_extensions; do
5226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227     ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5229     break 2
5230   fi
5231 done
5232 done
5233 IFS=$as_save_IFS
5234
5235   test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5236   ;;
5237 esac
5238 fi
5239 KSH=$ac_cv_path_KSH
5240 if test -n "$KSH"; then
5241   { echo "$as_me:$LINENO: result: $KSH" >&5
5242 echo "${ECHO_T}$KSH" >&6; }
5243 else
5244   { echo "$as_me:$LINENO: result: no" >&5
5245 echo "${ECHO_T}no" >&6; }
5246 fi
5247
5248
5249   if test "$KSH" = no; then
5250     libc_cv_have_ksh=no
5251   else
5252     libc_cv_have_ksh=yes
5253   fi
5254 else
5255   KSH="$BASH_SHELL"
5256
5257   libc_cv_have_ksh=yes
5258 fi
5259
5260
5261 for ac_prog in gawk mawk nawk awk
5262 do
5263   # Extract the first word of "$ac_prog", so it can be a program name with args.
5264 set dummy $ac_prog; ac_word=$2
5265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5267 if test "${ac_cv_prog_AWK+set}" = set; then
5268   echo $ECHO_N "(cached) $ECHO_C" >&6
5269 else
5270   if test -n "$AWK"; then
5271   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5272 else
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5275 do
5276   IFS=$as_save_IFS
5277   test -z "$as_dir" && as_dir=.
5278   for ac_exec_ext in '' $ac_executable_extensions; do
5279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5280     ac_cv_prog_AWK="$ac_prog"
5281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5282     break 2
5283   fi
5284 done
5285 done
5286 IFS=$as_save_IFS
5287
5288 fi
5289 fi
5290 AWK=$ac_cv_prog_AWK
5291 if test -n "$AWK"; then
5292   { echo "$as_me:$LINENO: result: $AWK" >&5
5293 echo "${ECHO_T}$AWK" >&6; }
5294 else
5295   { echo "$as_me:$LINENO: result: no" >&5
5296 echo "${ECHO_T}no" >&6; }
5297 fi
5298
5299
5300   test -n "$AWK" && break
5301 done
5302
5303 # Extract the first word of "perl", so it can be a program name with args.
5304 set dummy perl; ac_word=$2
5305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5307 if test "${ac_cv_path_PERL+set}" = set; then
5308   echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5310   case $PERL in
5311   [\\/]* | ?:[\\/]*)
5312   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5313   ;;
5314   *)
5315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5317 do
5318   IFS=$as_save_IFS
5319   test -z "$as_dir" && as_dir=.
5320   for ac_exec_ext in '' $ac_executable_extensions; do
5321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5324     break 2
5325   fi
5326 done
5327 done
5328 IFS=$as_save_IFS
5329
5330   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5331   ;;
5332 esac
5333 fi
5334 PERL=$ac_cv_path_PERL
5335 if test -n "$PERL"; then
5336   { echo "$as_me:$LINENO: result: $PERL" >&5
5337 echo "${ECHO_T}$PERL" >&6; }
5338 else
5339   { echo "$as_me:$LINENO: result: no" >&5
5340 echo "${ECHO_T}no" >&6; }
5341 fi
5342
5343
5344 if test "$PERL" != no &&
5345    (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5346   PERL=no
5347 fi
5348 # Extract the first word of "install-info", so it can be a program name with args.
5349 set dummy install-info; ac_word=$2
5350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5352 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5353   echo $ECHO_N "(cached) $ECHO_C" >&6
5354 else
5355   case $INSTALL_INFO in
5356   [\\/]* | ?:[\\/]*)
5357   ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5358   ;;
5359   *)
5360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5362 for as_dir in $as_dummy
5363 do
5364   IFS=$as_save_IFS
5365   test -z "$as_dir" && as_dir=.
5366   for ac_exec_ext in '' $ac_executable_extensions; do
5367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368     ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5370     break 2
5371   fi
5372 done
5373 done
5374 IFS=$as_save_IFS
5375
5376   test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5377   ;;
5378 esac
5379 fi
5380 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5381 if test -n "$INSTALL_INFO"; then
5382   { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5383 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5384 else
5385   { echo "$as_me:$LINENO: result: no" >&5
5386 echo "${ECHO_T}no" >&6; }
5387 fi
5388
5389
5390 # Extract the first word of "bison", so it can be a program name with args.
5391 set dummy bison; ac_word=$2
5392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5394 if test "${ac_cv_path_BISON+set}" = set; then
5395   echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397   case $BISON in
5398   [\\/]* | ?:[\\/]*)
5399   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5400   ;;
5401   *)
5402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5404 for as_dir in $as_dummy
5405 do
5406   IFS=$as_save_IFS
5407   test -z "$as_dir" && as_dir=.
5408   for ac_exec_ext in '' $ac_executable_extensions; do
5409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5410     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5412     break 2
5413   fi
5414 done
5415 done
5416 IFS=$as_save_IFS
5417
5418   test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5419   ;;
5420 esac
5421 fi
5422 BISON=$ac_cv_path_BISON
5423 if test -n "$BISON"; then
5424   { echo "$as_me:$LINENO: result: $BISON" >&5
5425 echo "${ECHO_T}$BISON" >&6; }
5426 else
5427   { echo "$as_me:$LINENO: result: no" >&5
5428 echo "${ECHO_T}no" >&6; }
5429 fi
5430
5431
5432
5433 { echo "$as_me:$LINENO: checking for signed size_t type" >&5
5434 echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6; }
5435 if test "${libc_cv_signed_size_t+set}" = set; then
5436   echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438   echo '#include <stddef.h>
5439 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5440 if eval "$ac_cpp conftest.c 2>/dev/null" \
5441 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5442   libc_cv_signed_size_t=no
5443 else
5444   libc_cv_signed_size_t=yes
5445 fi
5446 rm -f conftest*
5447 fi
5448 { echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
5449 echo "${ECHO_T}$libc_cv_signed_size_t" >&6; }
5450 if test $libc_cv_signed_size_t = yes; then
5451     cat >> confdefs.h <<\EOF
5452 #undef __SIZE_TYPE__
5453 #define __SIZE_TYPE__ unsigned
5454 EOF
5455 fi
5456
5457
5458 { echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
5459 echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6; }
5460 if test "${libc_cv_friendly_stddef+set}" = set; then
5461   echo $ECHO_N "(cached) $ECHO_C" >&6
5462 else
5463   cat >conftest.$ac_ext <<_ACEOF
5464 /* confdefs.h.  */
5465 _ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h.  */
5469 #define __need_size_t
5470 #define __need_wchar_t
5471 #include <stddef.h>
5472 #define __need_NULL
5473 #include <stddef.h>
5474 int
5475 main ()
5476 {
5477 size_t size; wchar_t wchar;
5478 #ifdef offsetof
5479 #error stddef.h ignored __need_*
5480 #endif
5481 if (&size == NULL || &wchar == NULL) abort ();
5482   ;
5483   return 0;
5484 }
5485 _ACEOF
5486 rm -f conftest.$ac_objext
5487 if { (ac_try="$ac_compile"
5488 case "(($ac_try" in
5489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490   *) ac_try_echo=$ac_try;;
5491 esac
5492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493   (eval "$ac_compile") 2>conftest.er1
5494   ac_status=$?
5495   grep -v '^ *+' conftest.er1 >conftest.err
5496   rm -f conftest.er1
5497   cat conftest.err >&5
5498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499   (exit $ac_status); } && {
5500          test -z "$ac_c_werror_flag" ||
5501          test ! -s conftest.err
5502        } && test -s conftest.$ac_objext; then
5503   libc_cv_friendly_stddef=yes
5504 else
5505   echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5507
5508         libc_cv_friendly_stddef=no
5509 fi
5510
5511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5512 fi
5513 { echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
5514 echo "${ECHO_T}$libc_cv_friendly_stddef" >&6; }
5515 if test $libc_cv_friendly_stddef = yes; then
5516   config_vars="$config_vars
5517 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5518 fi
5519
5520 { echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
5521 echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6; }
5522 if test "${libc_cv_need_minus_P+set}" = set; then
5523   echo $ECHO_N "(cached) $ECHO_C" >&6
5524 else
5525   cat > conftest.S <<EOF
5526 #include "confdefs.h"
5527 /* Nothing whatsoever.  */
5528 EOF
5529 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5531   (eval $ac_try) 2>&5
5532   ac_status=$?
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); }; }; then
5535   libc_cv_need_minus_P=no
5536 else
5537   libc_cv_need_minus_P=yes
5538 fi
5539 rm -f conftest*
5540 fi
5541 { echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
5542 echo "${ECHO_T}$libc_cv_need_minus_P" >&6; }
5543 if test $libc_cv_need_minus_P = yes; then
5544   config_vars="$config_vars
5545 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5546 fi
5547
5548 { echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
5549 echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6; }
5550 if test "${libc_cv_dot_text+set}" = set; then
5551   echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553   cat > conftest.s <<EOF
5554 .text
5555 EOF
5556 libc_cv_dot_text=
5557 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559   (eval $ac_try) 2>&5
5560   ac_status=$?
5561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562   (exit $ac_status); }; }; then
5563   libc_cv_dot_text=.text
5564 fi
5565 rm -f conftest*
5566 fi
5567
5568 if test -z "$libc_cv_dot_text"; then
5569   { echo "$as_me:$LINENO: result: no" >&5
5570 echo "${ECHO_T}no" >&6; }
5571 else
5572   { echo "$as_me:$LINENO: result: yes" >&5
5573 echo "${ECHO_T}yes" >&6; }
5574 fi
5575
5576 { echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
5577 echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6; }
5578 if test "${libc_cv_asm_global_directive+set}" = set; then
5579   echo $ECHO_N "(cached) $ECHO_C" >&6
5580 else
5581   libc_cv_asm_global_directive=UNKNOWN
5582 for ac_globl in .globl .global .EXPORT; do
5583   cat > conftest.s <<EOF
5584         ${libc_cv_dot_text}
5585         ${ac_globl} foo
5586 foo:
5587 EOF
5588   if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590   (eval $ac_try) 2>&5
5591   ac_status=$?
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); }; }; then
5594     libc_cv_asm_global_directive=${ac_globl}
5595   fi
5596   rm -f conftest*
5597   test $libc_cv_asm_global_directive != UNKNOWN && break
5598 done
5599 fi
5600 { echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
5601 echo "${ECHO_T}$libc_cv_asm_global_directive" >&6; }
5602 if test $libc_cv_asm_global_directive = UNKNOWN; then
5603   { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
5604 echo "$as_me: error: cannot determine asm global directive" >&2;}
5605    { (exit 1); exit 1; }; }
5606 else
5607   cat >>confdefs.h <<_ACEOF
5608 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
5609 _ACEOF
5610
5611 fi
5612
5613 { echo "$as_me:$LINENO: checking for .set assembler directive" >&5
5614 echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6; }
5615 if test "${libc_cv_asm_set_directive+set}" = set; then
5616   echo $ECHO_N "(cached) $ECHO_C" >&6
5617 else
5618   cat > conftest.s <<EOF
5619 ${libc_cv_dot_text}
5620 foo:
5621 .set glibc_conftest_frobozz,foo
5622 $libc_cv_asm_global_directive glibc_conftest_frobozz
5623 EOF
5624 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5625 # (but it doesn't work), so we must do a linking check to be sure.
5626 cat > conftest1.c <<\EOF
5627 extern int glibc_conftest_frobozz;
5628 void _start() { glibc_conftest_frobozz = 1; }
5629 EOF
5630 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5631             -nostartfiles -nostdlib \
5632             -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5633   libc_cv_asm_set_directive=yes
5634 else
5635   libc_cv_asm_set_directive=no
5636 fi
5637 rm -f conftest*
5638 fi
5639 { echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
5640 echo "${ECHO_T}$libc_cv_asm_set_directive" >&6; }
5641 if test $libc_cv_asm_set_directive = yes; then
5642   cat >>confdefs.h <<\_ACEOF
5643 #define HAVE_ASM_SET_DIRECTIVE 1
5644 _ACEOF
5645
5646 fi
5647
5648 { echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
5649 echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6; }
5650 if test "${libc_cv_asm_type_prefix+set}" = set; then
5651   echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5653   libc_cv_asm_type_prefix=no
5654 for ac_try_prefix in '@' '%' '#'; do
5655   cat > conftest.s <<EOF
5656         ${libc_cv_dot_text}
5657         ${libc_cv_asm_global_directive} foo
5658         .type foo, ${ac_try_prefix}object
5659         .size foo, 1
5660 foo:
5661         .byte 1
5662 EOF
5663   if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665   (eval $ac_try) 2>&5
5666   ac_status=$?
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); }; }; then
5669     libc_cv_asm_type_prefix=${ac_try_prefix}
5670   fi
5671   rm -f conftest*
5672   test "x$libc_cv_asm_type_prefix" != xno && break
5673 done
5674 fi
5675 { echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
5676 echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6; }
5677 if test "x$libc_cv_asm_type_prefix" != xno; then
5678   cat >>confdefs.h <<_ACEOF
5679 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
5680 _ACEOF
5681
5682 fi
5683
5684 { echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
5685 echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6; }
5686 if test "${libc_cv_asm_symver_directive+set}" = set; then
5687   echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689   cat > conftest.s <<EOF
5690 ${libc_cv_dot_text}
5691 _sym:
5692 .symver _sym,sym@VERS
5693 EOF
5694 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5695   libc_cv_asm_symver_directive=yes
5696 else
5697   libc_cv_asm_symver_directive=no
5698 fi
5699 rm -f conftest*
5700 fi
5701 { echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
5702 echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6; }
5703 { echo "$as_me:$LINENO: checking for ld --version-script" >&5
5704 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6; }
5705 if test "${libc_cv_ld_version_script_option+set}" = set; then
5706   echo $ECHO_N "(cached) $ECHO_C" >&6
5707 else
5708   if test $libc_cv_asm_symver_directive = yes; then
5709   cat > conftest.s <<EOF
5710 ${libc_cv_dot_text}
5711 _sym:
5712 .symver _sym,sym@VERS
5713 EOF
5714   cat > conftest.map <<EOF
5715 VERS_1 {
5716         global: sym;
5717 };
5718
5719 VERS_2 {
5720         global: sym;
5721 } VERS_1;
5722 EOF
5723   if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5724     if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
5725                                 -o conftest.so conftest.o
5726                                 -nostartfiles -nostdlib
5727                                 -Wl,--version-script,conftest.map
5728                        1>&5'
5729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730   (eval $ac_try) 2>&5
5731   ac_status=$?
5732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733   (exit $ac_status); }; };
5734     then
5735       libc_cv_ld_version_script_option=yes
5736     else
5737       libc_cv_ld_version_script_option=no
5738     fi
5739   else
5740     libc_cv_ld_version_script_option=no
5741   fi
5742 else
5743   libc_cv_ld_version_script_option=no
5744 fi
5745 rm -f conftest*
5746 fi
5747 { echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
5748 echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6; }
5749 if test $shared != no &&
5750    test $libc_cv_asm_symver_directive = yes &&
5751    test $libc_cv_ld_version_script_option = yes &&
5752    test $enable_versioning = yes; then
5753   VERSIONING=yes
5754   cat >>confdefs.h <<\_ACEOF
5755 #define DO_VERSIONING 1
5756 _ACEOF
5757
5758 else
5759   VERSIONING=no
5760 fi
5761
5762
5763 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
5764   echo "\
5765 *** WARNING: You should not compile GNU libc without versioning. Not using
5766 *** versioning will introduce incompatibilities so that old binaries
5767 *** will not run anymore.
5768 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
5769 fi
5770 if test $elf = yes; then
5771   { echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
5772 echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6; }
5773 if test "${libc_cv_asm_previous_directive+set}" = set; then
5774   echo $ECHO_N "(cached) $ECHO_C" >&6
5775 else
5776     cat > conftest.s <<EOF
5777 .section foo_section
5778 .previous
5779 EOF
5780   if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782   (eval $ac_try) 2>&5
5783   ac_status=$?
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); }; }; then
5786     libc_cv_asm_previous_directive=yes
5787   else
5788     libc_cv_asm_previous_directive=no
5789   fi
5790   rm -f conftest*
5791 fi
5792 { echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
5793 echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6; }
5794   if test $libc_cv_asm_previous_directive = yes; then
5795     cat >>confdefs.h <<\_ACEOF
5796 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
5797 _ACEOF
5798
5799   else
5800     { echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
5801 echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6; }
5802 if test "${libc_cv_asm_popsection_directive+set}" = set; then
5803   echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805       cat > conftest.s <<EOF
5806 .pushsection foo_section
5807 .popsection
5808 EOF
5809     if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811   (eval $ac_try) 2>&5
5812   ac_status=$?
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); }; }; then
5815       libc_cv_asm_popsection_directive=yes
5816     else
5817       libc_cv_asm_popsection_directive=no
5818     fi
5819     rm -f conftest*
5820 fi
5821 { echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
5822 echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6; }
5823     if test $libc_cv_asm_popsection_directive = yes; then
5824       cat >>confdefs.h <<\_ACEOF
5825 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
5826 _ACEOF
5827
5828     fi
5829   fi
5830   { echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
5831 echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6; }
5832 if test "${libc_cv_asm_protected_directive+set}" = set; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835     cat > conftest.s <<EOF
5836 .protected foo
5837 foo:
5838 .hidden bar
5839 bar:
5840 EOF
5841   if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843   (eval $ac_try) 2>&5
5844   ac_status=$?
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); }; }; then
5847     libc_cv_asm_protected_directive=yes
5848   else
5849     { { echo "$as_me:$LINENO: error: assembler support for symbol visibility is required" >&5
5850 echo "$as_me: error: assembler support for symbol visibility is required" >&2;}
5851    { (exit 1); exit 1; }; }
5852   fi
5853   rm -f conftest*
5854 fi
5855 { echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
5856 echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6; }
5857
5858   if test $libc_cv_asm_protected_directive = yes; then
5859     { echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
5860 echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6; }
5861 if test "${libc_cv_visibility_attribute+set}" = set; then
5862   echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864   cat > conftest.c <<EOF
5865                   int foo __attribute__ ((visibility ("hidden"))) = 1;
5866                   int bar __attribute__ ((visibility ("protected"))) = 1;
5867 EOF
5868                   libc_cv_visibility_attribute=no
5869                   if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871   (eval $ac_try) 2>&5
5872   ac_status=$?
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); }; }; then
5875                     if grep '\.hidden.*foo' conftest.s >/dev/null; then
5876                       if grep '\.protected.*bar' conftest.s >/dev/null; then
5877                         libc_cv_visibility_attribute=yes
5878                       fi
5879                     fi
5880                   fi
5881                   rm -f conftest.cs
5882
5883 fi
5884 { echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
5885 echo "${ECHO_T}$libc_cv_visibility_attribute" >&6; }
5886     if test $libc_cv_visibility_attribute != yes; then
5887       { { echo "$as_me:$LINENO: error: compiler support for visibility attribute is required" >&5
5888 echo "$as_me: error: compiler support for visibility attribute is required" >&2;}
5889    { (exit 1); exit 1; }; }
5890     fi
5891   fi
5892
5893   if test $libc_cv_visibility_attribute = yes; then
5894     { echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
5895 echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6; }
5896 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
5897   echo $ECHO_N "(cached) $ECHO_C" >&6
5898 else
5899   cat > conftest.c <<EOF
5900                   int foo (int x);
5901                   int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
5902                   int bar (int x) { return x; }
5903 EOF
5904                   libc_cv_broken_visibility_attribute=yes
5905                   if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
5906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907   (eval $ac_try) 2>&5
5908   ac_status=$?
5909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910   (exit $ac_status); }; }; then
5911                     if grep '\.hidden[  _]foo' conftest.s >/dev/null; then
5912                       libc_cv_broken_visibility_attribute=no
5913                     fi
5914                   fi
5915                   rm -f conftest.c conftest.s
5916
5917 fi
5918 { echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
5919 echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6; }
5920     if test $libc_cv_broken_visibility_attribute = yes; then
5921       { { echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
5922 echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
5923    { (exit 1); exit 1; }; }
5924     fi
5925   fi
5926
5927   { echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
5928 echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6; }
5929 if test "${libc_cv_broken_alias_attribute+set}" = set; then
5930   echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5932   cat > conftest.c <<EOF
5933                   extern int foo (int x) __asm ("xyzzy");
5934                   int bar (int x) { return x; }
5935                   extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5936                   extern int dfoo;
5937                   extern __typeof (dfoo) dfoo __asm ("abccb");
5938                   int dfoo = 1;
5939 EOF
5940                   libc_cv_broken_alias_attribute=yes
5941                   if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943   (eval $ac_try) 2>&5
5944   ac_status=$?
5945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946   (exit $ac_status); }; }; then
5947                     if grep 'xyzzy' conftest.s >/dev/null &&
5948                        grep 'abccb' conftest.s >/dev/null; then
5949                       libc_cv_broken_alias_attribute=no
5950                     fi
5951                   fi
5952                   rm -f conftest.c conftest.s
5953
5954 fi
5955 { echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
5956 echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6; }
5957   if test $libc_cv_broken_alias_attribute = yes; then
5958     { { echo "$as_me:$LINENO: error: working alias attribute support required" >&5
5959 echo "$as_me: error: working alias attribute support required" >&2;}
5960    { (exit 1); exit 1; }; }
5961   fi
5962
5963   if test $libc_cv_visibility_attribute = yes; then
5964     { echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
5965 echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6; }
5966 if test "${libc_cv_have_sdata_section+set}" = set; then
5967   echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969   echo "int i;" > conftest.c
5970                   libc_cv_have_sdata_section=no
5971                   if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
5972                      | grep '\.sdata' >/dev/null; then
5973                     libc_cv_have_sdata_section=yes
5974                   fi
5975                   rm -f conftest.c conftest.so
5976
5977 fi
5978 { echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
5979 echo "${ECHO_T}$libc_cv_have_sdata_section" >&6; }
5980     if test $libc_cv_have_sdata_section = yes; then
5981       cat >>confdefs.h <<\_ACEOF
5982 #define HAVE_SDATA_SECTION 1
5983 _ACEOF
5984
5985     fi
5986   fi
5987
5988   { echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
5989 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6; }
5990 if test "${libc_cv_initfini_array+set}" = set; then
5991   echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993     cat > conftest.c <<EOF
5994 int _start (void) { return 0; }
5995 int __start (void) { return 0; }
5996 int foo (void) { return 1; }
5997 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
5998 EOF
5999   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
6000                      -static -nostartfiles -nostdlib 1>&5'
6001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002   (eval $ac_try) 2>&5
6003   ac_status=$?
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); }; }
6006   then
6007     if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
6008       libc_cv_initfini_array=yes
6009     else
6010       libc_cv_initfini_array=no
6011     fi
6012   else
6013     libc_cv_initfini_array=no
6014   fi
6015   rm -f conftest*
6016 fi
6017 { echo "$as_me:$LINENO: result: $libc_cv_initfini_array" >&5
6018 echo "${ECHO_T}$libc_cv_initfini_array" >&6; }
6019   if test $libc_cv_initfini_array != yes; then
6020     { { echo "$as_me:$LINENO: error: Need linker with .init_array/.fini_array support." >&5
6021 echo "$as_me: error: Need linker with .init_array/.fini_array support." >&2;}
6022    { (exit 1); exit 1; }; }
6023   fi
6024
6025   { echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
6026 echo $ECHO_N "checking for libunwind-support in compiler... $ECHO_C" >&6; }
6027 if test "${libc_cv_cc_with_libunwind+set}" = set; then
6028   echo $ECHO_N "(cached) $ECHO_C" >&6
6029 else
6030
6031     cat > conftest.c <<EOF
6032 int main (void) { return 0; }
6033 EOF
6034     if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6035        conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6036       libc_cv_cc_with_libunwind=yes
6037     else
6038       libc_cv_cc_with_libunwind=no
6039     fi
6040     rm -f conftest*
6041 fi
6042 { echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
6043 echo "${ECHO_T}$libc_cv_cc_with_libunwind" >&6; }
6044
6045   if test $libc_cv_cc_with_libunwind = yes; then
6046     cat >>confdefs.h <<\_ACEOF
6047 #define HAVE_CC_WITH_LIBUNWIND 1
6048 _ACEOF
6049
6050   fi
6051
6052   { echo "$as_me:$LINENO: checking for -z nodelete option" >&5
6053 echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6; }
6054 if test "${libc_cv_z_nodelete+set}" = set; then
6055   echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057     cat > conftest.c <<EOF
6058 int _start (void) { return 42; }
6059 EOF
6060   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6061                      -fPIC -shared -o conftest.so conftest.c
6062                      -nostartfiles -nostdlib
6063                      -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065   (eval $ac_try) 2>&5
6066   ac_status=$?
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); }; }
6069   then
6070     libc_cv_z_nodelete=yes
6071   else
6072     { { echo "$as_me:$LINENO: error: linker with -z nodelete support required" >&5
6073 echo "$as_me: error: linker with -z nodelete support required" >&2;}
6074    { (exit 1); exit 1; }; }
6075   fi
6076   rm -f conftest*
6077 fi
6078 { echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
6079 echo "${ECHO_T}$libc_cv_z_nodelete" >&6; }
6080
6081   { echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
6082 echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6; }
6083 if test "${libc_cv_z_nodlopen+set}" = set; then
6084   echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086     cat > conftest.c <<EOF
6087 int _start (void) { return 42; }
6088 EOF
6089   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6090                         -fPIC -shared -o conftest.so conftest.c
6091                         -nostartfiles -nostdlib
6092                         -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094   (eval $ac_try) 2>&5
6095   ac_status=$?
6096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097   (exit $ac_status); }; }
6098   then
6099     libc_cv_z_nodlopen=yes
6100   else
6101     { { echo "$as_me:$LINENO: error: linker with -z nodlopen support required" >&5
6102 echo "$as_me: error: linker with -z nodlopen support required" >&2;}
6103    { (exit 1); exit 1; }; }
6104   fi
6105   rm -f conftest*
6106 fi
6107 { echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
6108 echo "${ECHO_T}$libc_cv_z_nodlopen" >&6; }
6109
6110   { echo "$as_me:$LINENO: checking for -z initfirst option" >&5
6111 echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6; }
6112 if test "${libc_cv_z_initfirst+set}" = set; then
6113   echo $ECHO_N "(cached) $ECHO_C" >&6
6114 else
6115     cat > conftest.c <<EOF
6116 int _start (void) { return 42; }
6117 EOF
6118   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6119                         -fPIC -shared -o conftest.so conftest.c
6120                         -nostartfiles -nostdlib
6121                         -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123   (eval $ac_try) 2>&5
6124   ac_status=$?
6125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126   (exit $ac_status); }; }
6127   then
6128     libc_cv_z_initfirst=yes
6129   else
6130     { { echo "$as_me:$LINENO: error: linker with -z initfirst support required" >&5
6131 echo "$as_me: error: linker with -z initfirst support required" >&2;}
6132    { (exit 1); exit 1; }; }
6133   fi
6134   rm -f conftest*
6135 fi
6136 { echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
6137 echo "${ECHO_T}$libc_cv_z_initfirst" >&6; }
6138
6139   case "$base_machine" in
6140     i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*)
6141       { echo "$as_me:$LINENO: checking for -z relro option" >&5
6142 echo $ECHO_N "checking for -z relro option... $ECHO_C" >&6; }
6143 if test "${libc_cv_z_relro+set}" = set; then
6144   echo $ECHO_N "(cached) $ECHO_C" >&6
6145 else
6146     libc_cv_z_relro=no
6147   if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
6148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149   (eval $ac_try) 2>&5
6150   ac_status=$?
6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); }; }
6153   then
6154     if { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5'
6155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156   (eval $ac_try) 2>&5
6157   ac_status=$?
6158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159   (exit $ac_status); }; }
6160     then
6161       libc_cv_z_relro=yes
6162     fi
6163   fi
6164 fi
6165 { echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
6166 echo "${ECHO_T}$libc_cv_z_relro" >&6; }
6167       if test "$libc_cv_z_relro" = no; then
6168         { { echo "$as_me:$LINENO: error: linker with -z relro support required" >&5
6169 echo "$as_me: error: linker with -z relro support required" >&2;}
6170    { (exit 1); exit 1; }; }
6171       fi
6172       ;;
6173     *) ;;
6174    esac
6175
6176   { echo "$as_me:$LINENO: checking for -Bgroup option" >&5
6177 echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6; }
6178 if test "${libc_cv_Bgroup+set}" = set; then
6179   echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181     cat > conftest.c <<EOF
6182 int _start (void) { return 42; }
6183 EOF
6184   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6185                               -fPIC -shared -o conftest.so conftest.c
6186                               -Wl,-Bgroup -nostdlib 1>&5'
6187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188   (eval $ac_try) 2>&5
6189   ac_status=$?
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); }; }
6192   then
6193     libc_cv_Bgroup=yes
6194   else
6195     libc_cv_Bgroup=no
6196   fi
6197   rm -f conftest*
6198 fi
6199 { echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
6200 echo "${ECHO_T}$libc_cv_Bgroup" >&6; }
6201
6202
6203   { echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
6204 echo $ECHO_N "checking for libgcc_s suffix... $ECHO_C" >&6; }
6205 if test "${libc_cv_libgcc_s_suffix+set}" = set; then
6206   echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208     cat > conftest.c <<EOF
6209 int main (void) { return 0; }
6210 EOF
6211   libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6212                            -fPIC -shared -shared-libgcc -o conftest.so \
6213                            conftest.c -v 2>&1 >/dev/null \
6214                            | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6215   rm -f conftest*
6216 fi
6217 { echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
6218 echo "${ECHO_T}$libc_cv_libgcc_s_suffix" >&6; }
6219
6220
6221   { echo "$as_me:$LINENO: checking for --as-needed option" >&5
6222 echo $ECHO_N "checking for --as-needed option... $ECHO_C" >&6; }
6223 if test "${libc_cv_as_needed+set}" = set; then
6224   echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226     cat > conftest.c <<EOF
6227 int main (void) { return 0; }
6228 EOF
6229   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6230                               -fPIC -shared -o conftest.so conftest.c
6231                               -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6232                               -nostdlib 1>&5'
6233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234   (eval $ac_try) 2>&5
6235   ac_status=$?
6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); }; }
6238   then
6239     libc_cv_as_needed=yes
6240   else
6241     libc_cv_as_needed=no
6242   fi
6243   rm -f conftest*
6244 fi
6245 { echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
6246 echo "${ECHO_T}$libc_cv_as_needed" >&6; }
6247
6248
6249   ASFLAGS_config=
6250   { echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
6251 echo $ECHO_N "checking whether --noexecstack is desirable for .S files... $ECHO_C" >&6; }
6252 if test "${libc_cv_as_noexecstack+set}" = set; then
6253   echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255     cat > conftest.c <<EOF
6256 void foo (void) { }
6257 EOF
6258   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6259                      -S -o conftest.s conftest.c 1>&5'
6260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261   (eval $ac_try) 2>&5
6262   ac_status=$?
6263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264   (exit $ac_status); }; } \
6265      && grep -q .note.GNU-stack conftest.s \
6266      && { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wa,--noexecstack
6267                        -c -o conftest.o conftest.s 1>&5'
6268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269   (eval $ac_try) 2>&5
6270   ac_status=$?
6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272   (exit $ac_status); }; }
6273   then
6274     libc_cv_as_noexecstack=yes
6275   else
6276     libc_cv_as_noexecstack=no
6277   fi
6278   rm -f conftest*
6279 fi
6280 { echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
6281 echo "${ECHO_T}$libc_cv_as_noexecstack" >&6; }
6282   if test $libc_cv_as_noexecstack = yes; then
6283     ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6284   fi
6285
6286
6287   { echo "$as_me:$LINENO: checking for -z combreloc" >&5
6288 echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6; }
6289 if test "${libc_cv_z_combreloc+set}" = set; then
6290   echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292     cat > conftest.c <<EOF
6293 extern int bar (int);
6294 extern int mumble;
6295 int foo (void) { return bar (mumble); }
6296 EOF
6297   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6298                         -fPIC -shared -o conftest.so conftest.c
6299                         -nostdlib -nostartfiles
6300                         -Wl,-z,combreloc 1>&5'
6301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302   (eval $ac_try) 2>&5
6303   ac_status=$?
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); }; }
6306   then
6307     if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6308       libc_cv_z_combreloc=yes
6309     else
6310       libc_cv_z_combreloc=no
6311     fi
6312   else
6313     libc_cv_z_combreloc=no
6314   fi
6315   rm -f conftest*
6316 fi
6317 { echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
6318 echo "${ECHO_T}$libc_cv_z_combreloc" >&6; }
6319   if test "$libc_cv_z_combreloc" = yes; then
6320     cat >>confdefs.h <<\_ACEOF
6321 #define HAVE_Z_COMBRELOC 1
6322 _ACEOF
6323
6324   fi
6325
6326
6327   { echo "$as_me:$LINENO: checking for -z execstack" >&5
6328 echo $ECHO_N "checking for -z execstack... $ECHO_C" >&6; }
6329 if test "${libc_cv_z_execstack+set}" = set; then
6330   echo $ECHO_N "(cached) $ECHO_C" >&6
6331 else
6332     cat > conftest.c <<EOF
6333 int _start (void) { return 42; }
6334 EOF
6335   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6336                               -fPIC -shared -o conftest.so conftest.c
6337                               -Wl,-z,execstack -nostdlib
6338                               1>&5'
6339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340   (eval $ac_try) 2>&5
6341   ac_status=$?
6342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343   (exit $ac_status); }; }
6344   then
6345     libc_cv_z_execstack=yes
6346   else
6347     libc_cv_z_execstack=no
6348   fi
6349   rm -f conftest*
6350 fi
6351 { echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
6352 echo "${ECHO_T}$libc_cv_z_execstack" >&6; }
6353
6354
6355   { echo "$as_me:$LINENO: checking for -fpie" >&5
6356 echo $ECHO_N "checking for -fpie... $ECHO_C" >&6; }
6357 if test "${libc_cv_fpie+set}" = set; then
6358   echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360     cat > conftest.c <<EOF
6361 int foo;
6362 main () { return 0;}
6363 EOF
6364   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6365                               -o conftest conftest.c 1>&5'
6366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367   (eval $ac_try) 2>&5
6368   ac_status=$?
6369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370   (exit $ac_status); }; }
6371   then
6372     libc_cv_fpie=yes
6373   else
6374     libc_cv_fpie=no
6375   fi
6376   rm -f conftest*
6377 fi
6378 { echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
6379 echo "${ECHO_T}$libc_cv_fpie" >&6; }
6380
6381
6382
6383   { echo "$as_me:$LINENO: checking for --hash-style option" >&5
6384 echo $ECHO_N "checking for --hash-style option... $ECHO_C" >&6; }
6385 if test "${libc_cv_hashstyle+set}" = set; then
6386   echo $ECHO_N "(cached) $ECHO_C" >&6
6387 else
6388     cat > conftest.c <<EOF
6389 int _start (void) { return 42; }
6390 EOF
6391   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6392                               -fPIC -shared -o conftest.so conftest.c
6393                               -Wl,--hash-style=both -nostdlib 1>&5'
6394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395   (eval $ac_try) 2>&5
6396   ac_status=$?
6397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398   (exit $ac_status); }; }
6399   then
6400     libc_cv_hashstyle=yes
6401   else
6402     libc_cv_hashstyle=no
6403   fi
6404   rm -f conftest*
6405 fi
6406 { echo "$as_me:$LINENO: result: $libc_cv_hashstyle" >&5
6407 echo "${ECHO_T}$libc_cv_hashstyle" >&6; }
6408
6409 fi
6410
6411 { echo "$as_me:$LINENO: checking for -fno-toplevel-reorder" >&5
6412 echo $ECHO_N "checking for -fno-toplevel-reorder... $ECHO_C" >&6; }
6413 if test "${libc_cv_fno_toplevel_reorder+set}" = set; then
6414   echo $ECHO_N "(cached) $ECHO_C" >&6
6415 else
6416   cat > conftest.c <<EOF
6417 int foo;
6418 EOF
6419 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder
6420                             conftest.c 1>&5'
6421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422   (eval $ac_try) 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); }; }
6426 then
6427   libc_cv_fno_toplevel_reorder=yes
6428 else
6429   libc_cv_fno_toplevel_reorder=no
6430 fi
6431 rm -f conftest*
6432 fi
6433 { echo "$as_me:$LINENO: result: $libc_cv_fno_toplevel_reorder" >&5
6434 echo "${ECHO_T}$libc_cv_fno_toplevel_reorder" >&6; }
6435 if test $libc_cv_fno_toplevel_reorder = yes; then
6436   fno_unit_at_a_time=-fno-toplevel-reorder
6437 else
6438   fno_unit_at_a_time=-fno-unit-at-a-time
6439 fi
6440
6441
6442 { echo "$as_me:$LINENO: checking for -fstack-protector" >&5
6443 echo $ECHO_N "checking for -fstack-protector... $ECHO_C" >&6; }
6444 if test "${libc_cv_ssp+set}" = set; then
6445   echo $ECHO_N "(cached) $ECHO_C" >&6
6446 else
6447   cat > conftest.c <<EOF
6448 int foo;
6449 main () { return 0;}
6450 EOF
6451 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -fstack-protector
6452                             -o conftest conftest.c 1>&5'
6453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454   (eval $ac_try) 2>&5
6455   ac_status=$?
6456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457   (exit $ac_status); }; }
6458 then
6459   libc_cv_ssp=yes
6460 else
6461   libc_cv_ssp=no
6462 fi
6463 rm -f conftest*
6464 fi
6465 { echo "$as_me:$LINENO: result: $libc_cv_ssp" >&5
6466 echo "${ECHO_T}$libc_cv_ssp" >&6; }
6467
6468
6469 { echo "$as_me:$LINENO: checking for -fgnu89-inline" >&5
6470 echo $ECHO_N "checking for -fgnu89-inline... $ECHO_C" >&6; }
6471 if test "${libc_cv_gnu89_inline+set}" = set; then
6472   echo $ECHO_N "(cached) $ECHO_C" >&6
6473 else
6474   cat > conftest.c <<EOF
6475 int foo;
6476 #ifdef __GNUC_GNU_INLINE__
6477 main () { return 0;}
6478 #else
6479 #error
6480 #endif
6481 EOF
6482 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6483                             -o conftest.s conftest.c 1>&5'
6484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485   (eval $ac_try) 2>&5
6486   ac_status=$?
6487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488   (exit $ac_status); }; }
6489 then
6490   libc_cv_gnu89_inline=yes
6491 else
6492   libc_cv_gnu89_inline=no
6493 fi
6494 rm -f conftest*
6495 fi
6496 { echo "$as_me:$LINENO: result: $libc_cv_gnu89_inline" >&5
6497 echo "${ECHO_T}$libc_cv_gnu89_inline" >&6; }
6498 if test $libc_cv_gnu89_inline = yes; then
6499   libc_cv_gnu89_inline=-fgnu89-inline
6500 else
6501   libc_cv_gnu89_inline=
6502 fi
6503
6504
6505 if test $elf != yes; then
6506   { echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
6507 echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6; }
6508 if test "${libc_cv_have_initfini+set}" = set; then
6509   echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6511   cat >conftest.$ac_ext <<_ACEOF
6512 /* confdefs.h.  */
6513 _ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h.  */
6517
6518 int
6519 main ()
6520 {
6521 asm (".section .init");
6522                                     asm (".section .fini");
6523                                     asm ("${libc_cv_dot_text}");
6524   ;
6525   return 0;
6526 }
6527 _ACEOF
6528 rm -f conftest.$ac_objext
6529 if { (ac_try="$ac_compile"
6530 case "(($ac_try" in
6531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6532   *) ac_try_echo=$ac_try;;
6533 esac
6534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6535   (eval "$ac_compile") 2>conftest.er1
6536   ac_status=$?
6537   grep -v '^ *+' conftest.er1 >conftest.err
6538   rm -f conftest.er1
6539   cat conftest.err >&5
6540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541   (exit $ac_status); } && {
6542          test -z "$ac_c_werror_flag" ||
6543          test ! -s conftest.err
6544        } && test -s conftest.$ac_objext; then
6545   libc_cv_have_initfini=yes
6546 else
6547   echo "$as_me: failed program was:" >&5
6548 sed 's/^/| /' conftest.$ac_ext >&5
6549
6550         libc_cv_have_initfini=no
6551 fi
6552
6553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 fi
6555 { echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
6556 echo "${ECHO_T}$libc_cv_have_initfini" >&6; }
6557     if test $libc_cv_have_initfini = yes; then
6558     cat >>confdefs.h <<\_ACEOF
6559 #define HAVE_INITFINI 1
6560 _ACEOF
6561
6562   fi
6563 fi
6564
6565 if test $elf = yes; then
6566   { echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
6567 echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6; }
6568 if test "${libc_cv_have_section_quotes+set}" = set; then
6569   echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571   cat > conftest.c <<EOF
6572                   static const int foo
6573                   __attribute__ ((section ("bar"))) = 1;
6574 EOF
6575                   if ${CC-cc} -S conftest.c -o conftest.s; then
6576                     if grep '\.section.*"bar"' conftest.s >/dev/null; then
6577                       libc_cv_have_section_quotes=yes
6578                     else
6579                       libc_cv_have_section_quotes=no
6580                     fi
6581                   else
6582                     libc_cv_have_section_quotes=unknown
6583                   fi
6584                   rm -f conftest.cs
6585
6586 fi
6587 { echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
6588 echo "${ECHO_T}$libc_cv_have_section_quotes" >&6; }
6589   if test $libc_cv_have_section_quotes = yes; then
6590     cat >>confdefs.h <<\_ACEOF
6591 #define HAVE_SECTION_QUOTES 1
6592 _ACEOF
6593
6594   fi
6595 fi
6596
6597
6598
6599 if test $elf = yes; then
6600   libc_cv_asm_underscores=no
6601 else
6602   if test $ac_cv_prog_cc_works = yes; then
6603     { echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6604 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6; }
6605 if test "${libc_cv_asm_underscores+set}" = set; then
6606   echo $ECHO_N "(cached) $ECHO_C" >&6
6607 else
6608   cat >conftest.$ac_ext <<_ACEOF
6609 /* confdefs.h.  */
6610 _ACEOF
6611 cat confdefs.h >>conftest.$ac_ext
6612 cat >>conftest.$ac_ext <<_ACEOF
6613 /* end confdefs.h.  */
6614 asm ("_glibc_foobar:");
6615 int
6616 main ()
6617 {
6618 glibc_foobar ();
6619   ;
6620   return 0;
6621 }
6622 _ACEOF
6623 rm -f conftest.$ac_objext conftest$ac_exeext
6624 if { (ac_try="$ac_link"
6625 case "(($ac_try" in
6626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6627   *) ac_try_echo=$ac_try;;
6628 esac
6629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6630   (eval "$ac_link") 2>conftest.er1
6631   ac_status=$?
6632   grep -v '^ *+' conftest.er1 >conftest.err
6633   rm -f conftest.er1
6634   cat conftest.err >&5
6635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636   (exit $ac_status); } && {
6637          test -z "$ac_c_werror_flag" ||
6638          test ! -s conftest.err
6639        } && test -s conftest$ac_exeext &&
6640        $as_test_x conftest$ac_exeext; then
6641   libc_cv_asm_underscores=yes
6642 else
6643   echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6645
6646         libc_cv_asm_underscores=no
6647 fi
6648
6649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6650       conftest$ac_exeext conftest.$ac_ext
6651 fi
6652 { echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
6653 echo "${ECHO_T}$libc_cv_asm_underscores" >&6; }
6654   else
6655     { echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6656 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6; }
6657 if test "${libc_cv_asm_underscores+set}" = set; then
6658   echo $ECHO_N "(cached) $ECHO_C" >&6
6659 else
6660   cat > conftest.$ac_ext <<EOF
6661 #line $LINENO "configure"
6662 #include "confdefs.h"
6663 void underscore_test(void) {
6664 return; }
6665 EOF
6666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6667   (eval $ac_compile) 2>&5
6668   ac_status=$?
6669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670   (exit $ac_status); }; then
6671   if grep _underscore_test conftest* >/dev/null; then
6672     rm -f conftest*
6673     libc_cv_asm_underscores=yes
6674   else
6675     rm -f conftest*
6676     libc_cv_asm_underscores=no
6677   fi
6678 else
6679   echo "configure: failed program was:" >&5
6680   cat conftest.$ac_ext >&5
6681   rm -f conftest*
6682   libc_cv_asm_underscores=no
6683 fi
6684 rm -f conftest*
6685 fi
6686 { echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
6687 echo "${ECHO_T}$libc_cv_asm_underscores" >&6; }
6688   fi
6689 fi
6690 if test $libc_cv_asm_underscores = no; then
6691   cat >>confdefs.h <<\_ACEOF
6692 #define NO_UNDERSCORES 1
6693 _ACEOF
6694
6695 fi
6696
6697 if test $elf = yes; then
6698   libc_cv_weak_symbols=yes
6699 fi
6700
6701 { echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
6702 echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6; }
6703 if test "${libc_cv_asm_weak_directive+set}" = set; then
6704   echo $ECHO_N "(cached) $ECHO_C" >&6
6705 else
6706   cat > conftest.s <<EOF
6707 ${libc_cv_dot_text}
6708 ${libc_cv_asm_global_directive} foo
6709 foo:
6710 .weak foo
6711 .weak bar; bar = foo
6712 EOF
6713 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715   (eval $ac_try) 2>&5
6716   ac_status=$?
6717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718   (exit $ac_status); }; }; then
6719   libc_cv_asm_weak_directive=yes
6720 else
6721   libc_cv_asm_weak_directive=no
6722 fi
6723 rm -f conftest*
6724 fi
6725 { echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
6726 echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6; }
6727
6728 if test $libc_cv_asm_weak_directive = no; then
6729   { echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
6730 echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6; }
6731 if test "${libc_cv_asm_weakext_directive+set}" = set; then
6732   echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734   cat > conftest.s <<EOF
6735 ${libc_cv_dot_text}
6736 ${libc_cv_asm_global_directive} foo
6737 foo:
6738 .weakext bar foo
6739 .weakext baz
6740 ${libc_cv_asm_global_directive} baz
6741 baz:
6742 EOF
6743   if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745   (eval $ac_try) 2>&5
6746   ac_status=$?
6747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748   (exit $ac_status); }; }; then
6749     libc_cv_asm_weakext_directive=yes
6750   else
6751     libc_cv_asm_weakext_directive=no
6752   fi
6753   rm -f conftest*
6754 fi
6755 { echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
6756 echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6; }
6757
6758 fi # no .weak
6759
6760 if test $libc_cv_asm_weak_directive = yes; then
6761   cat >>confdefs.h <<\_ACEOF
6762 #define HAVE_ASM_WEAK_DIRECTIVE 1
6763 _ACEOF
6764
6765 elif test $libc_cv_asm_weakext_directive = yes; then
6766   cat >>confdefs.h <<\_ACEOF
6767 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
6768 _ACEOF
6769
6770 fi
6771
6772 { echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
6773 echo $ECHO_N "checking whether CFI directives are supported... $ECHO_C" >&6; }
6774 if test "${libc_cv_asm_cfi_directives+set}" = set; then
6775   echo $ECHO_N "(cached) $ECHO_C" >&6
6776 else
6777   case $machine in
6778   sparc/sparc64*) cfi_offset=2047;;
6779   *) cfi_offset=0;;
6780 esac
6781 cat > conftest.s <<EOF
6782         .text
6783         .type   func,%function
6784 func:
6785         .cfi_startproc
6786         .cfi_remember_state
6787         .cfi_rel_offset 1, $cfi_offset
6788         .cfi_endproc
6789 EOF
6790 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6792   (eval $ac_try) 2>&5
6793   ac_status=$?
6794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795   (exit $ac_status); }; }; then
6796   libc_cv_asm_cfi_directives=yes
6797 else
6798   libc_cv_asm_cfi_directives=no
6799 fi
6800 rm -f conftest*
6801 fi
6802 { echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
6803 echo "${ECHO_T}$libc_cv_asm_cfi_directives" >&6; }
6804 if test $libc_cv_asm_cfi_directives = yes; then
6805   cat >>confdefs.h <<\_ACEOF
6806 #define HAVE_ASM_CFI_DIRECTIVES 1
6807 _ACEOF
6808
6809 fi
6810
6811 { echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
6812 echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6; }
6813 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
6814   echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816   cat > conftest.c <<\EOF
6817 _start () {}
6818 int __eh_pc;
6819 __throw () {}
6820 EOF
6821 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6822                             -nostdlib -nostartfiles -Wl,--no-whole-archive
6823                             -o conftest conftest.c 1>&5'
6824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825   (eval $ac_try) 2>&5
6826   ac_status=$?
6827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828   (exit $ac_status); }; }; then
6829   libc_cv_ld_no_whole_archive=yes
6830 else
6831   libc_cv_ld_no_whole_archive=no
6832 fi
6833 rm -f conftest*
6834 fi
6835 { echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
6836 echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6; }
6837 if test $libc_cv_ld_no_whole_archive = yes; then
6838   no_whole_archive=-Wl,--no-whole-archive
6839 fi
6840
6841 { echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
6842 echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6; }
6843 if test "${libc_cv_gcc_exceptions+set}" = set; then
6844   echo $ECHO_N "(cached) $ECHO_C" >&6
6845 else
6846   cat > conftest.c <<\EOF
6847 _start () {}
6848 int __eh_pc;
6849 __throw () {}
6850 EOF
6851 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6852                             -nostdlib -nostartfiles -fexceptions
6853                             -o conftest conftest.c 1>&5'
6854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855   (eval $ac_try) 2>&5
6856   ac_status=$?
6857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858   (exit $ac_status); }; }; then
6859   libc_cv_gcc_exceptions=yes
6860 else
6861   libc_cv_gcc_exceptions=no
6862 fi
6863 rm -f conftest*
6864 fi
6865 { echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
6866 echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6; }
6867 if test $libc_cv_gcc_exceptions = yes; then
6868   exceptions=-fexceptions
6869 fi
6870
6871 if test "$host_cpu" = powerpc ; then
6872 # Check for a bug present in at least versions 2.8.x of GCC
6873 # and versions 1.0.x of EGCS.
6874 { echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
6875 echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6; }
6876 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
6877   echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879   cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h.  */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h.  */
6885 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
6886 int
6887 main ()
6888 {
6889
6890   ;
6891   return 0;
6892 }
6893 _ACEOF
6894 rm -f conftest.$ac_objext
6895 if { (ac_try="$ac_compile"
6896 case "(($ac_try" in
6897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6898   *) ac_try_echo=$ac_try;;
6899 esac
6900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6901   (eval "$ac_compile") 2>conftest.er1
6902   ac_status=$?
6903   grep -v '^ *+' conftest.er1 >conftest.err
6904   rm -f conftest.er1
6905   cat conftest.err >&5
6906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907   (exit $ac_status); } && {
6908          test -z "$ac_c_werror_flag" ||
6909          test ! -s conftest.err
6910        } && test -s conftest.$ac_objext; then
6911   libc_cv_c_asmcr0_bug='no'
6912 else
6913   echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6915
6916         libc_cv_c_asmcr0_bug='yes'
6917 fi
6918
6919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6920 fi
6921 { echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
6922 echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6; }
6923 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
6924   cat >>confdefs.h <<\_ACEOF
6925 #define BROKEN_PPC_ASM_CR0 1
6926 _ACEOF
6927
6928 fi
6929 fi
6930
6931 { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
6932 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
6933 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
6934   echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936   cat > conftest.c <<EOF
6937 #line $LINENO "configure"
6938 int foo (int a)
6939 {
6940   a = __builtin_expect (a, 10);
6941   return a == 10 ? 0 : 1;
6942 }
6943 EOF
6944 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
6945                             -o conftest conftest.c -lgcc >&5'
6946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947   (eval $ac_try) 2>&5
6948   ac_status=$?
6949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950   (exit $ac_status); }; }; then
6951   libc_cv_gcc_builtin_expect=yes
6952 else
6953   libc_cv_gcc_builtin_expect=no
6954 fi
6955 rm -f conftest*
6956 fi
6957 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
6958 echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6; }
6959 if test "$libc_cv_gcc_builtin_expect" = yes; then
6960   cat >>confdefs.h <<\_ACEOF
6961 #define HAVE_BUILTIN_EXPECT 1
6962 _ACEOF
6963
6964 fi
6965
6966 { echo "$as_me:$LINENO: checking for __builtin_memset" >&5
6967 echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6; }
6968 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
6969   echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971   cat > conftest.c <<\EOF
6972 void zero (void *x)
6973 {
6974   __builtin_memset (x, 0, 1000);
6975 }
6976 EOF
6977 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
6978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979   (eval $ac_try) 2>&5
6980   ac_status=$?
6981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982   (exit $ac_status); }; };
6983 then
6984   libc_cv_gcc_builtin_memset=no
6985 else
6986   libc_cv_gcc_builtin_memset=yes
6987 fi
6988 rm -f conftest*
6989 fi
6990 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
6991 echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6; }
6992 if test "$libc_cv_gcc_builtin_memset" = yes ; then
6993   cat >>confdefs.h <<\_ACEOF
6994 #define HAVE_BUILTIN_MEMSET 1
6995 _ACEOF
6996
6997 fi
6998
6999 { echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
7000 echo $ECHO_N "checking for redirection of built-in functions... $ECHO_C" >&6; }
7001 if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
7002   echo $ECHO_N "(cached) $ECHO_C" >&6
7003 else
7004   cat > conftest.c <<\EOF
7005 extern char *strstr (const char *, const char *) __asm ("my_strstr");
7006 char *foo (const char *a, const char *b)
7007 {
7008   return __builtin_strstr (a, b);
7009 }
7010 EOF
7011 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
7012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013   (eval $ac_try) 2>&5
7014   ac_status=$?
7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); }; };
7017 then
7018   libc_cv_gcc_builtin_redirection=yes
7019 else
7020   libc_cv_gcc_builtin_redirection=no
7021 fi
7022 rm -f conftest*
7023 fi
7024 { echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
7025 echo "${ECHO_T}$libc_cv_gcc_builtin_redirection" >&6; }
7026 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
7027   cat >>confdefs.h <<\_ACEOF
7028 #define HAVE_BUILTIN_REDIRECTION 1
7029 _ACEOF
7030
7031 fi
7032
7033 if test "x$use__thread" != xno; then
7034   { echo "$as_me:$LINENO: checking for __thread" >&5
7035 echo $ECHO_N "checking for __thread... $ECHO_C" >&6; }
7036 if test "${libc_cv_gcc___thread+set}" = set; then
7037   echo $ECHO_N "(cached) $ECHO_C" >&6
7038 else
7039   cat > conftest.c <<\EOF
7040 __thread int a = 42;
7041 EOF
7042   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
7043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044   (eval $ac_try) 2>&5
7045   ac_status=$?
7046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047   (exit $ac_status); }; }; then
7048     libc_cv_gcc___thread=yes
7049   else
7050     libc_cv_gcc___thread=no
7051   fi
7052   rm -f conftest*
7053 fi
7054 { echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
7055 echo "${ECHO_T}$libc_cv_gcc___thread" >&6; }
7056   if test "$libc_cv_gcc___thread" = yes; then
7057     cat >>confdefs.h <<\_ACEOF
7058 #define HAVE___THREAD 1
7059 _ACEOF
7060
7061   fi
7062 else
7063   libc_cv_gcc___thread=no
7064 fi
7065
7066 if test "$libc_cv_gcc___thread" = yes; then
7067     { echo "$as_me:$LINENO: checking for tls_model attribute" >&5
7068 echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6; }
7069 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
7070   echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072     cat > conftest.c <<\EOF
7073 extern __thread int a __attribute__((tls_model ("initial-exec")));
7074 EOF
7075   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
7076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077   (eval $ac_try) 2>&5
7078   ac_status=$?
7079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080   (exit $ac_status); }; }; then
7081     libc_cv_gcc_tls_model_attr=yes
7082   else
7083     libc_cv_gcc_tls_model_attr=no
7084   fi
7085   rm -f conftest*
7086 fi
7087 { echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
7088 echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6; }
7089   if test "$libc_cv_gcc_tls_model_attr" = yes; then
7090     cat >>confdefs.h <<\_ACEOF
7091 #define HAVE_TLS_MODEL_ATTRIBUTE 1
7092 _ACEOF
7093
7094   fi
7095 fi
7096
7097 { echo "$as_me:$LINENO: checking for libgd" >&5
7098 echo $ECHO_N "checking for libgd... $ECHO_C" >&6; }
7099 if test "$with_gd" != "no"; then
7100   old_CFLAGS="$CFLAGS"
7101   CFLAGS="$CFLAGS $libgd_include"
7102   old_LDFLAGS="$LDFLAGS"
7103   LDFLAGS="$LDFLAGS $libgd_ldflags"
7104   old_LIBS="$LIBS"
7105   LIBS="$LIBS -lgd -lpng -lz -lm"
7106   cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h.  */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h.  */
7112 #include <gd.h>
7113 int
7114 main ()
7115 {
7116 gdImagePng (0, 0)
7117   ;
7118   return 0;
7119 }
7120 _ACEOF
7121 rm -f conftest.$ac_objext conftest$ac_exeext
7122 if { (ac_try="$ac_link"
7123 case "(($ac_try" in
7124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7125   *) ac_try_echo=$ac_try;;
7126 esac
7127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7128   (eval "$ac_link") 2>conftest.er1
7129   ac_status=$?
7130   grep -v '^ *+' conftest.er1 >conftest.err
7131   rm -f conftest.er1
7132   cat conftest.err >&5
7133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134   (exit $ac_status); } && {
7135          test -z "$ac_c_werror_flag" ||
7136          test ! -s conftest.err
7137        } && test -s conftest$ac_exeext &&
7138        $as_test_x conftest$ac_exeext; then
7139   LIBGD=yes
7140 else
7141   echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7143
7144         LIBGD=no
7145 fi
7146
7147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7148       conftest$ac_exeext conftest.$ac_ext
7149   CFLAGS="$old_CFLAGS"
7150   LDFLAGS="$old_LDFLAGS"
7151   LIBS="$old_LIBS"
7152 else
7153   LIBGD=no
7154 fi
7155 { echo "$as_me:$LINENO: result: $LIBGD" >&5
7156 echo "${ECHO_T}$LIBGD" >&6; }
7157
7158
7159 # SELinux detection
7160 if test x$with_selinux = xno ; then
7161   have_selinux=no;
7162 else
7163   # See if we have the SELinux library
7164   { echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
7165 echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
7166 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
7167   echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169   ac_check_lib_save_LIBS=$LIBS
7170 LIBS="-lselinux  $LIBS"
7171 cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h.  */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h.  */
7177
7178 /* Override any GCC internal prototype to avoid an error.
7179    Use char because int might match the return type of a GCC
7180    builtin and then its argument prototype would still apply.  */
7181 #ifdef __cplusplus
7182 extern "C"
7183 #endif
7184 char is_selinux_enabled ();
7185 int
7186 main ()
7187 {
7188 return is_selinux_enabled ();
7189   ;
7190   return 0;
7191 }
7192 _ACEOF
7193 rm -f conftest.$ac_objext conftest$ac_exeext
7194 if { (ac_try="$ac_link"
7195 case "(($ac_try" in
7196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7197   *) ac_try_echo=$ac_try;;
7198 esac
7199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7200   (eval "$ac_link") 2>conftest.er1
7201   ac_status=$?
7202   grep -v '^ *+' conftest.er1 >conftest.err
7203   rm -f conftest.er1
7204   cat conftest.err >&5
7205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206   (exit $ac_status); } && {
7207          test -z "$ac_c_werror_flag" ||
7208          test ! -s conftest.err
7209        } && test -s conftest$ac_exeext &&
7210        $as_test_x conftest$ac_exeext; then
7211   ac_cv_lib_selinux_is_selinux_enabled=yes
7212 else
7213   echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7215
7216         ac_cv_lib_selinux_is_selinux_enabled=no
7217 fi
7218
7219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7220       conftest$ac_exeext conftest.$ac_ext
7221 LIBS=$ac_check_lib_save_LIBS
7222 fi
7223 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7224 echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7225 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
7226   have_selinux=yes
7227 else
7228   have_selinux=no
7229 fi
7230
7231   # See if we have the SELinux header with the NSCD permissions in it.
7232   if test x$have_selinux = xyes ; then
7233     { echo "$as_me:$LINENO: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7234 echo $ECHO_N "checking for NSCD Flask permissions in selinux/av_permissions.h... $ECHO_C" >&6; }
7235     cat >conftest.$ac_ext <<_ACEOF
7236 /* confdefs.h.  */
7237 _ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h.  */
7241 #include <selinux/av_permissions.h>
7242 int
7243 main ()
7244 {
7245 #ifdef NSCD__SHMEMHOST
7246                      return 0;
7247                      #else
7248                      #error NSCD__SHMEMHOST not defined
7249                      #endif
7250   ;
7251   return 0;
7252 }
7253 _ACEOF
7254 rm -f conftest.$ac_objext
7255 if { (ac_try="$ac_compile"
7256 case "(($ac_try" in
7257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7258   *) ac_try_echo=$ac_try;;
7259 esac
7260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7261   (eval "$ac_compile") 2>conftest.er1
7262   ac_status=$?
7263   grep -v '^ *+' conftest.er1 >conftest.err
7264   rm -f conftest.er1
7265   cat conftest.err >&5
7266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267   (exit $ac_status); } && {
7268          test -z "$ac_c_werror_flag" ||
7269          test ! -s conftest.err
7270        } && test -s conftest.$ac_objext; then
7271   have_selinux=yes
7272 else
7273   echo "$as_me: failed program was:" >&5
7274 sed 's/^/| /' conftest.$ac_ext >&5
7275
7276         have_selinux=no
7277 fi
7278
7279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7280     { echo "$as_me:$LINENO: result: $have_selinux" >&5
7281 echo "${ECHO_T}$have_selinux" >&6; }
7282   fi
7283
7284   if test x$with_selinux = xyes ; then
7285     if test x$have_selinux = xno ; then
7286       { { echo "$as_me:$LINENO: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&5
7287 echo "$as_me: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&2;}
7288    { (exit 1); exit 1; }; }
7289     fi
7290   fi
7291 fi
7292 # Check if we're building with SELinux support.
7293 if test "x$have_selinux" = xyes; then
7294
7295 cat >>confdefs.h <<\_ACEOF
7296 #define HAVE_SELINUX 1
7297 _ACEOF
7298
7299
7300   # See if we have the libaudit library
7301   { echo "$as_me:$LINENO: checking for audit_log_user_avc_message in -laudit" >&5
7302 echo $ECHO_N "checking for audit_log_user_avc_message in -laudit... $ECHO_C" >&6; }
7303 if test "${ac_cv_lib_audit_audit_log_user_avc_message+set}" = set; then
7304   echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306   ac_check_lib_save_LIBS=$LIBS
7307 LIBS="-laudit  $LIBS"
7308 cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h.  */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h.  */
7314
7315 /* Override any GCC internal prototype to avoid an error.
7316    Use char because int might match the return type of a GCC
7317    builtin and then its argument prototype would still apply.  */
7318 #ifdef __cplusplus
7319 extern "C"
7320 #endif
7321 char audit_log_user_avc_message ();
7322 int
7323 main ()
7324 {
7325 return audit_log_user_avc_message ();
7326   ;
7327   return 0;
7328 }
7329 _ACEOF
7330 rm -f conftest.$ac_objext conftest$ac_exeext
7331 if { (ac_try="$ac_link"
7332 case "(($ac_try" in
7333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334   *) ac_try_echo=$ac_try;;
7335 esac
7336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7337   (eval "$ac_link") 2>conftest.er1
7338   ac_status=$?
7339   grep -v '^ *+' conftest.er1 >conftest.err
7340   rm -f conftest.er1
7341   cat conftest.err >&5
7342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343   (exit $ac_status); } && {
7344          test -z "$ac_c_werror_flag" ||
7345          test ! -s conftest.err
7346        } && test -s conftest$ac_exeext &&
7347        $as_test_x conftest$ac_exeext; then
7348   ac_cv_lib_audit_audit_log_user_avc_message=yes
7349 else
7350   echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7352
7353         ac_cv_lib_audit_audit_log_user_avc_message=no
7354 fi
7355
7356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7357       conftest$ac_exeext conftest.$ac_ext
7358 LIBS=$ac_check_lib_save_LIBS
7359 fi
7360 { echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7361 echo "${ECHO_T}$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7362 if test $ac_cv_lib_audit_audit_log_user_avc_message = yes; then
7363   have_libaudit=yes
7364 else
7365   have_libaudit=no
7366 fi
7367
7368   if test "x$have_libaudit" = xyes; then
7369
7370 cat >>confdefs.h <<\_ACEOF
7371 #define HAVE_LIBAUDIT 1
7372 _ACEOF
7373
7374   fi
7375
7376
7377   # See if we have the libcap library
7378   { echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
7379 echo $ECHO_N "checking for cap_init in -lcap... $ECHO_C" >&6; }
7380 if test "${ac_cv_lib_cap_cap_init+set}" = set; then
7381   echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383   ac_check_lib_save_LIBS=$LIBS
7384 LIBS="-lcap  $LIBS"
7385 cat >conftest.$ac_ext <<_ACEOF
7386 /* confdefs.h.  */
7387 _ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h.  */
7391
7392 /* Override any GCC internal prototype to avoid an error.
7393    Use char because int might match the return type of a GCC
7394    builtin and then its argument prototype would still apply.  */
7395 #ifdef __cplusplus
7396 extern "C"
7397 #endif
7398 char cap_init ();
7399 int
7400 main ()
7401 {
7402 return cap_init ();
7403   ;
7404   return 0;
7405 }
7406 _ACEOF
7407 rm -f conftest.$ac_objext conftest$ac_exeext
7408 if { (ac_try="$ac_link"
7409 case "(($ac_try" in
7410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7411   *) ac_try_echo=$ac_try;;
7412 esac
7413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7414   (eval "$ac_link") 2>conftest.er1
7415   ac_status=$?
7416   grep -v '^ *+' conftest.er1 >conftest.err
7417   rm -f conftest.er1
7418   cat conftest.err >&5
7419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420   (exit $ac_status); } && {
7421          test -z "$ac_c_werror_flag" ||
7422          test ! -s conftest.err
7423        } && test -s conftest$ac_exeext &&
7424        $as_test_x conftest$ac_exeext; then
7425   ac_cv_lib_cap_cap_init=yes
7426 else
7427   echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7429
7430         ac_cv_lib_cap_cap_init=no
7431 fi
7432
7433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7434       conftest$ac_exeext conftest.$ac_ext
7435 LIBS=$ac_check_lib_save_LIBS
7436 fi
7437 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
7438 echo "${ECHO_T}$ac_cv_lib_cap_cap_init" >&6; }
7439 if test $ac_cv_lib_cap_cap_init = yes; then
7440   have_libcap=yes
7441 else
7442   have_libcap=no
7443 fi
7444
7445   if test "x$have_libcap" = xyes; then
7446
7447 cat >>confdefs.h <<\_ACEOF
7448 #define HAVE_LIBCAP 1
7449 _ACEOF
7450
7451   fi
7452
7453 fi
7454
7455
7456
7457 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7458 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7459 if test "${ac_cv_path_GREP+set}" = set; then
7460   echo $ECHO_N "(cached) $ECHO_C" >&6
7461 else
7462   # Extract the first word of "grep ggrep" to use in msg output
7463 if test -z "$GREP"; then
7464 set dummy grep ggrep; ac_prog_name=$2
7465 if test "${ac_cv_path_GREP+set}" = set; then
7466   echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468   ac_path_GREP_found=false
7469 # Loop through the user's path and test for each of PROGNAME-LIST
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7472 do
7473   IFS=$as_save_IFS
7474   test -z "$as_dir" && as_dir=.
7475   for ac_prog in grep ggrep; do
7476   for ac_exec_ext in '' $ac_executable_extensions; do
7477     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7478     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7479     # Check for GNU ac_path_GREP and select it if it is found.
7480   # Check for GNU $ac_path_GREP
7481 case `"$ac_path_GREP" --version 2>&1` in
7482 *GNU*)
7483   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7484 *)
7485   ac_count=0
7486   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7487   while :
7488   do
7489     cat "conftest.in" "conftest.in" >"conftest.tmp"
7490     mv "conftest.tmp" "conftest.in"
7491     cp "conftest.in" "conftest.nl"
7492     echo 'GREP' >> "conftest.nl"
7493     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7494     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7495     ac_count=`expr $ac_count + 1`
7496     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7497       # Best one so far, save it but keep looking for a better one
7498       ac_cv_path_GREP="$ac_path_GREP"
7499       ac_path_GREP_max=$ac_count
7500     fi
7501     # 10*(2^10) chars as input seems more than enough
7502     test $ac_count -gt 10 && break
7503   done
7504   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7505 esac
7506
7507
7508     $ac_path_GREP_found && break 3
7509   done
7510 done
7511
7512 done
7513 IFS=$as_save_IFS
7514
7515
7516 fi
7517
7518 GREP="$ac_cv_path_GREP"
7519 if test -z "$GREP"; then
7520   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7521 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7522    { (exit 1); exit 1; }; }
7523 fi
7524
7525 else
7526   ac_cv_path_GREP=$GREP
7527 fi
7528
7529
7530 fi
7531 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7532 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7533  GREP="$ac_cv_path_GREP"
7534
7535
7536 { echo "$as_me:$LINENO: checking for egrep" >&5
7537 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7538 if test "${ac_cv_path_EGREP+set}" = set; then
7539   echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7542    then ac_cv_path_EGREP="$GREP -E"
7543    else
7544      # Extract the first word of "egrep" to use in msg output
7545 if test -z "$EGREP"; then
7546 set dummy egrep; ac_prog_name=$2
7547 if test "${ac_cv_path_EGREP+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   ac_path_EGREP_found=false
7551 # Loop through the user's path and test for each of PROGNAME-LIST
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7554 do
7555   IFS=$as_save_IFS
7556   test -z "$as_dir" && as_dir=.
7557   for ac_prog in egrep; do
7558   for ac_exec_ext in '' $ac_executable_extensions; do
7559     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7560     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7561     # Check for GNU ac_path_EGREP and select it if it is found.
7562   # Check for GNU $ac_path_EGREP
7563 case `"$ac_path_EGREP" --version 2>&1` in
7564 *GNU*)
7565   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7566 *)
7567   ac_count=0
7568   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7569   while :
7570   do
7571     cat "conftest.in" "conftest.in" >"conftest.tmp"
7572     mv "conftest.tmp" "conftest.in"
7573     cp "conftest.in" "conftest.nl"
7574     echo 'EGREP' >> "conftest.nl"
7575     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7576     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7577     ac_count=`expr $ac_count + 1`
7578     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7579       # Best one so far, save it but keep looking for a better one
7580       ac_cv_path_EGREP="$ac_path_EGREP"
7581       ac_path_EGREP_max=$ac_count
7582     fi
7583     # 10*(2^10) chars as input seems more than enough
7584     test $ac_count -gt 10 && break
7585   done
7586   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7587 esac
7588
7589
7590     $ac_path_EGREP_found && break 3
7591   done
7592 done
7593
7594 done
7595 IFS=$as_save_IFS
7596
7597
7598 fi
7599
7600 EGREP="$ac_cv_path_EGREP"
7601 if test -z "$EGREP"; then
7602   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7603 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7604    { (exit 1); exit 1; }; }
7605 fi
7606
7607 else
7608   ac_cv_path_EGREP=$EGREP
7609 fi
7610
7611
7612    fi
7613 fi
7614 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7615 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7616  EGREP="$ac_cv_path_EGREP"
7617
7618
7619 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7620 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7621 if test "${ac_cv_header_stdc+set}" = set; then
7622   echo $ECHO_N "(cached) $ECHO_C" >&6
7623 else
7624   cat >conftest.$ac_ext <<_ACEOF
7625 /* confdefs.h.  */
7626 _ACEOF
7627 cat confdefs.h >>conftest.$ac_ext
7628 cat >>conftest.$ac_ext <<_ACEOF
7629 /* end confdefs.h.  */
7630 #include <stdlib.h>
7631 #include <stdarg.h>
7632 #include <string.h>
7633 #include <float.h>
7634
7635 int
7636 main ()
7637 {
7638
7639   ;
7640   return 0;
7641 }
7642 _ACEOF
7643 rm -f conftest.$ac_objext
7644 if { (ac_try="$ac_compile"
7645 case "(($ac_try" in
7646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647   *) ac_try_echo=$ac_try;;
7648 esac
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650   (eval "$ac_compile") 2>conftest.er1
7651   ac_status=$?
7652   grep -v '^ *+' conftest.er1 >conftest.err
7653   rm -f conftest.er1
7654   cat conftest.err >&5
7655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656   (exit $ac_status); } && {
7657          test -z "$ac_c_werror_flag" ||
7658          test ! -s conftest.err
7659        } && test -s conftest.$ac_objext; then
7660   ac_cv_header_stdc=yes
7661 else
7662   echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7664
7665         ac_cv_header_stdc=no
7666 fi
7667
7668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7669
7670 if test $ac_cv_header_stdc = yes; then
7671   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7672   cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h.  */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h.  */
7678 #include <string.h>
7679
7680 _ACEOF
7681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7682   $EGREP "memchr" >/dev/null 2>&1; then
7683   :
7684 else
7685   ac_cv_header_stdc=no
7686 fi
7687 rm -f conftest*
7688
7689 fi
7690
7691 if test $ac_cv_header_stdc = yes; then
7692   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7693   cat >conftest.$ac_ext <<_ACEOF
7694 /* confdefs.h.  */
7695 _ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h.  */
7699 #include <stdlib.h>
7700
7701 _ACEOF
7702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7703   $EGREP "free" >/dev/null 2>&1; then
7704   :
7705 else
7706   ac_cv_header_stdc=no
7707 fi
7708 rm -f conftest*
7709
7710 fi
7711
7712 if test $ac_cv_header_stdc = yes; then
7713   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7714   if test "$cross_compiling" = yes; then
7715   :
7716 else
7717   cat >conftest.$ac_ext <<_ACEOF
7718 /* confdefs.h.  */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h.  */
7723 #include <ctype.h>
7724 #include <stdlib.h>
7725 #if ((' ' & 0x0FF) == 0x020)
7726 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7727 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7728 #else
7729 # define ISLOWER(c) \
7730                    (('a' <= (c) && (c) <= 'i') \
7731                      || ('j' <= (c) && (c) <= 'r') \
7732                      || ('s' <= (c) && (c) <= 'z'))
7733 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7734 #endif
7735
7736 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7737 int
7738 main ()
7739 {
7740   int i;
7741   for (i = 0; i < 256; i++)
7742     if (XOR (islower (i), ISLOWER (i))
7743         || toupper (i) != TOUPPER (i))
7744       return 2;
7745   return 0;
7746 }
7747 _ACEOF
7748 rm -f conftest$ac_exeext
7749 if { (ac_try="$ac_link"
7750 case "(($ac_try" in
7751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7752   *) ac_try_echo=$ac_try;;
7753 esac
7754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7755   (eval "$ac_link") 2>&5
7756   ac_status=$?
7757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7759   { (case "(($ac_try" in
7760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761   *) ac_try_echo=$ac_try;;
7762 esac
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764   (eval "$ac_try") 2>&5
7765   ac_status=$?
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); }; }; then
7768   :
7769 else
7770   echo "$as_me: program exited with status $ac_status" >&5
7771 echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.$ac_ext >&5
7773
7774 ( exit $ac_status )
7775 ac_cv_header_stdc=no
7776 fi
7777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7778 fi
7779
7780
7781 fi
7782 fi
7783 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7784 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7785 if test $ac_cv_header_stdc = yes; then
7786
7787 cat >>confdefs.h <<\_ACEOF
7788 #define STDC_HEADERS 1
7789 _ACEOF
7790
7791 fi
7792
7793 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7804                   inttypes.h stdint.h unistd.h
7805 do
7806 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7810   echo $ECHO_N "(cached) $ECHO_C" >&6
7811 else
7812   cat >conftest.$ac_ext <<_ACEOF
7813 /* confdefs.h.  */
7814 _ACEOF
7815 cat confdefs.h >>conftest.$ac_ext
7816 cat >>conftest.$ac_ext <<_ACEOF
7817 /* end confdefs.h.  */
7818 $ac_includes_default
7819
7820 #include <$ac_header>
7821 _ACEOF
7822 rm -f conftest.$ac_objext
7823 if { (ac_try="$ac_compile"
7824 case "(($ac_try" in
7825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826   *) ac_try_echo=$ac_try;;
7827 esac
7828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7829   (eval "$ac_compile") 2>conftest.er1
7830   ac_status=$?
7831   grep -v '^ *+' conftest.er1 >conftest.err
7832   rm -f conftest.er1
7833   cat conftest.err >&5
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); } && {
7836          test -z "$ac_c_werror_flag" ||
7837          test ! -s conftest.err
7838        } && test -s conftest.$ac_objext; then
7839   eval "$as_ac_Header=yes"
7840 else
7841   echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7843
7844         eval "$as_ac_Header=no"
7845 fi
7846
7847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7848 fi
7849 ac_res=`eval echo '${'$as_ac_Header'}'`
7850                { echo "$as_me:$LINENO: result: $ac_res" >&5
7851 echo "${ECHO_T}$ac_res" >&6; }
7852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7853   cat >>confdefs.h <<_ACEOF
7854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7855 _ACEOF
7856
7857 fi
7858
7859 done
7860
7861
7862 { echo "$as_me:$LINENO: checking for long double" >&5
7863 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
7864 if test "${ac_cv_type_long_double+set}" = set; then
7865   echo $ECHO_N "(cached) $ECHO_C" >&6
7866 else
7867   cat >conftest.$ac_ext <<_ACEOF
7868 /* confdefs.h.  */
7869 _ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h.  */
7873 $ac_includes_default
7874 typedef long double ac__type_new_;
7875 int
7876 main ()
7877 {
7878 if ((ac__type_new_ *) 0)
7879   return 0;
7880 if (sizeof (ac__type_new_))
7881   return 0;
7882   ;
7883   return 0;
7884 }
7885 _ACEOF
7886 rm -f conftest.$ac_objext
7887 if { (ac_try="$ac_compile"
7888 case "(($ac_try" in
7889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890   *) ac_try_echo=$ac_try;;
7891 esac
7892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7893   (eval "$ac_compile") 2>conftest.er1
7894   ac_status=$?
7895   grep -v '^ *+' conftest.er1 >conftest.err
7896   rm -f conftest.er1
7897   cat conftest.err >&5
7898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899   (exit $ac_status); } && {
7900          test -z "$ac_c_werror_flag" ||
7901          test ! -s conftest.err
7902        } && test -s conftest.$ac_objext; then
7903   ac_cv_type_long_double=yes
7904 else
7905   echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7907
7908         ac_cv_type_long_double=no
7909 fi
7910
7911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7912 fi
7913 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
7914 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
7915
7916 # The cast to long int works around a bug in the HP C Compiler
7917 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7918 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7919 # This bug is HP SR number 8606223364.
7920 { echo "$as_me:$LINENO: checking size of long double" >&5
7921 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
7922 if test "${ac_cv_sizeof_long_double+set}" = set; then
7923   echo $ECHO_N "(cached) $ECHO_C" >&6
7924 else
7925   if test "$cross_compiling" = yes; then
7926   # Depending upon the size, compute the lo and hi bounds.
7927 cat >conftest.$ac_ext <<_ACEOF
7928 /* confdefs.h.  */
7929 _ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h.  */
7933 $ac_includes_default
7934    typedef long double ac__type_sizeof_;
7935 int
7936 main ()
7937 {
7938 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7939 test_array [0] = 0
7940
7941   ;
7942   return 0;
7943 }
7944 _ACEOF
7945 rm -f conftest.$ac_objext
7946 if { (ac_try="$ac_compile"
7947 case "(($ac_try" in
7948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949   *) ac_try_echo=$ac_try;;
7950 esac
7951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952   (eval "$ac_compile") 2>conftest.er1
7953   ac_status=$?
7954   grep -v '^ *+' conftest.er1 >conftest.err
7955   rm -f conftest.er1
7956   cat conftest.err >&5
7957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958   (exit $ac_status); } && {
7959          test -z "$ac_c_werror_flag" ||
7960          test ! -s conftest.err
7961        } && test -s conftest.$ac_objext; then
7962   ac_lo=0 ac_mid=0
7963   while :; do
7964     cat >conftest.$ac_ext <<_ACEOF
7965 /* confdefs.h.  */
7966 _ACEOF
7967 cat confdefs.h >>conftest.$ac_ext
7968 cat >>conftest.$ac_ext <<_ACEOF
7969 /* end confdefs.h.  */
7970 $ac_includes_default
7971    typedef long double ac__type_sizeof_;
7972 int
7973 main ()
7974 {
7975 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7976 test_array [0] = 0
7977
7978   ;
7979   return 0;
7980 }
7981 _ACEOF
7982 rm -f conftest.$ac_objext
7983 if { (ac_try="$ac_compile"
7984 case "(($ac_try" in
7985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986   *) ac_try_echo=$ac_try;;
7987 esac
7988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989   (eval "$ac_compile") 2>conftest.er1
7990   ac_status=$?
7991   grep -v '^ *+' conftest.er1 >conftest.err
7992   rm -f conftest.er1
7993   cat conftest.err >&5
7994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995   (exit $ac_status); } && {
7996          test -z "$ac_c_werror_flag" ||
7997          test ! -s conftest.err
7998        } && test -s conftest.$ac_objext; then
7999   ac_hi=$ac_mid; break
8000 else
8001   echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.$ac_ext >&5
8003
8004         ac_lo=`expr $ac_mid + 1`
8005                         if test $ac_lo -le $ac_mid; then
8006                           ac_lo= ac_hi=
8007                           break
8008                         fi
8009                         ac_mid=`expr 2 '*' $ac_mid + 1`
8010 fi
8011
8012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013   done
8014 else
8015   echo "$as_me: failed program was:" >&5
8016 sed 's/^/| /' conftest.$ac_ext >&5
8017
8018         cat >conftest.$ac_ext <<_ACEOF
8019 /* confdefs.h.  */
8020 _ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h.  */
8024 $ac_includes_default
8025    typedef long double ac__type_sizeof_;
8026 int
8027 main ()
8028 {
8029 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8030 test_array [0] = 0
8031
8032   ;
8033   return 0;
8034 }
8035 _ACEOF
8036 rm -f conftest.$ac_objext
8037 if { (ac_try="$ac_compile"
8038 case "(($ac_try" in
8039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8040   *) ac_try_echo=$ac_try;;
8041 esac
8042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8043   (eval "$ac_compile") 2>conftest.er1
8044   ac_status=$?
8045   grep -v '^ *+' conftest.er1 >conftest.err
8046   rm -f conftest.er1
8047   cat conftest.err >&5
8048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049   (exit $ac_status); } && {
8050          test -z "$ac_c_werror_flag" ||
8051          test ! -s conftest.err
8052        } && test -s conftest.$ac_objext; then
8053   ac_hi=-1 ac_mid=-1
8054   while :; do
8055     cat >conftest.$ac_ext <<_ACEOF
8056 /* confdefs.h.  */
8057 _ACEOF
8058 cat confdefs.h >>conftest.$ac_ext
8059 cat >>conftest.$ac_ext <<_ACEOF
8060 /* end confdefs.h.  */
8061 $ac_includes_default
8062    typedef long double ac__type_sizeof_;
8063 int
8064 main ()
8065 {
8066 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8067 test_array [0] = 0
8068
8069   ;
8070   return 0;
8071 }
8072 _ACEOF
8073 rm -f conftest.$ac_objext
8074 if { (ac_try="$ac_compile"
8075 case "(($ac_try" in
8076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077   *) ac_try_echo=$ac_try;;
8078 esac
8079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8080   (eval "$ac_compile") 2>conftest.er1
8081   ac_status=$?
8082   grep -v '^ *+' conftest.er1 >conftest.err
8083   rm -f conftest.er1
8084   cat conftest.err >&5
8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); } && {
8087          test -z "$ac_c_werror_flag" ||
8088          test ! -s conftest.err
8089        } && test -s conftest.$ac_objext; then
8090   ac_lo=$ac_mid; break
8091 else
8092   echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8094
8095         ac_hi=`expr '(' $ac_mid ')' - 1`
8096                         if test $ac_mid -le $ac_hi; then
8097                           ac_lo= ac_hi=
8098                           break
8099                         fi
8100                         ac_mid=`expr 2 '*' $ac_mid`
8101 fi
8102
8103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8104   done
8105 else
8106   echo "$as_me: failed program was:" >&5
8107 sed 's/^/| /' conftest.$ac_ext >&5
8108
8109         ac_lo= ac_hi=
8110 fi
8111
8112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113 fi
8114
8115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116 # Binary search between lo and hi bounds.
8117 while test "x$ac_lo" != "x$ac_hi"; do
8118   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8119   cat >conftest.$ac_ext <<_ACEOF
8120 /* confdefs.h.  */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h.  */
8125 $ac_includes_default
8126    typedef long double ac__type_sizeof_;
8127 int
8128 main ()
8129 {
8130 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8131 test_array [0] = 0
8132
8133   ;
8134   return 0;
8135 }
8136 _ACEOF
8137 rm -f conftest.$ac_objext
8138 if { (ac_try="$ac_compile"
8139 case "(($ac_try" in
8140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141   *) ac_try_echo=$ac_try;;
8142 esac
8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144   (eval "$ac_compile") 2>conftest.er1
8145   ac_status=$?
8146   grep -v '^ *+' conftest.er1 >conftest.err
8147   rm -f conftest.er1
8148   cat conftest.err >&5
8149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150   (exit $ac_status); } && {
8151          test -z "$ac_c_werror_flag" ||
8152          test ! -s conftest.err
8153        } && test -s conftest.$ac_objext; then
8154   ac_hi=$ac_mid
8155 else
8156   echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.$ac_ext >&5
8158
8159         ac_lo=`expr '(' $ac_mid ')' + 1`
8160 fi
8161
8162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8163 done
8164 case $ac_lo in
8165 ?*) ac_cv_sizeof_long_double=$ac_lo;;
8166 '') if test "$ac_cv_type_long_double" = yes; then
8167      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8168 See \`config.log' for more details." >&5
8169 echo "$as_me: error: cannot compute sizeof (long double)
8170 See \`config.log' for more details." >&2;}
8171    { (exit 77); exit 77; }; }
8172    else
8173      ac_cv_sizeof_long_double=0
8174    fi ;;
8175 esac
8176 else
8177   cat >conftest.$ac_ext <<_ACEOF
8178 /* confdefs.h.  */
8179 _ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h.  */
8183 $ac_includes_default
8184    typedef long double ac__type_sizeof_;
8185 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8186 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8187 #include <stdio.h>
8188 #include <stdlib.h>
8189 int
8190 main ()
8191 {
8192
8193   FILE *f = fopen ("conftest.val", "w");
8194   if (! f)
8195     return 1;
8196   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8197     {
8198       long int i = longval ();
8199       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8200         return 1;
8201       fprintf (f, "%ld\n", i);
8202     }
8203   else
8204     {
8205       unsigned long int i = ulongval ();
8206       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8207         return 1;
8208       fprintf (f, "%lu\n", i);
8209     }
8210   return ferror (f) || fclose (f) != 0;
8211
8212   ;
8213   return 0;
8214 }
8215 _ACEOF
8216 rm -f conftest$ac_exeext
8217 if { (ac_try="$ac_link"
8218 case "(($ac_try" in
8219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220   *) ac_try_echo=$ac_try;;
8221 esac
8222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223   (eval "$ac_link") 2>&5
8224   ac_status=$?
8225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8227   { (case "(($ac_try" in
8228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229   *) ac_try_echo=$ac_try;;
8230 esac
8231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232   (eval "$ac_try") 2>&5
8233   ac_status=$?
8234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235   (exit $ac_status); }; }; then
8236   ac_cv_sizeof_long_double=`cat conftest.val`
8237 else
8238   echo "$as_me: program exited with status $ac_status" >&5
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8241
8242 ( exit $ac_status )
8243 if test "$ac_cv_type_long_double" = yes; then
8244      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8245 See \`config.log' for more details." >&5
8246 echo "$as_me: error: cannot compute sizeof (long double)
8247 See \`config.log' for more details." >&2;}
8248    { (exit 77); exit 77; }; }
8249    else
8250      ac_cv_sizeof_long_double=0
8251    fi
8252 fi
8253 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8254 fi
8255 rm -f conftest.val
8256 fi
8257 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
8258 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
8259
8260
8261
8262 cat >>confdefs.h <<_ACEOF
8263 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8264 _ACEOF
8265
8266
8267 sizeof_long_double=$ac_cv_sizeof_long_double
8268
8269
8270 ### End of automated tests.
8271 ### Now run sysdeps configure fragments.
8272
8273 # They also can set these variables.
8274 use_ldconfig=no
8275 ldd_rewrite_script=no
8276 libc_cv_sysconfdir=$sysconfdir
8277 libc_cv_gcc_unwind_find_fde=no
8278 libc_cv_idn=no
8279
8280 # Iterate over all the sysdep directories we will use, running their
8281 # configure fragments, and looking for a uname implementation.
8282 uname=
8283 for dir in $sysnames; do
8284   case $dir in
8285     /*) dest=$dir ;;
8286     *)  dest=$srcdir/$dir ;;
8287   esac
8288   if test -r $dest/configure; then
8289     { echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
8290 echo "${ECHO_T}running configure fragment for $dir" >&6; }
8291     . $dest/configure
8292   fi
8293
8294   if test -z "$uname"; then
8295     if test -r $dest/uname.c ||
8296        test -r $dest/uname.S ||
8297        { test -r $dest/syscalls.list &&
8298          grep '^uname[  ]' $dest/syscalls.list >/dev/null; }; then
8299       uname=$dir
8300     fi
8301   fi
8302 done
8303
8304 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
8305   cat >>confdefs.h <<\_ACEOF
8306 #define EXPORT_UNWIND_FIND_FDE 1
8307 _ACEOF
8308
8309 fi
8310
8311
8312 # If we will use the generic uname implementation, we must figure out what
8313 # it will say by examining the system, and write the results in config-name.h.
8314 if test "$uname" = "sysdeps/generic"; then
8315
8316   uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
8317   if test $uname_sysname != $config_os; then
8318     config_release=`echo $config_os | sed s/$uname_sysname//`
8319   fi
8320
8321   { echo "$as_me:$LINENO: checking OS release for uname" >&5
8322 echo $ECHO_N "checking OS release for uname... $ECHO_C" >&6; }
8323 if test "${libc_cv_uname_release+set}" = set; then
8324   echo $ECHO_N "(cached) $ECHO_C" >&6
8325 else
8326       if test -r /vmunix; then
8327       kernel_id=`strings /vmunix | grep UNIX`
8328     elif test -r /dynix; then
8329       kernel_id=`strings /dynix | grep DYNIX`
8330     else
8331       kernel_id=
8332     fi
8333
8334   kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
8335   if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
8336          != x$config_release; then
8337     # The configuration release is a substring of the kernel release.
8338     libc_cv_uname_release=$kernel_release
8339   elif test x$config_release != x; then
8340     libc_cv_uname_release=$config_release
8341   elif test x$kernel_release != x; then
8342     libc_cv_uname_release=$kernel_release
8343   else
8344     libc_cv_uname_release=unknown
8345   fi
8346 fi
8347 { echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
8348 echo "${ECHO_T}$libc_cv_uname_release" >&6; }
8349   uname_release="$libc_cv_uname_release"
8350
8351   { echo "$as_me:$LINENO: checking OS version for uname" >&5
8352 echo $ECHO_N "checking OS version for uname... $ECHO_C" >&6; }
8353 if test "${libc_cv_uname_version+set}" = set; then
8354   echo $ECHO_N "(cached) $ECHO_C" >&6
8355 else
8356       if test -r /vmunix; then
8357       kernel_id=`strings /vmunix | grep UNIX`
8358     elif test -r /dynix; then
8359       kernel_id=`strings /dynix | grep DYNIX`
8360     else
8361       kernel_id=
8362     fi
8363
8364   kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
8365   if test -n "$kernel_version"; then
8366     libc_cv_uname_version="$kernel_version"
8367   else
8368     libc_cv_uname_version=unknown
8369   fi
8370 fi
8371 { echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
8372 echo "${ECHO_T}$libc_cv_uname_version" >&6; }
8373   uname_version="$libc_cv_uname_version"
8374
8375     config_uname=config-name.h:config-name.in
8376 else
8377   # For non-generic uname, we don't need to create config-name.h at all.
8378   config_uname=
8379 fi
8380
8381 cat >>confdefs.h <<\_ACEOF
8382 #define USE_IN_LIBIO 1
8383 _ACEOF
8384
8385
8386 # Test for old glibc 2.0.x headers so that they can be removed properly
8387 # Search only in includedir.
8388 { echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
8389 echo $ECHO_N "checking for old glibc 2.0.x headers... $ECHO_C" >&6; }
8390 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
8391 then
8392   old_glibc_headers=yes
8393 else
8394   old_glibc_headers=no
8395 fi
8396 { echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
8397 echo "${ECHO_T}$old_glibc_headers" >&6; }
8398 if test ${old_glibc_headers} = yes; then
8399   { echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
8400 echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
8401   { echo "$as_me:$LINENO: WARNING: *** be removed." >&5
8402 echo "$as_me: WARNING: *** be removed." >&2;}
8403 fi
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416 if test $elf = yes; then
8417   cat >>confdefs.h <<\_ACEOF
8418 #define HAVE_ELF 1
8419 _ACEOF
8420
8421 fi
8422 if test $xcoff = yes; then
8423   cat >>confdefs.h <<\_ACEOF
8424 #define HAVE_XCOFF 1
8425 _ACEOF
8426
8427 fi
8428
8429
8430
8431 if test $shared = default; then
8432   shared=$elf
8433 fi
8434
8435 { echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
8436 echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6; }
8437 if test "${pic_default+set}" = set; then
8438   echo $ECHO_N "(cached) $ECHO_C" >&6
8439 else
8440   pic_default=yes
8441 cat > conftest.c <<EOF
8442 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
8443 # error PIC is default.
8444 #endif
8445 EOF
8446 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
8447   pic_default=no
8448 fi
8449 rm -f conftest.*
8450 fi
8451 { echo "$as_me:$LINENO: result: $pic_default" >&5
8452 echo "${ECHO_T}$pic_default" >&6; }
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
8466   config_makefile=
8467 else
8468   config_makefile=Makefile
8469 fi
8470
8471 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
8472 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8473
8474
8475
8476 ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
8477
8478 ac_config_commands="$ac_config_commands default"
8479
8480 cat >confcache <<\_ACEOF
8481 # This file is a shell script that caches the results of configure
8482 # tests run on this system so they can be shared between configure
8483 # scripts and configure runs, see configure's option --config-cache.
8484 # It is not useful on other systems.  If it contains results you don't
8485 # want to keep, you may remove or edit it.
8486 #
8487 # config.status only pays attention to the cache file if you give it
8488 # the --recheck option to rerun configure.
8489 #
8490 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8491 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8492 # following values.
8493
8494 _ACEOF
8495
8496 # The following way of writing the cache mishandles newlines in values,
8497 # but we know of no workaround that is simple, portable, and efficient.
8498 # So, we kill variables containing newlines.
8499 # Ultrix sh set writes to stderr and can't be redirected directly,
8500 # and sets the high bit in the cache file unless we assign to the vars.
8501 (
8502   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8503     eval ac_val=\$$ac_var
8504     case $ac_val in #(
8505     *${as_nl}*)
8506       case $ac_var in #(
8507       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8508 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8509       esac
8510       case $ac_var in #(
8511       _ | IFS | as_nl) ;; #(
8512       *) $as_unset $ac_var ;;
8513       esac ;;
8514     esac
8515   done
8516
8517   (set) 2>&1 |
8518     case $as_nl`(ac_space=' '; set) 2>&1` in #(
8519     *${as_nl}ac_space=\ *)
8520       # `set' does not quote correctly, so add quotes (double-quote
8521       # substitution turns \\\\ into \\, and sed turns \\ into \).
8522       sed -n \
8523         "s/'/'\\\\''/g;
8524           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8525       ;; #(
8526     *)
8527       # `set' quotes correctly as required by POSIX, so do not add quotes.
8528       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8529       ;;
8530     esac |
8531     sort
8532 ) |
8533   sed '
8534      /^ac_cv_env_/b end
8535      t clear
8536      :clear
8537      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8538      t end
8539      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8540      :end' >>confcache
8541 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8542   if test -w "$cache_file"; then
8543     test "x$cache_file" != "x/dev/null" &&
8544       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8545 echo "$as_me: updating cache $cache_file" >&6;}
8546     cat confcache >$cache_file
8547   else
8548     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8549 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8550   fi
8551 fi
8552 rm -f confcache
8553
8554 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8555 # Let make expand exec_prefix.
8556 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8557
8558 DEFS=-DHAVE_CONFIG_H
8559
8560 ac_libobjs=
8561 ac_ltlibobjs=
8562 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8563   # 1. Remove the extension, and $U if already installed.
8564   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8565   ac_i=`echo "$ac_i" | sed "$ac_script"`
8566   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8567   #    will be set to the directory where LIBOBJS objects are built.
8568   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8569   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8570 done
8571 LIBOBJS=$ac_libobjs
8572
8573 LTLIBOBJS=$ac_ltlibobjs
8574
8575
8576
8577 : ${CONFIG_STATUS=./config.status}
8578 ac_clean_files_save=$ac_clean_files
8579 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8580 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8581 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8582 cat >$CONFIG_STATUS <<_ACEOF
8583 #! $SHELL
8584 # Generated by $as_me.
8585 # Run this file to recreate the current configuration.
8586 # Compiler output produced by configure, useful for debugging
8587 # configure, is in config.log if it exists.
8588
8589 debug=false
8590 ac_cs_recheck=false
8591 ac_cs_silent=false
8592 SHELL=\${CONFIG_SHELL-$SHELL}
8593 _ACEOF
8594
8595 cat >>$CONFIG_STATUS <<\_ACEOF
8596 ## --------------------- ##
8597 ## M4sh Initialization.  ##
8598 ## --------------------- ##
8599
8600 # Be more Bourne compatible
8601 DUALCASE=1; export DUALCASE # for MKS sh
8602 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8603   emulate sh
8604   NULLCMD=:
8605   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8606   # is contrary to our usage.  Disable this feature.
8607   alias -g '${1+"$@"}'='"$@"'
8608   setopt NO_GLOB_SUBST
8609 else
8610   case `(set -o) 2>/dev/null` in
8611   *posix*) set -o posix ;;
8612 esac
8613
8614 fi
8615
8616
8617
8618
8619 # PATH needs CR
8620 # Avoid depending upon Character Ranges.
8621 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8622 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8623 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8624 as_cr_digits='0123456789'
8625 as_cr_alnum=$as_cr_Letters$as_cr_digits
8626
8627 # The user is always right.
8628 if test "${PATH_SEPARATOR+set}" != set; then
8629   echo "#! /bin/sh" >conf$$.sh
8630   echo  "exit 0"   >>conf$$.sh
8631   chmod +x conf$$.sh
8632   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8633     PATH_SEPARATOR=';'
8634   else
8635     PATH_SEPARATOR=:
8636   fi
8637   rm -f conf$$.sh
8638 fi
8639
8640 # Support unset when possible.
8641 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8642   as_unset=unset
8643 else
8644   as_unset=false
8645 fi
8646
8647
8648 # IFS
8649 # We need space, tab and new line, in precisely that order.  Quoting is
8650 # there to prevent editors from complaining about space-tab.
8651 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8652 # splitting by setting IFS to empty value.)
8653 as_nl='
8654 '
8655 IFS=" ""        $as_nl"
8656
8657 # Find who we are.  Look in the path if we contain no directory separator.
8658 case $0 in
8659   *[\\/]* ) as_myself=$0 ;;
8660   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661 for as_dir in $PATH
8662 do
8663   IFS=$as_save_IFS
8664   test -z "$as_dir" && as_dir=.
8665   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8666 done
8667 IFS=$as_save_IFS
8668
8669      ;;
8670 esac
8671 # We did not find ourselves, most probably we were run as `sh COMMAND'
8672 # in which case we are not to be found in the path.
8673 if test "x$as_myself" = x; then
8674   as_myself=$0
8675 fi
8676 if test ! -f "$as_myself"; then
8677   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8678   { (exit 1); exit 1; }
8679 fi
8680
8681 # Work around bugs in pre-3.0 UWIN ksh.
8682 for as_var in ENV MAIL MAILPATH
8683 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8684 done
8685 PS1='$ '
8686 PS2='> '
8687 PS4='+ '
8688
8689 # NLS nuisances.
8690 for as_var in \
8691   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8692   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8693   LC_TELEPHONE LC_TIME
8694 do
8695   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8696     eval $as_var=C; export $as_var
8697   else
8698     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8699   fi
8700 done
8701
8702 # Required to use basename.
8703 if expr a : '\(a\)' >/dev/null 2>&1 &&
8704    test "X`expr 00001 : '.*\(...\)'`" = X001; then
8705   as_expr=expr
8706 else
8707   as_expr=false
8708 fi
8709
8710 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8711   as_basename=basename
8712 else
8713   as_basename=false
8714 fi
8715
8716
8717 # Name of the executable.
8718 as_me=`$as_basename -- "$0" ||
8719 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8720          X"$0" : 'X\(//\)$' \| \
8721          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8722 echo X/"$0" |
8723     sed '/^.*\/\([^/][^/]*\)\/*$/{
8724             s//\1/
8725             q
8726           }
8727           /^X\/\(\/\/\)$/{
8728             s//\1/
8729             q
8730           }
8731           /^X\/\(\/\).*/{
8732             s//\1/
8733             q
8734           }
8735           s/.*/./; q'`
8736
8737 # CDPATH.
8738 $as_unset CDPATH
8739
8740
8741
8742   as_lineno_1=$LINENO
8743   as_lineno_2=$LINENO
8744   test "x$as_lineno_1" != "x$as_lineno_2" &&
8745   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8746
8747   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8748   # uniformly replaced by the line number.  The first 'sed' inserts a
8749   # line-number line after each line using $LINENO; the second 'sed'
8750   # does the real work.  The second script uses 'N' to pair each
8751   # line-number line with the line containing $LINENO, and appends
8752   # trailing '-' during substitution so that $LINENO is not a special
8753   # case at line end.
8754   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8755   # scripts with optimization help from Paolo Bonzini.  Blame Lee
8756   # E. McMahon (1931-1989) for sed's syntax.  :-)
8757   sed -n '
8758     p
8759     /[$]LINENO/=
8760   ' <$as_myself |
8761     sed '
8762       s/[$]LINENO.*/&-/
8763       t lineno
8764       b
8765       :lineno
8766       N
8767       :loop
8768       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8769       t loop
8770       s/-\n.*//
8771     ' >$as_me.lineno &&
8772   chmod +x "$as_me.lineno" ||
8773     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8774    { (exit 1); exit 1; }; }
8775
8776   # Don't try to exec as it changes $[0], causing all sort of problems
8777   # (the dirname of $[0] is not the place where we might find the
8778   # original and so on.  Autoconf is especially sensitive to this).
8779   . "./$as_me.lineno"
8780   # Exit status is that of the last command.
8781   exit
8782 }
8783
8784
8785 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8786   as_dirname=dirname
8787 else
8788   as_dirname=false
8789 fi
8790
8791 ECHO_C= ECHO_N= ECHO_T=
8792 case `echo -n x` in
8793 -n*)
8794   case `echo 'x\c'` in
8795   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
8796   *)   ECHO_C='\c';;
8797   esac;;
8798 *)
8799   ECHO_N='-n';;
8800 esac
8801
8802 if expr a : '\(a\)' >/dev/null 2>&1 &&
8803    test "X`expr 00001 : '.*\(...\)'`" = X001; then
8804   as_expr=expr
8805 else
8806   as_expr=false
8807 fi
8808
8809 rm -f conf$$ conf$$.exe conf$$.file
8810 if test -d conf$$.dir; then
8811   rm -f conf$$.dir/conf$$.file
8812 else
8813   rm -f conf$$.dir
8814   mkdir conf$$.dir
8815 fi
8816 echo >conf$$.file
8817 if ln -s conf$$.file conf$$ 2>/dev/null; then
8818   as_ln_s='ln -s'
8819   # ... but there are two gotchas:
8820   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8821   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8822   # In both cases, we have to default to `cp -p'.
8823   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8824     as_ln_s='cp -p'
8825 elif ln conf$$.file conf$$ 2>/dev/null; then
8826   as_ln_s=ln
8827 else
8828   as_ln_s='cp -p'
8829 fi
8830 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8831 rmdir conf$$.dir 2>/dev/null
8832
8833 if mkdir -p . 2>/dev/null; then
8834   as_mkdir_p=:
8835 else
8836   test -d ./-p && rmdir ./-p
8837   as_mkdir_p=false
8838 fi
8839
8840 if test -x / >/dev/null 2>&1; then
8841   as_test_x='test -x'
8842 else
8843   if ls -dL / >/dev/null 2>&1; then
8844     as_ls_L_option=L
8845   else
8846     as_ls_L_option=
8847   fi
8848   as_test_x='
8849     eval sh -c '\''
8850       if test -d "$1"; then
8851         test -d "$1/.";
8852       else
8853         case $1 in
8854         -*)set "./$1";;
8855         esac;
8856         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8857         ???[sx]*):;;*)false;;esac;fi
8858     '\'' sh
8859   '
8860 fi
8861 as_executable_p=$as_test_x
8862
8863 # Sed expression to map a string onto a valid CPP name.
8864 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8865
8866 # Sed expression to map a string onto a valid variable name.
8867 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8868
8869
8870 exec 6>&1
8871
8872 # Save the log message, to keep $[0] and so on meaningful, and to
8873 # report actual input values of CONFIG_FILES etc. instead of their
8874 # values after options handling.
8875 ac_log="
8876 This file was extended by GNU C Library $as_me (see version.h), which was
8877 generated by GNU Autoconf 2.61.  Invocation command line was
8878
8879   CONFIG_FILES    = $CONFIG_FILES
8880   CONFIG_HEADERS  = $CONFIG_HEADERS
8881   CONFIG_LINKS    = $CONFIG_LINKS
8882   CONFIG_COMMANDS = $CONFIG_COMMANDS
8883   $ $0 $@
8884
8885 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8886 "
8887
8888 _ACEOF
8889
8890 cat >>$CONFIG_STATUS <<_ACEOF
8891 # Files that config.status was made for.
8892 config_files="$ac_config_files"
8893 config_headers="$ac_config_headers"
8894 config_commands="$ac_config_commands"
8895
8896 _ACEOF
8897
8898 cat >>$CONFIG_STATUS <<\_ACEOF
8899 ac_cs_usage="\
8900 \`$as_me' instantiates files from templates according to the
8901 current configuration.
8902
8903 Usage: $0 [OPTIONS] [FILE]...
8904
8905   -h, --help       print this help, then exit
8906   -V, --version    print version number and configuration settings, then exit
8907   -q, --quiet      do not print progress messages
8908   -d, --debug      don't remove temporary files
8909       --recheck    update $as_me by reconfiguring in the same conditions
8910   --file=FILE[:TEMPLATE]
8911                    instantiate the configuration file FILE
8912   --header=FILE[:TEMPLATE]
8913                    instantiate the configuration header FILE
8914
8915 Configuration files:
8916 $config_files
8917
8918 Configuration headers:
8919 $config_headers
8920
8921 Configuration commands:
8922 $config_commands
8923
8924 Report bugs to <bug-autoconf@gnu.org>."
8925
8926 _ACEOF
8927 cat >>$CONFIG_STATUS <<_ACEOF
8928 ac_cs_version="\\
8929 GNU C Library config.status (see version.h)
8930 configured by $0, generated by GNU Autoconf 2.61,
8931   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8932
8933 Copyright (C) 2006 Free Software Foundation, Inc.
8934 This config.status script is free software; the Free Software Foundation
8935 gives unlimited permission to copy, distribute and modify it."
8936
8937 ac_pwd='$ac_pwd'
8938 srcdir='$srcdir'
8939 INSTALL='$INSTALL'
8940 _ACEOF
8941
8942 cat >>$CONFIG_STATUS <<\_ACEOF
8943 # If no file are specified by the user, then we need to provide default
8944 # value.  By we need to know if files were specified by the user.
8945 ac_need_defaults=:
8946 while test $# != 0
8947 do
8948   case $1 in
8949   --*=*)
8950     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8951     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8952     ac_shift=:
8953     ;;
8954   *)
8955     ac_option=$1
8956     ac_optarg=$2
8957     ac_shift=shift
8958     ;;
8959   esac
8960
8961   case $ac_option in
8962   # Handling of the options.
8963   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8964     ac_cs_recheck=: ;;
8965   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8966     echo "$ac_cs_version"; exit ;;
8967   --debug | --debu | --deb | --de | --d | -d )
8968     debug=: ;;
8969   --file | --fil | --fi | --f )
8970     $ac_shift
8971     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8972     ac_need_defaults=false;;
8973   --header | --heade | --head | --hea )
8974     $ac_shift
8975     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8976     ac_need_defaults=false;;
8977   --he | --h)
8978     # Conflict between --help and --header
8979     { echo "$as_me: error: ambiguous option: $1
8980 Try \`$0 --help' for more information." >&2
8981    { (exit 1); exit 1; }; };;
8982   --help | --hel | -h )
8983     echo "$ac_cs_usage"; exit ;;
8984   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8985   | -silent | --silent | --silen | --sile | --sil | --si | --s)
8986     ac_cs_silent=: ;;
8987
8988   # This is an error.
8989   -*) { echo "$as_me: error: unrecognized option: $1
8990 Try \`$0 --help' for more information." >&2
8991    { (exit 1); exit 1; }; } ;;
8992
8993   *) ac_config_targets="$ac_config_targets $1"
8994      ac_need_defaults=false ;;
8995
8996   esac
8997   shift
8998 done
8999
9000 ac_configure_extra_args=
9001
9002 if $ac_cs_silent; then
9003   exec 6>/dev/null
9004   ac_configure_extra_args="$ac_configure_extra_args --silent"
9005 fi
9006
9007 _ACEOF
9008 cat >>$CONFIG_STATUS <<_ACEOF
9009 if \$ac_cs_recheck; then
9010   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9011   CONFIG_SHELL=$SHELL
9012   export CONFIG_SHELL
9013   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9014 fi
9015
9016 _ACEOF
9017 cat >>$CONFIG_STATUS <<\_ACEOF
9018 exec 5>>config.log
9019 {
9020   echo
9021   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9022 ## Running $as_me. ##
9023 _ASBOX
9024   echo "$ac_log"
9025 } >&5
9026
9027 _ACEOF
9028 cat >>$CONFIG_STATUS <<_ACEOF
9029 #
9030 # INIT-COMMANDS
9031 #
9032 config_vars='$config_vars'
9033
9034 _ACEOF
9035
9036 cat >>$CONFIG_STATUS <<\_ACEOF
9037
9038 # Handling of arguments.
9039 for ac_config_target in $ac_config_targets
9040 do
9041   case $ac_config_target in
9042     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9043     "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
9044     "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
9045     "${config_uname}") CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
9046     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9047
9048   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9049 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9050    { (exit 1); exit 1; }; };;
9051   esac
9052 done
9053
9054
9055 # If the user did not use the arguments to specify the items to instantiate,
9056 # then the envvar interface is used.  Set only those that are not.
9057 # We use the long form for the default assignment because of an extremely
9058 # bizarre bug on SunOS 4.1.3.
9059 if $ac_need_defaults; then
9060   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9061   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9062   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9063 fi
9064
9065 # Have a temporary directory for convenience.  Make it in the build tree
9066 # simply because there is no reason against having it here, and in addition,
9067 # creating and moving files from /tmp can sometimes cause problems.
9068 # Hook for its removal unless debugging.
9069 # Note that there is a small window in which the directory will not be cleaned:
9070 # after its creation but before its name has been assigned to `$tmp'.
9071 $debug ||
9072 {
9073   tmp=
9074   trap 'exit_status=$?
9075   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9076 ' 0
9077   trap '{ (exit 1); exit 1; }' 1 2 13 15
9078 }
9079 # Create a (secure) tmp directory for tmp files.
9080
9081 {
9082   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9083   test -n "$tmp" && test -d "$tmp"
9084 }  ||
9085 {
9086   tmp=./conf$$-$RANDOM
9087   (umask 077 && mkdir "$tmp")
9088 } ||
9089 {
9090    echo "$me: cannot create a temporary directory in ." >&2
9091    { (exit 1); exit 1; }
9092 }
9093
9094 #
9095 # Set up the sed scripts for CONFIG_FILES section.
9096 #
9097
9098 # No need to generate the scripts if there are no CONFIG_FILES.
9099 # This happens for instance when ./config.status config.h
9100 if test -n "$CONFIG_FILES"; then
9101
9102 _ACEOF
9103
9104
9105
9106 ac_delim='%!_!# '
9107 for ac_last_try in false false false false false :; do
9108   cat >conf$$subs.sed <<_ACEOF
9109 SHELL!$SHELL$ac_delim
9110 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9111 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9112 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9113 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9114 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9115 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9116 exec_prefix!$exec_prefix$ac_delim
9117 prefix!$prefix$ac_delim
9118 program_transform_name!$program_transform_name$ac_delim
9119 bindir!$bindir$ac_delim
9120 sbindir!$sbindir$ac_delim
9121 libexecdir!$libexecdir$ac_delim
9122 datarootdir!$datarootdir$ac_delim
9123 datadir!$datadir$ac_delim
9124 sysconfdir!$sysconfdir$ac_delim
9125 sharedstatedir!$sharedstatedir$ac_delim
9126 localstatedir!$localstatedir$ac_delim
9127 includedir!$includedir$ac_delim
9128 oldincludedir!$oldincludedir$ac_delim
9129 docdir!$docdir$ac_delim
9130 infodir!$infodir$ac_delim
9131 htmldir!$htmldir$ac_delim
9132 dvidir!$dvidir$ac_delim
9133 pdfdir!$pdfdir$ac_delim
9134 psdir!$psdir$ac_delim
9135 libdir!$libdir$ac_delim
9136 localedir!$localedir$ac_delim
9137 mandir!$mandir$ac_delim
9138 DEFS!$DEFS$ac_delim
9139 ECHO_C!$ECHO_C$ac_delim
9140 ECHO_N!$ECHO_N$ac_delim
9141 ECHO_T!$ECHO_T$ac_delim
9142 LIBS!$LIBS$ac_delim
9143 build_alias!$build_alias$ac_delim
9144 host_alias!$host_alias$ac_delim
9145 target_alias!$target_alias$ac_delim
9146 with_fp!$with_fp$ac_delim
9147 with_cvs!$with_cvs$ac_delim
9148 enable_check_abi!$enable_check_abi$ac_delim
9149 oldest_abi!$oldest_abi$ac_delim
9150 bindnow!$bindnow$ac_delim
9151 force_install!$force_install$ac_delim
9152 all_warnings!$all_warnings$ac_delim
9153 build!$build$ac_delim
9154 build_cpu!$build_cpu$ac_delim
9155 build_vendor!$build_vendor$ac_delim
9156 build_os!$build_os$ac_delim
9157 host!$host$ac_delim
9158 host_cpu!$host_cpu$ac_delim
9159 host_vendor!$host_vendor$ac_delim
9160 host_os!$host_os$ac_delim
9161 subdirs!$subdirs$ac_delim
9162 add_ons!$add_ons$ac_delim
9163 add_on_subdirs!$add_on_subdirs$ac_delim
9164 base_machine!$base_machine$ac_delim
9165 submachine!$submachine$ac_delim
9166 sysnames!$sysnames$ac_delim
9167 sysdeps_add_ons!$sysdeps_add_ons$ac_delim
9168 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9169 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9170 INSTALL_DATA!$INSTALL_DATA$ac_delim
9171 LN_S!$LN_S$ac_delim
9172 CC!$CC$ac_delim
9173 CFLAGS!$CFLAGS$ac_delim
9174 LDFLAGS!$LDFLAGS$ac_delim
9175 CPPFLAGS!$CPPFLAGS$ac_delim
9176 ac_ct_CC!$ac_ct_CC$ac_delim
9177 OBJEXT!$OBJEXT$ac_delim
9178 BUILD_CC!$BUILD_CC$ac_delim
9179 cross_compiling!$cross_compiling$ac_delim
9180 CPP!$CPP$ac_delim
9181 CXX!$CXX$ac_delim
9182 CXXFLAGS!$CXXFLAGS$ac_delim
9183 ac_ct_CXX!$ac_ct_CXX$ac_delim
9184 AR!$AR$ac_delim
9185 OBJDUMP!$OBJDUMP$ac_delim
9186 RANLIB!$RANLIB$ac_delim
9187 MIG!$MIG$ac_delim
9188 AS!$AS$ac_delim
9189 LD!$LD$ac_delim
9190 PWD_P!$PWD_P$ac_delim
9191 MAKE!$MAKE$ac_delim
9192 MSGFMT!$MSGFMT$ac_delim
9193 MAKEINFO!$MAKEINFO$ac_delim
9194 SED!$SED$ac_delim
9195 AUTOCONF!$AUTOCONF$ac_delim
9196 SYSINCLUDES!$SYSINCLUDES$ac_delim
9197 CXX_SYSINCLUDES!$CXX_SYSINCLUDES$ac_delim
9198 libc_cv_gcc_static_libgcc!$libc_cv_gcc_static_libgcc$ac_delim
9199 BASH_SHELL!$BASH_SHELL$ac_delim
9200 libc_cv_have_bash2!$libc_cv_have_bash2$ac_delim
9201 KSH!$KSH$ac_delim
9202 libc_cv_have_ksh!$libc_cv_have_ksh$ac_delim
9203 AWK!$AWK$ac_delim
9204 PERL!$PERL$ac_delim
9205 INSTALL_INFO!$INSTALL_INFO$ac_delim
9206 _ACEOF
9207
9208   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
9209     break
9210   elif $ac_last_try; then
9211     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9212 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9213    { (exit 1); exit 1; }; }
9214   else
9215     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9216   fi
9217 done
9218
9219 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9220 if test -n "$ac_eof"; then
9221   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9222   ac_eof=`expr $ac_eof + 1`
9223 fi
9224
9225 cat >>$CONFIG_STATUS <<_ACEOF
9226 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9227 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9228 _ACEOF
9229 sed '
9230 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9231 s/^/s,@/; s/!/@,|#_!!_#|/
9232 :n
9233 t n
9234 s/'"$ac_delim"'$/,g/; t
9235 s/$/\\/; p
9236 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9237 ' >>$CONFIG_STATUS <conf$$subs.sed
9238 rm -f conf$$subs.sed
9239 cat >>$CONFIG_STATUS <<_ACEOF
9240 CEOF$ac_eof
9241 _ACEOF
9242
9243
9244 ac_delim='%!_!# '
9245 for ac_last_try in false false false false false :; do
9246   cat >conf$$subs.sed <<_ACEOF
9247 BISON!$BISON$ac_delim
9248 VERSIONING!$VERSIONING$ac_delim
9249 libc_cv_cc_with_libunwind!$libc_cv_cc_with_libunwind$ac_delim
9250 libc_cv_Bgroup!$libc_cv_Bgroup$ac_delim
9251 libc_cv_libgcc_s_suffix!$libc_cv_libgcc_s_suffix$ac_delim
9252 libc_cv_as_needed!$libc_cv_as_needed$ac_delim
9253 ASFLAGS_config!$ASFLAGS_config$ac_delim
9254 libc_cv_z_combreloc!$libc_cv_z_combreloc$ac_delim
9255 libc_cv_z_execstack!$libc_cv_z_execstack$ac_delim
9256 libc_cv_fpie!$libc_cv_fpie$ac_delim
9257 libc_cv_hashstyle!$libc_cv_hashstyle$ac_delim
9258 fno_unit_at_a_time!$fno_unit_at_a_time$ac_delim
9259 libc_cv_ssp!$libc_cv_ssp$ac_delim
9260 libc_cv_gnu89_inline!$libc_cv_gnu89_inline$ac_delim
9261 libc_cv_have_initfini!$libc_cv_have_initfini$ac_delim
9262 no_whole_archive!$no_whole_archive$ac_delim
9263 exceptions!$exceptions$ac_delim
9264 LIBGD!$LIBGD$ac_delim
9265 have_libaudit!$have_libaudit$ac_delim
9266 have_libcap!$have_libcap$ac_delim
9267 have_selinux!$have_selinux$ac_delim
9268 GREP!$GREP$ac_delim
9269 EGREP!$EGREP$ac_delim
9270 sizeof_long_double!$sizeof_long_double$ac_delim
9271 libc_cv_gcc_unwind_find_fde!$libc_cv_gcc_unwind_find_fde$ac_delim
9272 uname_sysname!$uname_sysname$ac_delim
9273 uname_release!$uname_release$ac_delim
9274 uname_version!$uname_version$ac_delim
9275 old_glibc_headers!$old_glibc_headers$ac_delim
9276 libc_cv_slibdir!$libc_cv_slibdir$ac_delim
9277 libc_cv_localedir!$libc_cv_localedir$ac_delim
9278 libc_cv_sysconfdir!$libc_cv_sysconfdir$ac_delim
9279 libc_cv_rootsbindir!$libc_cv_rootsbindir$ac_delim
9280 libc_cv_forced_unwind!$libc_cv_forced_unwind$ac_delim
9281 use_ldconfig!$use_ldconfig$ac_delim
9282 ldd_rewrite_script!$ldd_rewrite_script$ac_delim
9283 elf!$elf$ac_delim
9284 xcoff!$xcoff$ac_delim
9285 static!$static$ac_delim
9286 shared!$shared$ac_delim
9287 pic_default!$pic_default$ac_delim
9288 profile!$profile$ac_delim
9289 omitfp!$omitfp$ac_delim
9290 bounded!$bounded$ac_delim
9291 static_nss!$static_nss$ac_delim
9292 nopic_initfini!$nopic_initfini$ac_delim
9293 DEFINES!$DEFINES$ac_delim
9294 mach_interface_list!$mach_interface_list$ac_delim
9295 VERSION!$VERSION$ac_delim
9296 RELEASE!$RELEASE$ac_delim
9297 LIBOBJS!$LIBOBJS$ac_delim
9298 LTLIBOBJS!$LTLIBOBJS$ac_delim
9299 _ACEOF
9300
9301   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then
9302     break
9303   elif $ac_last_try; then
9304     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9305 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9306    { (exit 1); exit 1; }; }
9307   else
9308     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9309   fi
9310 done
9311
9312 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9313 if test -n "$ac_eof"; then
9314   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9315   ac_eof=`expr $ac_eof + 1`
9316 fi
9317
9318 cat >>$CONFIG_STATUS <<_ACEOF
9319 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
9320 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9321 _ACEOF
9322 sed '
9323 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9324 s/^/s,@/; s/!/@,|#_!!_#|/
9325 :n
9326 t n
9327 s/'"$ac_delim"'$/,g/; t
9328 s/$/\\/; p
9329 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9330 ' >>$CONFIG_STATUS <conf$$subs.sed
9331 rm -f conf$$subs.sed
9332 cat >>$CONFIG_STATUS <<_ACEOF
9333 :end
9334 s/|#_!!_#|//g
9335 CEOF$ac_eof
9336 _ACEOF
9337
9338
9339 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9340 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9341 # trailing colons and then remove the whole line if VPATH becomes empty
9342 # (actually we leave an empty line to preserve line numbers).
9343 if test "x$srcdir" = x.; then
9344   ac_vpsub='/^[  ]*VPATH[        ]*=/{
9345 s/:*\$(srcdir):*/:/
9346 s/:*\${srcdir}:*/:/
9347 s/:*@srcdir@:*/:/
9348 s/^\([^=]*=[     ]*\):*/\1/
9349 s/:*$//
9350 s/^[^=]*=[       ]*$//
9351 }'
9352 fi
9353
9354 cat >>$CONFIG_STATUS <<\_ACEOF
9355 fi # test -n "$CONFIG_FILES"
9356
9357
9358 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
9359 do
9360   case $ac_tag in
9361   :[FHLC]) ac_mode=$ac_tag; continue;;
9362   esac
9363   case $ac_mode$ac_tag in
9364   :[FHL]*:*);;
9365   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9366 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9367    { (exit 1); exit 1; }; };;
9368   :[FH]-) ac_tag=-:-;;
9369   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9370   esac
9371   ac_save_IFS=$IFS
9372   IFS=:
9373   set x $ac_tag
9374   IFS=$ac_save_IFS
9375   shift
9376   ac_file=$1
9377   shift
9378
9379   case $ac_mode in
9380   :L) ac_source=$1;;
9381   :[FH])
9382     ac_file_inputs=
9383     for ac_f
9384     do
9385       case $ac_f in
9386       -) ac_f="$tmp/stdin";;
9387       *) # Look for the file first in the build tree, then in the source tree
9388          # (if the path is not absolute).  The absolute path cannot be DOS-style,
9389          # because $ac_f cannot contain `:'.
9390          test -f "$ac_f" ||
9391            case $ac_f in
9392            [\\/$]*) false;;
9393            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9394            esac ||
9395            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9396 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9397    { (exit 1); exit 1; }; };;
9398       esac
9399       ac_file_inputs="$ac_file_inputs $ac_f"
9400     done
9401
9402     # Let's still pretend it is `configure' which instantiates (i.e., don't
9403     # use $as_me), people would be surprised to read:
9404     #    /* config.h.  Generated by config.status.  */
9405     configure_input="Generated from "`IFS=:
9406           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9407     if test x"$ac_file" != x-; then
9408       configure_input="$ac_file.  $configure_input"
9409       { echo "$as_me:$LINENO: creating $ac_file" >&5
9410 echo "$as_me: creating $ac_file" >&6;}
9411     fi
9412
9413     case $ac_tag in
9414     *:-:* | *:-) cat >"$tmp/stdin";;
9415     esac
9416     ;;
9417   esac
9418
9419   ac_dir=`$as_dirname -- "$ac_file" ||
9420 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9421          X"$ac_file" : 'X\(//\)[^/]' \| \
9422          X"$ac_file" : 'X\(//\)$' \| \
9423          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9424 echo X"$ac_file" |
9425     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9426             s//\1/
9427             q
9428           }
9429           /^X\(\/\/\)[^/].*/{
9430             s//\1/
9431             q
9432           }
9433           /^X\(\/\/\)$/{
9434             s//\1/
9435             q
9436           }
9437           /^X\(\/\).*/{
9438             s//\1/
9439             q
9440           }
9441           s/.*/./; q'`
9442   { as_dir="$ac_dir"
9443   case $as_dir in #(
9444   -*) as_dir=./$as_dir;;
9445   esac
9446   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9447     as_dirs=
9448     while :; do
9449       case $as_dir in #(
9450       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9451       *) as_qdir=$as_dir;;
9452       esac
9453       as_dirs="'$as_qdir' $as_dirs"
9454       as_dir=`$as_dirname -- "$as_dir" ||
9455 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9456          X"$as_dir" : 'X\(//\)[^/]' \| \
9457          X"$as_dir" : 'X\(//\)$' \| \
9458          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9459 echo X"$as_dir" |
9460     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9461             s//\1/
9462             q
9463           }
9464           /^X\(\/\/\)[^/].*/{
9465             s//\1/
9466             q
9467           }
9468           /^X\(\/\/\)$/{
9469             s//\1/
9470             q
9471           }
9472           /^X\(\/\).*/{
9473             s//\1/
9474             q
9475           }
9476           s/.*/./; q'`
9477       test -d "$as_dir" && break
9478     done
9479     test -z "$as_dirs" || eval "mkdir $as_dirs"
9480   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9481 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9482    { (exit 1); exit 1; }; }; }
9483   ac_builddir=.
9484
9485 case "$ac_dir" in
9486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9487 *)
9488   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9489   # A ".." for each directory in $ac_dir_suffix.
9490   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9491   case $ac_top_builddir_sub in
9492   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9493   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9494   esac ;;
9495 esac
9496 ac_abs_top_builddir=$ac_pwd
9497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9498 # for backward compatibility:
9499 ac_top_builddir=$ac_top_build_prefix
9500
9501 case $srcdir in
9502   .)  # We are building in place.
9503     ac_srcdir=.
9504     ac_top_srcdir=$ac_top_builddir_sub
9505     ac_abs_top_srcdir=$ac_pwd ;;
9506   [\\/]* | ?:[\\/]* )  # Absolute name.
9507     ac_srcdir=$srcdir$ac_dir_suffix;
9508     ac_top_srcdir=$srcdir
9509     ac_abs_top_srcdir=$srcdir ;;
9510   *) # Relative name.
9511     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9512     ac_top_srcdir=$ac_top_build_prefix$srcdir
9513     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9514 esac
9515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9516
9517
9518   case $ac_mode in
9519   :F)
9520   #
9521   # CONFIG_FILE
9522   #
9523
9524   case $INSTALL in
9525   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9526   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9527   esac
9528 _ACEOF
9529
9530 cat >>$CONFIG_STATUS <<\_ACEOF
9531 # If the template does not know about datarootdir, expand it.
9532 # FIXME: This hack should be removed a few years after 2.60.
9533 ac_datarootdir_hack=; ac_datarootdir_seen=
9534
9535 case `sed -n '/datarootdir/ {
9536   p
9537   q
9538 }
9539 /@datadir@/p
9540 /@docdir@/p
9541 /@infodir@/p
9542 /@localedir@/p
9543 /@mandir@/p
9544 ' $ac_file_inputs` in
9545 *datarootdir*) ac_datarootdir_seen=yes;;
9546 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9547   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9548 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9549 _ACEOF
9550 cat >>$CONFIG_STATUS <<_ACEOF
9551   ac_datarootdir_hack='
9552   s&@datadir@&$datadir&g
9553   s&@docdir@&$docdir&g
9554   s&@infodir@&$infodir&g
9555   s&@localedir@&$localedir&g
9556   s&@mandir@&$mandir&g
9557     s&\\\${datarootdir}&$datarootdir&g' ;;
9558 esac
9559 _ACEOF
9560
9561 # Neutralize VPATH when `$srcdir' = `.'.
9562 # Shell code in configure.ac might set extrasub.
9563 # FIXME: do we really want to maintain this feature?
9564 cat >>$CONFIG_STATUS <<_ACEOF
9565   sed "$ac_vpsub
9566 $extrasub
9567 _ACEOF
9568 cat >>$CONFIG_STATUS <<\_ACEOF
9569 :t
9570 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9571 s&@configure_input@&$configure_input&;t t
9572 s&@top_builddir@&$ac_top_builddir_sub&;t t
9573 s&@srcdir@&$ac_srcdir&;t t
9574 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9575 s&@top_srcdir@&$ac_top_srcdir&;t t
9576 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9577 s&@builddir@&$ac_builddir&;t t
9578 s&@abs_builddir@&$ac_abs_builddir&;t t
9579 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9580 s&@INSTALL@&$ac_INSTALL&;t t
9581 $ac_datarootdir_hack
9582 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
9583
9584 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9585   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9586   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9587   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9588 which seems to be undefined.  Please make sure it is defined." >&5
9589 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9590 which seems to be undefined.  Please make sure it is defined." >&2;}
9591
9592   rm -f "$tmp/stdin"
9593   case $ac_file in
9594   -) cat "$tmp/out"; rm -f "$tmp/out";;
9595   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9596   esac
9597  ;;
9598   :H)
9599   #
9600   # CONFIG_HEADER
9601   #
9602 _ACEOF
9603
9604 # Transform confdefs.h into a sed script `conftest.defines', that
9605 # substitutes the proper values into config.h.in to produce config.h.
9606 rm -f conftest.defines conftest.tail
9607 # First, append a space to every undef/define line, to ease matching.
9608 echo 's/$/ /' >conftest.defines
9609 # Then, protect against being on the right side of a sed subst, or in
9610 # an unquoted here document, in config.status.  If some macros were
9611 # called several times there might be several #defines for the same
9612 # symbol, which is useless.  But do not sort them, since the last
9613 # AC_DEFINE must be honored.
9614 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9615 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9616 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9617 # PARAMS is the parameter list in the macro definition--in most cases, it's
9618 # just an empty string.
9619 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
9620 ac_dB='\\)[      (].*,\\1define\\2'
9621 ac_dC=' '
9622 ac_dD=' ,'
9623
9624 uniq confdefs.h |
9625   sed -n '
9626         t rset
9627         :rset
9628         s/^[     ]*#[    ]*define[       ][      ]*//
9629         t ok
9630         d
9631         :ok
9632         s/[\\&,]/\\&/g
9633         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9634         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9635   ' >>conftest.defines
9636
9637 # Remove the space that was appended to ease matching.
9638 # Then replace #undef with comments.  This is necessary, for
9639 # example, in the case of _POSIX_SOURCE, which is predefined and required
9640 # on some systems where configure will not decide to define it.
9641 # (The regexp can be short, since the line contains either #define or #undef.)
9642 echo 's/ $//
9643 s,^[     #]*u.*,/* & */,' >>conftest.defines
9644
9645 # Break up conftest.defines:
9646 ac_max_sed_lines=50
9647
9648 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9649 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9650 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9651 # et cetera.
9652 ac_in='$ac_file_inputs'
9653 ac_out='"$tmp/out1"'
9654 ac_nxt='"$tmp/out2"'
9655
9656 while :
9657 do
9658   # Write a here document:
9659     cat >>$CONFIG_STATUS <<_ACEOF
9660     # First, check the format of the line:
9661     cat >"\$tmp/defines.sed" <<\\CEOF
9662 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
9663 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
9664 b
9665 :def
9666 _ACEOF
9667   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9668   echo 'CEOF
9669     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9670   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9671   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9672   grep . conftest.tail >/dev/null || break
9673   rm -f conftest.defines
9674   mv conftest.tail conftest.defines
9675 done
9676 rm -f conftest.defines conftest.tail
9677
9678 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9679 cat >>$CONFIG_STATUS <<\_ACEOF
9680   if test x"$ac_file" != x-; then
9681     echo "/* $configure_input  */" >"$tmp/config.h"
9682     cat "$ac_result" >>"$tmp/config.h"
9683     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9684       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9685 echo "$as_me: $ac_file is unchanged" >&6;}
9686     else
9687       rm -f $ac_file
9688       mv "$tmp/config.h" $ac_file
9689     fi
9690   else
9691     echo "/* $configure_input  */"
9692     cat "$ac_result"
9693   fi
9694   rm -f "$tmp/out12"
9695  ;;
9696
9697   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9698 echo "$as_me: executing $ac_file commands" >&6;}
9699  ;;
9700   esac
9701
9702
9703   case $ac_file$ac_mode in
9704     "default":C)
9705 case $CONFIG_FILES in *config.make*)
9706 echo "$config_vars" >> config.make;;
9707 esac
9708 test -d bits || mkdir bits ;;
9709
9710   esac
9711 done # for ac_tag
9712
9713
9714 { (exit 0); exit 0; }
9715 _ACEOF
9716 chmod +x $CONFIG_STATUS
9717 ac_clean_files=$ac_clean_files_save
9718
9719
9720 # configure is writing to config.log, and then calls config.status.
9721 # config.status does its own redirection, appending to config.log.
9722 # Unfortunately, on DOS this fails, as config.log is still kept open
9723 # by configure, so config.status won't be able to write to it; its
9724 # output is simply discarded.  So we exec the FD to /dev/null,
9725 # effectively closing config.log, so it can be properly (re)opened and
9726 # appended to by config.status.  When coming back to configure, we
9727 # need to make the FD available again.
9728 if test "$no_create" != yes; then
9729   ac_cs_success=:
9730   ac_config_status_args=
9731   test "$silent" = yes &&
9732     ac_config_status_args="$ac_config_status_args --quiet"
9733   exec 5>/dev/null
9734   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9735   exec 5>>config.log
9736   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9737   # would make configure fail if this is the last instruction.
9738   $ac_cs_success || { (exit 1); exit 1; }
9739 fi
9740
9741 #
9742 # CONFIG_SUBDIRS section.
9743 #
9744 if test "$no_recursion" != yes; then
9745
9746   # Remove --cache-file and --srcdir arguments so they do not pile up.
9747   ac_sub_configure_args=
9748   ac_prev=
9749   eval "set x $ac_configure_args"
9750   shift
9751   for ac_arg
9752   do
9753     if test -n "$ac_prev"; then
9754       ac_prev=
9755       continue
9756     fi
9757     case $ac_arg in
9758     -cache-file | --cache-file | --cache-fil | --cache-fi \
9759     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9760       ac_prev=cache_file ;;
9761     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9762     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9763     | --c=*)
9764       ;;
9765     --config-cache | -C)
9766       ;;
9767     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9768       ac_prev=srcdir ;;
9769     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9770       ;;
9771     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9772       ac_prev=prefix ;;
9773     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9774       ;;
9775     *)
9776       case $ac_arg in
9777       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9778       esac
9779       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
9780     esac
9781   done
9782
9783   # Always prepend --prefix to ensure using the same prefix
9784   # in subdir configurations.
9785   ac_arg="--prefix=$prefix"
9786   case $ac_arg in
9787   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9788   esac
9789   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9790
9791   # Pass --silent
9792   if test "$silent" = yes; then
9793     ac_sub_configure_args="--silent $ac_sub_configure_args"
9794   fi
9795
9796   ac_popdir=`pwd`
9797   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9798
9799     # Do not complain, so a configure script can configure whichever
9800     # parts of a large source tree are present.
9801     test -d "$srcdir/$ac_dir" || continue
9802
9803     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9804     echo "$as_me:$LINENO: $ac_msg" >&5
9805     echo "$ac_msg" >&6
9806     { as_dir="$ac_dir"
9807   case $as_dir in #(
9808   -*) as_dir=./$as_dir;;
9809   esac
9810   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9811     as_dirs=
9812     while :; do
9813       case $as_dir in #(
9814       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9815       *) as_qdir=$as_dir;;
9816       esac
9817       as_dirs="'$as_qdir' $as_dirs"
9818       as_dir=`$as_dirname -- "$as_dir" ||
9819 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9820          X"$as_dir" : 'X\(//\)[^/]' \| \
9821          X"$as_dir" : 'X\(//\)$' \| \
9822          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9823 echo X"$as_dir" |
9824     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9825             s//\1/
9826             q
9827           }
9828           /^X\(\/\/\)[^/].*/{
9829             s//\1/
9830             q
9831           }
9832           /^X\(\/\/\)$/{
9833             s//\1/
9834             q
9835           }
9836           /^X\(\/\).*/{
9837             s//\1/
9838             q
9839           }
9840           s/.*/./; q'`
9841       test -d "$as_dir" && break
9842     done
9843     test -z "$as_dirs" || eval "mkdir $as_dirs"
9844   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9845 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9846    { (exit 1); exit 1; }; }; }
9847     ac_builddir=.
9848
9849 case "$ac_dir" in
9850 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9851 *)
9852   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9853   # A ".." for each directory in $ac_dir_suffix.
9854   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9855   case $ac_top_builddir_sub in
9856   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9857   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9858   esac ;;
9859 esac
9860 ac_abs_top_builddir=$ac_pwd
9861 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9862 # for backward compatibility:
9863 ac_top_builddir=$ac_top_build_prefix
9864
9865 case $srcdir in
9866   .)  # We are building in place.
9867     ac_srcdir=.
9868     ac_top_srcdir=$ac_top_builddir_sub
9869     ac_abs_top_srcdir=$ac_pwd ;;
9870   [\\/]* | ?:[\\/]* )  # Absolute name.
9871     ac_srcdir=$srcdir$ac_dir_suffix;
9872     ac_top_srcdir=$srcdir
9873     ac_abs_top_srcdir=$srcdir ;;
9874   *) # Relative name.
9875     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9876     ac_top_srcdir=$ac_top_build_prefix$srcdir
9877     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9878 esac
9879 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9880
9881
9882     cd "$ac_dir"
9883
9884     # Check for guested configure; otherwise get Cygnus style configure.
9885     if test -f "$ac_srcdir/configure.gnu"; then
9886       ac_sub_configure=$ac_srcdir/configure.gnu
9887     elif test -f "$ac_srcdir/configure"; then
9888       ac_sub_configure=$ac_srcdir/configure
9889     elif test -f "$ac_srcdir/configure.in"; then
9890       # This should be Cygnus configure.
9891       ac_sub_configure=$ac_aux_dir/configure
9892     else
9893       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
9894 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9895       ac_sub_configure=
9896     fi
9897
9898     # The recursion is here.
9899     if test -n "$ac_sub_configure"; then
9900       # Make the cache file name correct relative to the subdirectory.
9901       case $cache_file in
9902       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9903       *) # Relative name.
9904         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9905       esac
9906
9907       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9908 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9909       # The eval makes quoting arguments work.
9910       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9911            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9912         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
9913 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9914    { (exit 1); exit 1; }; }
9915     fi
9916
9917     cd "$ac_popdir"
9918   done
9919 fi
9920