2 # From configure.in CVSid.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57 for GNU C Library (see version.h).
6 # Report bugs to <glibc>.
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27 # Support unset when possible.
28 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
197 if expr a : '\(a\)' >/dev/null 2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.file conf$$ 2>/dev/null; then
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='GNU C Library'
271 PACKAGE_TARNAME='c-library'
272 PACKAGE_VERSION='(see version.h)'
273 PACKAGE_STRING='GNU C Library (see version.h)'
274 PACKAGE_BUGREPORT='glibc'
276 ac_unique_file="include/features.h"
277 ac_subdirs_all="$ac_subdirs_all "
278 # Factoring default headers for most tests.
279 ac_includes_default="\
282 # include <sys/types.h>
285 # include <sys/stat.h>
296 # if !STDC_HEADERS && HAVE_MEMORY_H
302 # include <strings.h>
305 # include <inttypes.h>
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS with_fp with_cvs enable_check_abi oldest_abi subdirs force_install all_warnings build build_cpu build_vendor build_os host host_cpu host_vendor host_os base_machine sysnames INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT BUILD_CC cross_compiling CPP AR OBJDUMP RANLIB ac_ct_RANLIB MIG AS LD PWD_P MAKE MSGFMT MAKEINFO SED AUTOCONF CCVERSION SYSINCLUDES libc_cv_gcc_static_libgcc BASH libc_cv_have_bash2 KSH libc_cv_have_ksh AWK PERL INSTALL_INFO OLD_DEBIAN_INSTALL_INFO BISON VERSIONING libc_cv_asm_protected_directive libc_cv_initfinit_array libc_cv_z_nodelete libc_cv_z_nodlopen libc_cv_z_initfirst libc_cv_Bgroup libc_cv_z_combreloc libc_cv_have_initfini libc_cv_cpp_asm_debuginfo no_whole_archive exceptions LIBGD EGREP sizeof_long_double libc_cv_gcc_unwind_find_fde uname_sysname uname_release uname_version old_glibc_headers libc_cv_slibdir libc_cv_localedir libc_cv_sysconfdir libc_cv_rootsbindir use_ldconfig ldd_rewrite_script gnu_ld gnu_as elf xcoff static shared pic_default profile omitfp bounded static_nss nopic_initfini DEFINES linux_doors mach_interface_list VERSION RELEASE LIBOBJS LTLIBOBJS'
318 # Initialize some variables set by options.
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name=s,x,x,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
390 cache_file=config.cache ;;
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 datadir=$ac_optarg ;;
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
433 -help | --help | --hel | --he | -h)
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
457 -libdir | --libdir | --libdi | --libd)
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484 # Obsolete; use --without-fp.
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 sbindir=$ac_optarg ;;
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 sharedstatedir=$ac_optarg ;;
561 -site | --site | --sit)
563 -site=* | --site=* | --sit=*)
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 -version | --version | --versio | --versi | --vers | -V)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
664 eval ac_val=$`echo $ac_var`
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val=$`echo $ac_var`
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705 test "$silent" = yes && exec 6>/dev/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
784 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-sanity-checks really do not use threads (should not be used except
853 in special situations) [default=yes]
854 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
856 --enable-shared build shared library [default=yes if GNU ld &
858 --enable-profile build profiled library [default=yes]
859 --enable-omitfp build undebuggable optimized library
861 --enable-bounded build with runtime bounds checking
863 --disable-versioning do not include versioning information in the library
864 objects [default=yes if supported]
865 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
866 [default=glibc default]
867 --enable-add-ons[=DIRS...]
868 configure and build add-ons in DIR1,DIR2,... search
869 for add-ons if no parameter given
870 --disable-hidden-plt do not hide internal function calls to avoid PLT
871 --enable-static-nss build static NSS modules [default=no]
872 --disable-force-install don't force installation of files from this package,
873 even if they are older than the installed files
874 --enable-kernel=VERSION compile for compatibility with kernel not older than
876 --enable-all-warnings enable all useful warnings gcc can issue
879 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
880 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
881 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)
882 --with-gd=DIR find libgd include dir and library with prefix DIR
883 --with-gd-include=DIR find libgd include files in DIR
884 --with-gd-lib=DIR find libgd library files in DIR
885 --with-fp if using floating-point hardware [default=yes]
886 --with-binutils=PATH specify location of binutils (as and ld)
887 --with-elf if using the ELF object format
888 --with-xcoff if using the XCOFF object format
889 --without-cvs if CVS should not be used
890 --with-headers=PATH location of system headers to use (for example
891 /usr/src/linux/include) [default=compiler
893 --with-tls enable support for TLS
894 --without-__thread do not use TLS features even when supporting them
896 Some influential environment variables:
897 CC C compiler command
898 CFLAGS C compiler flags
899 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
900 nonstandard directory <lib dir>
901 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
902 headers in a nonstandard directory <include dir>
905 Use these variables to override the choices made by `configure' or to help
906 it to find libraries and programs with nonstandard names/locations.
908 Report bugs to <glibc>.
912 if test "$ac_init_help" = "recursive"; then
913 # If there are subdirs, report their specific --help.
915 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
916 test -d $ac_dir || continue
919 if test "$ac_dir" != .; then
920 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
921 # A "../" for each directory in $ac_dir_suffix.
922 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
924 ac_dir_suffix= ac_top_builddir=
928 .) # No --srcdir option. We are building in place.
930 if test -z "$ac_top_builddir"; then
933 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
935 [\\/]* | ?:[\\/]* ) # Absolute path.
936 ac_srcdir=$srcdir$ac_dir_suffix;
937 ac_top_srcdir=$srcdir ;;
939 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
940 ac_top_srcdir=$ac_top_builddir$srcdir ;;
942 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
944 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
945 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
946 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
947 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
950 # Check for guested configure; otherwise get Cygnus style configure.
951 if test -f $ac_srcdir/configure.gnu; then
953 $SHELL $ac_srcdir/configure.gnu --help=recursive
954 elif test -f $ac_srcdir/configure; then
956 $SHELL $ac_srcdir/configure --help=recursive
957 elif test -f $ac_srcdir/configure.ac ||
958 test -f $ac_srcdir/configure.in; then
962 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968 test -n "$ac_init_help" && exit 0
969 if $ac_init_version; then
971 GNU C Library configure (see version.h)
972 generated by GNU Autoconf 2.57
974 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
975 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
983 This file contains any messages produced by compilers while
984 running configure, to aid debugging if configure makes a mistake.
986 It was created by GNU C Library $as_me (see version.h), which was
987 generated by GNU Autoconf 2.57. Invocation command line was
998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1010 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 test -z "$as_dir" && as_dir=.
1022 echo "PATH: $as_dir"
1037 # Keep a trace of the command line.
1038 # Strip out --no-create and --no-recursion so they do not pile up.
1039 # Strip out --silent because we don't want to record it for future runs.
1040 # Also quote any args containing shell meta-characters.
1041 # Make two passes to allow for proper duplicate-argument suppression.
1046 ac_must_keep_next=false
1052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1056 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1060 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1062 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1063 if test $ac_must_keep_next = true; then
1064 ac_must_keep_next=false # Got value, back to normal.
1067 *=* | --config-cache | -C | -disable-* | --disable-* \
1068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1070 | -with-* | --with-* | -without-* | --without-* | --x)
1071 case "$ac_configure_args0 " in
1072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1075 -* ) ac_must_keep_next=true ;;
1078 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1079 # Get rid of the leading space.
1085 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1086 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1088 # When interrupted or exit'd, cleanup temporary files, and complete
1089 # config.log. We remove comments because anyway the quotes in there
1090 # would cause problems or look ugly.
1091 # WARNING: Be sure not to use single quotes in there, as some shells,
1092 # such as our DU 5.0 friend, will then `close' the trap.
1093 trap 'exit_status=$?
1094 # Save into config.log some information that might help in debugging.
1099 ## ---------------- ##
1100 ## Cache variables. ##
1101 ## ---------------- ##
1104 # The following way of writing the cache mishandles newlines in values,
1107 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1110 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1115 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122 ## ----------------- ##
1123 ## Output variables. ##
1124 ## ----------------- ##
1127 for ac_var in $ac_subst_vars
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1134 if test -n "$ac_subst_files"; then
1141 for ac_var in $ac_subst_files
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1149 if test -s confdefs.h; then
1156 sed "/^$/d" confdefs.h | sort
1159 test "$ac_signal" != 0 &&
1160 echo "$as_me: caught signal $ac_signal"
1161 echo "$as_me: exit $exit_status"
1163 rm -f core core.* *.core &&
1164 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1167 for ac_signal in 1 2 13 15; do
1168 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1173 rm -rf conftest* confdefs.h
1174 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1177 # Predefined preprocessor variables.
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_NAME "$PACKAGE_NAME"
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_STRING "$PACKAGE_STRING"
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204 # Let the site file select an alternate cache file if it wants to.
1205 # Prefer explicitly selected file to automatically selected ones.
1206 if test -z "$CONFIG_SITE"; then
1207 if test "x$prefix" != xNONE; then
1208 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1210 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1213 for ac_site_file in $CONFIG_SITE; do
1214 if test -r "$ac_site_file"; then
1215 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1216 echo "$as_me: loading site script $ac_site_file" >&6;}
1217 sed 's/^/| /' "$ac_site_file" >&5
1222 if test -r "$cache_file"; then
1223 # Some versions of bash will fail to source /dev/null (special
1224 # files actually), so we avoid doing that.
1225 if test -f "$cache_file"; then
1226 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1227 echo "$as_me: loading cache $cache_file" >&6;}
1229 [\\/]* | ?:[\\/]* ) . $cache_file;;
1230 *) . ./$cache_file;;
1234 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1235 echo "$as_me: creating cache $cache_file" >&6;}
1239 # Check that the precious variables saved in the cache have kept the same
1241 ac_cache_corrupted=false
1242 for ac_var in `(set) 2>&1 |
1243 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1245 eval ac_new_set=\$ac_env_${ac_var}_set
1246 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1247 eval ac_new_val="\$ac_env_${ac_var}_value"
1248 case $ac_old_set,$ac_new_set in
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1259 if test "x$ac_old_val" != "x$ac_new_val"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1263 echo "$as_me: former value: $ac_old_val" >&2;}
1264 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1265 echo "$as_me: current value: $ac_new_val" >&2;}
1266 ac_cache_corrupted=:
1269 # Pass precious variables to config.status.
1270 if test "$ac_new_set" = set; then
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 *) ac_arg=$ac_var=$ac_new_val ;;
1276 case " $ac_configure_args " in
1277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1278 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1282 if $ac_cache_corrupted; then
1283 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1284 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1285 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1286 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1287 { (exit 1); exit 1; }; }
1291 ac_cpp='$CPP $CPPFLAGS'
1292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323 ac_config_headers="$ac_config_headers config.h"
1326 for ac_dir in scripts $srcdir/scripts; do
1327 if test -f $ac_dir/install-sh; then
1329 ac_install_sh="$ac_aux_dir/install-sh -c"
1331 elif test -f $ac_dir/install.sh; then
1333 ac_install_sh="$ac_aux_dir/install.sh -c"
1335 elif test -f $ac_dir/shtool; then
1337 ac_install_sh="$ac_aux_dir/shtool install -c"
1341 if test -z "$ac_aux_dir"; then
1342 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&5
1343 echo "$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&2;}
1344 { (exit 1); exit 1; }; }
1346 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1347 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1348 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1351 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
1352 { { echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
1353 echo "$as_me: error: you must configure in a separate build directory" >&2;}
1354 { (exit 1); exit 1; }; }
1357 # This will get text that should go into config.make.
1360 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
1362 # Check whether --with-gmp or --without-gmp was given.
1363 if test "${with_gmp+set}" = set; then
1367 yes) { { echo "$as_me:$LINENO: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&5
1368 echo "$as_me: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&2;}
1369 { (exit 1); exit 1; }; } ;;
1371 *) config_vars="$config_vars
1372 gmp-srcdir = $withval" ;;
1376 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
1378 # Check whether --with-gd or --without-gd was given.
1379 if test "${with_gd+set}" = set; then
1383 *) libgd_include="-I$withval/include"
1384 libgd_ldflags="-L$withval/lib" ;;
1389 # Check whether --with-gd-include or --without-gd-include was given.
1390 if test "${with_gd_include+set}" = set; then
1391 withval="$with_gd_include"
1392 case "$with_gd_include" in
1394 *) libgd_include="-I$withval" ;;
1399 # Check whether --with-gd-lib or --without-gd-lib was given.
1400 if test "${with_gd_lib+set}" = set; then
1401 withval="$with_gd_lib"
1402 case "$with_gd_lib" in
1404 *) libgd_ldflags="-L$withval" ;;
1409 if test -n "$libgd_include"; then
1410 config_vars="$config_vars
1411 CFLAGS-memusagestat.c = $libgd_include"
1413 if test -n "$libgd_ldflags"; then
1414 config_vars="$config_vars
1415 libgd-LDFLAGS = $libgd_ldflags"
1419 # Check whether --with-fp or --without-fp was given.
1420 if test "${with_fp+set}" = set; then
1428 # Check whether --with-binutils or --without-binutils was given.
1429 if test "${with_binutils+set}" = set; then
1430 withval="$with_binutils"
1431 path_binutils=$withval
1436 # Check whether --with-elf or --without-elf was given.
1437 if test "${with_elf+set}" = set; then
1444 # Check whether --with-xcoff or --without-xcoff was given.
1445 if test "${with_xcoff+set}" = set; then
1446 withval="$with_xcoff"
1452 # Check whether --with-cvs or --without-cvs was given.
1453 if test "${with_cvs+set}" = set; then
1459 if test "$with_cvs" = yes; then
1460 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
1468 # Check whether --with-headers or --without-headers was given.
1469 if test "${with_headers+set}" = set; then
1470 withval="$with_headers"
1476 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
1477 if test "${enable_sanity_checks+set}" = set; then
1478 enableval="$enable_sanity_checks"
1479 enable_sanity=$enableval
1485 # Check whether --enable-check-abi or --disable-check-abi was given.
1486 if test "${enable_check_abi+set}" = set; then
1487 enableval="$enable_check_abi"
1488 enable_check_abi=$enableval
1494 # Check whether --enable-shared or --disable-shared was given.
1495 if test "${enable_shared+set}" = set; then
1496 enableval="$enable_shared"
1501 # Check whether --enable-profile or --disable-profile was given.
1502 if test "${enable_profile+set}" = set; then
1503 enableval="$enable_profile"
1508 # Check whether --enable-omitfp or --disable-omitfp was given.
1509 if test "${enable_omitfp+set}" = set; then
1510 enableval="$enable_omitfp"
1515 # Check whether --enable-bounded or --disable-bounded was given.
1516 if test "${enable_bounded+set}" = set; then
1517 enableval="$enable_bounded"
1522 # Check whether --enable-versioning or --disable-versioning was given.
1523 if test "${enable_versioning+set}" = set; then
1524 enableval="$enable_versioning"
1525 enable_versioning=$enableval
1527 enable_versioning=yes
1530 # Check whether --enable-oldest-abi or --disable-oldest-abi was given.
1531 if test "${enable_oldest_abi+set}" = set; then
1532 enableval="$enable_oldest_abi"
1533 oldest_abi=$enableval
1537 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
1540 cat >>confdefs.h <<_ACEOF
1541 #define GLIBC_OLDEST_ABI "$oldest_abi"
1547 # Check whether --enable-add-ons or --disable-add-ons was given.
1548 if test "${enable_add_ons+set}" = set; then
1549 enableval="$enable_add_ons"
1550 case "$enableval" in
1551 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
1552 test "$add_ons" = "*" && add_ons= ;;
1553 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
1560 # Check whether --with-tls or --without-tls was given.
1561 if test "${with_tls+set}" = set; then
1569 # Check whether --with-__thread or --without-__thread was given.
1570 if test "${with___thread+set}" = set; then
1571 withval="$with___thread"
1572 use__thread=$withval
1577 # Check whether --enable-hidden-plt or --disable-hidden-plt was given.
1578 if test "${enable_hidden_plt+set}" = set; then
1579 enableval="$enable_hidden_plt"
1584 if test "x$hidden" = xno; then
1585 cat >>confdefs.h <<\_ACEOF
1595 if test x"$add_ons" != x; then
1596 for f in $add_ons; do
1597 # Some sanity checks
1598 if test "$f" = "crypt"; then
1599 { { echo "$as_me:$LINENO: error:
1600 *** It seems that you're using an old \`crypt' add-on. crypt is now
1601 *** part of glibc and using the old add-on will not work with this
1602 *** release. Start again with fresh sources and without the old
1603 *** \`crypt' add-on." >&5
1604 echo "$as_me: error:
1605 *** It seems that you're using an old \`crypt' add-on. crypt is now
1606 *** part of glibc and using the old add-on will not work with this
1607 *** release. Start again with fresh sources and without the old
1608 *** \`crypt' add-on." >&2;}
1609 { (exit 1); exit 1; }; }
1611 if test "$f" = "localedata"; then
1612 { { echo "$as_me:$LINENO: error:
1613 *** It seems that you're using an old \`localedata' add-on. localedata
1614 *** is now part of glibc and using the old add-on will not work with
1615 *** this release. Start again with fresh sources and without the old
1616 *** \`localedata' add-on." >&5
1617 echo "$as_me: error:
1618 *** It seems that you're using an old \`localedata' add-on. localedata
1619 *** is now part of glibc and using the old add-on will not work with
1620 *** this release. Start again with fresh sources and without the old
1621 *** \`localedata' add-on." >&2;}
1622 { (exit 1); exit 1; }; }
1624 # Test whether such a subdir really exists.
1625 if test -d $srcdir/$f; then
1626 add_ons_pfx="$add_ons_pfx $f/"
1627 subdirs="$subdirs $f"
1629 { { echo "$as_me:$LINENO: error: add-on directory \"$f\" does not exist" >&5
1630 echo "$as_me: error: add-on directory \"$f\" does not exist" >&2;}
1631 { (exit 1); exit 1; }; }
1636 # Check whether --enable-static-nss or --disable-static-nss was given.
1637 if test "${enable_static_nss+set}" = set; then
1638 enableval="$enable_static_nss"
1639 static_nss=$enableval
1643 if test x"$static_nss" = xyes || test x"$shared" = xno; then
1645 cat >>confdefs.h <<\_ACEOF
1646 #define DO_STATIC_NSS 1
1651 # Check whether --enable-force-install or --disable-force-install was given.
1652 if test "${enable_force_install+set}" = set; then
1653 enableval="$enable_force_install"
1654 force_install=$enableval
1660 # Check whether --enable-kernel or --disable-kernel was given.
1661 if test "${enable_kernel+set}" = set; then
1662 enableval="$enable_kernel"
1663 minimum_kernel=$enableval
1665 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
1666 # Better nothing than this.
1669 if test "$minimum_kernel" = current; then
1670 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
1674 # Check whether --enable-all-warnings or --disable-all-warnings was given.
1675 if test "${enable_all_warnings+set}" = set; then
1676 enableval="$enable_all_warnings"
1677 all_warnings=$enableval
1681 # Make sure we can run config.sub.
1682 $ac_config_sub sun4 >/dev/null 2>&1 ||
1683 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1684 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1685 { (exit 1); exit 1; }; }
1687 echo "$as_me:$LINENO: checking build system type" >&5
1688 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1689 if test "${ac_cv_build+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 ac_cv_build_alias=$build_alias
1693 test -z "$ac_cv_build_alias" &&
1694 ac_cv_build_alias=`$ac_config_guess`
1695 test -z "$ac_cv_build_alias" &&
1696 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1697 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1698 { (exit 1); exit 1; }; }
1699 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1700 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1701 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1702 { (exit 1); exit 1; }; }
1705 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1706 echo "${ECHO_T}$ac_cv_build" >&6
1708 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1709 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1710 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1713 echo "$as_me:$LINENO: checking host system type" >&5
1714 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1715 if test "${ac_cv_host+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1718 ac_cv_host_alias=$host_alias
1719 test -z "$ac_cv_host_alias" &&
1720 ac_cv_host_alias=$ac_cv_build_alias
1721 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1722 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1723 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1724 { (exit 1); exit 1; }; }
1727 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1728 echo "${ECHO_T}$ac_cv_host" >&6
1730 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1731 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1732 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1736 # The way shlib-versions is used to generate soversions.mk uses a
1737 # fairly simplistic model for name recognition that can't distinguish
1738 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
1739 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
1740 # tell. This doesn't get used much beyond that, so it's fairly safe.
1745 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
1749 # We keep the original values in `$config_*' and never modify them, so we
1750 # can write them unchanged into config.make. Everything else uses
1751 # $machine, $vendor, and $os, and changes them whenever convenient.
1752 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
1754 # Don't allow vendor == "unknown"
1755 test "$config_vendor" = unknown && config_vendor=
1756 config_os="`echo $config_os | sed 's/^unknown-//'`"
1758 # Some configurations imply other options.
1760 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
1761 # These systems always use GNU tools.
1762 gnu_ld=yes gnu_as=yes ;;
1765 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
1766 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
1768 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
1769 # These systems (almost) always use the ELF format.
1773 # These systems are always xcoff
1779 machine=$config_machine
1780 vendor=$config_vendor
1783 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
1785 if test "$machine" = rs6000; then
1789 # Braindead PowerPC box with absolutely no FPU.
1790 case "$machine-$host_os" in
1797 ### I put this here to prevent those annoying emails from people who cannot
1798 ### read and try to compile glibc on unsupported platforms. --drepper
1800 ### By using the undocumented --enable-hacker-mode option for configure
1801 ### one can skip this test to make the configuration not fail for unsupported
1804 if test -z "$enable_hacker_mode"; then
1805 case "$machine-$host_os" in
1806 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
1809 echo "*** The GNU C library is currently not available for this platform."
1810 echo "*** So far nobody cared to port it and if there is no volunteer it"
1811 echo "*** might never happen. So, if you have interest to see glibc on"
1812 echo "*** this platform visit"
1813 echo "*** http://www.gnu.org/software/libc/porting.html"
1814 echo "*** and join the group of porters"
1820 # Expand the configuration machine name into a subdirectory by architecture
1821 # type and particular chip.
1823 a29k | am29000) base_machine=a29k machine=a29k ;;
1824 alpha*) base_machine=alpha machine=alpha/$machine ;;
1825 arm*) base_machine=arm machine=arm/arm32/$machine ;;
1826 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
1827 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
1828 hppa*64*) base_machine=hppa machine=hppa/hppa64 ;;
1829 hppa*) base_machine=hppa machine=hppa/hppa1.1 ;;
1830 i[3456]86) base_machine=i386 machine=i386/$machine ;;
1831 ia64) base_machine=ia64 machine=ia64 ;;
1832 m680?0) base_machine=m68k machine=m68k/$machine ;;
1833 m68k) base_machine=m68k machine=m68k/m68020 ;;
1834 m88???) base_machine=m88k machine=m88k/$machine ;;
1835 m88k) base_machine=m88k machine=m88k/m88100 ;;
1836 mips64*) base_machine=mips64
1837 case "$CC $CPPFLAGS $CFLAGS " in
1838 *" -mabi=n32 "*) mips_cc_abi=n32 ;;
1839 *" -mabi=64 "*|*" -mabi=n64 "*) mips_cc_abi=64 ;;
1840 *" -mabi=32 "*|*" -mabi=o32 "*) mips_cc_abi=32 ;;
1841 *) mips_cc_abi=default ;;
1844 *abin32*) mips_config_abi=n32 ;;
1845 *abi64*|*abin64*) mips_config_abi=64 ;;
1846 *abi32*|*abio32*) mips_config_abi=32 ;;
1847 *) mips_config_abi=$mips_cc_abi ;;
1849 case $mips_config_abi in
1850 default) machine=mips/mips64/n32 mips_config_abi=n32 ;;
1851 n32) machine=mips/mips64/n32 ;;
1852 64) machine=mips/mips64/n64 ;;
1853 32) machine=mips/mips32/kern64 ;;
1855 machine=$machine/$config_machine
1856 if test $mips_config_abi != $mips_cc_abi; then
1857 # This won't make it to config.make, but we want to
1858 # set this in case configure tests depend on it.
1859 CPPFLAGS="$CPPFLAGS -mabi=$mips_config_abi"
1862 mips*) base_machine=mips machine=mips/mips32/$machine ;;
1863 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
1864 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
1865 s390) base_machine=s390 machine=s390/s390-32 ;;
1866 s390x) base_machine=s390 machine=s390/s390-64 ;;
1867 sh3*) base_machine=sh machine=sh/sh3 ;;
1868 sh4*) base_machine=sh machine=sh/sh4 ;;
1870 base_machine=sparc machine=sparc/sparc32 ;;
1871 sparcv8 | supersparc | hypersparc)
1872 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
1873 sparcv8plus | sparcv8plusa | sparcv9)
1874 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
1875 sparcv8plusb | sparcv9b)
1876 base_machine=sparc machine=sparc/sparc32/sparcv9b ;;
1877 sparc64 | ultrasparc)
1878 base_machine=sparc machine=sparc/sparc64 ;;
1879 sparc64b | ultrasparc3)
1880 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
1881 thumb*) base_machine=thumb machine=arm/thumb/$machine ;;
1882 *) base_machine=$machine ;;
1886 if test "$base_machine" = "i386"; then
1887 cat >>confdefs.h <<\_ACEOF
1888 #define USE_REGPARMS 1
1893 # Compute the list of sysdep directories for this configuration.
1894 # This can take a while to compute.
1895 sysdep_dir=$srcdir/sysdeps
1896 echo "$as_me:$LINENO: checking sysdep dirs" >&5
1897 echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6
1898 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1899 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1903 base_os=mach/hurd ;;
1904 netbsd* | 386bsd* | freebsd* | bsdi*)
1905 base_os=unix/bsd/bsd4.4 ;;
1906 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1908 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1909 base_os=unix/sysv ;;
1911 base_os=unix/sysv/irix6/$os ;;
1913 base_os=unix/sysv/sysv4 ;;
1915 base_os=unix/sysv/hpux/$os ;;
1917 base_os=unix/sysv/aix/aix4.3 ;;
1919 base_os=standalone ;;
1924 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1927 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1931 o=`echo $tail | sed 's/[0-9]*$//'`
1932 if test $o != $tail; then
1935 # For linux-gnu, try linux-gnu, then linux.
1936 o=`echo $tail | sed 's/-.*$//'`
1937 if test $o != $tail; then
1941 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1944 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1950 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1953 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1955 # Prepend the machine's FPU directory unless --without-fp.
1956 if test "$with_fp" = yes; then
1957 mach="$mach /$1/fpu"
1959 mach="$mach /$1/nofpu"
1966 # Find what sysdep directories exist.
1968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1969 for d in $add_ons_pfx ''; do
1970 for b in $base ''; do
1971 for m0 in $mach ''; do
1972 for v in /$vendor ''; do
1973 test "$v" = / && continue
1974 for o in /$ostry ''; do
1975 test "$o" = / && continue
1976 for m in $mach ''; do
1977 if test "$m0$b$v$o$m"; then
1978 try="${d}sysdeps$m0$b$v$o$m"
1979 test -n "$enable_debug_configure" &&
1980 echo "$0 DEBUG: try $try" >&2
1981 if test -d $srcdir/$try; then
1982 sysnames="$sysnames $try"
1983 { test -n "$o" || test -n "$b"; } && os_used=t
1984 { test -n "$m" || test -n "$m0"; } && machine_used=t
1995 if test -z "$os_used" && test "$os" != none; then
1996 { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
1997 echo "$as_me: error: Operating system $os is not supported." >&2;}
1998 { (exit 1); exit 1; }; }
2000 if test -z "$machine_used" && test "$machine" != none; then
2001 { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
2002 echo "$as_me: error: The $machine is not supported." >&2;}
2003 { (exit 1); exit 1; }; }
2006 # We have now validated the configuration.
2009 # If using ELF, look for an `elf' subdirectory of each machine directory.
2010 # We prepend these rather than inserting them whereever the machine appears
2011 # because things specified by the machine's ELF ABI should override
2012 # OS-specific things, and should always be the same for any OS on the
2013 # machine (otherwise what's the point of an ABI?).
2014 if test "$elf" = yes; then
2016 for d in $add_ons_pfx ''; do
2018 if test -d $srcdir/${d}sysdeps$m/elf; then
2019 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
2023 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
2027 # Expand the list of system names into a full list of directories
2028 # from each element's parent name and Implies file (if present).
2031 while test $# -gt 0; do
2035 case " $names " in *" $name "*)
2036 # Already in the list.
2040 # Report each name as we discover it, so there is no long pause in output.
2041 echo $ECHO_N "$name $ECHO_C" >&6
2043 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
2047 *) xsrcdir=$srcdir/ ;;
2049 test -n "$enable_debug_configure" &&
2050 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
2052 if test -f $xsrcdir$name/Implies; then
2053 # Collect more names from the `Implies' file (removing comments).
2054 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
2056 for x in $implied_candidate; do
2058 if test -d $xsrcdir$name_base/$x; then
2059 implied="$implied $name_base/$x";
2062 for d in $add_ons_pfx ''; do
2063 try="${d}sysdeps/$x"
2066 *) try_srcdir=$srcdir/ ;;
2068 test -n "$enable_debug_configure" &&
2069 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
2070 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
2072 implied="$implied $try"
2076 if test $found = no; then
2077 { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
2078 echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
2085 # Add NAME to the list of names.
2086 names="$names $name"
2088 # Find the parent of NAME, using the empty string if it has none.
2089 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
2091 # Add the names implied by NAME, and NAME's parent (if it has one), to
2092 # the list of names to be processed (the argument list). We prepend the
2093 # implied names to the list and append the parent. We want implied
2094 # directories to come before further directories inferred from the
2095 # configuration components; this ensures that for sysv4, unix/common
2096 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
2098 sysnames="`echo $implied $* $parent`"
2099 test -n "$sysnames" && set $sysnames
2102 # Add the default directories.
2103 default_sysnames=sysdeps/generic
2104 if test "$elf" = yes; then
2105 default_sysnames="sysdeps/generic/elf $default_sysnames"
2107 sysnames="$names $default_sysnames"
2109 # The other names were emitted during the scan.
2110 echo "$as_me:$LINENO: result: $default_sysnames" >&5
2111 echo "${ECHO_T}$default_sysnames" >&6
2116 # Find a good install program. We prefer a C program (faster),
2117 # so one script is as good as another. But avoid the broken or
2118 # incompatible versions:
2119 # SysV /etc/install, /usr/sbin/install
2120 # SunOS /usr/etc/install
2121 # IRIX /sbin/install
2123 # AmigaOS /C/install, which installs bootblocks on floppy discs
2124 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2125 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2126 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2127 # ./install, which can be erroneously created by make from ./install.sh.
2128 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2129 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2130 if test -z "$INSTALL"; then
2131 if test "${ac_cv_path_install+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 test -z "$as_dir" && as_dir=.
2139 # Account for people who put trailing slashes in PATH elements.
2141 ./ | .// | /cC/* | \
2142 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2145 # OSF1 and SCO ODT 3.0 have their own names for install.
2146 # Don't use installbsd from OSF since it installs stuff as root
2148 for ac_prog in ginstall scoinst install; do
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2151 if test $ac_prog = install &&
2152 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2153 # AIX install. It has an incompatible calling convention.
2155 elif test $ac_prog = install &&
2156 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2157 # program-specific install script used by HP pwplus--don't use.
2160 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2172 if test "${ac_cv_path_install+set}" = set; then
2173 INSTALL=$ac_cv_path_install
2175 # As a last resort, use the slow shell script. We don't cache a
2176 # path for INSTALL within a source directory, because that will
2177 # break other packages using the cache if that directory is
2178 # removed, or if the path is relative.
2179 INSTALL=$ac_install_sh
2182 echo "$as_me:$LINENO: result: $INSTALL" >&5
2183 echo "${ECHO_T}$INSTALL" >&6
2185 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2186 # It thinks the first close brace ends the variable substitution.
2187 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2189 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2191 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2193 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
2194 # The makefiles need to use a different form to find it in $srcdir.
2195 INSTALL='\$(..)./scripts/install-sh -c'
2197 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2198 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2200 if test "$LN_S" = "ln -s"; then
2201 echo "$as_me:$LINENO: result: yes" >&5
2202 echo "${ECHO_T}yes" >&6
2204 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2205 echo "${ECHO_T}no, using $LN_S" >&6
2210 ac_cpp='$CPP $CPPFLAGS'
2211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2214 if test -n "$ac_tool_prefix"; then
2215 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2216 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2217 echo "$as_me:$LINENO: checking for $ac_word" >&5
2218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2219 if test "${ac_cv_prog_CC+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 if test -n "$CC"; then
2223 ac_cv_prog_CC="$CC" # Let the user override the test.
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 test -z "$as_dir" && as_dir=.
2230 for ac_exec_ext in '' $ac_executable_extensions; do
2231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2232 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 if test -n "$CC"; then
2243 echo "$as_me:$LINENO: result: $CC" >&5
2244 echo "${ECHO_T}$CC" >&6
2246 echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6
2251 if test -z "$ac_cv_prog_CC"; then
2253 # Extract the first word of "gcc", so it can be a program name with args.
2254 set dummy gcc; ac_word=$2
2255 echo "$as_me:$LINENO: checking for $ac_word" >&5
2256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2257 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 if test -n "$ac_ct_CC"; then
2261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 test -z "$as_dir" && as_dir=.
2268 for ac_exec_ext in '' $ac_executable_extensions; do
2269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2270 ac_cv_prog_ac_ct_CC="gcc"
2271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2280 if test -n "$ac_ct_CC"; then
2281 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2282 echo "${ECHO_T}$ac_ct_CC" >&6
2284 echo "$as_me:$LINENO: result: no" >&5
2285 echo "${ECHO_T}no" >&6
2293 if test -z "$CC"; then
2294 if test -n "$ac_tool_prefix"; then
2295 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2296 set dummy ${ac_tool_prefix}cc; ac_word=$2
2297 echo "$as_me:$LINENO: checking for $ac_word" >&5
2298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2299 if test "${ac_cv_prog_CC+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 if test -n "$CC"; then
2303 ac_cv_prog_CC="$CC" # Let the user override the test.
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 test -z "$as_dir" && as_dir=.
2310 for ac_exec_ext in '' $ac_executable_extensions; do
2311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2312 ac_cv_prog_CC="${ac_tool_prefix}cc"
2313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 if test -n "$CC"; then
2323 echo "$as_me:$LINENO: result: $CC" >&5
2324 echo "${ECHO_T}$CC" >&6
2326 echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6
2331 if test -z "$ac_cv_prog_CC"; then
2333 # Extract the first word of "cc", so it can be a program name with args.
2334 set dummy cc; ac_word=$2
2335 echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2337 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 if test -n "$ac_ct_CC"; then
2341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2350 ac_cv_prog_ac_ct_CC="cc"
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2359 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2360 if test -n "$ac_ct_CC"; then
2361 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2362 echo "${ECHO_T}$ac_ct_CC" >&6
2364 echo "$as_me:$LINENO: result: no" >&5
2365 echo "${ECHO_T}no" >&6
2374 if test -z "$CC"; then
2375 # Extract the first word of "cc", so it can be a program name with args.
2376 set dummy cc; ac_word=$2
2377 echo "$as_me:$LINENO: checking for $ac_word" >&5
2378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2379 if test "${ac_cv_prog_CC+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 if test -n "$CC"; then
2383 ac_cv_prog_CC="$CC" # Let the user override the test.
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2394 ac_prog_rejected=yes
2398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 if test $ac_prog_rejected = yes; then
2405 # We found a bogon in the path, so make sure we never use it.
2406 set dummy $ac_cv_prog_CC
2408 if test $# != 0; then
2409 # We chose a different compiler from the bogus one.
2410 # However, it has the same basename, so the bogon will be chosen
2411 # first if we set CC to just the basename; use the full file name.
2413 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2419 if test -n "$CC"; then
2420 echo "$as_me:$LINENO: result: $CC" >&5
2421 echo "${ECHO_T}$CC" >&6
2423 echo "$as_me:$LINENO: result: no" >&5
2424 echo "${ECHO_T}no" >&6
2428 if test -z "$CC"; then
2429 if test -n "$ac_tool_prefix"; then
2432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2434 echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2436 if test "${ac_cv_prog_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 if test -n "$CC"; then
2440 ac_cv_prog_CC="$CC" # Let the user override the test.
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2449 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 if test -n "$CC"; then
2460 echo "$as_me:$LINENO: result: $CC" >&5
2461 echo "${ECHO_T}$CC" >&6
2463 echo "$as_me:$LINENO: result: no" >&5
2464 echo "${ECHO_T}no" >&6
2467 test -n "$CC" && break
2470 if test -z "$CC"; then
2474 # Extract the first word of "$ac_prog", so it can be a program name with args.
2475 set dummy $ac_prog; ac_word=$2
2476 echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 if test -n "$ac_ct_CC"; then
2482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2491 ac_cv_prog_ac_ct_CC="$ac_prog"
2492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2501 if test -n "$ac_ct_CC"; then
2502 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2503 echo "${ECHO_T}$ac_ct_CC" >&6
2505 echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6
2509 test -n "$ac_ct_CC" && break
2518 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2519 See \`config.log' for more details." >&5
2520 echo "$as_me: error: no acceptable C compiler found in \$PATH
2521 See \`config.log' for more details." >&2;}
2522 { (exit 1); exit 1; }; }
2524 # Provide some information about the compiler.
2525 echo "$as_me:$LINENO:" \
2526 "checking for C compiler version" >&5
2527 ac_compiler=`set X $ac_compile; echo $2`
2528 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2529 (eval $ac_compiler --version </dev/null >&5) 2>&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }
2533 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2534 (eval $ac_compiler -v </dev/null >&5) 2>&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }
2538 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2539 (eval $ac_compiler -V </dev/null >&5) 2>&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }
2545 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2546 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2547 if test "${ac_cv_objext+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2550 cat >conftest.$ac_ext <<_ACEOF
2551 #line $LINENO "configure"
2554 cat confdefs.h >>conftest.$ac_ext
2555 cat >>conftest.$ac_ext <<_ACEOF
2556 /* end confdefs.h. */
2566 rm -f conftest.o conftest.obj
2567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2568 (eval $ac_compile) 2>&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; then
2572 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2575 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2583 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2584 See \`config.log' for more details." >&5
2585 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2586 See \`config.log' for more details." >&2;}
2587 { (exit 1); exit 1; }; }
2590 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2592 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2593 echo "${ECHO_T}$ac_cv_objext" >&6
2594 OBJEXT=$ac_cv_objext
2596 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2597 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2598 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 cat >conftest.$ac_ext <<_ACEOF
2602 #line $LINENO "configure"
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2620 rm -f conftest.$ac_objext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622 (eval $ac_compile) 2>&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
2626 { ac_try='test -s conftest.$ac_objext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2639 rm -f conftest.$ac_objext conftest.$ac_ext
2640 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2643 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2644 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2645 GCC=`test $ac_compiler_gnu = yes && echo yes`
2646 ac_test_CFLAGS=${CFLAGS+set}
2647 ac_save_CFLAGS=$CFLAGS
2649 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2650 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2651 if test "${ac_cv_prog_cc_g+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2654 cat >conftest.$ac_ext <<_ACEOF
2655 #line $LINENO "configure"
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h. */
2670 rm -f conftest.$ac_objext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672 (eval $ac_compile) 2>&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); } &&
2676 { ac_try='test -s conftest.$ac_objext'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2684 echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2689 rm -f conftest.$ac_objext conftest.$ac_ext
2691 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2692 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2693 if test "$ac_test_CFLAGS" = set; then
2694 CFLAGS=$ac_save_CFLAGS
2695 elif test $ac_cv_prog_cc_g = yes; then
2696 if test "$GCC" = yes; then
2702 if test "$GCC" = yes; then
2708 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2709 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2710 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 ac_cv_prog_cc_stdc=no
2715 cat >conftest.$ac_ext <<_ACEOF
2716 #line $LINENO "configure"
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2724 #include <sys/types.h>
2725 #include <sys/stat.h>
2726 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2727 struct buf { int x; };
2728 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2729 static char *e (p, i)
2735 static char *f (char * (*g) (char **, int), char **p, ...)
2740 s = g (p, va_arg (v,int));
2744 int test (int i, double x);
2745 struct s1 {int (*f) (int a);};
2746 struct s2 {int (*f) (double a);};
2747 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2753 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2758 # Don't try gcc -ansi; that turns off useful extensions and
2759 # breaks some systems' header files.
2760 # AIX -qlanglvl=ansi
2761 # Ultrix and OSF/1 -std1
2762 # HP-UX 10.20 and later -Ae
2763 # HP-UX older versions -Aa -D_HPUX_SOURCE
2764 # SVR4 -Xc -D__EXTENSIONS__
2765 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2767 CC="$ac_save_CC $ac_arg"
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try='test -s conftest.$ac_objext'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; }; then
2780 ac_cv_prog_cc_stdc=$ac_arg
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2787 rm -f conftest.$ac_objext
2789 rm -f conftest.$ac_ext conftest.$ac_objext
2794 case "x$ac_cv_prog_cc_stdc" in
2796 echo "$as_me:$LINENO: result: none needed" >&5
2797 echo "${ECHO_T}none needed" >&6 ;;
2799 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2800 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2801 CC="$CC $ac_cv_prog_cc_stdc" ;;
2804 # Some people use a C++ compiler to compile C. Since we use `exit',
2805 # in C++ we need to declare it. In case someone uses the same compiler
2806 # for both compiling C and C++ we need to have the C++ compiler decide
2807 # the declaration of exit, since it's the most demanding environment.
2808 cat >conftest.$ac_ext <<_ACEOF
2813 rm -f conftest.$ac_objext
2814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2815 (eval $ac_compile) 2>&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } &&
2819 { ac_try='test -s conftest.$ac_objext'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2825 for ac_declaration in \
2827 '#include <stdlib.h>' \
2828 'extern "C" void std::exit (int) throw (); using std::exit;' \
2829 'extern "C" void std::exit (int); using std::exit;' \
2830 'extern "C" void exit (int) throw ();' \
2831 'extern "C" void exit (int);' \
2834 cat >conftest.$ac_ext <<_ACEOF
2835 #line $LINENO "configure"
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2851 rm -f conftest.$ac_objext
2852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2853 (eval $ac_compile) 2>&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } &&
2857 { ac_try='test -s conftest.$ac_objext'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2865 echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2870 rm -f conftest.$ac_objext conftest.$ac_ext
2871 cat >conftest.$ac_ext <<_ACEOF
2872 #line $LINENO "configure"
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2887 rm -f conftest.$ac_objext
2888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2889 (eval $ac_compile) 2>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
2893 { ac_try='test -s conftest.$ac_objext'
2894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2901 echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2905 rm -f conftest.$ac_objext conftest.$ac_ext
2908 if test -n "$ac_declaration"; then
2909 echo '#ifdef __cplusplus' >>confdefs.h
2910 echo $ac_declaration >>confdefs.h
2911 echo '#endif' >>confdefs.h
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2919 rm -f conftest.$ac_objext conftest.$ac_ext
2921 ac_cpp='$CPP $CPPFLAGS'
2922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926 if test $host != $build; then
2927 for ac_prog in gcc cc
2929 # Extract the first word of "$ac_prog", so it can be a program name with args.
2930 set dummy $ac_prog; ac_word=$2
2931 echo "$as_me:$LINENO: checking for $ac_word" >&5
2932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2933 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2936 if test -n "$BUILD_CC"; then
2937 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946 ac_cv_prog_BUILD_CC="$ac_prog"
2947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 BUILD_CC=$ac_cv_prog_BUILD_CC
2956 if test -n "$BUILD_CC"; then
2957 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
2958 echo "${ECHO_T}$BUILD_CC" >&6
2960 echo "$as_me:$LINENO: result: no" >&5
2961 echo "${ECHO_T}no" >&6
2964 test -n "$BUILD_CC" && break
2970 ac_cpp='$CPP $CPPFLAGS'
2971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2974 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2975 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2976 # On Suns, sometimes $CPP names a directory.
2977 if test -n "$CPP" && test -d "$CPP"; then
2980 if test -z "$CPP"; then
2981 if test "${ac_cv_prog_CPP+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 # Double quotes because CPP needs to be expanded
2985 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2988 for ac_c_preproc_warn_flag in '' yes
2990 # Use a header file that comes with gcc, so configuring glibc
2991 # with a fresh cross-compiler works.
2992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2993 # <limits.h> exists even on freestanding compilers.
2994 # On the NeXT, cc -E runs the code through the compiler's parser,
2995 # not just through cpp. "Syntax error" is here to catch this case.
2996 cat >conftest.$ac_ext <<_ACEOF
2997 #line $LINENO "configure"
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3004 # include <limits.h>
3006 # include <assert.h>
3010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3013 grep -v '^ *+' conftest.er1 >conftest.err
3015 cat conftest.err >&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } >/dev/null; then
3018 if test -s conftest.err; then
3019 ac_cpp_err=$ac_c_preproc_warn_flag
3026 if test -z "$ac_cpp_err"; then
3029 echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3032 # Broken: fails on valid input.
3035 rm -f conftest.err conftest.$ac_ext
3037 # OK, works on sane cases. Now check whether non-existent headers
3038 # can be detected and how.
3039 cat >conftest.$ac_ext <<_ACEOF
3040 #line $LINENO "configure"
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3046 #include <ac_nonexistent.h>
3048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3051 grep -v '^ *+' conftest.er1 >conftest.err
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } >/dev/null; then
3056 if test -s conftest.err; then
3057 ac_cpp_err=$ac_c_preproc_warn_flag
3064 if test -z "$ac_cpp_err"; then
3065 # Broken: success on invalid input.
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3071 # Passes both tests.
3075 rm -f conftest.err conftest.$ac_ext
3078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3079 rm -f conftest.err conftest.$ac_ext
3080 if $ac_preproc_ok; then
3092 echo "$as_me:$LINENO: result: $CPP" >&5
3093 echo "${ECHO_T}$CPP" >&6
3095 for ac_c_preproc_warn_flag in '' yes
3097 # Use a header file that comes with gcc, so configuring glibc
3098 # with a fresh cross-compiler works.
3099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3100 # <limits.h> exists even on freestanding compilers.
3101 # On the NeXT, cc -E runs the code through the compiler's parser,
3102 # not just through cpp. "Syntax error" is here to catch this case.
3103 cat >conftest.$ac_ext <<_ACEOF
3104 #line $LINENO "configure"
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3111 # include <limits.h>
3113 # include <assert.h>
3117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3120 grep -v '^ *+' conftest.er1 >conftest.err
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } >/dev/null; then
3125 if test -s conftest.err; then
3126 ac_cpp_err=$ac_c_preproc_warn_flag
3133 if test -z "$ac_cpp_err"; then
3136 echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3139 # Broken: fails on valid input.
3142 rm -f conftest.err conftest.$ac_ext
3144 # OK, works on sane cases. Now check whether non-existent headers
3145 # can be detected and how.
3146 cat >conftest.$ac_ext <<_ACEOF
3147 #line $LINENO "configure"
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3153 #include <ac_nonexistent.h>
3155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3158 grep -v '^ *+' conftest.er1 >conftest.err
3160 cat conftest.err >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); } >/dev/null; then
3163 if test -s conftest.err; then
3164 ac_cpp_err=$ac_c_preproc_warn_flag
3171 if test -z "$ac_cpp_err"; then
3172 # Broken: success on invalid input.
3175 echo "$as_me: failed program was:" >&5
3176 sed 's/^/| /' conftest.$ac_ext >&5
3178 # Passes both tests.
3182 rm -f conftest.err conftest.$ac_ext
3185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3186 rm -f conftest.err conftest.$ac_ext
3187 if $ac_preproc_ok; then
3190 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3191 See \`config.log' for more details." >&5
3192 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3193 See \`config.log' for more details." >&2;}
3194 { (exit 1); exit 1; }; }
3198 ac_cpp='$CPP $CPPFLAGS'
3199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203 # Was a --with-binutils option given?
3204 if test -n "$path_binutils"; then
3205 # Make absolute; ensure a single trailing slash.
3206 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
3207 CC="$CC -B$path_binutils"
3209 AS=`$CC -print-prog-name=as`
3210 LD=`$CC -print-prog-name=ld`
3211 AR=`$CC -print-prog-name=ar`
3213 OBJDUMP=`$CC -print-prog-name=objdump`
3216 # ranlib has to be treated a bit differently since it might not exist at all.
3217 ac_ranlib=`$CC -print-prog-name=ranlib`
3218 if test "x$ac_ranlib" = xranlib; then
3219 # This extra check has to happen since gcc simply echos the parameter in
3220 # case it cannot find the value in its own directories.
3221 if test -n "$ac_tool_prefix"; then
3222 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3223 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3224 echo "$as_me:$LINENO: checking for $ac_word" >&5
3225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3226 if test "${ac_cv_prog_RANLIB+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 if test -n "$RANLIB"; then
3230 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 test -z "$as_dir" && as_dir=.
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3239 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 RANLIB=$ac_cv_prog_RANLIB
3249 if test -n "$RANLIB"; then
3250 echo "$as_me:$LINENO: result: $RANLIB" >&5
3251 echo "${ECHO_T}$RANLIB" >&6
3253 echo "$as_me:$LINENO: result: no" >&5
3254 echo "${ECHO_T}no" >&6
3258 if test -z "$ac_cv_prog_RANLIB"; then
3259 ac_ct_RANLIB=$RANLIB
3260 # Extract the first word of "ranlib", so it can be a program name with args.
3261 set dummy ranlib; ac_word=$2
3262 echo "$as_me:$LINENO: checking for $ac_word" >&5
3263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3264 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 if test -n "$ac_ct_RANLIB"; then
3268 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277 ac_cv_prog_ac_ct_RANLIB="ranlib"
3278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3287 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3288 if test -n "$ac_ct_RANLIB"; then
3289 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3290 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3292 echo "$as_me:$LINENO: result: no" >&5
3293 echo "${ECHO_T}no" >&6
3296 RANLIB=$ac_ct_RANLIB
3298 RANLIB="$ac_cv_prog_RANLIB"
3306 # Determine whether we are using GNU binutils.
3307 echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
3308 echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6
3309 if test "${libc_cv_prog_as_gnu+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 # Most GNU programs take a -v and spit out some text including
3313 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
3314 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3315 libc_cv_prog_as_gnu=yes
3317 libc_cv_prog_as_gnu=no
3321 echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
3322 echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6
3324 gnu_as=$libc_cv_prog_as_gnu
3326 echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
3327 echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6
3328 if test "${libc_cv_prog_ld_gnu+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 # Most GNU programs take a -v and spit out some text including
3332 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
3333 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3334 libc_cv_prog_ld_gnu=yes
3336 libc_cv_prog_ld_gnu=no
3340 echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
3341 echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6
3342 gnu_ld=$libc_cv_prog_ld_gnu
3345 # Accept binutils 2.13 or newer.
3348 # Extract the first word of "$ac_prog", so it can be a program name with args.
3349 set dummy $ac_prog; ac_word=$2
3350 echo "$as_me:$LINENO: checking for $ac_word" >&5
3351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3352 if test "${ac_cv_prog_AS+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 if test -n "$AS"; then
3356 ac_cv_prog_AS="$AS" # Let the user override the test.
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365 ac_cv_prog_AS="$ac_prog"
3366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 if test -n "$AS"; then
3376 echo "$as_me:$LINENO: result: $AS" >&5
3377 echo "${ECHO_T}$AS" >&6
3379 echo "$as_me:$LINENO: result: no" >&5
3380 echo "${ECHO_T}no" >&6
3383 test -n "$AS" && break
3386 if test -z "$AS"; then
3389 # Found it, now check the version.
3390 echo "$as_me:$LINENO: checking version of $AS" >&5
3391 echo $ECHO_N "checking version of $AS... $ECHO_C" >&6
3392 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3393 case $ac_prog_version in
3394 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3396 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3397 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3400 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3401 echo "${ECHO_T}$ac_prog_version" >&6
3403 if test $ac_verc_fail = yes; then
3404 AS=: critic_missing=t
3409 # Extract the first word of "$ac_prog", so it can be a program name with args.
3410 set dummy $ac_prog; ac_word=$2
3411 echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_prog_LD+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 if test -n "$LD"; then
3417 ac_cv_prog_LD="$LD" # Let the user override the test.
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3426 ac_cv_prog_LD="$ac_prog"
3427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 if test -n "$LD"; then
3437 echo "$as_me:$LINENO: result: $LD" >&5
3438 echo "${ECHO_T}$LD" >&6
3440 echo "$as_me:$LINENO: result: no" >&5
3441 echo "${ECHO_T}no" >&6
3444 test -n "$LD" && break
3447 if test -z "$LD"; then
3450 # Found it, now check the version.
3451 echo "$as_me:$LINENO: checking version of $LD" >&5
3452 echo $ECHO_N "checking version of $LD... $ECHO_C" >&6
3453 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
3454 case $ac_prog_version in
3455 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3457 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3458 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3461 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3462 echo "${ECHO_T}$ac_prog_version" >&6
3464 if test $ac_verc_fail = yes; then
3465 LD=: critic_missing=t
3469 # We need the physical current working directory. We cannot use the
3470 # "pwd -P" shell builtin since that's not portable. Instead we try to
3471 # find a pwd binary. Note that assigning to the PWD environment
3472 # variable might have some interesting side effects, so we don't do
3474 # Extract the first word of "pwd", so it can be a program name with args.
3475 set dummy pwd; ac_word=$2
3476 echo "$as_me:$LINENO: checking for $ac_word" >&5
3477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3478 if test "${ac_cv_path_PWD_P+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3483 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 test -z "$as_dir" && as_dir=.
3491 for ac_exec_ext in '' $ac_executable_extensions; do
3492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3493 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
3494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
3504 PWD_P=$ac_cv_path_PWD_P
3506 if test -n "$PWD_P"; then
3507 echo "$as_me:$LINENO: result: $PWD_P" >&5
3508 echo "${ECHO_T}$PWD_P" >&6
3510 echo "$as_me:$LINENO: result: no" >&5
3511 echo "${ECHO_T}no" >&6
3514 if test "$PWD_P" = no; then
3515 { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
3516 echo "$as_me: error: *** A pwd binary could not be found." >&2;}
3517 { (exit 1); exit 1; }; }
3520 # These programs are version sensitive.
3522 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
3524 # Extract the first word of "$ac_prog", so it can be a program name with args.
3525 set dummy $ac_prog; ac_word=$2
3526 echo "$as_me:$LINENO: checking for $ac_word" >&5
3527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3528 if test "${ac_cv_prog_CC+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3531 if test -n "$CC"; then
3532 ac_cv_prog_CC="$CC" # Let the user override the test.
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 test -z "$as_dir" && as_dir=.
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541 ac_cv_prog_CC="$ac_prog"
3542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 if test -n "$CC"; then
3552 echo "$as_me:$LINENO: result: $CC" >&5
3553 echo "${ECHO_T}$CC" >&6
3555 echo "$as_me:$LINENO: result: no" >&5
3556 echo "${ECHO_T}no" >&6
3559 test -n "$CC" && break
3562 if test -z "$CC"; then
3565 # Found it, now check the version.
3566 echo "$as_me:$LINENO: checking version of $CC" >&5
3567 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
3568 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
3569 case $ac_prog_version in
3570 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3572 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3573 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3576 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3577 echo "${ECHO_T}$ac_prog_version" >&6
3579 if test $ac_verc_fail = yes; then
3580 critic_missing="$critic_missing gcc"
3583 for ac_prog in gnumake gmake make
3585 # Extract the first word of "$ac_prog", so it can be a program name with args.
3586 set dummy $ac_prog; ac_word=$2
3587 echo "$as_me:$LINENO: checking for $ac_word" >&5
3588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3589 if test "${ac_cv_prog_MAKE+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 if test -n "$MAKE"; then
3593 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602 ac_cv_prog_MAKE="$ac_prog"
3603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 MAKE=$ac_cv_prog_MAKE
3612 if test -n "$MAKE"; then
3613 echo "$as_me:$LINENO: result: $MAKE" >&5
3614 echo "${ECHO_T}$MAKE" >&6
3616 echo "$as_me:$LINENO: result: no" >&5
3617 echo "${ECHO_T}no" >&6
3620 test -n "$MAKE" && break
3623 if test -z "$MAKE"; then
3626 # Found it, now check the version.
3627 echo "$as_me:$LINENO: checking version of $MAKE" >&5
3628 echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6
3629 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
3630 case $ac_prog_version in
3631 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3633 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3634 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3637 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3638 echo "${ECHO_T}$ac_prog_version" >&6
3640 if test $ac_verc_fail = yes; then
3641 critic_missing="$critic_missing make"
3645 for ac_prog in gnumsgfmt gmsgfmt msgfmt
3647 # Extract the first word of "$ac_prog", so it can be a program name with args.
3648 set dummy $ac_prog; ac_word=$2
3649 echo "$as_me:$LINENO: checking for $ac_word" >&5
3650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3651 if test "${ac_cv_prog_MSGFMT+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 if test -n "$MSGFMT"; then
3655 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 test -z "$as_dir" && as_dir=.
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3664 ac_cv_prog_MSGFMT="$ac_prog"
3665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3673 MSGFMT=$ac_cv_prog_MSGFMT
3674 if test -n "$MSGFMT"; then
3675 echo "$as_me:$LINENO: result: $MSGFMT" >&5
3676 echo "${ECHO_T}$MSGFMT" >&6
3678 echo "$as_me:$LINENO: result: no" >&5
3679 echo "${ECHO_T}no" >&6
3682 test -n "$MSGFMT" && break
3685 if test -z "$MSGFMT"; then
3688 # Found it, now check the version.
3689 echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
3690 echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6
3691 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3692 case $ac_prog_version in
3693 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3694 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
3695 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3696 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3699 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3700 echo "${ECHO_T}$ac_prog_version" >&6
3702 if test $ac_verc_fail = yes; then
3703 MSGFMT=: aux_missing="$aux_missing msgfmt"
3706 for ac_prog in makeinfo
3708 # Extract the first word of "$ac_prog", so it can be a program name with args.
3709 set dummy $ac_prog; ac_word=$2
3710 echo "$as_me:$LINENO: checking for $ac_word" >&5
3711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3712 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 if test -n "$MAKEINFO"; then
3716 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 test -z "$as_dir" && as_dir=.
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3725 ac_cv_prog_MAKEINFO="$ac_prog"
3726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 MAKEINFO=$ac_cv_prog_MAKEINFO
3735 if test -n "$MAKEINFO"; then
3736 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3737 echo "${ECHO_T}$MAKEINFO" >&6
3739 echo "$as_me:$LINENO: result: no" >&5
3740 echo "${ECHO_T}no" >&6
3743 test -n "$MAKEINFO" && break
3746 if test -z "$MAKEINFO"; then
3749 # Found it, now check the version.
3750 echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
3751 echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6
3752 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3753 case $ac_prog_version in
3754 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3756 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3757 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3760 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3761 echo "${ECHO_T}$ac_prog_version" >&6
3763 if test $ac_verc_fail = yes; then
3764 MAKEINFO=: aux_missing="$aux_missing makeinfo"
3769 # Extract the first word of "$ac_prog", so it can be a program name with args.
3770 set dummy $ac_prog; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_prog_SED+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 if test -n "$SED"; then
3777 ac_cv_prog_SED="$SED" # Let the user override the test.
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 test -z "$as_dir" && as_dir=.
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3786 ac_cv_prog_SED="$ac_prog"
3787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 if test -n "$SED"; then
3797 echo "$as_me:$LINENO: result: $SED" >&5
3798 echo "${ECHO_T}$SED" >&6
3800 echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6
3804 test -n "$SED" && break
3807 if test -z "$SED"; then
3810 # Found it, now check the version.
3811 echo "$as_me:$LINENO: checking version of $SED" >&5
3812 echo $ECHO_N "checking version of $SED... $ECHO_C" >&6
3813 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
3814 case $ac_prog_version in
3815 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3816 3.0[2-9]*|3.[1-9]*|[4-9]*)
3817 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3818 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3821 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3822 echo "${ECHO_T}$ac_prog_version" >&6
3824 if test $ac_verc_fail = yes; then
3825 SED=: aux_missing="$aux_missing sed"
3829 if test "x$with_cvs" != xyes; then
3830 for ac_prog in autoconf
3832 # Extract the first word of "$ac_prog", so it can be a program name with args.
3833 set dummy $ac_prog; ac_word=$2
3834 echo "$as_me:$LINENO: checking for $ac_word" >&5
3835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3836 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 if test -n "$AUTOCONF"; then
3840 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 test -z "$as_dir" && as_dir=.
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849 ac_cv_prog_AUTOCONF="$ac_prog"
3850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3858 AUTOCONF=$ac_cv_prog_AUTOCONF
3859 if test -n "$AUTOCONF"; then
3860 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3861 echo "${ECHO_T}$AUTOCONF" >&6
3863 echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6
3867 test -n "$AUTOCONF" && break
3869 test -n "$AUTOCONF" || AUTOCONF="no"
3871 case "x$AUTOCONF" in
3872 xno|x|x:) AUTOCONF=no ;;
3874 echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
3875 echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6
3876 if test "${libc_cv_autoconf_works+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
3880 libc_cv_autoconf_works=yes
3882 libc_cv_autoconf_works=no
3885 echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
3886 echo "${ECHO_T}$libc_cv_autoconf_works" >&6
3887 test $libc_cv_autoconf_works = yes || AUTOCONF=no
3890 test "x$AUTOCONF" != xno || aux_missing="$aux_missing autoconf"
3893 test -n "$critic_missing" && { { echo "$as_me:$LINENO: error:
3894 *** These critical programs are missing or too old:$critic_missing
3895 *** Check the INSTALL file for required versions." >&5
3896 echo "$as_me: error:
3897 *** These critical programs are missing or too old:$critic_missing
3898 *** Check the INSTALL file for required versions." >&2;}
3899 { (exit 1); exit 1; }; }
3901 test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
3902 *** These auxiliary programs are missing or incompatible versions:$aux_missing
3903 *** some features will be disabled.
3904 *** Check the INSTALL file for required versions." >&5
3905 echo "$as_me: WARNING:
3906 *** These auxiliary programs are missing or incompatible versions:$aux_missing
3907 *** some features will be disabled.
3908 *** Check the INSTALL file for required versions." >&2;}
3910 # glibcbug.in wants to know the compiler version.
3911 CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
3914 # if using special system headers, find out the compiler's sekrit
3915 # header directory and add that to the list. NOTE: Only does the right
3916 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
3917 if test -n "$sysheaders"; then
3918 ccheaders=`$CC -print-file-name=include`
3919 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
3923 # check if ranlib is necessary
3924 echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
3925 echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6
3926 if test "${libc_cv_ranlib_necessary+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 cat > conftest.c <<EOF
3934 $CC $CFLAGS -c conftest.c
3935 $AR cr conftest.a conftest.o
3936 cp conftest.a conftest2.a
3938 if cmp -s conftest.a conftest2.a; then
3939 libc_cv_ranlib_necessary=no
3941 libc_cv_ranlib_necessary=yes
3945 echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
3946 echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6
3947 if test "$libc_cv_ranlib_necessary" = no; then
3951 # Test if LD_LIBRARY_PATH contains the notation for the current directory
3952 # since this would lead to problems installing/building glibc.
3953 # LD_LIBRARY_PATH contains the current directory if one of the following
3955 # - one of the terminals (":" and ";") is the first or last sign
3956 # - two terminals occur directly after each other
3957 # - the path contains an element with a dot in it
3958 echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
3959 echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6
3960 case ${LD_LIBRARY_PATH} in
3961 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3962 ld_library_path_setting="contains current directory"
3965 ld_library_path_setting="ok"
3968 echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
3969 echo "${ECHO_T}$ld_library_path_setting" >&6
3970 if test "$ld_library_path_setting" != "ok"; then
3971 { { echo "$as_me:$LINENO: error:
3972 *** LD_LIBRARY_PATH shouldn't contain the current directory when
3973 *** building glibc. Please change the environment variable
3974 *** and run configure again." >&5
3975 echo "$as_me: error:
3976 *** LD_LIBRARY_PATH shouldn't contain the current directory when
3977 *** building glibc. Please change the environment variable
3978 *** and run configure again." >&2;}
3979 { (exit 1); exit 1; }; }
3982 echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
3983 echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6
3984 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
3988 libc_cv_gcc_static_libgcc=
3990 libc_cv_gcc_static_libgcc=-static-libgcc
3993 echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
3994 echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6
3997 # Extract the first word of "bash", so it can be a program name with args.
3998 set dummy bash; ac_word=$2
3999 echo "$as_me:$LINENO: checking for $ac_word" >&5
4000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4001 if test "${ac_cv_path_BASH+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
4027 BASH=$ac_cv_path_BASH
4029 if test -n "$BASH"; then
4030 echo "$as_me:$LINENO: result: $BASH" >&5
4031 echo "${ECHO_T}$BASH" >&6
4033 echo "$as_me:$LINENO: result: no" >&5
4034 echo "${ECHO_T}no" >&6
4037 if test "$BASH" != no &&
4038 $BASH -c 'test "$BASH_VERSINFO" \
4039 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
4040 libc_cv_have_bash2=yes
4042 libc_cv_have_bash2=no
4046 if test "$BASH" = no; then
4047 # Extract the first word of "ksh", so it can be a program name with args.
4048 set dummy ksh; ac_word=$2
4049 echo "$as_me:$LINENO: checking for $ac_word" >&5
4050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4051 if test "${ac_cv_path_KSH+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 test -z "$as_dir" && as_dir=.
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4066 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
4067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4073 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
4079 if test -n "$KSH"; then
4080 echo "$as_me:$LINENO: result: $KSH" >&5
4081 echo "${ECHO_T}$KSH" >&6
4083 echo "$as_me:$LINENO: result: no" >&5
4084 echo "${ECHO_T}no" >&6
4087 if test "$KSH" = no; then
4090 libc_cv_have_ksh=yes
4095 libc_cv_have_ksh=yes
4099 for ac_prog in gawk mawk nawk awk
4101 # Extract the first word of "$ac_prog", so it can be a program name with args.
4102 set dummy $ac_prog; ac_word=$2
4103 echo "$as_me:$LINENO: checking for $ac_word" >&5
4104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4105 if test "${ac_cv_prog_AWK+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 if test -n "$AWK"; then
4109 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 test -z "$as_dir" && as_dir=.
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4118 ac_cv_prog_AWK="$ac_prog"
4119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 if test -n "$AWK"; then
4129 echo "$as_me:$LINENO: result: $AWK" >&5
4130 echo "${ECHO_T}$AWK" >&6
4132 echo "$as_me:$LINENO: result: no" >&5
4133 echo "${ECHO_T}no" >&6
4136 test -n "$AWK" && break
4139 # Extract the first word of "perl", so it can be a program name with args.
4140 set dummy perl; ac_word=$2
4141 echo "$as_me:$LINENO: checking for $ac_word" >&5
4142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4143 if test "${ac_cv_path_PERL+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
4169 PERL=$ac_cv_path_PERL
4171 if test -n "$PERL"; then
4172 echo "$as_me:$LINENO: result: $PERL" >&5
4173 echo "${ECHO_T}$PERL" >&6
4175 echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6
4179 if test "$PERL" != no &&
4180 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
4183 # Extract the first word of "install-info", so it can be a program name with args.
4184 set dummy install-info; ac_word=$2
4185 echo "$as_me:$LINENO: checking for $ac_word" >&5
4186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4187 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 case $INSTALL_INFO in
4192 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
4197 for as_dir in $as_dummy
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4203 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
4214 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4216 if test -n "$INSTALL_INFO"; then
4217 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4218 echo "${ECHO_T}$INSTALL_INFO" >&6
4220 echo "$as_me:$LINENO: result: no" >&5
4221 echo "${ECHO_T}no" >&6
4224 if test "$INSTALL_INFO" != "no"; then
4225 echo "$as_me:$LINENO: checking for old Debian install-info" >&5
4226 echo $ECHO_N "checking for old Debian install-info... $ECHO_C" >&6
4227 if test "${libc_cv_old_debian_install_info+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 # There is a hard ^_ on the next line. I am open to better ideas.
4233 echo 'File: dir Node: Top This is the top of the INFO tree'
4234 echo '* Menu:') >conftest.d/dir
4235 (echo 'INFO-DIR-SECTION i-d-s works'
4236 echo 'START-INFO-DIR-ENTRY'
4237 echo '* Prog: (prog). Program.'
4238 echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
4239 if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
4241 if grep -s 'i-d-s works' conftest.d/dir >/dev/null
4242 then libc_cv_old_debian_install_info=no
4243 else libc_cv_old_debian_install_info=yes
4245 else libc_cv_old_debian_install_info=no testfailed=t
4249 echo "$as_me:$LINENO: result: $libc_cv_old_debian_install_info" >&5
4250 echo "${ECHO_T}$libc_cv_old_debian_install_info" >&6
4251 if test -n "$testfailed"
4252 then { echo "$as_me:$LINENO: WARNING: install-info errored out, check config.log" >&5
4253 echo "$as_me: WARNING: install-info errored out, check config.log" >&2;}
4255 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
4259 # Extract the first word of "bison", so it can be a program name with args.
4260 set dummy bison; ac_word=$2
4261 echo "$as_me:$LINENO: checking for $ac_word" >&5
4262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4263 if test "${ac_cv_path_BISON+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
4273 for as_dir in $as_dummy
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
4280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
4290 BISON=$ac_cv_path_BISON
4292 if test -n "$BISON"; then
4293 echo "$as_me:$LINENO: result: $BISON" >&5
4294 echo "${ECHO_T}$BISON" >&6
4296 echo "$as_me:$LINENO: result: no" >&5
4297 echo "${ECHO_T}no" >&6
4301 echo "$as_me:$LINENO: checking for signed size_t type" >&5
4302 echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6
4303 if test "${libc_cv_signed_size_t+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 echo '#include <stddef.h>
4307 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
4308 if eval "$ac_cpp conftest.c 2>/dev/null" \
4309 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
4310 libc_cv_signed_size_t=no
4312 libc_cv_signed_size_t=yes
4316 echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
4317 echo "${ECHO_T}$libc_cv_signed_size_t" >&6
4318 if test $libc_cv_signed_size_t = yes; then
4319 cat >> confdefs.h <<\EOF
4320 #undef __SIZE_TYPE__
4321 #define __SIZE_TYPE__ unsigned
4326 echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
4327 echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6
4328 if test "${libc_cv_friendly_stddef+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 cat >conftest.$ac_ext <<_ACEOF
4332 #line $LINENO "configure"
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h. */
4338 #define __need_size_t
4339 #define __need_wchar_t
4346 size_t size; wchar_t wchar;
4348 #error stddef.h ignored __need_*
4350 if (&size == NULL || &wchar == NULL) abort ();
4355 rm -f conftest.$ac_objext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357 (eval $ac_compile) 2>&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); } &&
4361 { ac_try='test -s conftest.$ac_objext'
4362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; }; then
4367 libc_cv_friendly_stddef=yes
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4372 libc_cv_friendly_stddef=no
4374 rm -f conftest.$ac_objext conftest.$ac_ext
4376 echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
4377 echo "${ECHO_T}$libc_cv_friendly_stddef" >&6
4378 if test $libc_cv_friendly_stddef = yes; then
4379 config_vars="$config_vars
4380 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
4383 echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
4384 echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6
4385 if test "${libc_cv_need_minus_P+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 cat > conftest.S <<EOF
4389 #include "confdefs.h"
4390 /* Nothing whatsoever. */
4392 if { ac_try='${CC-cc} $CFLAGS -c conftest.S 1>&5'
4393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; }; then
4398 libc_cv_need_minus_P=no
4400 libc_cv_need_minus_P=yes
4404 echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
4405 echo "${ECHO_T}$libc_cv_need_minus_P" >&6
4406 if test $libc_cv_need_minus_P = yes; then
4407 config_vars="$config_vars
4408 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
4411 echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
4412 echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6
4413 if test "${libc_cv_dot_text+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 cat > conftest.s <<EOF
4420 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
4421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
4426 libc_cv_dot_text=.text
4431 if test -z "$libc_cv_dot_text"; then
4432 echo "$as_me:$LINENO: result: no" >&5
4433 echo "${ECHO_T}no" >&6
4435 echo "$as_me:$LINENO: result: yes" >&5
4436 echo "${ECHO_T}yes" >&6
4439 echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
4440 echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6
4441 if test "${libc_cv_asm_global_directive+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 libc_cv_asm_global_directive=UNKNOWN
4445 for ac_globl in .globl .global .EXPORT; do
4446 cat > conftest.s <<EOF
4451 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
4452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); }; }; then
4457 libc_cv_asm_global_directive=${ac_globl}
4460 test $libc_cv_asm_global_directive != UNKNOWN && break
4463 echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
4464 echo "${ECHO_T}$libc_cv_asm_global_directive" >&6
4465 if test $libc_cv_asm_global_directive = UNKNOWN; then
4466 { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
4467 echo "$as_me: error: cannot determine asm global directive" >&2;}
4468 { (exit 1); exit 1; }; }
4470 cat >>confdefs.h <<_ACEOF
4471 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
4476 echo "$as_me:$LINENO: checking for .set assembler directive" >&5
4477 echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6
4478 if test "${libc_cv_asm_set_directive+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 cat > conftest.s <<EOF
4484 .set glibc_conftest_frobozz,foo
4485 $libc_cv_asm_global_directive glibc_conftest_frobozz
4487 # The alpha-dec-osf1 assembler gives only a warning for `.set'
4488 # (but it doesn't work), so we must do a linking check to be sure.
4489 cat > conftest1.c <<\EOF
4490 extern int glibc_conftest_frobozz;
4491 main () { printf ("%d\n", glibc_conftest_frobozz); }
4493 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
4494 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
4495 libc_cv_asm_set_directive=yes
4497 libc_cv_asm_set_directive=no
4501 echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
4502 echo "${ECHO_T}$libc_cv_asm_set_directive" >&6
4503 if test $libc_cv_asm_set_directive = yes; then
4504 cat >>confdefs.h <<\_ACEOF
4505 #define HAVE_ASM_SET_DIRECTIVE 1
4510 echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
4511 echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6
4512 if test "${libc_cv_asm_type_prefix+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 libc_cv_asm_type_prefix=no
4516 for ac_try_prefix in '@' '%' '#'; do
4517 cat > conftest.s <<EOF
4519 ${libc_cv_asm_global_directive} foo
4520 .type foo, ${ac_try_prefix}object
4525 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; }; then
4531 libc_cv_asm_type_prefix=${ac_try_prefix}
4534 test "x$libc_cv_asm_type_prefix" != xno && break
4537 echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
4538 echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6
4539 if test "x$libc_cv_asm_type_prefix" != xno; then
4540 cat >>confdefs.h <<_ACEOF
4541 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
4546 # The Aix ld uses global .symbol_names instead of symbol_names.
4547 # Unfortunately also used in the PPC64 ELF ABI.
4548 case "${os}${machine}" in
4549 aix4.3* | linux*powerpc/powerpc64*)
4550 cat >>confdefs.h <<\_ACEOF
4551 #define HAVE_ASM_GLOBAL_DOT_NAME 1
4556 echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
4557 echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6
4558 if test "${libc_cv_asm_symver_directive+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 cat > conftest.s <<EOF
4564 .symver _sym,sym@VERS
4566 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
4567 libc_cv_asm_symver_directive=yes
4569 libc_cv_asm_symver_directive=no
4573 echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
4574 echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6
4575 echo "$as_me:$LINENO: checking for ld --version-script" >&5
4576 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6
4577 if test "${libc_cv_ld_version_script_option+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 if test $libc_cv_asm_symver_directive = yes; then
4581 cat > conftest.s <<EOF
4584 .symver _sym,sym@VERS
4586 cat > conftest.map <<EOF
4595 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
4596 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
4597 -nostartfiles -nostdlib
4598 -Wl,--version-script,conftest.map
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; };
4606 libc_cv_ld_version_script_option=yes
4608 libc_cv_ld_version_script_option=no
4611 libc_cv_ld_version_script_option=no
4614 libc_cv_ld_version_script_option=no
4618 echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
4619 echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6
4620 if test $shared != no &&
4621 test $libc_cv_asm_symver_directive = yes &&
4622 test $libc_cv_ld_version_script_option = yes &&
4623 test $enable_versioning = yes; then
4625 cat >>confdefs.h <<\_ACEOF
4626 #define DO_VERSIONING 1
4634 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
4636 *** WARNING: You should not compile GNU libc without versioning. Not using
4637 *** versioning will introduce incompatibilities so that old binaries
4638 *** will not run anymore.
4639 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
4641 if test $elf = yes; then
4642 echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
4643 echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6
4644 if test "${libc_cv_asm_previous_directive+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4647 cat > conftest.s <<EOF
4648 .section foo_section
4651 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 libc_cv_asm_previous_directive=yes
4659 libc_cv_asm_previous_directive=no
4663 echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
4664 echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6
4665 if test $libc_cv_asm_previous_directive = yes; then
4666 cat >>confdefs.h <<\_ACEOF
4667 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
4671 echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
4672 echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6
4673 if test "${libc_cv_asm_popsection_directive+set}" = set; then
4674 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 cat > conftest.s <<EOF
4677 .pushsection foo_section
4680 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); }; }; then
4686 libc_cv_asm_popsection_directive=yes
4688 libc_cv_asm_popsection_directive=no
4692 echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
4693 echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6
4694 if test $libc_cv_asm_popsection_directive = yes; then
4695 cat >>confdefs.h <<\_ACEOF
4696 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
4701 echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
4702 echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6
4703 if test "${libc_cv_asm_protected_directive+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 cat > conftest.s <<EOF
4712 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; }; then
4718 libc_cv_asm_protected_directive=yes
4720 libc_cv_asm_protected_directive=no
4724 echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
4725 echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6
4727 cat >>confdefs.h <<\_ACEOF
4728 #define HAVE_PROTECTED 1
4731 cat >>confdefs.h <<\_ACEOF
4732 #define HAVE_HIDDEN 1
4736 if test $libc_cv_asm_protected_directive = yes; then
4737 echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
4738 echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6
4739 if test "${libc_cv_visibility_attribute+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 cat > conftest.c <<EOF
4743 int foo __attribute__ ((visibility ("hidden"))) = 1;
4744 int bar __attribute__ ((visibility ("protected"))) = 1;
4746 libc_cv_visibility_attribute=no
4747 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; }; then
4753 if grep '\.hidden.*foo' conftest.s >/dev/null; then
4754 if grep '\.protected.*bar' conftest.s >/dev/null; then
4755 libc_cv_visibility_attribute=yes
4762 echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
4763 echo "${ECHO_T}$libc_cv_visibility_attribute" >&6
4764 if test $libc_cv_visibility_attribute = yes; then
4765 cat >>confdefs.h <<\_ACEOF
4766 #define HAVE_VISIBILITY_ATTRIBUTE 1
4772 if test $libc_cv_visibility_attribute = yes; then
4773 echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
4774 echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6
4775 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 cat > conftest.c <<EOF
4780 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
4781 int bar (int x) { return x; }
4783 libc_cv_broken_visibility_attribute=yes
4784 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4790 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
4791 libc_cv_broken_visibility_attribute=no
4794 rm -f conftest.c conftest.s
4797 echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
4798 echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6
4799 if test $libc_cv_broken_visibility_attribute = yes; then
4800 cat >>confdefs.h <<\_ACEOF
4801 #define HAVE_BROKEN_VISIBILITY_ATTRIBUTE 1
4807 echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
4808 echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6
4809 if test "${libc_cv_broken_alias_attribute+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 cat > conftest.c <<EOF
4813 extern int foo (int x) __asm ("xyzzy");
4814 int bar (int x) { return x; }
4815 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
4817 extern __typeof (dfoo) dfoo __asm ("abccb");
4820 libc_cv_broken_alias_attribute=yes
4821 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
4822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; }; then
4827 if grep 'xyzzy' conftest.s >/dev/null &&
4828 grep 'abccb' conftest.s >/dev/null; then
4829 libc_cv_broken_alias_attribute=no
4832 rm -f conftest.c conftest.s
4835 echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
4836 echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6
4837 if test $libc_cv_broken_alias_attribute = yes; then
4838 cat >>confdefs.h <<\_ACEOF
4839 #define HAVE_BROKEN_ALIAS_ATTRIBUTE 1
4844 if test $libc_cv_visibility_attribute = yes -a $gnu_ld = yes; then
4845 echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
4846 echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6
4847 if test "${libc_cv_have_sdata_section+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 echo "int i;" > conftest.c
4851 libc_cv_have_sdata_section=no
4852 if ${CC-cc} -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
4853 | grep '\.sdata' >/dev/null; then
4854 libc_cv_have_sdata_section=yes
4856 rm -f conftest.c conftest.so
4859 echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
4860 echo "${ECHO_T}$libc_cv_have_sdata_section" >&6
4861 if test $libc_cv_have_sdata_section = yes; then
4862 cat >>confdefs.h <<\_ACEOF
4863 #define HAVE_SDATA_SECTION 1
4869 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
4870 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
4871 if test "${libc_cv_initfinit_array+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 cat > conftest.c <<EOF
4875 int _start (void) { return 0; }
4876 int __start (void) { return 0; }
4877 int foo (void) { return 1; }
4878 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
4880 if { ac_try='${CC-cc} -o conftest conftest.c
4881 -static -nostartfiles -nostdlib 1>&5'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }
4888 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
4889 libc_cv_initfinit_array=yes
4891 libc_cv_initfinit_array=no
4894 libc_cv_initfinit_array=no
4898 echo "$as_me:$LINENO: result: $libc_cv_initfinit_array" >&5
4899 echo "${ECHO_T}$libc_cv_initfinit_array" >&6
4901 if test $libc_cv_initfinit_array = yes; then
4902 cat >>confdefs.h <<\_ACEOF
4903 #define HAVE_INITFINI_ARRAY 1
4908 echo "$as_me:$LINENO: checking for -z nodelete option" >&5
4909 echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6
4910 if test "${libc_cv_z_nodelete+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4913 cat > conftest.c <<EOF
4914 int _start (void) { return 42; }
4916 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4917 -nostartfiles -nostdlib
4918 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
4919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; }
4925 libc_cv_z_nodelete=yes
4927 libc_cv_z_nodelete=no
4931 echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
4932 echo "${ECHO_T}$libc_cv_z_nodelete" >&6
4935 echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
4936 echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6
4937 if test "${libc_cv_z_nodlopen+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 cat > conftest.c <<EOF
4941 int _start (void) { return 42; }
4943 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4944 -nostartfiles -nostdlib
4945 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
4946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; }
4952 libc_cv_z_nodlopen=yes
4954 libc_cv_z_nodlopen=no
4958 echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
4959 echo "${ECHO_T}$libc_cv_z_nodlopen" >&6
4962 echo "$as_me:$LINENO: checking for -z initfirst option" >&5
4963 echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6
4964 if test "${libc_cv_z_initfirst+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 cat > conftest.c <<EOF
4968 int _start (void) { return 42; }
4970 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4971 -nostartfiles -nostdlib
4972 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; }
4979 libc_cv_z_initfirst=yes
4981 libc_cv_z_initfirst=no
4985 echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
4986 echo "${ECHO_T}$libc_cv_z_initfirst" >&6
4989 echo "$as_me:$LINENO: checking for -Bgroup option" >&5
4990 echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6
4991 if test "${libc_cv_Bgroup+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 cat > conftest.c <<EOF
4995 int _start (void) { return 42; }
4997 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,-Bgroup -nostdlib 1>&5'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }
5010 echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
5011 echo "${ECHO_T}$libc_cv_Bgroup" >&6
5014 echo "$as_me:$LINENO: checking for -z combreloc" >&5
5015 echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6
5016 if test "${libc_cv_z_combreloc+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 cat > conftest.c <<EOF
5020 extern int bar (int);
5022 int foo (void) { return bar (mumble); }
5024 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
5025 -nostdlib -nostartfiles
5026 -Wl,-z,combreloc 1>&5'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; }
5033 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
5034 libc_cv_z_combreloc=yes
5036 libc_cv_z_combreloc=no
5039 libc_cv_z_combreloc=no
5043 echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
5044 echo "${ECHO_T}$libc_cv_z_combreloc" >&6
5045 if test "$libc_cv_z_combreloc" = yes; then
5046 cat >>confdefs.h <<\_ACEOF
5047 #define HAVE_Z_COMBRELOC 1
5054 if test $elf != yes; then
5055 echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
5056 echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6
5057 if test "${libc_cv_have_initfini+set}" = set; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
5060 cat >conftest.$ac_ext <<_ACEOF
5061 #line $LINENO "configure"
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5071 asm (".section .init");
5072 asm (".section .fini");
5073 asm ("${libc_cv_dot_text}");
5078 rm -f conftest.$ac_objext
5079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5080 (eval $ac_compile) 2>&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } &&
5084 { ac_try='test -s conftest.$ac_objext'
5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }; }; then
5090 libc_cv_have_initfini=yes
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5095 libc_cv_have_initfini=no
5097 rm -f conftest.$ac_objext conftest.$ac_ext
5099 echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
5100 echo "${ECHO_T}$libc_cv_have_initfini" >&6
5101 if test $libc_cv_have_initfini = yes; then
5102 cat >>confdefs.h <<\_ACEOF
5103 #define HAVE_INITFINI 1
5109 if test $elf = yes -a $gnu_ld = yes; then
5110 echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
5111 echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6
5112 if test "${libc_cv_have_section_quotes+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 cat > conftest.c <<EOF
5116 static const int foo
5117 __attribute__ ((section ("bar"))) = 1;
5119 if ${CC-cc} -S conftest.c -o conftest.s; then
5120 if grep '\.section.*"bar"' conftest.s >/dev/null; then
5121 libc_cv_have_section_quotes=yes
5123 libc_cv_have_section_quotes=no
5126 libc_cv_have_section_quotes=unknown
5131 echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
5132 echo "${ECHO_T}$libc_cv_have_section_quotes" >&6
5133 if test $libc_cv_have_section_quotes = yes; then
5134 cat >>confdefs.h <<\_ACEOF
5135 #define HAVE_SECTION_QUOTES 1
5143 if test $elf = yes; then
5144 libc_cv_asm_underscores=no
5146 if test $ac_cv_prog_cc_works = yes; then
5147 echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
5148 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6
5149 if test "${libc_cv_asm_underscores+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 cat >conftest.$ac_ext <<_ACEOF
5153 #line $LINENO "configure"
5156 cat confdefs.h >>conftest.$ac_ext
5157 cat >>conftest.$ac_ext <<_ACEOF
5158 /* end confdefs.h. */
5159 asm ("_glibc_foobar:");
5168 rm -f conftest.$ac_objext conftest$ac_exeext
5169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5170 (eval $ac_link) 2>&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } &&
5174 { ac_try='test -s conftest$ac_exeext'
5175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; }; then
5180 libc_cv_asm_underscores=yes
5182 echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5185 libc_cv_asm_underscores=no
5187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5189 echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
5190 echo "${ECHO_T}$libc_cv_asm_underscores" >&6
5192 echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
5193 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6
5194 if test "${libc_cv_asm_underscores+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 cat > conftest.$ac_ext <<EOF
5198 #line 5198 "configure"
5199 #include "confdefs.h"
5200 void underscore_test(void) {
5203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5204 (eval $ac_compile) 2>&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; then
5208 if grep _underscore_test conftest* >/dev/null; then
5210 libc_cv_asm_underscores=yes
5213 libc_cv_asm_underscores=no
5216 echo "configure: failed program was:" >&5
5217 cat conftest.$ac_ext >&5
5219 libc_cv_asm_underscores=no
5223 echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
5224 echo "${ECHO_T}$libc_cv_asm_underscores" >&6
5227 if test $libc_cv_asm_underscores = no; then
5228 cat >>confdefs.h <<\_ACEOF
5229 #define NO_UNDERSCORES 1
5234 if test $elf = yes; then
5235 libc_cv_weak_symbols=yes
5238 echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
5239 echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6
5240 if test "${libc_cv_asm_weak_directive+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5243 cat > conftest.s <<EOF
5245 ${libc_cv_asm_global_directive} foo
5248 .weak bar; bar = foo
5250 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; }; then
5256 libc_cv_asm_weak_directive=yes
5258 libc_cv_asm_weak_directive=no
5262 echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
5263 echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6
5265 if test $libc_cv_asm_weak_directive = no; then
5266 echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
5267 echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6
5268 if test "${libc_cv_asm_weakext_directive+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 cat > conftest.s <<EOF
5273 ${libc_cv_asm_global_directive} foo
5277 ${libc_cv_asm_global_directive} baz
5280 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; }; then
5286 libc_cv_asm_weakext_directive=yes
5288 libc_cv_asm_weakext_directive=no
5292 echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
5293 echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6
5297 if test $libc_cv_asm_weak_directive = yes; then
5298 cat >>confdefs.h <<\_ACEOF
5299 #define HAVE_ASM_WEAK_DIRECTIVE 1
5302 elif test $libc_cv_asm_weakext_directive = yes; then
5303 cat >>confdefs.h <<\_ACEOF
5304 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
5309 case "${host_cpu}-${host_os}" in
5311 libc_cv_asm_line_sep='@'
5312 cat >>confdefs.h <<_ACEOF
5313 #define ASM_LINE_SEP $libc_cv_asm_line_sep
5318 echo "$as_me:$LINENO: checking for assembler line separator" >&5
5319 echo $ECHO_N "checking for assembler line separator... $ECHO_C" >&6
5320 if test "${libc_cv_asm_line_sep+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 cat > conftest.s <<EOF
5326 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; }; then
5332 libc_cv_asm_line_sep='!'
5334 if test -z "$enable_hacker_mode"; then
5335 echo "*** You need a newer assembler to compile glibc"
5339 libc_cv_asm_line_sep=';'
5343 echo "$as_me:$LINENO: result: $libc_cv_asm_line_sep" >&5
5344 echo "${ECHO_T}$libc_cv_asm_line_sep" >&6
5345 cat >>confdefs.h <<_ACEOF
5346 #define ASM_LINE_SEP $libc_cv_asm_line_sep
5352 echo "$as_me:$LINENO: checking if -g produces usable source locations for assembler-with-cpp" >&5
5353 echo $ECHO_N "checking if -g produces usable source locations for assembler-with-cpp... $ECHO_C" >&6
5354 if test "${libc_cv_cpp_asm_debuginfo+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 cat > conftest.S <<EOF
5358 #include "confdefs.h"
5363 ${libc_cv_asm_global_directive} foo
5365 /* Unfortunately this test only works for a real instruction,
5366 not for any of the machine-independent pseudo-ops.
5367 So we just have to assume everybody has a "nop". */
5374 if { ac_try='${CC-cc} $CFLAGS -g -c conftest.S 1>&5'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; } &&
5380 ac_pattern='conftest\.S'
5381 { ac_try='readelf --debug-dump=line conftest.o |
5382 grep $ac_pattern 1>&5'
5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; }; then
5388 libc_cv_cpp_asm_debuginfo=yes
5390 libc_cv_cpp_asm_debuginfo=no
5394 echo "$as_me:$LINENO: result: $libc_cv_cpp_asm_debuginfo" >&5
5395 echo "${ECHO_T}$libc_cv_cpp_asm_debuginfo" >&6
5396 if test $libc_cv_cpp_asm_debuginfo = yes; then
5397 cat >>confdefs.h <<\_ACEOF
5398 #define HAVE_CPP_ASM_DEBUGINFO 1
5403 echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
5404 echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6
5405 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 cat > conftest.c <<\EOF
5413 if { ac_try='${CC-cc} $CFLAGS
5414 -nostdlib -nostartfiles -Wl,--no-whole-archive
5415 -o conftest conftest.c 1>&5'
5416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }; }; then
5421 libc_cv_ld_no_whole_archive=yes
5423 libc_cv_ld_no_whole_archive=no
5427 echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
5428 echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6
5429 if test $libc_cv_ld_no_whole_archive = yes; then
5430 no_whole_archive=-Wl,--no-whole-archive
5433 echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
5434 echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6
5435 if test "${libc_cv_gcc_exceptions+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 cat > conftest.c <<\EOF
5443 if { ac_try='${CC-cc} $CFLAGS
5444 -nostdlib -nostartfiles -fexceptions
5445 -o conftest conftest.c 1>&5'
5446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; }; then
5451 libc_cv_gcc_exceptions=yes
5453 libc_cv_gcc_exceptions=no
5457 echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
5458 echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6
5459 if test $libc_cv_gcc_exceptions = yes; then
5460 exceptions=-fexceptions
5463 if test "$host_cpu" = powerpc ; then
5464 # Check for a bug present in at least versions 2.8.x of GCC
5465 # and versions 1.0.x of EGCS.
5466 echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
5467 echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6
5468 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 cat >conftest.$ac_ext <<_ACEOF
5472 #line $LINENO "configure"
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5478 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
5487 rm -f conftest.$ac_objext
5488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5489 (eval $ac_compile) 2>&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } &&
5493 { ac_try='test -s conftest.$ac_objext'
5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; }; then
5499 libc_cv_c_asmcr0_bug='no'
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5504 libc_cv_c_asmcr0_bug='yes'
5506 rm -f conftest.$ac_objext conftest.$ac_ext
5508 echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
5509 echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6
5510 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
5511 cat >>confdefs.h <<\_ACEOF
5512 #define BROKEN_PPC_ASM_CR0 1
5518 echo "$as_me:$LINENO: checking for DWARF2 unwind info support" >&5
5519 echo $ECHO_N "checking for DWARF2 unwind info support... $ECHO_C" >&6
5520 if test "${libc_cv_gcc_dwarf2_unwind_info+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 cat > conftest.c <<EOF
5524 #line 5524 "configure"
5525 static char *__EH_FRAME_BEGIN__;
5528 #ifdef CHECK__register_frame
5529 __register_frame (__EH_FRAME_BEGIN__);
5530 __deregister_frame (__EH_FRAME_BEGIN__);
5532 #ifdef CHECK__register_frame_info
5533 __register_frame_info (__EH_FRAME_BEGIN__);
5534 __deregister_frame_info (__EH_FRAME_BEGIN__);
5539 /* FIXME: this is fragile. */
5548 dl_iterate_phdr () {}
5550 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
5551 -nostdlib -nostartfiles
5552 -o conftest conftest.c -lgcc >&5'
5553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; }; then
5558 libc_cv_gcc_dwarf2_unwind_info=static
5560 libc_cv_gcc_dwarf2_unwind_info=no
5562 # Some platforms' specs put -lgcc first. The second one doesn't hurt.
5563 libc_unwind_check="${CC-cc} $CFLAGS -DCHECK__register_frame_info \
5564 -nostdlib -nostartfiles -o conftest conftest.c \
5565 -lgcc -lgcc_eh -lgcc"
5566 if { ac_try='$libc_unwind_check >&5'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5572 if $libc_unwind_check -v 2>&1 >/dev/null \
5573 | grep -q -- --eh-frame-hdr; then
5574 libc_cv_gcc_dwarf2_unwind_info=no_registry_needed
5576 libc_cv_gcc_dwarf2_unwind_info=static
5579 libc_cv_gcc_dwarf2_unwind_info=no
5581 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
5582 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
5583 -nostdlib -nostartfiles
5584 -o conftest conftest.c -lgcc >&5'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; }; then
5590 libc_cv_gcc_dwarf2_unwind_info=yes
5592 libc_cv_gcc_dwarf2_unwind_info=no
5597 echo "$as_me:$LINENO: result: $libc_cv_gcc_dwarf2_unwind_info" >&5
5598 echo "${ECHO_T}$libc_cv_gcc_dwarf2_unwind_info" >&6
5599 case $libc_cv_gcc_dwarf2_unwind_info in
5601 cat >>confdefs.h <<\_ACEOF
5602 #define HAVE_DWARF2_UNWIND_INFO 1
5607 cat >>confdefs.h <<\_ACEOF
5608 #define HAVE_DWARF2_UNWIND_INFO 1
5611 cat >>confdefs.h <<\_ACEOF
5612 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
5618 echo "$as_me:$LINENO: checking for __builtin_expect" >&5
5619 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6
5620 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 cat > conftest.c <<EOF
5624 #line 5624 "configure"
5627 a = __builtin_expect (a, 10);
5628 return a == 10 ? 0 : 1;
5631 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
5632 -o conftest conftest.c -lgcc >&5'
5633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; }; then
5638 libc_cv_gcc_builtin_expect=yes
5640 libc_cv_gcc_builtin_expect=no
5644 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
5645 echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6
5646 if test "$libc_cv_gcc_builtin_expect" = yes; then
5647 cat >>confdefs.h <<\_ACEOF
5648 #define HAVE_BUILTIN_EXPECT 1
5653 echo "$as_me:$LINENO: checking for __builtin_memset" >&5
5654 echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6
5655 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 cat > conftest.c <<\EOF
5661 __builtin_memset (x, 0, 1000);
5664 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; };
5671 libc_cv_gcc_builtin_memset=no
5673 libc_cv_gcc_builtin_memset=yes
5677 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
5678 echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6
5679 if test "$libc_cv_gcc_builtin_memset" = yes ; then
5680 cat >>confdefs.h <<\_ACEOF
5681 #define HAVE_BUILTIN_MEMSET 1
5686 echo "$as_me:$LINENO: checking for local label subtraction" >&5
5687 echo $ECHO_N "checking for local label subtraction... $ECHO_C" >&6
5688 if test "${libc_cv_gcc_subtract_local_labels+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 cat > conftest.c <<EOF
5692 #line 5692 "configure"
5695 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
5696 void *p = &&l1 + ar[a];
5704 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
5705 -o conftest conftest.c -lgcc >&5'
5706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; }; then
5711 libc_cv_gcc_subtract_local_labels=yes
5713 libc_cv_gcc_subtract_local_labels=no
5717 echo "$as_me:$LINENO: result: $libc_cv_gcc_subtract_local_labels" >&5
5718 echo "${ECHO_T}$libc_cv_gcc_subtract_local_labels" >&6
5719 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
5720 cat >>confdefs.h <<\_ACEOF
5721 #define HAVE_SUBTRACT_LOCAL_LABELS 1
5726 if test "x$use__thread" != xno; then
5727 echo "$as_me:$LINENO: checking for __thread" >&5
5728 echo $ECHO_N "checking for __thread... $ECHO_C" >&6
5729 if test "${libc_cv_gcc___thread+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 cat > conftest.c <<\EOF
5733 __thread int a = 42;
5735 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
5736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; }; then
5741 libc_cv_gcc___thread=yes
5743 libc_cv_gcc___thread=no
5747 echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
5748 echo "${ECHO_T}$libc_cv_gcc___thread" >&6
5749 if test "$libc_cv_gcc___thread" = yes; then
5750 cat >>confdefs.h <<\_ACEOF
5751 #define HAVE___THREAD 1
5756 libc_cv_gcc___thread=no
5759 if test "$libc_cv_gcc___thread" = yes; then
5760 echo "$as_me:$LINENO: checking for tls_model attribute" >&5
5761 echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6
5762 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 cat > conftest.c <<\EOF
5766 extern __thread int a __attribute__((tls_model ("initial-exec")));
5768 if { ac_try='${CC-cc} $CFLAGS -S -Werror conftest.c >&5'
5769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }; }; then
5774 libc_cv_gcc_tls_model_attr=yes
5776 libc_cv_gcc_tls_model_attr=no
5780 echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
5781 echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6
5782 if test "$libc_cv_gcc_tls_model_attr" = yes; then
5783 cat >>confdefs.h <<\_ACEOF
5784 #define HAVE_TLS_MODEL_ATTRIBUTE 1
5790 echo "$as_me:$LINENO: checking for libgd" >&5
5791 echo $ECHO_N "checking for libgd... $ECHO_C" >&6
5792 if test "$with_gd" != "no"; then
5793 old_CFLAGS="$CFLAGS"
5794 CFLAGS="$CFLAGS $libgd_include"
5795 old_LDFLAGS="$LDFLAGS"
5796 LDFLAGS="$LDFLAGS $libgd_ldflags"
5798 LIBS="$LIBS -lgd -lpng -lz -lm"
5799 cat >conftest.$ac_ext <<_ACEOF
5800 #line $LINENO "configure"
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5815 rm -f conftest.$ac_objext conftest$ac_exeext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5817 (eval $ac_link) 2>&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try='test -s conftest$ac_exeext'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; }; then
5829 echo "$as_me: failed program was:" >&5
5830 sed 's/^/| /' conftest.$ac_ext >&5
5834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5835 CFLAGS="$old_CFLAGS"
5836 LDFLAGS="$old_LDFLAGS"
5841 echo "$as_me:$LINENO: result: $LIBGD" >&5
5842 echo "${ECHO_T}$LIBGD" >&6
5846 echo "$as_me:$LINENO: checking for egrep" >&5
5847 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5848 if test "${ac_cv_prog_egrep+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5852 then ac_cv_prog_egrep='grep -E'
5853 else ac_cv_prog_egrep='egrep'
5856 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5857 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5858 EGREP=$ac_cv_prog_egrep
5861 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5862 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5863 if test "${ac_cv_header_stdc+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 cat >conftest.$ac_ext <<_ACEOF
5867 #line $LINENO "configure"
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h. */
5886 rm -f conftest.$ac_objext
5887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5888 (eval $ac_compile) 2>&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } &&
5892 { ac_try='test -s conftest.$ac_objext'
5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; }; then
5898 ac_cv_header_stdc=yes
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5903 ac_cv_header_stdc=no
5905 rm -f conftest.$ac_objext conftest.$ac_ext
5907 if test $ac_cv_header_stdc = yes; then
5908 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5909 cat >conftest.$ac_ext <<_ACEOF
5910 #line $LINENO "configure"
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5920 $EGREP "memchr" >/dev/null 2>&1; then
5923 ac_cv_header_stdc=no
5929 if test $ac_cv_header_stdc = yes; then
5930 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5931 cat >conftest.$ac_ext <<_ACEOF
5932 #line $LINENO "configure"
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5942 $EGREP "free" >/dev/null 2>&1; then
5945 ac_cv_header_stdc=no
5951 if test $ac_cv_header_stdc = yes; then
5952 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5953 if test "$cross_compiling" = yes; then
5956 cat >conftest.$ac_ext <<_ACEOF
5957 #line $LINENO "configure"
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5964 #if ((' ' & 0x0FF) == 0x020)
5965 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5966 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5968 # define ISLOWER(c) \
5969 (('a' <= (c) && (c) <= 'i') \
5970 || ('j' <= (c) && (c) <= 'r') \
5971 || ('s' <= (c) && (c) <= 'z'))
5972 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5975 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5980 for (i = 0; i < 256; i++)
5981 if (XOR (islower (i), ISLOWER (i))
5982 || toupper (i) != TOUPPER (i))
5987 rm -f conftest$ac_exeext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5989 (eval $ac_link) 2>&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; }; then
6000 echo "$as_me: program exited with status $ac_status" >&5
6001 echo "$as_me: failed program was:" >&5
6002 sed 's/^/| /' conftest.$ac_ext >&5
6005 ac_cv_header_stdc=no
6007 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6011 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6012 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6013 if test $ac_cv_header_stdc = yes; then
6015 cat >>confdefs.h <<\_ACEOF
6016 #define STDC_HEADERS 1
6021 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6031 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6032 inttypes.h stdint.h unistd.h
6034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6035 echo "$as_me:$LINENO: checking for $ac_header" >&5
6036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 cat >conftest.$ac_ext <<_ACEOF
6041 #line $LINENO "configure"
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 $ac_includes_default
6049 #include <$ac_header>
6051 rm -f conftest.$ac_objext
6052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6053 (eval $ac_compile) 2>&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try='test -s conftest.$ac_objext'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; }; then
6063 eval "$as_ac_Header=yes"
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6068 eval "$as_ac_Header=no"
6070 rm -f conftest.$ac_objext conftest.$ac_ext
6072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6075 cat >>confdefs.h <<_ACEOF
6076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6084 echo "$as_me:$LINENO: checking for long double" >&5
6085 echo $ECHO_N "checking for long double... $ECHO_C" >&6
6086 if test "${ac_cv_type_long_double+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 cat >conftest.$ac_ext <<_ACEOF
6090 #line $LINENO "configure"
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6096 $ac_includes_default
6100 if ((long double *) 0)
6102 if (sizeof (long double))
6108 rm -f conftest.$ac_objext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6110 (eval $ac_compile) 2>&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -s conftest.$ac_objext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_cv_type_long_double=yes
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6125 ac_cv_type_long_double=no
6127 rm -f conftest.$ac_objext conftest.$ac_ext
6129 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
6130 echo "${ECHO_T}$ac_cv_type_long_double" >&6
6132 echo "$as_me:$LINENO: checking size of long double" >&5
6133 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
6134 if test "${ac_cv_sizeof_long_double+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 if test "$ac_cv_type_long_double" = yes; then
6138 # The cast to unsigned long works around a bug in the HP C Compiler
6139 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6140 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6141 # This bug is HP SR number 8606223364.
6142 if test "$cross_compiling" = yes; then
6143 # Depending upon the size, compute the lo and hi bounds.
6144 cat >conftest.$ac_ext <<_ACEOF
6145 #line $LINENO "configure"
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 $ac_includes_default
6155 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
6162 rm -f conftest.$ac_objext
6163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6164 (eval $ac_compile) 2>&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } &&
6168 { ac_try='test -s conftest.$ac_objext'
6169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; }; then
6176 cat >conftest.$ac_ext <<_ACEOF
6177 #line $LINENO "configure"
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h. */
6183 $ac_includes_default
6187 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
6194 rm -f conftest.$ac_objext
6195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6196 (eval $ac_compile) 2>&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } &&
6200 { ac_try='test -s conftest.$ac_objext'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6206 ac_hi=$ac_mid; break
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6211 ac_lo=`expr $ac_mid + 1`
6212 if test $ac_lo -le $ac_mid; then
6216 ac_mid=`expr 2 '*' $ac_mid + 1`
6218 rm -f conftest.$ac_objext conftest.$ac_ext
6221 echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6224 cat >conftest.$ac_ext <<_ACEOF
6225 #line $LINENO "configure"
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6231 $ac_includes_default
6235 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
6242 rm -f conftest.$ac_objext
6243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244 (eval $ac_compile) 2>&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try='test -s conftest.$ac_objext'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6256 cat >conftest.$ac_ext <<_ACEOF
6257 #line $LINENO "configure"
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 $ac_includes_default
6267 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
6274 rm -f conftest.$ac_objext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276 (eval $ac_compile) 2>&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } &&
6280 { ac_try='test -s conftest.$ac_objext'
6281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }; }; then
6286 ac_lo=$ac_mid; break
6288 echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6291 ac_hi=`expr '(' $ac_mid ')' - 1`
6292 if test $ac_mid -le $ac_hi; then
6296 ac_mid=`expr 2 '*' $ac_mid`
6298 rm -f conftest.$ac_objext conftest.$ac_ext
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6306 rm -f conftest.$ac_objext conftest.$ac_ext
6308 rm -f conftest.$ac_objext conftest.$ac_ext
6309 # Binary search between lo and hi bounds.
6310 while test "x$ac_lo" != "x$ac_hi"; do
6311 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6312 cat >conftest.$ac_ext <<_ACEOF
6313 #line $LINENO "configure"
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 $ac_includes_default
6323 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
6330 rm -f conftest.$ac_objext
6331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6332 (eval $ac_compile) 2>&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } &&
6336 { ac_try='test -s conftest.$ac_objext'
6337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; }; then
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6347 ac_lo=`expr '(' $ac_mid ')' + 1`
6349 rm -f conftest.$ac_objext conftest.$ac_ext
6352 ?*) ac_cv_sizeof_long_double=$ac_lo;;
6353 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
6354 See \`config.log' for more details." >&5
6355 echo "$as_me: error: cannot compute sizeof (long double), 77
6356 See \`config.log' for more details." >&2;}
6357 { (exit 1); exit 1; }; } ;;
6360 if test "$cross_compiling" = yes; then
6361 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6362 See \`config.log' for more details." >&5
6363 echo "$as_me: error: cannot run test program while cross compiling
6364 See \`config.log' for more details." >&2;}
6365 { (exit 1); exit 1; }; }
6367 cat >conftest.$ac_ext <<_ACEOF
6368 #line $LINENO "configure"
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6374 $ac_includes_default
6375 long longval () { return (long) (sizeof (long double)); }
6376 unsigned long ulongval () { return (long) (sizeof (long double)); }
6383 FILE *f = fopen ("conftest.val", "w");
6386 if (((long) (sizeof (long double))) < 0)
6388 long i = longval ();
6389 if (i != ((long) (sizeof (long double))))
6391 fprintf (f, "%ld\n", i);
6395 unsigned long i = ulongval ();
6396 if (i != ((long) (sizeof (long double))))
6398 fprintf (f, "%lu\n", i);
6400 exit (ferror (f) || fclose (f) != 0);
6406 rm -f conftest$ac_exeext
6407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6408 (eval $ac_link) 2>&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; }; then
6417 ac_cv_sizeof_long_double=`cat conftest.val`
6419 echo "$as_me: program exited with status $ac_status" >&5
6420 echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.$ac_ext >&5
6424 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
6425 See \`config.log' for more details." >&5
6426 echo "$as_me: error: cannot compute sizeof (long double), 77
6427 See \`config.log' for more details." >&2;}
6428 { (exit 1); exit 1; }; }
6430 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6435 ac_cv_sizeof_long_double=0
6438 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
6439 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
6440 cat >>confdefs.h <<_ACEOF
6441 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
6445 sizeof_long_double=$ac_cv_sizeof_long_double
6448 ### End of automated tests.
6449 ### Now run sysdeps configure fragments.
6451 # They also can set these variables.
6453 ldd_rewrite_script=no
6454 libc_cv_sysconfdir=$sysconfdir
6455 libc_cv_gcc_unwind_find_fde=no
6457 # Iterate over all the sysdep directories we will use, running their
6458 # configure fragments, and looking for a uname implementation.
6460 for dir in $sysnames; do
6463 *) dest=$srcdir/$dir ;;
6465 if test -r $dest/configure; then
6466 echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
6467 echo "${ECHO_T}running configure fragment for $dir" >&6
6471 if test -z "$uname"; then
6472 if test -r $dest/uname.c ||
6473 test -r $dest/uname.S ||
6474 { test -r $dest/syscalls.list &&
6475 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
6481 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
6482 cat >>confdefs.h <<\_ACEOF
6483 #define EXPORT_UNWIND_FIND_FDE 1
6489 # If we will use the generic uname implementation, we must figure out what
6490 # it will say by examining the system, and write the results in config-name.h.
6491 if test "$uname" = "sysdeps/generic"; then
6493 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
6494 if test $uname_sysname != $config_os; then
6495 config_release=`echo $config_os | sed s/$uname_sysname//`
6498 echo "$as_me:$LINENO: checking OS release for uname" >&5
6499 echo $ECHO_N "checking OS release for uname... $ECHO_C" >&6
6500 if test "${libc_cv_uname_release+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 if test -r /vmunix; then
6504 kernel_id=`strings /vmunix | grep UNIX`
6505 elif test -r /dynix; then
6506 kernel_id=`strings /dynix | grep DYNIX`
6511 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
6512 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
6513 != x$config_release; then
6514 # The configuration release is a substring of the kernel release.
6515 libc_cv_uname_release=$kernel_release
6516 elif test x$config_release != x; then
6517 libc_cv_uname_release=$config_release
6518 elif test x$kernel_release != x; then
6519 libc_cv_uname_release=$kernel_release
6521 libc_cv_uname_release=unknown
6524 echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
6525 echo "${ECHO_T}$libc_cv_uname_release" >&6
6526 uname_release="$libc_cv_uname_release"
6528 echo "$as_me:$LINENO: checking OS version for uname" >&5
6529 echo $ECHO_N "checking OS version for uname... $ECHO_C" >&6
6530 if test "${libc_cv_uname_version+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 if test -r /vmunix; then
6534 kernel_id=`strings /vmunix | grep UNIX`
6535 elif test -r /dynix; then
6536 kernel_id=`strings /dynix | grep DYNIX`
6541 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
6542 if test -n "$kernel_version"; then
6543 libc_cv_uname_version="$kernel_version"
6545 libc_cv_uname_version=unknown
6548 echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
6549 echo "${ECHO_T}$libc_cv_uname_version" >&6
6550 uname_version="$libc_cv_uname_version"
6552 config_uname=config-name.h:config-name.in
6554 # For non-generic uname, we don't need to create config-name.h at all.
6558 cat >>confdefs.h <<\_ACEOF
6559 #define USE_IN_LIBIO 1
6563 # Test for old glibc 2.0.x headers so that they can be removed properly
6564 # Search only in includedir.
6565 echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
6566 echo $ECHO_N "checking for old glibc 2.0.x headers... $ECHO_C" >&6
6567 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
6569 old_glibc_headers=yes
6571 old_glibc_headers=no
6573 echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
6574 echo "${ECHO_T}$old_glibc_headers" >&6
6575 if test ${old_glibc_headers} = yes; then
6576 { echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
6577 echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
6578 { echo "$as_me:$LINENO: WARNING: *** be removed." >&5
6579 echo "$as_me: WARNING: *** be removed." >&2;}
6592 if test $gnu_ld = yes; then
6593 cat >>confdefs.h <<\_ACEOF
6594 #define HAVE_GNU_LD 1
6598 if test $gnu_as = yes; then
6599 cat >>confdefs.h <<\_ACEOF
6600 #define HAVE_GNU_AS 1
6604 if test $elf = yes; then
6605 cat >>confdefs.h <<\_ACEOF
6610 if test $xcoff = yes; then
6611 cat >>confdefs.h <<\_ACEOF
6612 #define HAVE_XCOFF 1
6619 if test $shared = default; then
6620 if test $gnu_ld = yes; then
6623 # For now we do not assume shared libs are available. In future more
6624 # tests might become available.
6629 echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
6630 echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6
6631 if test "${pic_default+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 cat > conftest.c <<EOF
6636 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
6637 # error PIC is default.
6640 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
6645 echo "$as_me:$LINENO: result: $pic_default" >&5
6646 echo "${ECHO_T}$pic_default" >&6
6658 *door*) linux_doors=yes ;;
6659 *) linux_doors=no ;;
6665 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
6668 config_makefile=Makefile
6671 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
6672 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
6676 ac_config_files="$ac_config_files config.make glibcbug ${config_makefile} ${config_uname}"
6678 ac_config_commands="$ac_config_commands default"
6680 cat >confcache <<\_ACEOF
6681 # This file is a shell script that caches the results of configure
6682 # tests run on this system so they can be shared between configure
6683 # scripts and configure runs, see configure's option --config-cache.
6684 # It is not useful on other systems. If it contains results you don't
6685 # want to keep, you may remove or edit it.
6687 # config.status only pays attention to the cache file if you give it
6688 # the --recheck option to rerun configure.
6690 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6691 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6696 # The following way of writing the cache mishandles newlines in values,
6697 # but we know of no workaround that is simple, portable, and efficient.
6698 # So, don't put newlines in cache variables' values.
6699 # Ultrix sh set writes to stderr and can't be redirected directly,
6700 # and sets the high bit in the cache file unless we assign to the vars.
6703 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6705 # `set' does not quote correctly, so add quotes (double-quote
6706 # substitution turns \\\\ into \\, and sed turns \\ into \).
6709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6712 # `set' quotes correctly as required by POSIX, so do not add quotes.
6714 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6721 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6723 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6725 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6726 if test -w $cache_file; then
6727 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6728 cat confcache >$cache_file
6730 echo "not updating unwritable cache $cache_file"
6735 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6736 # Let make expand exec_prefix.
6737 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6739 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6740 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6741 # trailing colons and then remove the whole line if VPATH becomes empty
6742 # (actually we leave an empty line to preserve line numbers).
6743 if test "x$srcdir" = x.; then
6744 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6745 s/:*\$(srcdir):*/:/;
6746 s/:*\${srcdir}:*/:/;
6748 s/^\([^=]*=[ ]*\):*/\1/;
6754 DEFS=-DHAVE_CONFIG_H
6758 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6759 # 1. Remove the extension, and $U if already installed.
6760 ac_i=`echo "$ac_i" |
6761 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6763 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6764 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6768 LTLIBOBJS=$ac_ltlibobjs
6772 : ${CONFIG_STATUS=./config.status}
6773 ac_clean_files_save=$ac_clean_files
6774 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6775 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6776 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6777 cat >$CONFIG_STATUS <<_ACEOF
6779 # Generated by $as_me.
6780 # Run this file to recreate the current configuration.
6781 # Compiler output produced by configure, useful for debugging
6782 # configure, is in config.log if it exists.
6787 SHELL=\${CONFIG_SHELL-$SHELL}
6790 cat >>$CONFIG_STATUS <<\_ACEOF
6791 ## --------------------- ##
6792 ## M4sh Initialization. ##
6793 ## --------------------- ##
6795 # Be Bourne compatible
6796 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6799 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6800 # is contrary to our usage. Disable this feature.
6801 alias -g '${1+"$@"}'='"$@"'
6802 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6806 # Support unset when possible.
6807 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6814 # Work around bugs in pre-3.0 UWIN ksh.
6815 $as_unset ENV MAIL MAILPATH
6822 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6823 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6824 LC_TELEPHONE LC_TIME
6826 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6827 eval $as_var=C; export $as_var
6833 # Required to use basename.
6834 if expr a : '\(a\)' >/dev/null 2>&1; then
6840 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6841 as_basename=basename
6847 # Name of the executable.
6848 as_me=`$as_basename "$0" ||
6849 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6850 X"$0" : 'X\(//\)$' \| \
6851 X"$0" : 'X\(/\)$' \| \
6852 . : '\(.\)' 2>/dev/null ||
6854 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6855 /^X\/\(\/\/\)$/{ s//\1/; q; }
6856 /^X\/\(\/\).*/{ s//\1/; q; }
6860 # PATH needs CR, and LINENO needs CR and PATH.
6861 # Avoid depending upon Character Ranges.
6862 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6863 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6864 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6865 as_cr_digits='0123456789'
6866 as_cr_alnum=$as_cr_Letters$as_cr_digits
6868 # The user is always right.
6869 if test "${PATH_SEPARATOR+set}" != set; then
6870 echo "#! /bin/sh" >conf$$.sh
6871 echo "exit 0" >>conf$$.sh
6873 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6884 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6885 test "x$as_lineno_1" != "x$as_lineno_2" &&
6886 test "x$as_lineno_3" = "x$as_lineno_2" || {
6887 # Find who we are. Look in the path if we contain no path at all
6890 *[\\/]* ) as_myself=$0 ;;
6891 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 test -z "$as_dir" && as_dir=.
6896 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6901 # We did not find ourselves, most probably we were run as `sh COMMAND'
6902 # in which case we are not to be found in the path.
6903 if test "x$as_myself" = x; then
6906 if test ! -f "$as_myself"; then
6907 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6908 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6909 { (exit 1); exit 1; }; }
6911 case $CONFIG_SHELL in
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6917 test -z "$as_dir" && as_dir=.
6918 for as_base in sh bash ksh sh5; do
6921 if ("$as_dir/$as_base" -c '
6924 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6925 test "x$as_lineno_1" != "x$as_lineno_2" &&
6926 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6927 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6928 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6929 CONFIG_SHELL=$as_dir/$as_base
6931 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6939 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6940 # uniformly replaced by the line number. The first 'sed' inserts a
6941 # line-number line before each line; the second 'sed' does the real
6942 # work. The second script uses 'N' to pair each line-number line
6943 # with the numbered line, and appends trailing '-' during
6944 # substitution so that $LINENO is not a special case at line end.
6945 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6946 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6947 sed '=' <$as_myself |
6952 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6955 s,^['$as_cr_digits']*\n,,
6957 chmod +x $as_me.lineno ||
6958 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6959 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6960 { (exit 1); exit 1; }; }
6962 # Don't try to exec as it changes $[0], causing all sort of problems
6963 # (the dirname of $[0] is not the place where we might find the
6964 # original and so on. Autoconf is especially sensible to this).
6966 # Exit status is that of the last command.
6971 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6972 *c*,-n*) ECHO_N= ECHO_C='
6974 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6975 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6978 if expr a : '\(a\)' >/dev/null 2>&1; then
6984 rm -f conf$$ conf$$.exe conf$$.file
6986 if ln -s conf$$.file conf$$ 2>/dev/null; then
6987 # We could just check for DJGPP; but this test a) works b) is more generic
6988 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6989 if test -f conf$$.exe; then
6990 # Don't use ln at all; we don't have any links
6995 elif ln conf$$.file conf$$ 2>/dev/null; then
7000 rm -f conf$$ conf$$.exe conf$$.file
7002 if mkdir -p . 2>/dev/null; then
7008 as_executable_p="test -f"
7010 # Sed expression to map a string onto a valid CPP name.
7011 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7013 # Sed expression to map a string onto a valid variable name.
7014 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7018 # We need space, tab and new line, in precisely that order.
7028 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7029 # report actual input values of CONFIG_FILES etc. instead of their
7030 # values after options handling. Logging --version etc. is OK.
7034 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7035 ## Running $as_me. ##
7040 This file was extended by GNU C Library $as_me (see version.h), which was
7041 generated by GNU Autoconf 2.57. Invocation command line was
7043 CONFIG_FILES = $CONFIG_FILES
7044 CONFIG_HEADERS = $CONFIG_HEADERS
7045 CONFIG_LINKS = $CONFIG_LINKS
7046 CONFIG_COMMANDS = $CONFIG_COMMANDS
7050 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7054 # Files that config.status was made for.
7055 if test -n "$ac_config_files"; then
7056 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7059 if test -n "$ac_config_headers"; then
7060 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7063 if test -n "$ac_config_links"; then
7064 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7067 if test -n "$ac_config_commands"; then
7068 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7071 cat >>$CONFIG_STATUS <<\_ACEOF
7074 \`$as_me' instantiates files from templates according to the
7075 current configuration.
7077 Usage: $0 [OPTIONS] [FILE]...
7079 -h, --help print this help, then exit
7080 -V, --version print version number, then exit
7081 -q, --quiet do not print progress messages
7082 -d, --debug don't remove temporary files
7083 --recheck update $as_me by reconfiguring in the same conditions
7084 --file=FILE[:TEMPLATE]
7085 instantiate the configuration file FILE
7086 --header=FILE[:TEMPLATE]
7087 instantiate the configuration header FILE
7089 Configuration files:
7092 Configuration headers:
7095 Configuration commands:
7098 Report bugs to <bug-autoconf@gnu.org>."
7101 cat >>$CONFIG_STATUS <<_ACEOF
7103 GNU C Library config.status (see version.h)
7104 configured by $0, generated by GNU Autoconf 2.57,
7105 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7107 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7108 Free Software Foundation, Inc.
7109 This config.status script is free software; the Free Software Foundation
7110 gives unlimited permission to copy, distribute and modify it."
7115 cat >>$CONFIG_STATUS <<\_ACEOF
7116 # If no file are specified by the user, then we need to provide default
7117 # value. By we need to know if files were specified by the user.
7123 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7124 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7132 *) # This is not an option, so the user has probably given explicit
7135 ac_need_defaults=false;;
7139 # Handling of the options.
7141 cat >>$CONFIG_STATUS <<\_ACEOF
7142 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7144 --version | --vers* | -V )
7145 echo "$ac_cs_version"; exit 0 ;;
7147 # Conflict between --help and --header
7148 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7149 Try \`$0 --help' for more information." >&5
7150 echo "$as_me: error: ambiguous option: $1
7151 Try \`$0 --help' for more information." >&2;}
7152 { (exit 1); exit 1; }; };;
7153 --help | --hel | -h )
7154 echo "$ac_cs_usage"; exit 0 ;;
7155 --debug | --d* | -d )
7157 --file | --fil | --fi | --f )
7159 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7160 ac_need_defaults=false;;
7161 --header | --heade | --head | --hea )
7163 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7164 ac_need_defaults=false;;
7165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7166 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7170 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7171 Try \`$0 --help' for more information." >&5
7172 echo "$as_me: error: unrecognized option: $1
7173 Try \`$0 --help' for more information." >&2;}
7174 { (exit 1); exit 1; }; } ;;
7176 *) ac_config_targets="$ac_config_targets $1" ;;
7182 ac_configure_extra_args=
7184 if $ac_cs_silent; then
7186 ac_configure_extra_args="$ac_configure_extra_args --silent"
7190 cat >>$CONFIG_STATUS <<_ACEOF
7191 if \$ac_cs_recheck; then
7192 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7193 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7198 cat >>$CONFIG_STATUS <<_ACEOF
7200 # INIT-COMMANDS section.
7203 config_vars='$config_vars'
7209 cat >>$CONFIG_STATUS <<\_ACEOF
7210 for ac_config_target in $ac_config_targets
7212 case "$ac_config_target" in
7213 # Handling of arguments.
7214 "config.make" ) CONFIG_FILES="$CONFIG_FILES config.make" ;;
7215 "glibcbug" ) CONFIG_FILES="$CONFIG_FILES glibcbug" ;;
7216 "${config_makefile}" ) CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
7217 "${config_uname}" ) CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
7218 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7219 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7220 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7221 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7222 { (exit 1); exit 1; }; };;
7226 # If the user did not use the arguments to specify the items to instantiate,
7227 # then the envvar interface is used. Set only those that are not.
7228 # We use the long form for the default assignment because of an extremely
7229 # bizarre bug on SunOS 4.1.3.
7230 if $ac_need_defaults; then
7231 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7232 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7233 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7236 # Have a temporary directory for convenience. Make it in the build tree
7237 # simply because there is no reason to put it here, and in addition,
7238 # creating and moving files from /tmp can sometimes cause problems.
7239 # Create a temporary directory, and hook for its removal unless debugging.
7242 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7243 trap '{ (exit 1); exit 1; }' 1 2 13 15
7246 # Create a (secure) tmp directory for tmp files.
7249 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7250 test -n "$tmp" && test -d "$tmp"
7253 tmp=./confstat$$-$RANDOM
7254 (umask 077 && mkdir $tmp)
7257 echo "$me: cannot create a temporary directory in ." >&2
7258 { (exit 1); exit 1; }
7263 cat >>$CONFIG_STATUS <<_ACEOF
7266 # CONFIG_FILES section.
7269 # No need to generate the scripts if there are no CONFIG_FILES.
7270 # This happens for instance when ./config.status config.h
7271 if test -n "\$CONFIG_FILES"; then
7272 # Protect against being on the right side of a sed subst in config.status.
7273 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7274 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7275 s,@SHELL@,$SHELL,;t t
7276 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7277 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7278 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7279 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7280 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7281 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7282 s,@exec_prefix@,$exec_prefix,;t t
7283 s,@prefix@,$prefix,;t t
7284 s,@program_transform_name@,$program_transform_name,;t t
7285 s,@bindir@,$bindir,;t t
7286 s,@sbindir@,$sbindir,;t t
7287 s,@libexecdir@,$libexecdir,;t t
7288 s,@datadir@,$datadir,;t t
7289 s,@sysconfdir@,$sysconfdir,;t t
7290 s,@sharedstatedir@,$sharedstatedir,;t t
7291 s,@localstatedir@,$localstatedir,;t t
7292 s,@libdir@,$libdir,;t t
7293 s,@includedir@,$includedir,;t t
7294 s,@oldincludedir@,$oldincludedir,;t t
7295 s,@infodir@,$infodir,;t t
7296 s,@mandir@,$mandir,;t t
7297 s,@build_alias@,$build_alias,;t t
7298 s,@host_alias@,$host_alias,;t t
7299 s,@target_alias@,$target_alias,;t t
7301 s,@ECHO_C@,$ECHO_C,;t t
7302 s,@ECHO_N@,$ECHO_N,;t t
7303 s,@ECHO_T@,$ECHO_T,;t t
7305 s,@with_fp@,$with_fp,;t t
7306 s,@with_cvs@,$with_cvs,;t t
7307 s,@enable_check_abi@,$enable_check_abi,;t t
7308 s,@oldest_abi@,$oldest_abi,;t t
7309 s,@subdirs@,$subdirs,;t t
7310 s,@force_install@,$force_install,;t t
7311 s,@all_warnings@,$all_warnings,;t t
7312 s,@build@,$build,;t t
7313 s,@build_cpu@,$build_cpu,;t t
7314 s,@build_vendor@,$build_vendor,;t t
7315 s,@build_os@,$build_os,;t t
7317 s,@host_cpu@,$host_cpu,;t t
7318 s,@host_vendor@,$host_vendor,;t t
7319 s,@host_os@,$host_os,;t t
7320 s,@base_machine@,$base_machine,;t t
7321 s,@sysnames@,$sysnames,;t t
7322 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7323 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7324 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7327 s,@CFLAGS@,$CFLAGS,;t t
7328 s,@LDFLAGS@,$LDFLAGS,;t t
7329 s,@CPPFLAGS@,$CPPFLAGS,;t t
7330 s,@ac_ct_CC@,$ac_ct_CC,;t t
7331 s,@OBJEXT@,$OBJEXT,;t t
7332 s,@BUILD_CC@,$BUILD_CC,;t t
7333 s,@cross_compiling@,$cross_compiling,;t t
7336 s,@OBJDUMP@,$OBJDUMP,;t t
7337 s,@RANLIB@,$RANLIB,;t t
7338 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7342 s,@PWD_P@,$PWD_P,;t t
7344 s,@MSGFMT@,$MSGFMT,;t t
7345 s,@MAKEINFO@,$MAKEINFO,;t t
7347 s,@AUTOCONF@,$AUTOCONF,;t t
7348 s,@CCVERSION@,$CCVERSION,;t t
7349 s,@SYSINCLUDES@,$SYSINCLUDES,;t t
7350 s,@libc_cv_gcc_static_libgcc@,$libc_cv_gcc_static_libgcc,;t t
7352 s,@libc_cv_have_bash2@,$libc_cv_have_bash2,;t t
7354 s,@libc_cv_have_ksh@,$libc_cv_have_ksh,;t t
7357 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
7358 s,@OLD_DEBIAN_INSTALL_INFO@,$OLD_DEBIAN_INSTALL_INFO,;t t
7359 s,@BISON@,$BISON,;t t
7360 s,@VERSIONING@,$VERSIONING,;t t
7361 s,@libc_cv_asm_protected_directive@,$libc_cv_asm_protected_directive,;t t
7362 s,@libc_cv_initfinit_array@,$libc_cv_initfinit_array,;t t
7363 s,@libc_cv_z_nodelete@,$libc_cv_z_nodelete,;t t
7364 s,@libc_cv_z_nodlopen@,$libc_cv_z_nodlopen,;t t
7365 s,@libc_cv_z_initfirst@,$libc_cv_z_initfirst,;t t
7366 s,@libc_cv_Bgroup@,$libc_cv_Bgroup,;t t
7367 s,@libc_cv_z_combreloc@,$libc_cv_z_combreloc,;t t
7368 s,@libc_cv_have_initfini@,$libc_cv_have_initfini,;t t
7369 s,@libc_cv_cpp_asm_debuginfo@,$libc_cv_cpp_asm_debuginfo,;t t
7370 s,@no_whole_archive@,$no_whole_archive,;t t
7371 s,@exceptions@,$exceptions,;t t
7372 s,@LIBGD@,$LIBGD,;t t
7373 s,@EGREP@,$EGREP,;t t
7374 s,@sizeof_long_double@,$sizeof_long_double,;t t
7375 s,@libc_cv_gcc_unwind_find_fde@,$libc_cv_gcc_unwind_find_fde,;t t
7376 s,@uname_sysname@,$uname_sysname,;t t
7377 s,@uname_release@,$uname_release,;t t
7378 s,@uname_version@,$uname_version,;t t
7379 s,@old_glibc_headers@,$old_glibc_headers,;t t
7380 s,@libc_cv_slibdir@,$libc_cv_slibdir,;t t
7381 s,@libc_cv_localedir@,$libc_cv_localedir,;t t
7382 s,@libc_cv_sysconfdir@,$libc_cv_sysconfdir,;t t
7383 s,@libc_cv_rootsbindir@,$libc_cv_rootsbindir,;t t
7384 s,@use_ldconfig@,$use_ldconfig,;t t
7385 s,@ldd_rewrite_script@,$ldd_rewrite_script,;t t
7386 s,@gnu_ld@,$gnu_ld,;t t
7387 s,@gnu_as@,$gnu_as,;t t
7389 s,@xcoff@,$xcoff,;t t
7390 s,@static@,$static,;t t
7391 s,@shared@,$shared,;t t
7392 s,@pic_default@,$pic_default,;t t
7393 s,@profile@,$profile,;t t
7394 s,@omitfp@,$omitfp,;t t
7395 s,@bounded@,$bounded,;t t
7396 s,@static_nss@,$static_nss,;t t
7397 s,@nopic_initfini@,$nopic_initfini,;t t
7398 s,@DEFINES@,$DEFINES,;t t
7399 s,@linux_doors@,$linux_doors,;t t
7400 s,@mach_interface_list@,$mach_interface_list,;t t
7401 s,@VERSION@,$VERSION,;t t
7402 s,@RELEASE@,$RELEASE,;t t
7403 s,@LIBOBJS@,$LIBOBJS,;t t
7404 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7409 cat >>$CONFIG_STATUS <<\_ACEOF
7410 # Split the substitutions into bite-sized pieces for seds with
7411 # small command number limits, like on Digital OSF/1 and HP-UX.
7413 ac_sed_frag=1 # Number of current file.
7414 ac_beg=1 # First line for current file.
7415 ac_end=$ac_max_sed_lines # Line after last line for current file.
7418 while $ac_more_lines; do
7419 if test $ac_beg -gt 1; then
7420 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7422 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7424 if test ! -s $tmp/subs.frag; then
7427 # The purpose of the label and of the branching condition is to
7428 # speed up the sed processing (if there are no `@' at all, there
7429 # is no need to browse any of the substitutions).
7430 # These are the two extra sed commands mentioned above.
7432 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7433 if test -z "$ac_sed_cmds"; then
7434 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7436 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7438 ac_sed_frag=`expr $ac_sed_frag + 1`
7440 ac_end=`expr $ac_end + $ac_max_sed_lines`
7443 if test -z "$ac_sed_cmds"; then
7446 fi # test -n "$CONFIG_FILES"
7449 cat >>$CONFIG_STATUS <<\_ACEOF
7450 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7451 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7453 - | *:- | *:-:* ) # input from stdin
7455 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7456 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7457 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7458 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7459 * ) ac_file_in=$ac_file.in ;;
7462 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7463 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7464 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7465 X"$ac_file" : 'X\(//\)[^/]' \| \
7466 X"$ac_file" : 'X\(//\)$' \| \
7467 X"$ac_file" : 'X\(/\)' \| \
7468 . : '\(.\)' 2>/dev/null ||
7470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7471 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7472 /^X\(\/\/\)$/{ s//\1/; q; }
7473 /^X\(\/\).*/{ s//\1/; q; }
7475 { if $as_mkdir_p; then
7480 while test ! -d "$as_dir"; do
7481 as_dirs="$as_dir $as_dirs"
7482 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7483 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7484 X"$as_dir" : 'X\(//\)[^/]' \| \
7485 X"$as_dir" : 'X\(//\)$' \| \
7486 X"$as_dir" : 'X\(/\)' \| \
7487 . : '\(.\)' 2>/dev/null ||
7489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7490 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7491 /^X\(\/\/\)$/{ s//\1/; q; }
7492 /^X\(\/\).*/{ s//\1/; q; }
7495 test ! -n "$as_dirs" || mkdir $as_dirs
7496 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7497 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7498 { (exit 1); exit 1; }; }; }
7502 if test "$ac_dir" != .; then
7503 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7504 # A "../" for each directory in $ac_dir_suffix.
7505 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7507 ac_dir_suffix= ac_top_builddir=
7511 .) # No --srcdir option. We are building in place.
7513 if test -z "$ac_top_builddir"; then
7516 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7518 [\\/]* | ?:[\\/]* ) # Absolute path.
7519 ac_srcdir=$srcdir$ac_dir_suffix;
7520 ac_top_srcdir=$srcdir ;;
7522 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7523 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7525 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7527 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7528 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7529 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7530 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7534 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7535 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7538 if test x"$ac_file" != x-; then
7539 { echo "$as_me:$LINENO: creating $ac_file" >&5
7540 echo "$as_me: creating $ac_file" >&6;}
7543 # Let's still pretend it is `configure' which instantiates (i.e., don't
7544 # use $as_me), people would be surprised to read:
7545 # /* config.h. Generated by config.status. */
7546 if test x"$ac_file" = x-; then
7549 configure_input="$ac_file. "
7551 configure_input=$configure_input"Generated from `echo $ac_file_in |
7552 sed 's,.*/,,'` by configure."
7554 # First look for the input files in the build tree, otherwise in the
7556 ac_file_inputs=`IFS=:
7557 for f in $ac_file_in; do
7559 -) echo $tmp/stdin ;;
7561 # Absolute (can't be DOS-style, as IFS=:)
7562 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7563 echo "$as_me: error: cannot find input file: $f" >&2;}
7564 { (exit 1); exit 1; }; }
7567 if test -f "$f"; then
7570 elif test -f "$srcdir/$f"; then
7575 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7576 echo "$as_me: error: cannot find input file: $f" >&2;}
7577 { (exit 1); exit 1; }; }
7580 done` || { (exit 1); exit 1; }
7582 cat >>$CONFIG_STATUS <<_ACEOF
7586 cat >>$CONFIG_STATUS <<\_ACEOF
7588 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7589 s,@configure_input@,$configure_input,;t t
7590 s,@srcdir@,$ac_srcdir,;t t
7591 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7592 s,@top_srcdir@,$ac_top_srcdir,;t t
7593 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7594 s,@builddir@,$ac_builddir,;t t
7595 s,@abs_builddir@,$ac_abs_builddir,;t t
7596 s,@top_builddir@,$ac_top_builddir,;t t
7597 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7598 s,@INSTALL@,$ac_INSTALL,;t t
7599 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7601 if test x"$ac_file" != x-; then
7602 mv $tmp/out $ac_file
7610 cat >>$CONFIG_STATUS <<\_ACEOF
7613 # CONFIG_HEADER section.
7616 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7617 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7619 # ac_d sets the value in "#define NAME VALUE" lines.
7620 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7621 ac_dB='[ ].*$,\1#\2'
7624 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7625 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7626 ac_uB='$,\1#\2define\3'
7630 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7631 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7633 - | *:- | *:-:* ) # input from stdin
7635 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7636 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7637 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7638 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7639 * ) ac_file_in=$ac_file.in ;;
7642 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7643 echo "$as_me: creating $ac_file" >&6;}
7645 # First look for the input files in the build tree, otherwise in the
7647 ac_file_inputs=`IFS=:
7648 for f in $ac_file_in; do
7650 -) echo $tmp/stdin ;;
7652 # Absolute (can't be DOS-style, as IFS=:)
7653 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7654 echo "$as_me: error: cannot find input file: $f" >&2;}
7655 { (exit 1); exit 1; }; }
7658 if test -f "$f"; then
7661 elif test -f "$srcdir/$f"; then
7666 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7667 echo "$as_me: error: cannot find input file: $f" >&2;}
7668 { (exit 1); exit 1; }; }
7671 done` || { (exit 1); exit 1; }
7672 # Remove the trailing spaces.
7673 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7677 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7678 # `conftest.undefs', that substitutes the proper values into
7679 # config.h.in to produce config.h. The first handles `#define'
7680 # templates, and the second `#undef' templates.
7681 # And first: Protect against being on the right side of a sed subst in
7682 # config.status. Protect against being in an unquoted here document
7684 rm -f conftest.defines conftest.undefs
7685 # Using a here document instead of a string reduces the quoting nightmare.
7686 # Putting comments in sed scripts is not portable.
7688 # `end' is used to avoid that the second main sed command (meant for
7689 # 0-ary CPP macros) applies to n-ary macro definitions.
7690 # See the Autoconf documentation for `clear'.
7691 cat >confdef2sed.sed <<\_ACEOF
7696 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7698 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7701 # If some macros were called several times there might be several times
7702 # the same #defines, which is useless. Nevertheless, we may not want to
7703 # sort them, since we want the *last* AC-DEFINE to be honored.
7704 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7705 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7706 rm -f confdef2sed.sed
7708 # This sed command replaces #undef with comments. This is necessary, for
7709 # example, in the case of _POSIX_SOURCE, which is predefined and required
7710 # on some systems where configure will not decide to define it.
7711 cat >>conftest.undefs <<\_ACEOF
7712 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7715 # Break up conftest.defines because some shells have a limit on the size
7716 # of here documents, and old seds have small limits too (100 cmds).
7717 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7718 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7719 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7720 echo ' :' >>$CONFIG_STATUS
7722 while grep . conftest.defines >/dev/null
7724 # Write a limited-size here document to $tmp/defines.sed.
7725 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7726 # Speed up: don't consider the non `#define' lines.
7727 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7728 # Work around the forget-to-reset-the-flag bug.
7729 echo 't clr' >>$CONFIG_STATUS
7730 echo ': clr' >>$CONFIG_STATUS
7731 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7733 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7737 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7738 rm -f conftest.defines
7739 mv conftest.tail conftest.defines
7741 rm -f conftest.defines
7742 echo ' fi # grep' >>$CONFIG_STATUS
7743 echo >>$CONFIG_STATUS
7745 # Break up conftest.undefs because some shells have a limit on the size
7746 # of here documents, and old seds have small limits too (100 cmds).
7747 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7749 while grep . conftest.undefs >/dev/null
7751 # Write a limited-size here document to $tmp/undefs.sed.
7752 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7753 # Speed up: don't consider the non `#undef'
7754 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7755 # Work around the forget-to-reset-the-flag bug.
7756 echo 't clr' >>$CONFIG_STATUS
7757 echo ': clr' >>$CONFIG_STATUS
7758 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7760 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7764 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7765 rm -f conftest.undefs
7766 mv conftest.tail conftest.undefs
7768 rm -f conftest.undefs
7770 cat >>$CONFIG_STATUS <<\_ACEOF
7771 # Let's still pretend it is `configure' which instantiates (i.e., don't
7772 # use $as_me), people would be surprised to read:
7773 # /* config.h. Generated by config.status. */
7774 if test x"$ac_file" = x-; then
7775 echo "/* Generated by configure. */" >$tmp/config.h
7777 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7779 cat $tmp/in >>$tmp/config.h
7781 if test x"$ac_file" != x-; then
7782 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7783 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7784 echo "$as_me: $ac_file is unchanged" >&6;}
7786 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7787 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7788 X"$ac_file" : 'X\(//\)[^/]' \| \
7789 X"$ac_file" : 'X\(//\)$' \| \
7790 X"$ac_file" : 'X\(/\)' \| \
7791 . : '\(.\)' 2>/dev/null ||
7793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7794 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7795 /^X\(\/\/\)$/{ s//\1/; q; }
7796 /^X\(\/\).*/{ s//\1/; q; }
7798 { if $as_mkdir_p; then
7803 while test ! -d "$as_dir"; do
7804 as_dirs="$as_dir $as_dirs"
7805 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7806 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7807 X"$as_dir" : 'X\(//\)[^/]' \| \
7808 X"$as_dir" : 'X\(//\)$' \| \
7809 X"$as_dir" : 'X\(/\)' \| \
7810 . : '\(.\)' 2>/dev/null ||
7812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7813 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7814 /^X\(\/\/\)$/{ s//\1/; q; }
7815 /^X\(\/\).*/{ s//\1/; q; }
7818 test ! -n "$as_dirs" || mkdir $as_dirs
7819 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7820 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7821 { (exit 1); exit 1; }; }; }
7824 mv $tmp/config.h $ac_file
7832 cat >>$CONFIG_STATUS <<\_ACEOF
7835 # CONFIG_COMMANDS section.
7837 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7838 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7839 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7840 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7841 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7842 X"$ac_dest" : 'X\(//\)[^/]' \| \
7843 X"$ac_dest" : 'X\(//\)$' \| \
7844 X"$ac_dest" : 'X\(/\)' \| \
7845 . : '\(.\)' 2>/dev/null ||
7847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7848 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7849 /^X\(\/\/\)$/{ s//\1/; q; }
7850 /^X\(\/\).*/{ s//\1/; q; }
7854 if test "$ac_dir" != .; then
7855 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7856 # A "../" for each directory in $ac_dir_suffix.
7857 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7859 ac_dir_suffix= ac_top_builddir=
7863 .) # No --srcdir option. We are building in place.
7865 if test -z "$ac_top_builddir"; then
7868 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7870 [\\/]* | ?:[\\/]* ) # Absolute path.
7871 ac_srcdir=$srcdir$ac_dir_suffix;
7872 ac_top_srcdir=$srcdir ;;
7874 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7875 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7877 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7879 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7880 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7881 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7882 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7885 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7886 echo "$as_me: executing $ac_dest commands" >&6;}
7889 case $CONFIG_FILES in *config.make*)
7890 echo "$config_vars" >> config.make;;
7892 test -d bits || mkdir bits ;;
7897 cat >>$CONFIG_STATUS <<\_ACEOF
7899 { (exit 0); exit 0; }
7901 chmod +x $CONFIG_STATUS
7902 ac_clean_files=$ac_clean_files_save
7905 # configure is writing to config.log, and then calls config.status.
7906 # config.status does its own redirection, appending to config.log.
7907 # Unfortunately, on DOS this fails, as config.log is still kept open
7908 # by configure, so config.status won't be able to write to it; its
7909 # output is simply discarded. So we exec the FD to /dev/null,
7910 # effectively closing config.log, so it can be properly (re)opened and
7911 # appended to by config.status. When coming back to configure, we
7912 # need to make the FD available again.
7913 if test "$no_create" != yes; then
7915 ac_config_status_args=
7916 test "$silent" = yes &&
7917 ac_config_status_args="$ac_config_status_args --quiet"
7919 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7921 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7922 # would make configure fail if this is the last instruction.
7923 $ac_cs_success || { (exit 1); exit 1; }
7927 # CONFIG_SUBDIRS section.
7929 if test "$no_recursion" != yes; then
7931 # Remove --cache-file and --srcdir arguments so they do not pile up.
7932 ac_sub_configure_args=
7934 for ac_arg in $ac_configure_args; do
7935 if test -n "$ac_prev"; then
7940 -cache-file | --cache-file | --cache-fil | --cache-fi \
7941 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7942 ac_prev=cache_file ;;
7943 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7944 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7947 --config-cache | -C)
7949 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7951 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7953 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7955 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7957 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7961 # Always prepend --prefix to ensure using the same prefix
7962 # in subdir configurations.
7963 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7966 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7968 # Do not complain, so a configure script can configure whichever
7969 # parts of a large source tree are present.
7970 test -d $srcdir/$ac_dir || continue
7972 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7973 echo "$as_me: configuring in $ac_dir" >&6;}
7974 { if $as_mkdir_p; then
7979 while test ! -d "$as_dir"; do
7980 as_dirs="$as_dir $as_dirs"
7981 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7983 X"$as_dir" : 'X\(//\)[^/]' \| \
7984 X"$as_dir" : 'X\(//\)$' \| \
7985 X"$as_dir" : 'X\(/\)' \| \
7986 . : '\(.\)' 2>/dev/null ||
7988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7989 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7990 /^X\(\/\/\)$/{ s//\1/; q; }
7991 /^X\(\/\).*/{ s//\1/; q; }
7994 test ! -n "$as_dirs" || mkdir $as_dirs
7995 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7996 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7997 { (exit 1); exit 1; }; }; }
8001 if test "$ac_dir" != .; then
8002 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8003 # A "../" for each directory in $ac_dir_suffix.
8004 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8006 ac_dir_suffix= ac_top_builddir=
8010 .) # No --srcdir option. We are building in place.
8012 if test -z "$ac_top_builddir"; then
8015 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8017 [\\/]* | ?:[\\/]* ) # Absolute path.
8018 ac_srcdir=$srcdir$ac_dir_suffix;
8019 ac_top_srcdir=$srcdir ;;
8021 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8022 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8024 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8026 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8027 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8028 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8029 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8034 # Check for guested configure; otherwise get Cygnus style configure.
8035 if test -f $ac_srcdir/configure.gnu; then
8036 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8037 elif test -f $ac_srcdir/configure; then
8038 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8039 elif test -f $ac_srcdir/configure.in; then
8040 ac_sub_configure=$ac_configure
8042 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8043 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8047 # The recursion is here.
8048 if test -n "$ac_sub_configure"; then
8049 # Make the cache file name correct relative to the subdirectory.
8051 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8053 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
8056 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8057 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8058 # The eval makes quoting arguments work.
8059 eval $ac_sub_configure $ac_sub_configure_args \
8060 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8061 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8062 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8063 { (exit 1); exit 1; }; }