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 --disable-check-abi omit "make check-abi" from "make check"
855 --enable-shared build shared library [default=yes if GNU ld &
857 --enable-profile build profiled library [default=yes]
858 --enable-omitfp build undebuggable optimized library
860 --enable-bounded build with runtime bounds checking
862 --disable-versioning do not include versioning information in the library
863 objects [default=yes if supported]
864 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
865 [default=glibc default]
866 --enable-add-ons[=DIRS...]
867 configure and build add-ons in DIR1,DIR2,... search
868 for add-ons if no parameter given
869 --disable-hidden-plt do not hide internal function calls to avoid PLT
870 --enable-static-nss build static NSS modules [default=no]
871 --disable-force-install don't force installation of files from this package,
872 even if they are older than the installed files
873 --enable-kernel=VERSION compile for compatibility with kernel not older than
875 --enable-all-warnings enable all useful warnings gcc can issue
878 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
879 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
880 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)
881 --with-gd=DIR find libgd include dir and library with prefix DIR
882 --with-gd-include=DIR find libgd include files in DIR
883 --with-gd-lib=DIR find libgd library files in DIR
884 --with-fp if using floating-point hardware [default=yes]
885 --with-binutils=PATH specify location of binutils (as and ld)
886 --with-elf if using the ELF object format
887 --with-xcoff if using the XCOFF object format
888 --without-cvs if CVS should not be used
889 --with-headers=PATH location of system headers to use (for example
890 /usr/src/linux/include) [default=compiler
892 --with-tls enable support for TLS
893 --without-__thread do not use TLS features even when supporting them
895 Some influential environment variables:
896 CC C compiler command
897 CFLAGS C compiler flags
898 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
899 nonstandard directory <lib dir>
900 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
901 headers in a nonstandard directory <include dir>
904 Use these variables to override the choices made by `configure' or to help
905 it to find libraries and programs with nonstandard names/locations.
907 Report bugs to <glibc>.
911 if test "$ac_init_help" = "recursive"; then
912 # If there are subdirs, report their specific --help.
914 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
915 test -d $ac_dir || continue
918 if test "$ac_dir" != .; then
919 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
920 # A "../" for each directory in $ac_dir_suffix.
921 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
923 ac_dir_suffix= ac_top_builddir=
927 .) # No --srcdir option. We are building in place.
929 if test -z "$ac_top_builddir"; then
932 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
934 [\\/]* | ?:[\\/]* ) # Absolute path.
935 ac_srcdir=$srcdir$ac_dir_suffix;
936 ac_top_srcdir=$srcdir ;;
938 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
939 ac_top_srcdir=$ac_top_builddir$srcdir ;;
941 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
943 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
944 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
945 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
946 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
949 # Check for guested configure; otherwise get Cygnus style configure.
950 if test -f $ac_srcdir/configure.gnu; then
952 $SHELL $ac_srcdir/configure.gnu --help=recursive
953 elif test -f $ac_srcdir/configure; then
955 $SHELL $ac_srcdir/configure --help=recursive
956 elif test -f $ac_srcdir/configure.ac ||
957 test -f $ac_srcdir/configure.in; then
961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
970 GNU C Library configure (see version.h)
971 generated by GNU Autoconf 2.57
973 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
974 Free Software Foundation, Inc.
975 This configure script is free software; the Free Software Foundation
976 gives unlimited permission to copy, distribute and modify it.
982 This file contains any messages produced by compilers while
983 running configure, to aid debugging if configure makes a mistake.
985 It was created by GNU C Library $as_me (see version.h), which was
986 generated by GNU Autoconf 2.57. Invocation command line was
997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1009 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1020 test -z "$as_dir" && as_dir=.
1021 echo "PATH: $as_dir"
1036 # Keep a trace of the command line.
1037 # Strip out --no-create and --no-recursion so they do not pile up.
1038 # Strip out --silent because we don't want to record it for future runs.
1039 # Also quote any args containing shell meta-characters.
1040 # Make two passes to allow for proper duplicate-argument suppression.
1045 ac_must_keep_next=false
1051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1055 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1056 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1059 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1061 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1062 if test $ac_must_keep_next = true; then
1063 ac_must_keep_next=false # Got value, back to normal.
1066 *=* | --config-cache | -C | -disable-* | --disable-* \
1067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1069 | -with-* | --with-* | -without-* | --without-* | --x)
1070 case "$ac_configure_args0 " in
1071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1074 -* ) ac_must_keep_next=true ;;
1077 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1078 # Get rid of the leading space.
1084 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1085 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1087 # When interrupted or exit'd, cleanup temporary files, and complete
1088 # config.log. We remove comments because anyway the quotes in there
1089 # would cause problems or look ugly.
1090 # WARNING: Be sure not to use single quotes in there, as some shells,
1091 # such as our DU 5.0 friend, will then `close' the trap.
1092 trap 'exit_status=$?
1093 # Save into config.log some information that might help in debugging.
1098 ## ---------------- ##
1099 ## Cache variables. ##
1100 ## ---------------- ##
1103 # The following way of writing the cache mishandles newlines in values,
1106 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1109 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1114 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1121 ## ----------------- ##
1122 ## Output variables. ##
1123 ## ----------------- ##
1126 for ac_var in $ac_subst_vars
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1133 if test -n "$ac_subst_files"; then
1140 for ac_var in $ac_subst_files
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1148 if test -s confdefs.h; then
1155 sed "/^$/d" confdefs.h | sort
1158 test "$ac_signal" != 0 &&
1159 echo "$as_me: caught signal $ac_signal"
1160 echo "$as_me: exit $exit_status"
1162 rm -f core core.* *.core &&
1163 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1166 for ac_signal in 1 2 13 15; do
1167 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1171 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1172 rm -rf conftest* confdefs.h
1173 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1176 # Predefined preprocessor variables.
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_NAME "$PACKAGE_NAME"
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_STRING "$PACKAGE_STRING"
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1203 # Let the site file select an alternate cache file if it wants to.
1204 # Prefer explicitly selected file to automatically selected ones.
1205 if test -z "$CONFIG_SITE"; then
1206 if test "x$prefix" != xNONE; then
1207 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1209 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1212 for ac_site_file in $CONFIG_SITE; do
1213 if test -r "$ac_site_file"; then
1214 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1215 echo "$as_me: loading site script $ac_site_file" >&6;}
1216 sed 's/^/| /' "$ac_site_file" >&5
1221 if test -r "$cache_file"; then
1222 # Some versions of bash will fail to source /dev/null (special
1223 # files actually), so we avoid doing that.
1224 if test -f "$cache_file"; then
1225 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1226 echo "$as_me: loading cache $cache_file" >&6;}
1228 [\\/]* | ?:[\\/]* ) . $cache_file;;
1229 *) . ./$cache_file;;
1233 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1234 echo "$as_me: creating cache $cache_file" >&6;}
1238 # Check that the precious variables saved in the cache have kept the same
1240 ac_cache_corrupted=false
1241 for ac_var in `(set) 2>&1 |
1242 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1244 eval ac_new_set=\$ac_env_${ac_var}_set
1245 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1246 eval ac_new_val="\$ac_env_${ac_var}_value"
1247 case $ac_old_set,$ac_new_set in
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1253 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1258 if test "x$ac_old_val" != "x$ac_new_val"; then
1259 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1260 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1261 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1262 echo "$as_me: former value: $ac_old_val" >&2;}
1263 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1264 echo "$as_me: current value: $ac_new_val" >&2;}
1265 ac_cache_corrupted=:
1268 # Pass precious variables to config.status.
1269 if test "$ac_new_set" = set; then
1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1273 *) ac_arg=$ac_var=$ac_new_val ;;
1275 case " $ac_configure_args " in
1276 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1277 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1281 if $ac_cache_corrupted; then
1282 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1283 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1284 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1285 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1286 { (exit 1); exit 1; }; }
1290 ac_cpp='$CPP $CPPFLAGS'
1291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322 ac_config_headers="$ac_config_headers config.h"
1325 for ac_dir in scripts $srcdir/scripts; do
1326 if test -f $ac_dir/install-sh; then
1328 ac_install_sh="$ac_aux_dir/install-sh -c"
1330 elif test -f $ac_dir/install.sh; then
1332 ac_install_sh="$ac_aux_dir/install.sh -c"
1334 elif test -f $ac_dir/shtool; then
1336 ac_install_sh="$ac_aux_dir/shtool install -c"
1340 if test -z "$ac_aux_dir"; then
1341 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&5
1342 echo "$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&2;}
1343 { (exit 1); exit 1; }; }
1345 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1346 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1347 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1350 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
1351 { { echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
1352 echo "$as_me: error: you must configure in a separate build directory" >&2;}
1353 { (exit 1); exit 1; }; }
1356 # This will get text that should go into config.make.
1359 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
1361 # Check whether --with-gmp or --without-gmp was given.
1362 if test "${with_gmp+set}" = set; then
1366 yes) { { echo "$as_me:$LINENO: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&5
1367 echo "$as_me: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&2;}
1368 { (exit 1); exit 1; }; } ;;
1370 *) config_vars="$config_vars
1371 gmp-srcdir = $withval" ;;
1375 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
1377 # Check whether --with-gd or --without-gd was given.
1378 if test "${with_gd+set}" = set; then
1382 *) libgd_include="-I$withval/include"
1383 libgd_ldflags="-L$withval/lib" ;;
1388 # Check whether --with-gd-include or --without-gd-include was given.
1389 if test "${with_gd_include+set}" = set; then
1390 withval="$with_gd_include"
1391 case "$with_gd_include" in
1393 *) libgd_include="-I$withval" ;;
1398 # Check whether --with-gd-lib or --without-gd-lib was given.
1399 if test "${with_gd_lib+set}" = set; then
1400 withval="$with_gd_lib"
1401 case "$with_gd_lib" in
1403 *) libgd_ldflags="-L$withval" ;;
1408 if test -n "$libgd_include"; then
1409 config_vars="$config_vars
1410 CFLAGS-memusagestat.c = $libgd_include"
1412 if test -n "$libgd_ldflags"; then
1413 config_vars="$config_vars
1414 libgd-LDFLAGS = $libgd_ldflags"
1418 # Check whether --with-fp or --without-fp was given.
1419 if test "${with_fp+set}" = set; then
1427 # Check whether --with-binutils or --without-binutils was given.
1428 if test "${with_binutils+set}" = set; then
1429 withval="$with_binutils"
1430 path_binutils=$withval
1435 # Check whether --with-elf or --without-elf was given.
1436 if test "${with_elf+set}" = set; then
1443 # Check whether --with-xcoff or --without-xcoff was given.
1444 if test "${with_xcoff+set}" = set; then
1445 withval="$with_xcoff"
1451 # Check whether --with-cvs or --without-cvs was given.
1452 if test "${with_cvs+set}" = set; then
1458 if test "$with_cvs" = yes; then
1459 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
1467 # Check whether --with-headers or --without-headers was given.
1468 if test "${with_headers+set}" = set; then
1469 withval="$with_headers"
1475 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
1476 if test "${enable_sanity_checks+set}" = set; then
1477 enableval="$enable_sanity_checks"
1478 enable_sanity=$enableval
1484 # Check whether --enable-check-abi or --disable-check-abi was given.
1485 if test "${enable_check_abi+set}" = set; then
1486 enableval="$enable_check_abi"
1487 enable_check_abi=$enableval
1489 enable_check_abi=yes
1493 # Check whether --enable-shared or --disable-shared was given.
1494 if test "${enable_shared+set}" = set; then
1495 enableval="$enable_shared"
1500 # Check whether --enable-profile or --disable-profile was given.
1501 if test "${enable_profile+set}" = set; then
1502 enableval="$enable_profile"
1507 # Check whether --enable-omitfp or --disable-omitfp was given.
1508 if test "${enable_omitfp+set}" = set; then
1509 enableval="$enable_omitfp"
1514 # Check whether --enable-bounded or --disable-bounded was given.
1515 if test "${enable_bounded+set}" = set; then
1516 enableval="$enable_bounded"
1521 # Check whether --enable-versioning or --disable-versioning was given.
1522 if test "${enable_versioning+set}" = set; then
1523 enableval="$enable_versioning"
1524 enable_versioning=$enableval
1526 enable_versioning=yes
1529 # Check whether --enable-oldest-abi or --disable-oldest-abi was given.
1530 if test "${enable_oldest_abi+set}" = set; then
1531 enableval="$enable_oldest_abi"
1532 oldest_abi=$enableval
1536 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
1539 cat >>confdefs.h <<_ACEOF
1540 #define GLIBC_OLDEST_ABI "$oldest_abi"
1546 # Check whether --enable-add-ons or --disable-add-ons was given.
1547 if test "${enable_add_ons+set}" = set; then
1548 enableval="$enable_add_ons"
1549 case "$enableval" in
1550 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
1551 test "$add_ons" = "*" && add_ons= ;;
1552 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
1559 # Check whether --with-tls or --without-tls was given.
1560 if test "${with_tls+set}" = set; then
1568 # Check whether --with-__thread or --without-__thread was given.
1569 if test "${with___thread+set}" = set; then
1570 withval="$with___thread"
1571 use__thread=$withval
1576 # Check whether --enable-hidden-plt or --disable-hidden-plt was given.
1577 if test "${enable_hidden_plt+set}" = set; then
1578 enableval="$enable_hidden_plt"
1583 if test "x$hidden" = xno; then
1584 cat >>confdefs.h <<\_ACEOF
1594 if test x"$add_ons" != x; then
1595 for f in $add_ons; do
1596 # Some sanity checks
1597 if test "$f" = "crypt"; then
1598 { { echo "$as_me:$LINENO: error:
1599 *** It seems that you're using an old \`crypt' add-on. crypt is now
1600 *** part of glibc and using the old add-on will not work with this
1601 *** release. Start again with fresh sources and without the old
1602 *** \`crypt' add-on." >&5
1603 echo "$as_me: error:
1604 *** It seems that you're using an old \`crypt' add-on. crypt is now
1605 *** part of glibc and using the old add-on will not work with this
1606 *** release. Start again with fresh sources and without the old
1607 *** \`crypt' add-on." >&2;}
1608 { (exit 1); exit 1; }; }
1610 if test "$f" = "localedata"; then
1611 { { echo "$as_me:$LINENO: error:
1612 *** It seems that you're using an old \`localedata' add-on. localedata
1613 *** is now part of glibc and using the old add-on will not work with
1614 *** this release. Start again with fresh sources and without the old
1615 *** \`localedata' add-on." >&5
1616 echo "$as_me: error:
1617 *** It seems that you're using an old \`localedata' add-on. localedata
1618 *** is now part of glibc and using the old add-on will not work with
1619 *** this release. Start again with fresh sources and without the old
1620 *** \`localedata' add-on." >&2;}
1621 { (exit 1); exit 1; }; }
1623 # Test whether such a subdir really exists.
1624 if test -d $srcdir/$f; then
1625 add_ons_pfx="$add_ons_pfx $f/"
1626 subdirs="$subdirs $f"
1628 { { echo "$as_me:$LINENO: error: add-on directory \"$f\" does not exist" >&5
1629 echo "$as_me: error: add-on directory \"$f\" does not exist" >&2;}
1630 { (exit 1); exit 1; }; }
1635 # Check whether --enable-static-nss or --disable-static-nss was given.
1636 if test "${enable_static_nss+set}" = set; then
1637 enableval="$enable_static_nss"
1638 static_nss=$enableval
1642 if test x"$static_nss" = xyes || test x"$shared" = xno; then
1644 cat >>confdefs.h <<\_ACEOF
1645 #define DO_STATIC_NSS 1
1650 # Check whether --enable-force-install or --disable-force-install was given.
1651 if test "${enable_force_install+set}" = set; then
1652 enableval="$enable_force_install"
1653 force_install=$enableval
1659 # Check whether --enable-kernel or --disable-kernel was given.
1660 if test "${enable_kernel+set}" = set; then
1661 enableval="$enable_kernel"
1662 minimum_kernel=$enableval
1664 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
1665 # Better nothing than this.
1668 if test "$minimum_kernel" = current; then
1669 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
1673 # Check whether --enable-all-warnings or --disable-all-warnings was given.
1674 if test "${enable_all_warnings+set}" = set; then
1675 enableval="$enable_all_warnings"
1676 all_warnings=$enableval
1680 # Make sure we can run config.sub.
1681 $ac_config_sub sun4 >/dev/null 2>&1 ||
1682 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1683 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1684 { (exit 1); exit 1; }; }
1686 echo "$as_me:$LINENO: checking build system type" >&5
1687 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1688 if test "${ac_cv_build+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 ac_cv_build_alias=$build_alias
1692 test -z "$ac_cv_build_alias" &&
1693 ac_cv_build_alias=`$ac_config_guess`
1694 test -z "$ac_cv_build_alias" &&
1695 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1696 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1697 { (exit 1); exit 1; }; }
1698 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1699 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1700 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1701 { (exit 1); exit 1; }; }
1704 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1705 echo "${ECHO_T}$ac_cv_build" >&6
1707 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1708 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1709 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1712 echo "$as_me:$LINENO: checking host system type" >&5
1713 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1714 if test "${ac_cv_host+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1717 ac_cv_host_alias=$host_alias
1718 test -z "$ac_cv_host_alias" &&
1719 ac_cv_host_alias=$ac_cv_build_alias
1720 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1721 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1722 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1723 { (exit 1); exit 1; }; }
1726 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1727 echo "${ECHO_T}$ac_cv_host" >&6
1729 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1730 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1731 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1735 # The way shlib-versions is used to generate soversions.mk uses a
1736 # fairly simplistic model for name recognition that can't distinguish
1737 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
1738 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
1739 # tell. This doesn't get used much beyond that, so it's fairly safe.
1744 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
1748 # We keep the original values in `$config_*' and never modify them, so we
1749 # can write them unchanged into config.make. Everything else uses
1750 # $machine, $vendor, and $os, and changes them whenever convenient.
1751 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
1753 # Don't allow vendor == "unknown"
1754 test "$config_vendor" = unknown && config_vendor=
1755 config_os="`echo $config_os | sed 's/^unknown-//'`"
1757 # Some configurations imply other options.
1759 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
1760 # These systems always use GNU tools.
1761 gnu_ld=yes gnu_as=yes ;;
1764 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
1765 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
1767 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
1768 # These systems (almost) always use the ELF format.
1772 # These systems are always xcoff
1778 machine=$config_machine
1779 vendor=$config_vendor
1782 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
1784 if test "$machine" = rs6000; then
1788 # Braindead PowerPC box with absolutely no FPU.
1789 case "$machine-$host_os" in
1796 ### I put this here to prevent those annoying emails from people who cannot
1797 ### read and try to compile glibc on unsupported platforms. --drepper
1799 ### By using the undocumented --enable-hacker-mode option for configure
1800 ### one can skip this test to make the configuration not fail for unsupported
1803 if test -z "$enable_hacker_mode"; then
1804 case "$machine-$host_os" in
1805 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
1808 echo "*** The GNU C library is currently not available for this platform."
1809 echo "*** So far nobody cared to port it and if there is no volunteer it"
1810 echo "*** might never happen. So, if you have interest to see glibc on"
1811 echo "*** this platform visit"
1812 echo "*** http://www.gnu.org/software/libc/porting.html"
1813 echo "*** and join the group of porters"
1819 # Expand the configuration machine name into a subdirectory by architecture
1820 # type and particular chip.
1822 a29k | am29000) base_machine=a29k machine=a29k ;;
1823 alpha*) base_machine=alpha machine=alpha/$machine ;;
1824 arm*) base_machine=arm machine=arm/arm32/$machine ;;
1825 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
1826 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
1827 hppa*64*) base_machine=hppa machine=hppa/hppa64 ;;
1828 hppa*) base_machine=hppa machine=hppa/hppa1.1 ;;
1829 i[3456]86) base_machine=i386 machine=i386/$machine ;;
1830 ia64) base_machine=ia64 machine=ia64 ;;
1831 m680?0) base_machine=m68k machine=m68k/$machine ;;
1832 m68k) base_machine=m68k machine=m68k/m68020 ;;
1833 m88???) base_machine=m88k machine=m88k/$machine ;;
1834 m88k) base_machine=m88k machine=m88k/m88100 ;;
1835 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
1836 mips*) base_machine=mips machine=mips/$machine ;;
1837 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
1838 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
1839 s390) base_machine=s390 machine=s390/s390-32 ;;
1840 s390x) base_machine=s390 machine=s390/s390-64 ;;
1841 sh3*) base_machine=sh machine=sh/sh3 ;;
1842 sh4*) base_machine=sh machine=sh/sh4 ;;
1844 base_machine=sparc machine=sparc/sparc32 ;;
1845 sparcv8 | supersparc | hypersparc)
1846 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
1847 sparcv8plus | sparcv8plusa | sparcv9)
1848 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
1849 sparcv8plusb | sparcv9b)
1850 base_machine=sparc machine=sparc/sparc32/sparcv9b ;;
1851 sparc64 | ultrasparc)
1852 base_machine=sparc machine=sparc/sparc64 ;;
1853 sparc64b | ultrasparc3)
1854 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
1855 thumb*) base_machine=thumb machine=arm/thumb/$machine ;;
1856 *) base_machine=$machine ;;
1860 if test "$base_machine" = "i386"; then
1861 cat >>confdefs.h <<\_ACEOF
1862 #define USE_REGPARMS 1
1867 # Compute the list of sysdep directories for this configuration.
1868 # This can take a while to compute.
1869 sysdep_dir=$srcdir/sysdeps
1870 echo "$as_me:$LINENO: checking sysdep dirs" >&5
1871 echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6
1872 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1873 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1877 base_os=mach/hurd ;;
1878 netbsd* | 386bsd* | freebsd* | bsdi*)
1879 base_os=unix/bsd/bsd4.4 ;;
1880 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1882 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1883 base_os=unix/sysv ;;
1885 base_os=unix/sysv/irix6/$os ;;
1887 base_os=unix/sysv/sysv4 ;;
1889 base_os=unix/sysv/hpux/$os ;;
1891 base_os=unix/sysv/aix/aix4.3 ;;
1893 base_os=standalone ;;
1898 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1901 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1905 o=`echo $tail | sed 's/[0-9]*$//'`
1906 if test $o != $tail; then
1909 # For linux-gnu, try linux-gnu, then linux.
1910 o=`echo $tail | sed 's/-.*$//'`
1911 if test $o != $tail; then
1915 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1918 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1924 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1927 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1929 # Prepend the machine's FPU directory unless --without-fp.
1930 if test "$with_fp" = yes; then
1931 mach="$mach /$1/fpu"
1933 mach="$mach /$1/nofpu"
1940 # Find what sysdep directories exist.
1942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1943 for d in $add_ons_pfx ''; do
1944 for b in $base ''; do
1945 for m0 in $mach ''; do
1946 for v in /$vendor ''; do
1947 test "$v" = / && continue
1948 for o in /$ostry ''; do
1949 test "$o" = / && continue
1950 for m in $mach ''; do
1951 if test "$m0$b$v$o$m"; then
1952 try="${d}sysdeps$m0$b$v$o$m"
1953 test -n "$enable_debug_configure" &&
1954 echo "$0 DEBUG: try $try" >&2
1955 if test -d $srcdir/$try; then
1956 sysnames="$sysnames $try"
1957 { test -n "$o" || test -n "$b"; } && os_used=t
1958 { test -n "$m" || test -n "$m0"; } && machine_used=t
1969 if test -z "$os_used" && test "$os" != none; then
1970 { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
1971 echo "$as_me: error: Operating system $os is not supported." >&2;}
1972 { (exit 1); exit 1; }; }
1974 if test -z "$machine_used" && test "$machine" != none; then
1975 { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
1976 echo "$as_me: error: The $machine is not supported." >&2;}
1977 { (exit 1); exit 1; }; }
1980 # We have now validated the configuration.
1983 # If using ELF, look for an `elf' subdirectory of each machine directory.
1984 # We prepend these rather than inserting them whereever the machine appears
1985 # because things specified by the machine's ELF ABI should override
1986 # OS-specific things, and should always be the same for any OS on the
1987 # machine (otherwise what's the point of an ABI?).
1988 if test "$elf" = yes; then
1990 for d in $add_ons_pfx ''; do
1992 if test -d $srcdir/${d}sysdeps$m/elf; then
1993 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1997 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
2001 # Expand the list of system names into a full list of directories
2002 # from each element's parent name and Implies file (if present).
2005 while test $# -gt 0; do
2009 case " $names " in *" $name "*)
2010 # Already in the list.
2014 # Report each name as we discover it, so there is no long pause in output.
2015 echo $ECHO_N "$name $ECHO_C" >&6
2017 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
2021 *) xsrcdir=$srcdir/ ;;
2023 test -n "$enable_debug_configure" &&
2024 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
2026 if test -f $xsrcdir$name/Implies; then
2027 # Collect more names from the `Implies' file (removing comments).
2028 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
2030 for x in $implied_candidate; do
2032 if test -d $xsrcdir$name_base/$x; then
2033 implied="$implied $name_base/$x";
2036 for d in $add_ons_pfx ''; do
2037 try="${d}sysdeps/$x"
2040 *) try_srcdir=$srcdir/ ;;
2042 test -n "$enable_debug_configure" &&
2043 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
2044 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
2046 implied="$implied $try"
2050 if test $found = no; then
2051 { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
2052 echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
2059 # Add NAME to the list of names.
2060 names="$names $name"
2062 # Find the parent of NAME, using the empty string if it has none.
2063 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
2065 # Add the names implied by NAME, and NAME's parent (if it has one), to
2066 # the list of names to be processed (the argument list). We prepend the
2067 # implied names to the list and append the parent. We want implied
2068 # directories to come before further directories inferred from the
2069 # configuration components; this ensures that for sysv4, unix/common
2070 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
2072 sysnames="`echo $implied $* $parent`"
2073 test -n "$sysnames" && set $sysnames
2076 # Add the default directories.
2077 default_sysnames=sysdeps/generic
2078 if test "$elf" = yes; then
2079 default_sysnames="sysdeps/generic/elf $default_sysnames"
2081 sysnames="$names $default_sysnames"
2083 # The other names were emitted during the scan.
2084 echo "$as_me:$LINENO: result: $default_sysnames" >&5
2085 echo "${ECHO_T}$default_sysnames" >&6
2090 # Find a good install program. We prefer a C program (faster),
2091 # so one script is as good as another. But avoid the broken or
2092 # incompatible versions:
2093 # SysV /etc/install, /usr/sbin/install
2094 # SunOS /usr/etc/install
2095 # IRIX /sbin/install
2097 # AmigaOS /C/install, which installs bootblocks on floppy discs
2098 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2099 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2100 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2101 # ./install, which can be erroneously created by make from ./install.sh.
2102 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2103 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2104 if test -z "$INSTALL"; then
2105 if test "${ac_cv_path_install+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 test -z "$as_dir" && as_dir=.
2113 # Account for people who put trailing slashes in PATH elements.
2115 ./ | .// | /cC/* | \
2116 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2119 # OSF1 and SCO ODT 3.0 have their own names for install.
2120 # Don't use installbsd from OSF since it installs stuff as root
2122 for ac_prog in ginstall scoinst install; do
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2125 if test $ac_prog = install &&
2126 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2127 # AIX install. It has an incompatible calling convention.
2129 elif test $ac_prog = install &&
2130 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2131 # program-specific install script used by HP pwplus--don't use.
2134 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2146 if test "${ac_cv_path_install+set}" = set; then
2147 INSTALL=$ac_cv_path_install
2149 # As a last resort, use the slow shell script. We don't cache a
2150 # path for INSTALL within a source directory, because that will
2151 # break other packages using the cache if that directory is
2152 # removed, or if the path is relative.
2153 INSTALL=$ac_install_sh
2156 echo "$as_me:$LINENO: result: $INSTALL" >&5
2157 echo "${ECHO_T}$INSTALL" >&6
2159 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2160 # It thinks the first close brace ends the variable substitution.
2161 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2163 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2165 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2167 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
2168 # The makefiles need to use a different form to find it in $srcdir.
2169 INSTALL='\$(..)./scripts/install-sh -c'
2171 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2172 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2174 if test "$LN_S" = "ln -s"; then
2175 echo "$as_me:$LINENO: result: yes" >&5
2176 echo "${ECHO_T}yes" >&6
2178 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2179 echo "${ECHO_T}no, using $LN_S" >&6
2184 ac_cpp='$CPP $CPPFLAGS'
2185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2188 if test -n "$ac_tool_prefix"; then
2189 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2190 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2191 echo "$as_me:$LINENO: checking for $ac_word" >&5
2192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2193 if test "${ac_cv_prog_CC+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 if test -n "$CC"; then
2197 ac_cv_prog_CC="$CC" # Let the user override the test.
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do
2205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2206 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216 if test -n "$CC"; then
2217 echo "$as_me:$LINENO: result: $CC" >&5
2218 echo "${ECHO_T}$CC" >&6
2220 echo "$as_me:$LINENO: result: no" >&5
2221 echo "${ECHO_T}no" >&6
2225 if test -z "$ac_cv_prog_CC"; then
2227 # Extract the first word of "gcc", so it can be a program name with args.
2228 set dummy gcc; ac_word=$2
2229 echo "$as_me:$LINENO: checking for $ac_word" >&5
2230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2231 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2234 if test -n "$ac_ct_CC"; then
2235 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 test -z "$as_dir" && as_dir=.
2242 for ac_exec_ext in '' $ac_executable_extensions; do
2243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2244 ac_cv_prog_ac_ct_CC="gcc"
2245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2254 if test -n "$ac_ct_CC"; then
2255 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2256 echo "${ECHO_T}$ac_ct_CC" >&6
2258 echo "$as_me:$LINENO: result: no" >&5
2259 echo "${ECHO_T}no" >&6
2267 if test -z "$CC"; then
2268 if test -n "$ac_tool_prefix"; then
2269 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2270 set dummy ${ac_tool_prefix}cc; ac_word=$2
2271 echo "$as_me:$LINENO: checking for $ac_word" >&5
2272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2273 if test "${ac_cv_prog_CC+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 if test -n "$CC"; then
2277 ac_cv_prog_CC="$CC" # Let the user override the test.
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2286 ac_cv_prog_CC="${ac_tool_prefix}cc"
2287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296 if test -n "$CC"; then
2297 echo "$as_me:$LINENO: result: $CC" >&5
2298 echo "${ECHO_T}$CC" >&6
2300 echo "$as_me:$LINENO: result: no" >&5
2301 echo "${ECHO_T}no" >&6
2305 if test -z "$ac_cv_prog_CC"; then
2307 # Extract the first word of "cc", so it can be a program name with args.
2308 set dummy cc; ac_word=$2
2309 echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2311 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 if test -n "$ac_ct_CC"; then
2315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2324 ac_cv_prog_ac_ct_CC="cc"
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2334 if test -n "$ac_ct_CC"; then
2335 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2336 echo "${ECHO_T}$ac_ct_CC" >&6
2338 echo "$as_me:$LINENO: result: no" >&5
2339 echo "${ECHO_T}no" >&6
2348 if test -z "$CC"; then
2349 # Extract the first word of "cc", so it can be a program name with args.
2350 set dummy cc; ac_word=$2
2351 echo "$as_me:$LINENO: checking for $ac_word" >&5
2352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2353 if test "${ac_cv_prog_CC+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 if test -n "$CC"; then
2357 ac_cv_prog_CC="$CC" # Let the user override the test.
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 test -z "$as_dir" && as_dir=.
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2367 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2368 ac_prog_rejected=yes
2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378 if test $ac_prog_rejected = yes; then
2379 # We found a bogon in the path, so make sure we never use it.
2380 set dummy $ac_cv_prog_CC
2382 if test $# != 0; then
2383 # We chose a different compiler from the bogus one.
2384 # However, it has the same basename, so the bogon will be chosen
2385 # first if we set CC to just the basename; use the full file name.
2387 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2393 if test -n "$CC"; then
2394 echo "$as_me:$LINENO: result: $CC" >&5
2395 echo "${ECHO_T}$CC" >&6
2397 echo "$as_me:$LINENO: result: no" >&5
2398 echo "${ECHO_T}no" >&6
2402 if test -z "$CC"; then
2403 if test -n "$ac_tool_prefix"; then
2406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2407 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2408 echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2410 if test "${ac_cv_prog_CC+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 if test -n "$CC"; then
2414 ac_cv_prog_CC="$CC" # Let the user override the test.
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2423 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 if test -n "$CC"; then
2434 echo "$as_me:$LINENO: result: $CC" >&5
2435 echo "${ECHO_T}$CC" >&6
2437 echo "$as_me:$LINENO: result: no" >&5
2438 echo "${ECHO_T}no" >&6
2441 test -n "$CC" && break
2444 if test -z "$CC"; then
2448 # Extract the first word of "$ac_prog", so it can be a program name with args.
2449 set dummy $ac_prog; ac_word=$2
2450 echo "$as_me:$LINENO: checking for $ac_word" >&5
2451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2452 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2455 if test -n "$ac_ct_CC"; then
2456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 test -z "$as_dir" && as_dir=.
2463 for ac_exec_ext in '' $ac_executable_extensions; do
2464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2465 ac_cv_prog_ac_ct_CC="$ac_prog"
2466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2475 if test -n "$ac_ct_CC"; then
2476 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2477 echo "${ECHO_T}$ac_ct_CC" >&6
2479 echo "$as_me:$LINENO: result: no" >&5
2480 echo "${ECHO_T}no" >&6
2483 test -n "$ac_ct_CC" && break
2492 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2493 See \`config.log' for more details." >&5
2494 echo "$as_me: error: no acceptable C compiler found in \$PATH
2495 See \`config.log' for more details." >&2;}
2496 { (exit 1); exit 1; }; }
2498 # Provide some information about the compiler.
2499 echo "$as_me:$LINENO:" \
2500 "checking for C compiler version" >&5
2501 ac_compiler=`set X $ac_compile; echo $2`
2502 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2503 (eval $ac_compiler --version </dev/null >&5) 2>&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }
2507 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2508 (eval $ac_compiler -v </dev/null >&5) 2>&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }
2512 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2513 (eval $ac_compiler -V </dev/null >&5) 2>&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }
2519 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2520 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2521 if test "${ac_cv_objext+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2524 cat >conftest.$ac_ext <<_ACEOF
2525 #line $LINENO "configure"
2528 cat confdefs.h >>conftest.$ac_ext
2529 cat >>conftest.$ac_ext <<_ACEOF
2530 /* end confdefs.h. */
2540 rm -f conftest.o conftest.obj
2541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542 (eval $ac_compile) 2>&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; then
2546 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2549 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2554 echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2557 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2558 See \`config.log' for more details." >&5
2559 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2560 See \`config.log' for more details." >&2;}
2561 { (exit 1); exit 1; }; }
2564 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2566 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2567 echo "${ECHO_T}$ac_cv_objext" >&6
2568 OBJEXT=$ac_cv_objext
2570 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2571 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2572 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2575 cat >conftest.$ac_ext <<_ACEOF
2576 #line $LINENO "configure"
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596 (eval $ac_compile) 2>&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); } &&
2600 { ac_try='test -s conftest.$ac_objext'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2613 rm -f conftest.$ac_objext conftest.$ac_ext
2614 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2617 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2618 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2619 GCC=`test $ac_compiler_gnu = yes && echo yes`
2620 ac_test_CFLAGS=${CFLAGS+set}
2621 ac_save_CFLAGS=$CFLAGS
2623 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2624 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2625 if test "${ac_cv_prog_cc_g+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 cat >conftest.$ac_ext <<_ACEOF
2629 #line $LINENO "configure"
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try='test -s conftest.$ac_objext'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; }; then
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2663 rm -f conftest.$ac_objext conftest.$ac_ext
2665 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2666 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2667 if test "$ac_test_CFLAGS" = set; then
2668 CFLAGS=$ac_save_CFLAGS
2669 elif test $ac_cv_prog_cc_g = yes; then
2670 if test "$GCC" = yes; then
2676 if test "$GCC" = yes; then
2682 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2683 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2684 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 ac_cv_prog_cc_stdc=no
2689 cat >conftest.$ac_ext <<_ACEOF
2690 #line $LINENO "configure"
2693 cat confdefs.h >>conftest.$ac_ext
2694 cat >>conftest.$ac_ext <<_ACEOF
2695 /* end confdefs.h. */
2698 #include <sys/types.h>
2699 #include <sys/stat.h>
2700 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2701 struct buf { int x; };
2702 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2703 static char *e (p, i)
2709 static char *f (char * (*g) (char **, int), char **p, ...)
2714 s = g (p, va_arg (v,int));
2718 int test (int i, double x);
2719 struct s1 {int (*f) (int a);};
2720 struct s2 {int (*f) (double a);};
2721 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2727 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2732 # Don't try gcc -ansi; that turns off useful extensions and
2733 # breaks some systems' header files.
2734 # AIX -qlanglvl=ansi
2735 # Ultrix and OSF/1 -std1
2736 # HP-UX 10.20 and later -Ae
2737 # HP-UX older versions -Aa -D_HPUX_SOURCE
2738 # SVR4 -Xc -D__EXTENSIONS__
2739 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2741 CC="$ac_save_CC $ac_arg"
2742 rm -f conftest.$ac_objext
2743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2744 (eval $ac_compile) 2>&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } &&
2748 { ac_try='test -s conftest.$ac_objext'
2749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; }; then
2754 ac_cv_prog_cc_stdc=$ac_arg
2757 echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2761 rm -f conftest.$ac_objext
2763 rm -f conftest.$ac_ext conftest.$ac_objext
2768 case "x$ac_cv_prog_cc_stdc" in
2770 echo "$as_me:$LINENO: result: none needed" >&5
2771 echo "${ECHO_T}none needed" >&6 ;;
2773 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2774 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2775 CC="$CC $ac_cv_prog_cc_stdc" ;;
2778 # Some people use a C++ compiler to compile C. Since we use `exit',
2779 # in C++ we need to declare it. In case someone uses the same compiler
2780 # for both compiling C and C++ we need to have the C++ compiler decide
2781 # the declaration of exit, since it's the most demanding environment.
2782 cat >conftest.$ac_ext <<_ACEOF
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789 (eval $ac_compile) 2>&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 for ac_declaration in \
2801 '#include <stdlib.h>' \
2802 'extern "C" void std::exit (int) throw (); using std::exit;' \
2803 'extern "C" void std::exit (int); using std::exit;' \
2804 'extern "C" void exit (int) throw ();' \
2805 'extern "C" void exit (int);' \
2808 cat >conftest.$ac_ext <<_ACEOF
2809 #line $LINENO "configure"
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2825 rm -f conftest.$ac_objext
2826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827 (eval $ac_compile) 2>&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
2831 { ac_try='test -s conftest.$ac_objext'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; }; then
2839 echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.$ac_ext >&5
2844 rm -f conftest.$ac_objext conftest.$ac_ext
2845 cat >conftest.$ac_ext <<_ACEOF
2846 #line $LINENO "configure"
2849 cat confdefs.h >>conftest.$ac_ext
2850 cat >>conftest.$ac_ext <<_ACEOF
2851 /* end confdefs.h. */
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); } &&
2867 { ac_try='test -s conftest.$ac_objext'
2868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; }; then
2875 echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.$ac_ext >&5
2879 rm -f conftest.$ac_objext conftest.$ac_ext
2882 if test -n "$ac_declaration"; then
2883 echo '#ifdef __cplusplus' >>confdefs.h
2884 echo $ac_declaration >>confdefs.h
2885 echo '#endif' >>confdefs.h
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2893 rm -f conftest.$ac_objext conftest.$ac_ext
2895 ac_cpp='$CPP $CPPFLAGS'
2896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2900 if test $host != $build; then
2901 for ac_prog in gcc cc
2903 # Extract the first word of "$ac_prog", so it can be a program name with args.
2904 set dummy $ac_prog; ac_word=$2
2905 echo "$as_me:$LINENO: checking for $ac_word" >&5
2906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2907 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 if test -n "$BUILD_CC"; then
2911 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920 ac_cv_prog_BUILD_CC="$ac_prog"
2921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 BUILD_CC=$ac_cv_prog_BUILD_CC
2930 if test -n "$BUILD_CC"; then
2931 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
2932 echo "${ECHO_T}$BUILD_CC" >&6
2934 echo "$as_me:$LINENO: result: no" >&5
2935 echo "${ECHO_T}no" >&6
2938 test -n "$BUILD_CC" && break
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2949 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2950 # On Suns, sometimes $CPP names a directory.
2951 if test -n "$CPP" && test -d "$CPP"; then
2954 if test -z "$CPP"; then
2955 if test "${ac_cv_prog_CPP+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 # Double quotes because CPP needs to be expanded
2959 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2962 for ac_c_preproc_warn_flag in '' yes
2964 # Use a header file that comes with gcc, so configuring glibc
2965 # with a fresh cross-compiler works.
2966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2967 # <limits.h> exists even on freestanding compilers.
2968 # On the NeXT, cc -E runs the code through the compiler's parser,
2969 # not just through cpp. "Syntax error" is here to catch this case.
2970 cat >conftest.$ac_ext <<_ACEOF
2971 #line $LINENO "configure"
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2978 # include <limits.h>
2980 # include <assert.h>
2984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2987 grep -v '^ *+' conftest.er1 >conftest.err
2989 cat conftest.err >&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } >/dev/null; then
2992 if test -s conftest.err; then
2993 ac_cpp_err=$ac_c_preproc_warn_flag
3000 if test -z "$ac_cpp_err"; then
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 # Broken: fails on valid input.
3009 rm -f conftest.err conftest.$ac_ext
3011 # OK, works on sane cases. Now check whether non-existent headers
3012 # can be detected and how.
3013 cat >conftest.$ac_ext <<_ACEOF
3014 #line $LINENO "configure"
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3020 #include <ac_nonexistent.h>
3022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3025 grep -v '^ *+' conftest.er1 >conftest.err
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } >/dev/null; then
3030 if test -s conftest.err; then
3031 ac_cpp_err=$ac_c_preproc_warn_flag
3038 if test -z "$ac_cpp_err"; then
3039 # Broken: success on invalid input.
3042 echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3045 # Passes both tests.
3049 rm -f conftest.err conftest.$ac_ext
3052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3053 rm -f conftest.err conftest.$ac_ext
3054 if $ac_preproc_ok; then
3066 echo "$as_me:$LINENO: result: $CPP" >&5
3067 echo "${ECHO_T}$CPP" >&6
3069 for ac_c_preproc_warn_flag in '' yes
3071 # Use a header file that comes with gcc, so configuring glibc
3072 # with a fresh cross-compiler works.
3073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3074 # <limits.h> exists even on freestanding compilers.
3075 # On the NeXT, cc -E runs the code through the compiler's parser,
3076 # not just through cpp. "Syntax error" is here to catch this case.
3077 cat >conftest.$ac_ext <<_ACEOF
3078 #line $LINENO "configure"
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3085 # include <limits.h>
3087 # include <assert.h>
3091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3092 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3094 grep -v '^ *+' conftest.er1 >conftest.err
3096 cat conftest.err >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } >/dev/null; then
3099 if test -s conftest.err; then
3100 ac_cpp_err=$ac_c_preproc_warn_flag
3107 if test -z "$ac_cpp_err"; then
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3113 # Broken: fails on valid input.
3116 rm -f conftest.err conftest.$ac_ext
3118 # OK, works on sane cases. Now check whether non-existent headers
3119 # can be detected and how.
3120 cat >conftest.$ac_ext <<_ACEOF
3121 #line $LINENO "configure"
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127 #include <ac_nonexistent.h>
3129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3132 grep -v '^ *+' conftest.er1 >conftest.err
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } >/dev/null; then
3137 if test -s conftest.err; then
3138 ac_cpp_err=$ac_c_preproc_warn_flag
3145 if test -z "$ac_cpp_err"; then
3146 # Broken: success on invalid input.
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 # Passes both tests.
3156 rm -f conftest.err conftest.$ac_ext
3159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160 rm -f conftest.err conftest.$ac_ext
3161 if $ac_preproc_ok; then
3164 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3165 See \`config.log' for more details." >&5
3166 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3167 See \`config.log' for more details." >&2;}
3168 { (exit 1); exit 1; }; }
3172 ac_cpp='$CPP $CPPFLAGS'
3173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177 # Was a --with-binutils option given?
3178 if test -n "$path_binutils"; then
3179 # Make absolute; ensure a single trailing slash.
3180 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
3181 CC="$CC -B$path_binutils"
3183 AS=`$CC -print-prog-name=as`
3184 LD=`$CC -print-prog-name=ld`
3185 AR=`$CC -print-prog-name=ar`
3187 OBJDUMP=`$CC -print-prog-name=objdump`
3190 # ranlib has to be treated a bit differently since it might not exist at all.
3191 ac_ranlib=`$CC -print-prog-name=ranlib`
3192 if test "x$ac_ranlib" = xranlib; then
3193 # This extra check has to happen since gcc simply echos the parameter in
3194 # case it cannot find the value in its own directories.
3195 if test -n "$ac_tool_prefix"; then
3196 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3197 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3198 echo "$as_me:$LINENO: checking for $ac_word" >&5
3199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3200 if test "${ac_cv_prog_RANLIB+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 if test -n "$RANLIB"; then
3204 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 RANLIB=$ac_cv_prog_RANLIB
3223 if test -n "$RANLIB"; then
3224 echo "$as_me:$LINENO: result: $RANLIB" >&5
3225 echo "${ECHO_T}$RANLIB" >&6
3227 echo "$as_me:$LINENO: result: no" >&5
3228 echo "${ECHO_T}no" >&6
3232 if test -z "$ac_cv_prog_RANLIB"; then
3233 ac_ct_RANLIB=$RANLIB
3234 # Extract the first word of "ranlib", so it can be a program name with args.
3235 set dummy ranlib; ac_word=$2
3236 echo "$as_me:$LINENO: checking for $ac_word" >&5
3237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3238 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 if test -n "$ac_ct_RANLIB"; then
3242 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251 ac_cv_prog_ac_ct_RANLIB="ranlib"
3252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3261 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3262 if test -n "$ac_ct_RANLIB"; then
3263 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3264 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3266 echo "$as_me:$LINENO: result: no" >&5
3267 echo "${ECHO_T}no" >&6
3270 RANLIB=$ac_ct_RANLIB
3272 RANLIB="$ac_cv_prog_RANLIB"
3280 # Determine whether we are using GNU binutils.
3281 echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
3282 echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6
3283 if test "${libc_cv_prog_as_gnu+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 # Most GNU programs take a -v and spit out some text including
3287 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
3288 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3289 libc_cv_prog_as_gnu=yes
3291 libc_cv_prog_as_gnu=no
3295 echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
3296 echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6
3298 gnu_as=$libc_cv_prog_as_gnu
3300 echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
3301 echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6
3302 if test "${libc_cv_prog_ld_gnu+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 # Most GNU programs take a -v and spit out some text including
3306 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
3307 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3308 libc_cv_prog_ld_gnu=yes
3310 libc_cv_prog_ld_gnu=no
3314 echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
3315 echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6
3316 gnu_ld=$libc_cv_prog_ld_gnu
3319 # Accept binutils 2.13 or newer.
3322 # Extract the first word of "$ac_prog", so it can be a program name with args.
3323 set dummy $ac_prog; ac_word=$2
3324 echo "$as_me:$LINENO: checking for $ac_word" >&5
3325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3326 if test "${ac_cv_prog_AS+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 if test -n "$AS"; then
3330 ac_cv_prog_AS="$AS" # Let the user override the test.
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 test -z "$as_dir" && as_dir=.
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339 ac_cv_prog_AS="$ac_prog"
3340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 if test -n "$AS"; then
3350 echo "$as_me:$LINENO: result: $AS" >&5
3351 echo "${ECHO_T}$AS" >&6
3353 echo "$as_me:$LINENO: result: no" >&5
3354 echo "${ECHO_T}no" >&6
3357 test -n "$AS" && break
3360 if test -z "$AS"; then
3363 # Found it, now check the version.
3364 echo "$as_me:$LINENO: checking version of $AS" >&5
3365 echo $ECHO_N "checking version of $AS... $ECHO_C" >&6
3366 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3367 case $ac_prog_version in
3368 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3370 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3371 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3374 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3375 echo "${ECHO_T}$ac_prog_version" >&6
3377 if test $ac_verc_fail = yes; then
3378 AS=: critic_missing=t
3383 # Extract the first word of "$ac_prog", so it can be a program name with args.
3384 set dummy $ac_prog; ac_word=$2
3385 echo "$as_me:$LINENO: checking for $ac_word" >&5
3386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3387 if test "${ac_cv_prog_LD+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 if test -n "$LD"; then
3391 ac_cv_prog_LD="$LD" # Let the user override the test.
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 test -z "$as_dir" && as_dir=.
3398 for ac_exec_ext in '' $ac_executable_extensions; do
3399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400 ac_cv_prog_LD="$ac_prog"
3401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 if test -n "$LD"; then
3411 echo "$as_me:$LINENO: result: $LD" >&5
3412 echo "${ECHO_T}$LD" >&6
3414 echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3418 test -n "$LD" && break
3421 if test -z "$LD"; then
3424 # Found it, now check the version.
3425 echo "$as_me:$LINENO: checking version of $LD" >&5
3426 echo $ECHO_N "checking version of $LD... $ECHO_C" >&6
3427 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
3428 case $ac_prog_version in
3429 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3431 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3432 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3435 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3436 echo "${ECHO_T}$ac_prog_version" >&6
3438 if test $ac_verc_fail = yes; then
3439 LD=: critic_missing=t
3443 # We need the physical current working directory. We cannot use the
3444 # "pwd -P" shell builtin since that's not portable. Instead we try to
3445 # find a pwd binary. Note that assigning to the PWD environment
3446 # variable might have some interesting side effects, so we don't do
3448 # Extract the first word of "pwd", so it can be a program name with args.
3449 set dummy pwd; ac_word=$2
3450 echo "$as_me:$LINENO: checking for $ac_word" >&5
3451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3452 if test "${ac_cv_path_PWD_P+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3457 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 test -z "$as_dir" && as_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3467 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
3468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
3478 PWD_P=$ac_cv_path_PWD_P
3480 if test -n "$PWD_P"; then
3481 echo "$as_me:$LINENO: result: $PWD_P" >&5
3482 echo "${ECHO_T}$PWD_P" >&6
3484 echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6
3488 if test "$PWD_P" = no; then
3489 { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
3490 echo "$as_me: error: *** A pwd binary could not be found." >&2;}
3491 { (exit 1); exit 1; }; }
3494 # These programs are version sensitive.
3496 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
3498 # Extract the first word of "$ac_prog", so it can be a program name with args.
3499 set dummy $ac_prog; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_prog_CC+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 if test -n "$CC"; then
3506 ac_cv_prog_CC="$CC" # Let the user override the test.
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3515 ac_cv_prog_CC="$ac_prog"
3516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 if test -n "$CC"; then
3526 echo "$as_me:$LINENO: result: $CC" >&5
3527 echo "${ECHO_T}$CC" >&6
3529 echo "$as_me:$LINENO: result: no" >&5
3530 echo "${ECHO_T}no" >&6
3533 test -n "$CC" && break
3536 if test -z "$CC"; then
3539 # Found it, now check the version.
3540 echo "$as_me:$LINENO: checking version of $CC" >&5
3541 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
3542 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
3543 case $ac_prog_version in
3544 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3546 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3547 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3550 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3551 echo "${ECHO_T}$ac_prog_version" >&6
3553 if test $ac_verc_fail = yes; then
3554 critic_missing="$critic_missing gcc"
3557 for ac_prog in gnumake gmake make
3559 # Extract the first word of "$ac_prog", so it can be a program name with args.
3560 set dummy $ac_prog; ac_word=$2
3561 echo "$as_me:$LINENO: checking for $ac_word" >&5
3562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3563 if test "${ac_cv_prog_MAKE+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 if test -n "$MAKE"; then
3567 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3576 ac_cv_prog_MAKE="$ac_prog"
3577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 MAKE=$ac_cv_prog_MAKE
3586 if test -n "$MAKE"; then
3587 echo "$as_me:$LINENO: result: $MAKE" >&5
3588 echo "${ECHO_T}$MAKE" >&6
3590 echo "$as_me:$LINENO: result: no" >&5
3591 echo "${ECHO_T}no" >&6
3594 test -n "$MAKE" && break
3597 if test -z "$MAKE"; then
3600 # Found it, now check the version.
3601 echo "$as_me:$LINENO: checking version of $MAKE" >&5
3602 echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6
3603 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
3604 case $ac_prog_version in
3605 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3607 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3608 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3611 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3612 echo "${ECHO_T}$ac_prog_version" >&6
3614 if test $ac_verc_fail = yes; then
3615 critic_missing="$critic_missing make"
3619 for ac_prog in gnumsgfmt gmsgfmt msgfmt
3621 # Extract the first word of "$ac_prog", so it can be a program name with args.
3622 set dummy $ac_prog; ac_word=$2
3623 echo "$as_me:$LINENO: checking for $ac_word" >&5
3624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3625 if test "${ac_cv_prog_MSGFMT+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 if test -n "$MSGFMT"; then
3629 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 test -z "$as_dir" && as_dir=.
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638 ac_cv_prog_MSGFMT="$ac_prog"
3639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3647 MSGFMT=$ac_cv_prog_MSGFMT
3648 if test -n "$MSGFMT"; then
3649 echo "$as_me:$LINENO: result: $MSGFMT" >&5
3650 echo "${ECHO_T}$MSGFMT" >&6
3652 echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6
3656 test -n "$MSGFMT" && break
3659 if test -z "$MSGFMT"; then
3662 # Found it, now check the version.
3663 echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
3664 echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6
3665 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3666 case $ac_prog_version in
3667 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3668 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
3669 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3670 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3673 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3674 echo "${ECHO_T}$ac_prog_version" >&6
3676 if test $ac_verc_fail = yes; then
3677 MSGFMT=: aux_missing="$aux_missing msgfmt"
3680 for ac_prog in makeinfo
3682 # Extract the first word of "$ac_prog", so it can be a program name with args.
3683 set dummy $ac_prog; ac_word=$2
3684 echo "$as_me:$LINENO: checking for $ac_word" >&5
3685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3686 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 if test -n "$MAKEINFO"; then
3690 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 test -z "$as_dir" && as_dir=.
3697 for ac_exec_ext in '' $ac_executable_extensions; do
3698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3699 ac_cv_prog_MAKEINFO="$ac_prog"
3700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 MAKEINFO=$ac_cv_prog_MAKEINFO
3709 if test -n "$MAKEINFO"; then
3710 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3711 echo "${ECHO_T}$MAKEINFO" >&6
3713 echo "$as_me:$LINENO: result: no" >&5
3714 echo "${ECHO_T}no" >&6
3717 test -n "$MAKEINFO" && break
3720 if test -z "$MAKEINFO"; then
3723 # Found it, now check the version.
3724 echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
3725 echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6
3726 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3727 case $ac_prog_version in
3728 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3730 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3731 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3734 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3735 echo "${ECHO_T}$ac_prog_version" >&6
3737 if test $ac_verc_fail = yes; then
3738 MAKEINFO=: aux_missing="$aux_missing makeinfo"
3743 # Extract the first word of "$ac_prog", so it can be a program name with args.
3744 set dummy $ac_prog; ac_word=$2
3745 echo "$as_me:$LINENO: checking for $ac_word" >&5
3746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3747 if test "${ac_cv_prog_SED+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 if test -n "$SED"; then
3751 ac_cv_prog_SED="$SED" # Let the user override the test.
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760 ac_cv_prog_SED="$ac_prog"
3761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 if test -n "$SED"; then
3771 echo "$as_me:$LINENO: result: $SED" >&5
3772 echo "${ECHO_T}$SED" >&6
3774 echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3778 test -n "$SED" && break
3781 if test -z "$SED"; then
3784 # Found it, now check the version.
3785 echo "$as_me:$LINENO: checking version of $SED" >&5
3786 echo $ECHO_N "checking version of $SED... $ECHO_C" >&6
3787 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
3788 case $ac_prog_version in
3789 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3790 3.0[2-9]*|3.[1-9]*|[4-9]*)
3791 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3792 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3795 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3796 echo "${ECHO_T}$ac_prog_version" >&6
3798 if test $ac_verc_fail = yes; then
3799 SED=: aux_missing="$aux_missing sed"
3803 if test "x$with_cvs" != xyes; then
3804 for ac_prog in autoconf
3806 # Extract the first word of "$ac_prog", so it can be a program name with args.
3807 set dummy $ac_prog; ac_word=$2
3808 echo "$as_me:$LINENO: checking for $ac_word" >&5
3809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3810 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 if test -n "$AUTOCONF"; then
3814 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 test -z "$as_dir" && as_dir=.
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3823 ac_cv_prog_AUTOCONF="$ac_prog"
3824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3832 AUTOCONF=$ac_cv_prog_AUTOCONF
3833 if test -n "$AUTOCONF"; then
3834 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3835 echo "${ECHO_T}$AUTOCONF" >&6
3837 echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6
3841 test -n "$AUTOCONF" && break
3843 test -n "$AUTOCONF" || AUTOCONF="no"
3845 case "x$AUTOCONF" in
3846 xno|x|x:) AUTOCONF=no ;;
3848 echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
3849 echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6
3850 if test "${libc_cv_autoconf_works+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
3854 libc_cv_autoconf_works=yes
3856 libc_cv_autoconf_works=no
3859 echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
3860 echo "${ECHO_T}$libc_cv_autoconf_works" >&6
3861 test $libc_cv_autoconf_works = yes || AUTOCONF=no
3864 test "x$AUTOCONF" != xno || aux_missing="$aux_missing autoconf"
3867 test -n "$critic_missing" && { { echo "$as_me:$LINENO: error:
3868 *** These critical programs are missing or too old:$critic_missing
3869 *** Check the INSTALL file for required versions." >&5
3870 echo "$as_me: error:
3871 *** These critical programs are missing or too old:$critic_missing
3872 *** Check the INSTALL file for required versions." >&2;}
3873 { (exit 1); exit 1; }; }
3875 test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
3876 *** These auxiliary programs are missing or incompatible versions:$aux_missing
3877 *** some features will be disabled.
3878 *** Check the INSTALL file for required versions." >&5
3879 echo "$as_me: WARNING:
3880 *** These auxiliary programs are missing or incompatible versions:$aux_missing
3881 *** some features will be disabled.
3882 *** Check the INSTALL file for required versions." >&2;}
3884 # glibcbug.in wants to know the compiler version.
3885 CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
3888 # if using special system headers, find out the compiler's sekrit
3889 # header directory and add that to the list. NOTE: Only does the right
3890 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
3891 if test -n "$sysheaders"; then
3892 ccheaders=`$CC -print-file-name=include`
3893 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
3897 # check if ranlib is necessary
3898 echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
3899 echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6
3900 if test "${libc_cv_ranlib_necessary+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 cat > conftest.c <<EOF
3908 $CC $CFLAGS -c conftest.c
3909 $AR cr conftest.a conftest.o
3910 cp conftest.a conftest2.a
3912 if cmp -s conftest.a conftest2.a; then
3913 libc_cv_ranlib_necessary=no
3915 libc_cv_ranlib_necessary=yes
3919 echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
3920 echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6
3921 if test "$libc_cv_ranlib_necessary" = no; then
3925 # Test if LD_LIBRARY_PATH contains the notation for the current directory
3926 # since this would lead to problems installing/building glibc.
3927 # LD_LIBRARY_PATH contains the current directory if one of the following
3929 # - one of the terminals (":" and ";") is the first or last sign
3930 # - two terminals occur directly after each other
3931 # - the path contains an element with a dot in it
3932 echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
3933 echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6
3934 case ${LD_LIBRARY_PATH} in
3935 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3936 ld_library_path_setting="contains current directory"
3939 ld_library_path_setting="ok"
3942 echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
3943 echo "${ECHO_T}$ld_library_path_setting" >&6
3944 if test "$ld_library_path_setting" != "ok"; then
3945 { { echo "$as_me:$LINENO: error:
3946 *** LD_LIBRARY_PATH shouldn't contain the current directory when
3947 *** building glibc. Please change the environment variable
3948 *** and run configure again." >&5
3949 echo "$as_me: error:
3950 *** LD_LIBRARY_PATH shouldn't contain the current directory when
3951 *** building glibc. Please change the environment variable
3952 *** and run configure again." >&2;}
3953 { (exit 1); exit 1; }; }
3956 echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
3957 echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6
3958 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
3962 libc_cv_gcc_static_libgcc=
3964 libc_cv_gcc_static_libgcc=-static-libgcc
3967 echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
3968 echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6
3971 # Extract the first word of "bash", so it can be a program name with args.
3972 set dummy bash; ac_word=$2
3973 echo "$as_me:$LINENO: checking for $ac_word" >&5
3974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3975 if test "${ac_cv_path_BASH+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 test -z "$as_dir" && as_dir=.
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3990 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
3991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
4001 BASH=$ac_cv_path_BASH
4003 if test -n "$BASH"; then
4004 echo "$as_me:$LINENO: result: $BASH" >&5
4005 echo "${ECHO_T}$BASH" >&6
4007 echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4011 if test "$BASH" != no &&
4012 $BASH -c 'test "$BASH_VERSINFO" \
4013 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
4014 libc_cv_have_bash2=yes
4016 libc_cv_have_bash2=no
4020 if test "$BASH" = no; then
4021 # Extract the first word of "ksh", so it can be a program name with args.
4022 set dummy ksh; ac_word=$2
4023 echo "$as_me:$LINENO: checking for $ac_word" >&5
4024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4025 if test "${ac_cv_path_KSH+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
4053 if test -n "$KSH"; then
4054 echo "$as_me:$LINENO: result: $KSH" >&5
4055 echo "${ECHO_T}$KSH" >&6
4057 echo "$as_me:$LINENO: result: no" >&5
4058 echo "${ECHO_T}no" >&6
4061 if test "$KSH" = no; then
4064 libc_cv_have_ksh=yes
4069 libc_cv_have_ksh=yes
4073 for ac_prog in gawk mawk nawk awk
4075 # Extract the first word of "$ac_prog", so it can be a program name with args.
4076 set dummy $ac_prog; ac_word=$2
4077 echo "$as_me:$LINENO: checking for $ac_word" >&5
4078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4079 if test "${ac_cv_prog_AWK+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 if test -n "$AWK"; then
4083 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 test -z "$as_dir" && as_dir=.
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4092 ac_cv_prog_AWK="$ac_prog"
4093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4102 if test -n "$AWK"; then
4103 echo "$as_me:$LINENO: result: $AWK" >&5
4104 echo "${ECHO_T}$AWK" >&6
4106 echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6
4110 test -n "$AWK" && break
4113 # Extract the first word of "perl", so it can be a program name with args.
4114 set dummy perl; ac_word=$2
4115 echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117 if test "${ac_cv_path_PERL+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
4143 PERL=$ac_cv_path_PERL
4145 if test -n "$PERL"; then
4146 echo "$as_me:$LINENO: result: $PERL" >&5
4147 echo "${ECHO_T}$PERL" >&6
4149 echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6
4153 if test "$PERL" != no &&
4154 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
4157 # Extract the first word of "install-info", so it can be a program name with args.
4158 set dummy install-info; ac_word=$2
4159 echo "$as_me:$LINENO: checking for $ac_word" >&5
4160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4161 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 case $INSTALL_INFO in
4166 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
4171 for as_dir in $as_dummy
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
4188 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4190 if test -n "$INSTALL_INFO"; then
4191 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4192 echo "${ECHO_T}$INSTALL_INFO" >&6
4194 echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6
4198 if test "$INSTALL_INFO" != "no"; then
4199 echo "$as_me:$LINENO: checking for old Debian install-info" >&5
4200 echo $ECHO_N "checking for old Debian install-info... $ECHO_C" >&6
4201 if test "${libc_cv_old_debian_install_info+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 # There is a hard ^_ on the next line. I am open to better ideas.
4207 echo 'File: dir Node: Top This is the top of the INFO tree'
4208 echo '* Menu:') >conftest.d/dir
4209 (echo 'INFO-DIR-SECTION i-d-s works'
4210 echo 'START-INFO-DIR-ENTRY'
4211 echo '* Prog: (prog). Program.'
4212 echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
4213 if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
4215 if grep -s 'i-d-s works' conftest.d/dir >/dev/null
4216 then libc_cv_old_debian_install_info=no
4217 else libc_cv_old_debian_install_info=yes
4219 else libc_cv_old_debian_install_info=no testfailed=t
4223 echo "$as_me:$LINENO: result: $libc_cv_old_debian_install_info" >&5
4224 echo "${ECHO_T}$libc_cv_old_debian_install_info" >&6
4225 if test -n "$testfailed"
4226 then { echo "$as_me:$LINENO: WARNING: install-info errored out, check config.log" >&5
4227 echo "$as_me: WARNING: install-info errored out, check config.log" >&2;}
4229 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
4233 # Extract the first word of "bison", so it can be a program name with args.
4234 set dummy bison; ac_word=$2
4235 echo "$as_me:$LINENO: checking for $ac_word" >&5
4236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4237 if test "${ac_cv_path_BISON+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
4247 for as_dir in $as_dummy
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4253 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
4254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
4264 BISON=$ac_cv_path_BISON
4266 if test -n "$BISON"; then
4267 echo "$as_me:$LINENO: result: $BISON" >&5
4268 echo "${ECHO_T}$BISON" >&6
4270 echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6
4275 echo "$as_me:$LINENO: checking for signed size_t type" >&5
4276 echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6
4277 if test "${libc_cv_signed_size_t+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 echo '#include <stddef.h>
4281 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
4282 if eval "$ac_cpp conftest.c 2>/dev/null" \
4283 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
4284 libc_cv_signed_size_t=no
4286 libc_cv_signed_size_t=yes
4290 echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
4291 echo "${ECHO_T}$libc_cv_signed_size_t" >&6
4292 if test $libc_cv_signed_size_t = yes; then
4293 cat >> confdefs.h <<\EOF
4294 #undef __SIZE_TYPE__
4295 #define __SIZE_TYPE__ unsigned
4300 echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
4301 echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6
4302 if test "${libc_cv_friendly_stddef+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 cat >conftest.$ac_ext <<_ACEOF
4306 #line $LINENO "configure"
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h. */
4312 #define __need_size_t
4313 #define __need_wchar_t
4320 size_t size; wchar_t wchar;
4322 #error stddef.h ignored __need_*
4324 if (&size == NULL || &wchar == NULL) abort ();
4329 rm -f conftest.$ac_objext
4330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4331 (eval $ac_compile) 2>&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try='test -s conftest.$ac_objext'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 libc_cv_friendly_stddef=yes
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4346 libc_cv_friendly_stddef=no
4348 rm -f conftest.$ac_objext conftest.$ac_ext
4350 echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
4351 echo "${ECHO_T}$libc_cv_friendly_stddef" >&6
4352 if test $libc_cv_friendly_stddef = yes; then
4353 config_vars="$config_vars
4354 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
4357 echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
4358 echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6
4359 if test "${libc_cv_need_minus_P+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 cat > conftest.S <<EOF
4363 #include "confdefs.h"
4364 /* Nothing whatsoever. */
4366 if { ac_try='${CC-cc} $CFLAGS -c conftest.S 1>&5'
4367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; }; then
4372 libc_cv_need_minus_P=no
4374 libc_cv_need_minus_P=yes
4378 echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
4379 echo "${ECHO_T}$libc_cv_need_minus_P" >&6
4380 if test $libc_cv_need_minus_P = yes; then
4381 config_vars="$config_vars
4382 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
4385 echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
4386 echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6
4387 if test "${libc_cv_dot_text+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 cat > conftest.s <<EOF
4394 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 libc_cv_dot_text=.text
4405 if test -z "$libc_cv_dot_text"; then
4406 echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6
4409 echo "$as_me:$LINENO: result: yes" >&5
4410 echo "${ECHO_T}yes" >&6
4413 echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
4414 echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6
4415 if test "${libc_cv_asm_global_directive+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 libc_cv_asm_global_directive=UNKNOWN
4419 for ac_globl in .globl .global .EXPORT; do
4420 cat > conftest.s <<EOF
4425 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; }; then
4431 libc_cv_asm_global_directive=${ac_globl}
4434 test $libc_cv_asm_global_directive != UNKNOWN && break
4437 echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
4438 echo "${ECHO_T}$libc_cv_asm_global_directive" >&6
4439 if test $libc_cv_asm_global_directive = UNKNOWN; then
4440 { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
4441 echo "$as_me: error: cannot determine asm global directive" >&2;}
4442 { (exit 1); exit 1; }; }
4444 cat >>confdefs.h <<_ACEOF
4445 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
4450 echo "$as_me:$LINENO: checking for .set assembler directive" >&5
4451 echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6
4452 if test "${libc_cv_asm_set_directive+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 cat > conftest.s <<EOF
4458 .set glibc_conftest_frobozz,foo
4459 $libc_cv_asm_global_directive glibc_conftest_frobozz
4461 # The alpha-dec-osf1 assembler gives only a warning for `.set'
4462 # (but it doesn't work), so we must do a linking check to be sure.
4463 cat > conftest1.c <<\EOF
4464 extern int glibc_conftest_frobozz;
4465 main () { printf ("%d\n", glibc_conftest_frobozz); }
4467 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
4468 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
4469 libc_cv_asm_set_directive=yes
4471 libc_cv_asm_set_directive=no
4475 echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
4476 echo "${ECHO_T}$libc_cv_asm_set_directive" >&6
4477 if test $libc_cv_asm_set_directive = yes; then
4478 cat >>confdefs.h <<\_ACEOF
4479 #define HAVE_ASM_SET_DIRECTIVE 1
4484 echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
4485 echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6
4486 if test "${libc_cv_asm_type_prefix+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 libc_cv_asm_type_prefix=no
4490 for ac_try_prefix in '@' '%' '#'; do
4491 cat > conftest.s <<EOF
4493 ${libc_cv_asm_global_directive} foo
4494 .type foo, ${ac_try_prefix}object
4499 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4505 libc_cv_asm_type_prefix=${ac_try_prefix}
4508 test "x$libc_cv_asm_type_prefix" != xno && break
4511 echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
4512 echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6
4513 if test "x$libc_cv_asm_type_prefix" != xno; then
4514 cat >>confdefs.h <<_ACEOF
4515 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
4520 # The Aix ld uses global .symbol_names instead of symbol_names.
4521 # Unfortunately also used in the PPC64 ELF ABI.
4522 case "${os}${machine}" in
4523 aix4.3* | linux*powerpc/powerpc64*)
4524 cat >>confdefs.h <<\_ACEOF
4525 #define HAVE_ASM_GLOBAL_DOT_NAME 1
4530 echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
4531 echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6
4532 if test "${libc_cv_asm_symver_directive+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 cat > conftest.s <<EOF
4538 .symver _sym,sym@VERS
4540 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
4541 libc_cv_asm_symver_directive=yes
4543 libc_cv_asm_symver_directive=no
4547 echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
4548 echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6
4549 echo "$as_me:$LINENO: checking for ld --version-script" >&5
4550 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6
4551 if test "${libc_cv_ld_version_script_option+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 if test $libc_cv_asm_symver_directive = yes; then
4555 cat > conftest.s <<EOF
4558 .symver _sym,sym@VERS
4560 cat > conftest.map <<EOF
4569 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
4570 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
4571 -nostartfiles -nostdlib
4572 -Wl,--version-script,conftest.map
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; };
4580 libc_cv_ld_version_script_option=yes
4582 libc_cv_ld_version_script_option=no
4585 libc_cv_ld_version_script_option=no
4588 libc_cv_ld_version_script_option=no
4592 echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
4593 echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6
4594 if test $shared != no &&
4595 test $libc_cv_asm_symver_directive = yes &&
4596 test $libc_cv_ld_version_script_option = yes &&
4597 test $enable_versioning = yes; then
4599 cat >>confdefs.h <<\_ACEOF
4600 #define DO_VERSIONING 1
4608 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
4610 *** WARNING: You should not compile GNU libc without versioning. Not using
4611 *** versioning will introduce incompatibilities so that old binaries
4612 *** will not run anymore.
4613 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
4615 if test $elf = yes; then
4616 echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
4617 echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6
4618 if test "${libc_cv_asm_previous_directive+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 cat > conftest.s <<EOF
4622 .section foo_section
4625 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 libc_cv_asm_previous_directive=yes
4633 libc_cv_asm_previous_directive=no
4637 echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
4638 echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6
4639 if test $libc_cv_asm_previous_directive = yes; then
4640 cat >>confdefs.h <<\_ACEOF
4641 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
4645 echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
4646 echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6
4647 if test "${libc_cv_asm_popsection_directive+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 cat > conftest.s <<EOF
4651 .pushsection foo_section
4654 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; }; then
4660 libc_cv_asm_popsection_directive=yes
4662 libc_cv_asm_popsection_directive=no
4666 echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
4667 echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6
4668 if test $libc_cv_asm_popsection_directive = yes; then
4669 cat >>confdefs.h <<\_ACEOF
4670 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
4675 echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
4676 echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6
4677 if test "${libc_cv_asm_protected_directive+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 cat > conftest.s <<EOF
4686 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; }; then
4692 libc_cv_asm_protected_directive=yes
4694 libc_cv_asm_protected_directive=no
4698 echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
4699 echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6
4701 cat >>confdefs.h <<\_ACEOF
4702 #define HAVE_PROTECTED 1
4705 cat >>confdefs.h <<\_ACEOF
4706 #define HAVE_HIDDEN 1
4710 if test $libc_cv_asm_protected_directive = yes; then
4711 echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
4712 echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6
4713 if test "${libc_cv_visibility_attribute+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4716 cat > conftest.c <<EOF
4717 int foo __attribute__ ((visibility ("hidden"))) = 1;
4718 int bar __attribute__ ((visibility ("protected"))) = 1;
4720 libc_cv_visibility_attribute=no
4721 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4727 if grep '\.hidden.*foo' conftest.s >/dev/null; then
4728 if grep '\.protected.*bar' conftest.s >/dev/null; then
4729 libc_cv_visibility_attribute=yes
4736 echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
4737 echo "${ECHO_T}$libc_cv_visibility_attribute" >&6
4738 if test $libc_cv_visibility_attribute = yes; then
4739 cat >>confdefs.h <<\_ACEOF
4740 #define HAVE_VISIBILITY_ATTRIBUTE 1
4746 if test $libc_cv_visibility_attribute = yes; then
4747 echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
4748 echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6
4749 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 cat > conftest.c <<EOF
4754 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
4755 int bar (int x) { return x; }
4757 libc_cv_broken_visibility_attribute=yes
4758 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
4759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; }; then
4764 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
4765 libc_cv_broken_visibility_attribute=no
4768 rm -f conftest.c conftest.s
4771 echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
4772 echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6
4773 if test $libc_cv_broken_visibility_attribute = yes; then
4774 cat >>confdefs.h <<\_ACEOF
4775 #define HAVE_BROKEN_VISIBILITY_ATTRIBUTE 1
4781 echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
4782 echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6
4783 if test "${libc_cv_broken_alias_attribute+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 cat > conftest.c <<EOF
4787 extern int foo (int x) __asm ("xyzzy");
4788 int bar (int x) { return x; }
4789 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
4791 extern __typeof (dfoo) dfoo __asm ("abccb");
4794 libc_cv_broken_alias_attribute=yes
4795 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
4796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; }; then
4801 if grep 'xyzzy' conftest.s >/dev/null &&
4802 grep 'abccb' conftest.s >/dev/null; then
4803 libc_cv_broken_alias_attribute=no
4806 rm -f conftest.c conftest.s
4809 echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
4810 echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6
4811 if test $libc_cv_broken_alias_attribute = yes; then
4812 cat >>confdefs.h <<\_ACEOF
4813 #define HAVE_BROKEN_ALIAS_ATTRIBUTE 1
4818 if test $libc_cv_visibility_attribute = yes -a $gnu_ld = yes; then
4819 echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
4820 echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6
4821 if test "${libc_cv_have_sdata_section+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 echo "int i;" > conftest.c
4825 libc_cv_have_sdata_section=no
4826 if ${CC-cc} -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
4827 | grep '\.sdata' >/dev/null; then
4828 libc_cv_have_sdata_section=yes
4830 rm -f conftest.c conftest.so
4833 echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
4834 echo "${ECHO_T}$libc_cv_have_sdata_section" >&6
4835 if test $libc_cv_have_sdata_section = yes; then
4836 cat >>confdefs.h <<\_ACEOF
4837 #define HAVE_SDATA_SECTION 1
4843 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
4844 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
4845 if test "${libc_cv_initfinit_array+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 cat > conftest.c <<EOF
4849 int _start (void) { return 0; }
4850 int __start (void) { return 0; }
4851 int foo (void) { return 1; }
4852 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
4854 if { ac_try='${CC-cc} -o conftest conftest.c
4855 -static -nostartfiles -nostdlib 1>&5'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; }
4862 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
4863 libc_cv_initfinit_array=yes
4865 libc_cv_initfinit_array=no
4868 libc_cv_initfinit_array=no
4872 echo "$as_me:$LINENO: result: $libc_cv_initfinit_array" >&5
4873 echo "${ECHO_T}$libc_cv_initfinit_array" >&6
4875 if test $libc_cv_initfinit_array = yes; then
4876 cat >>confdefs.h <<\_ACEOF
4877 #define HAVE_INITFINI_ARRAY 1
4882 echo "$as_me:$LINENO: checking for -z nodelete option" >&5
4883 echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6
4884 if test "${libc_cv_z_nodelete+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 cat > conftest.c <<EOF
4888 int _start (void) { return 42; }
4890 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4891 -nostartfiles -nostdlib
4892 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; }
4899 libc_cv_z_nodelete=yes
4901 libc_cv_z_nodelete=no
4905 echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
4906 echo "${ECHO_T}$libc_cv_z_nodelete" >&6
4909 echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
4910 echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6
4911 if test "${libc_cv_z_nodlopen+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 cat > conftest.c <<EOF
4915 int _start (void) { return 42; }
4917 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4918 -nostartfiles -nostdlib
4919 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
4920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; }
4926 libc_cv_z_nodlopen=yes
4928 libc_cv_z_nodlopen=no
4932 echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
4933 echo "${ECHO_T}$libc_cv_z_nodlopen" >&6
4936 echo "$as_me:$LINENO: checking for -z initfirst option" >&5
4937 echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6
4938 if test "${libc_cv_z_initfirst+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 cat > conftest.c <<EOF
4942 int _start (void) { return 42; }
4944 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4945 -nostartfiles -nostdlib
4946 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }
4953 libc_cv_z_initfirst=yes
4955 libc_cv_z_initfirst=no
4959 echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
4960 echo "${ECHO_T}$libc_cv_z_initfirst" >&6
4963 echo "$as_me:$LINENO: checking for -Bgroup option" >&5
4964 echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6
4965 if test "${libc_cv_Bgroup+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 cat > conftest.c <<EOF
4969 int _start (void) { return 42; }
4971 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,-Bgroup -nostdlib 1>&5'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; }
4984 echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
4985 echo "${ECHO_T}$libc_cv_Bgroup" >&6
4988 echo "$as_me:$LINENO: checking for -z combreloc" >&5
4989 echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6
4990 if test "${libc_cv_z_combreloc+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 cat > conftest.c <<EOF
4994 extern int bar (int);
4996 int foo (void) { return bar (mumble); }
4998 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4999 -nostdlib -nostartfiles
5000 -Wl,-z,combreloc 1>&5'
5001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); }; }
5007 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
5008 libc_cv_z_combreloc=yes
5010 libc_cv_z_combreloc=no
5013 libc_cv_z_combreloc=no
5017 echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
5018 echo "${ECHO_T}$libc_cv_z_combreloc" >&6
5019 if test "$libc_cv_z_combreloc" = yes; then
5020 cat >>confdefs.h <<\_ACEOF
5021 #define HAVE_Z_COMBRELOC 1
5028 if test $elf != yes; then
5029 echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
5030 echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6
5031 if test "${libc_cv_have_initfini+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 cat >conftest.$ac_ext <<_ACEOF
5035 #line $LINENO "configure"
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5045 asm (".section .init");
5046 asm (".section .fini");
5047 asm ("${libc_cv_dot_text}");
5052 rm -f conftest.$ac_objext
5053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5054 (eval $ac_compile) 2>&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); } &&
5058 { ac_try='test -s conftest.$ac_objext'
5059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); }; }; then
5064 libc_cv_have_initfini=yes
5066 echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5069 libc_cv_have_initfini=no
5071 rm -f conftest.$ac_objext conftest.$ac_ext
5073 echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
5074 echo "${ECHO_T}$libc_cv_have_initfini" >&6
5075 if test $libc_cv_have_initfini = yes; then
5076 cat >>confdefs.h <<\_ACEOF
5077 #define HAVE_INITFINI 1
5083 if test $elf = yes -a $gnu_ld = yes; then
5084 echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
5085 echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6
5086 if test "${libc_cv_have_section_quotes+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 cat > conftest.c <<EOF
5090 static const int foo
5091 __attribute__ ((section ("bar"))) = 1;
5093 if ${CC-cc} -S conftest.c -o conftest.s; then
5094 if grep '\.section.*"bar"' conftest.s >/dev/null; then
5095 libc_cv_have_section_quotes=yes
5097 libc_cv_have_section_quotes=no
5100 libc_cv_have_section_quotes=unknown
5105 echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
5106 echo "${ECHO_T}$libc_cv_have_section_quotes" >&6
5107 if test $libc_cv_have_section_quotes = yes; then
5108 cat >>confdefs.h <<\_ACEOF
5109 #define HAVE_SECTION_QUOTES 1
5117 if test $elf = yes; then
5118 libc_cv_asm_underscores=no
5120 if test $ac_cv_prog_cc_works = yes; then
5121 echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
5122 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6
5123 if test "${libc_cv_asm_underscores+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 cat >conftest.$ac_ext <<_ACEOF
5127 #line $LINENO "configure"
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h. */
5133 asm ("_glibc_foobar:");
5142 rm -f conftest.$ac_objext conftest$ac_exeext
5143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5144 (eval $ac_link) 2>&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } &&
5148 { ac_try='test -s conftest$ac_exeext'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; }; then
5154 libc_cv_asm_underscores=yes
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5159 libc_cv_asm_underscores=no
5161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5163 echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
5164 echo "${ECHO_T}$libc_cv_asm_underscores" >&6
5166 echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
5167 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6
5168 if test "${libc_cv_asm_underscores+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 cat > conftest.$ac_ext <<EOF
5172 #line 5172 "configure"
5173 #include "confdefs.h"
5174 void underscore_test(void) {
5177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5178 (eval $ac_compile) 2>&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; then
5182 if grep _underscore_test conftest* >/dev/null; then
5184 libc_cv_asm_underscores=yes
5187 libc_cv_asm_underscores=no
5190 echo "configure: failed program was:" >&5
5191 cat conftest.$ac_ext >&5
5193 libc_cv_asm_underscores=no
5197 echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
5198 echo "${ECHO_T}$libc_cv_asm_underscores" >&6
5201 if test $libc_cv_asm_underscores = no; then
5202 cat >>confdefs.h <<\_ACEOF
5203 #define NO_UNDERSCORES 1
5208 if test $elf = yes; then
5209 libc_cv_weak_symbols=yes
5212 echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
5213 echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6
5214 if test "${libc_cv_asm_weak_directive+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 cat > conftest.s <<EOF
5219 ${libc_cv_asm_global_directive} foo
5222 .weak bar; bar = foo
5224 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; }; then
5230 libc_cv_asm_weak_directive=yes
5232 libc_cv_asm_weak_directive=no
5236 echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
5237 echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6
5239 if test $libc_cv_asm_weak_directive = no; then
5240 echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
5241 echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6
5242 if test "${libc_cv_asm_weakext_directive+set}" = set; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 cat > conftest.s <<EOF
5247 ${libc_cv_asm_global_directive} foo
5251 ${libc_cv_asm_global_directive} baz
5254 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
5255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }; }; then
5260 libc_cv_asm_weakext_directive=yes
5262 libc_cv_asm_weakext_directive=no
5266 echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
5267 echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6
5271 if test $libc_cv_asm_weak_directive = yes; then
5272 cat >>confdefs.h <<\_ACEOF
5273 #define HAVE_ASM_WEAK_DIRECTIVE 1
5276 elif test $libc_cv_asm_weakext_directive = yes; then
5277 cat >>confdefs.h <<\_ACEOF
5278 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
5283 case "${host_cpu}-${host_os}" in
5285 libc_cv_asm_line_sep='@'
5286 cat >>confdefs.h <<_ACEOF
5287 #define ASM_LINE_SEP $libc_cv_asm_line_sep
5292 echo "$as_me:$LINENO: checking for assembler line separator" >&5
5293 echo $ECHO_N "checking for assembler line separator... $ECHO_C" >&6
5294 if test "${libc_cv_asm_line_sep+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 cat > conftest.s <<EOF
5300 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; }; then
5306 libc_cv_asm_line_sep='!'
5308 if test -z "$enable_hacker_mode"; then
5309 echo "*** You need a newer assembler to compile glibc"
5313 libc_cv_asm_line_sep=';'
5317 echo "$as_me:$LINENO: result: $libc_cv_asm_line_sep" >&5
5318 echo "${ECHO_T}$libc_cv_asm_line_sep" >&6
5319 cat >>confdefs.h <<_ACEOF
5320 #define ASM_LINE_SEP $libc_cv_asm_line_sep
5326 echo "$as_me:$LINENO: checking if -g produces usable source locations for assembler-with-cpp" >&5
5327 echo $ECHO_N "checking if -g produces usable source locations for assembler-with-cpp... $ECHO_C" >&6
5328 if test "${libc_cv_cpp_asm_debuginfo+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 cat > conftest.S <<EOF
5332 #include "confdefs.h"
5337 ${libc_cv_asm_global_directive} foo
5339 /* Unfortunately this test only works for a real instruction,
5340 not for any of the machine-independent pseudo-ops.
5341 So we just have to assume everybody has a "nop". */
5348 if { ac_try='${CC-cc} $CFLAGS -g -c conftest.S 1>&5'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; } &&
5354 ac_pattern='conftest\.S'
5355 { ac_try='readelf --debug-dump=line conftest.o |
5356 grep $ac_pattern 1>&5'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5362 libc_cv_cpp_asm_debuginfo=yes
5364 libc_cv_cpp_asm_debuginfo=no
5368 echo "$as_me:$LINENO: result: $libc_cv_cpp_asm_debuginfo" >&5
5369 echo "${ECHO_T}$libc_cv_cpp_asm_debuginfo" >&6
5370 if test $libc_cv_cpp_asm_debuginfo = yes; then
5371 cat >>confdefs.h <<\_ACEOF
5372 #define HAVE_CPP_ASM_DEBUGINFO 1
5377 echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
5378 echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6
5379 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 cat > conftest.c <<\EOF
5387 if { ac_try='${CC-cc} $CFLAGS
5388 -nostdlib -nostartfiles -Wl,--no-whole-archive
5389 -o conftest conftest.c 1>&5'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; }; then
5395 libc_cv_ld_no_whole_archive=yes
5397 libc_cv_ld_no_whole_archive=no
5401 echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
5402 echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6
5403 if test $libc_cv_ld_no_whole_archive = yes; then
5404 no_whole_archive=-Wl,--no-whole-archive
5407 echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
5408 echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6
5409 if test "${libc_cv_gcc_exceptions+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5412 cat > conftest.c <<\EOF
5417 if { ac_try='${CC-cc} $CFLAGS
5418 -nostdlib -nostartfiles -fexceptions
5419 -o conftest conftest.c 1>&5'
5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; }; then
5425 libc_cv_gcc_exceptions=yes
5427 libc_cv_gcc_exceptions=no
5431 echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
5432 echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6
5433 if test $libc_cv_gcc_exceptions = yes; then
5434 exceptions=-fexceptions
5437 if test "$host_cpu" = powerpc ; then
5438 # Check for a bug present in at least versions 2.8.x of GCC
5439 # and versions 1.0.x of EGCS.
5440 echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
5441 echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6
5442 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 cat >conftest.$ac_ext <<_ACEOF
5446 #line $LINENO "configure"
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
5461 rm -f conftest.$ac_objext
5462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5463 (eval $ac_compile) 2>&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } &&
5467 { ac_try='test -s conftest.$ac_objext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 libc_cv_c_asmcr0_bug='no'
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5478 libc_cv_c_asmcr0_bug='yes'
5480 rm -f conftest.$ac_objext conftest.$ac_ext
5482 echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
5483 echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6
5484 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
5485 cat >>confdefs.h <<\_ACEOF
5486 #define BROKEN_PPC_ASM_CR0 1
5492 echo "$as_me:$LINENO: checking for DWARF2 unwind info support" >&5
5493 echo $ECHO_N "checking for DWARF2 unwind info support... $ECHO_C" >&6
5494 if test "${libc_cv_gcc_dwarf2_unwind_info+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5497 cat > conftest.c <<EOF
5498 #line 5498 "configure"
5499 static char *__EH_FRAME_BEGIN__;
5502 #ifdef CHECK__register_frame
5503 __register_frame (__EH_FRAME_BEGIN__);
5504 __deregister_frame (__EH_FRAME_BEGIN__);
5506 #ifdef CHECK__register_frame_info
5507 __register_frame_info (__EH_FRAME_BEGIN__);
5508 __deregister_frame_info (__EH_FRAME_BEGIN__);
5513 /* FIXME: this is fragile. */
5522 dl_iterate_phdr () {}
5524 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
5525 -nostdlib -nostartfiles
5526 -o conftest conftest.c -lgcc >&5'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; }; then
5532 libc_cv_gcc_dwarf2_unwind_info=static
5534 libc_cv_gcc_dwarf2_unwind_info=no
5536 # Some platforms' specs put -lgcc first. The second one doesn't hurt.
5537 libc_unwind_check="${CC-cc} $CFLAGS -DCHECK__register_frame_info \
5538 -nostdlib -nostartfiles -o conftest conftest.c \
5539 -lgcc -lgcc_eh -lgcc"
5540 if { ac_try='$libc_unwind_check >&5'
5541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; }; then
5546 if $libc_unwind_check -v 2>&1 >/dev/null \
5547 | grep -q -- --eh-frame-hdr; then
5548 libc_cv_gcc_dwarf2_unwind_info=no_registry_needed
5550 libc_cv_gcc_dwarf2_unwind_info=static
5553 libc_cv_gcc_dwarf2_unwind_info=no
5555 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
5556 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
5557 -nostdlib -nostartfiles
5558 -o conftest conftest.c -lgcc >&5'
5559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); }; }; then
5564 libc_cv_gcc_dwarf2_unwind_info=yes
5566 libc_cv_gcc_dwarf2_unwind_info=no
5571 echo "$as_me:$LINENO: result: $libc_cv_gcc_dwarf2_unwind_info" >&5
5572 echo "${ECHO_T}$libc_cv_gcc_dwarf2_unwind_info" >&6
5573 case $libc_cv_gcc_dwarf2_unwind_info in
5575 cat >>confdefs.h <<\_ACEOF
5576 #define HAVE_DWARF2_UNWIND_INFO 1
5581 cat >>confdefs.h <<\_ACEOF
5582 #define HAVE_DWARF2_UNWIND_INFO 1
5585 cat >>confdefs.h <<\_ACEOF
5586 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
5592 echo "$as_me:$LINENO: checking for __builtin_expect" >&5
5593 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6
5594 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 cat > conftest.c <<EOF
5598 #line 5598 "configure"
5601 a = __builtin_expect (a, 10);
5602 return a == 10 ? 0 : 1;
5605 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
5606 -o conftest conftest.c -lgcc >&5'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 libc_cv_gcc_builtin_expect=yes
5614 libc_cv_gcc_builtin_expect=no
5618 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
5619 echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6
5620 if test "$libc_cv_gcc_builtin_expect" = yes; then
5621 cat >>confdefs.h <<\_ACEOF
5622 #define HAVE_BUILTIN_EXPECT 1
5627 echo "$as_me:$LINENO: checking for __builtin_memset" >&5
5628 echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6
5629 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 cat > conftest.c <<\EOF
5635 __builtin_memset (x, 0, 1000);
5638 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; };
5645 libc_cv_gcc_builtin_memset=no
5647 libc_cv_gcc_builtin_memset=yes
5651 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
5652 echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6
5653 if test "$libc_cv_gcc_builtin_memset" = yes ; then
5654 cat >>confdefs.h <<\_ACEOF
5655 #define HAVE_BUILTIN_MEMSET 1
5660 echo "$as_me:$LINENO: checking for local label subtraction" >&5
5661 echo $ECHO_N "checking for local label subtraction... $ECHO_C" >&6
5662 if test "${libc_cv_gcc_subtract_local_labels+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 cat > conftest.c <<EOF
5666 #line 5666 "configure"
5669 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
5670 void *p = &&l1 + ar[a];
5678 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
5679 -o conftest conftest.c -lgcc >&5'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; }; then
5685 libc_cv_gcc_subtract_local_labels=yes
5687 libc_cv_gcc_subtract_local_labels=no
5691 echo "$as_me:$LINENO: result: $libc_cv_gcc_subtract_local_labels" >&5
5692 echo "${ECHO_T}$libc_cv_gcc_subtract_local_labels" >&6
5693 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
5694 cat >>confdefs.h <<\_ACEOF
5695 #define HAVE_SUBTRACT_LOCAL_LABELS 1
5700 if test "x$use__thread" != xno; then
5701 echo "$as_me:$LINENO: checking for __thread" >&5
5702 echo $ECHO_N "checking for __thread... $ECHO_C" >&6
5703 if test "${libc_cv_gcc___thread+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 cat > conftest.c <<\EOF
5707 __thread int a = 42;
5709 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
5715 libc_cv_gcc___thread=yes
5717 libc_cv_gcc___thread=no
5721 echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
5722 echo "${ECHO_T}$libc_cv_gcc___thread" >&6
5723 if test "$libc_cv_gcc___thread" = yes; then
5724 cat >>confdefs.h <<\_ACEOF
5725 #define HAVE___THREAD 1
5730 libc_cv_gcc___thread=no
5733 if test "$libc_cv_gcc___thread" = yes; then
5734 echo "$as_me:$LINENO: checking for tls_model attribute" >&5
5735 echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6
5736 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 cat > conftest.c <<\EOF
5740 extern __thread int a __attribute__((tls_model ("initial-exec")));
5742 if { ac_try='${CC-cc} $CFLAGS -S -Werror conftest.c >&5'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 libc_cv_gcc_tls_model_attr=yes
5750 libc_cv_gcc_tls_model_attr=no
5754 echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
5755 echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6
5756 if test "$libc_cv_gcc_tls_model_attr" = yes; then
5757 cat >>confdefs.h <<\_ACEOF
5758 #define HAVE_TLS_MODEL_ATTRIBUTE 1
5764 echo "$as_me:$LINENO: checking for libgd" >&5
5765 echo $ECHO_N "checking for libgd... $ECHO_C" >&6
5766 if test "$with_gd" != "no"; then
5767 old_CFLAGS="$CFLAGS"
5768 CFLAGS="$CFLAGS $libgd_include"
5769 old_LDFLAGS="$LDFLAGS"
5770 LDFLAGS="$LDFLAGS $libgd_ldflags"
5772 LIBS="$LIBS -lgd -lpng -lz -lm"
5773 cat >conftest.$ac_ext <<_ACEOF
5774 #line $LINENO "configure"
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5789 rm -f conftest.$ac_objext conftest$ac_exeext
5790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5791 (eval $ac_link) 2>&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
5795 { ac_try='test -s conftest$ac_exeext'
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5809 CFLAGS="$old_CFLAGS"
5810 LDFLAGS="$old_LDFLAGS"
5815 echo "$as_me:$LINENO: result: $LIBGD" >&5
5816 echo "${ECHO_T}$LIBGD" >&6
5820 echo "$as_me:$LINENO: checking for egrep" >&5
5821 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5822 if test "${ac_cv_prog_egrep+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5826 then ac_cv_prog_egrep='grep -E'
5827 else ac_cv_prog_egrep='egrep'
5830 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5831 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5832 EGREP=$ac_cv_prog_egrep
5835 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5836 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5837 if test "${ac_cv_header_stdc+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 cat >conftest.$ac_ext <<_ACEOF
5841 #line $LINENO "configure"
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5860 rm -f conftest.$ac_objext
5861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5862 (eval $ac_compile) 2>&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } &&
5866 { ac_try='test -s conftest.$ac_objext'
5867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; }; then
5872 ac_cv_header_stdc=yes
5874 echo "$as_me: failed program was:" >&5
5875 sed 's/^/| /' conftest.$ac_ext >&5
5877 ac_cv_header_stdc=no
5879 rm -f conftest.$ac_objext conftest.$ac_ext
5881 if test $ac_cv_header_stdc = yes; then
5882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5883 cat >conftest.$ac_ext <<_ACEOF
5884 #line $LINENO "configure"
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5894 $EGREP "memchr" >/dev/null 2>&1; then
5897 ac_cv_header_stdc=no
5903 if test $ac_cv_header_stdc = yes; then
5904 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5905 cat >conftest.$ac_ext <<_ACEOF
5906 #line $LINENO "configure"
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5916 $EGREP "free" >/dev/null 2>&1; then
5919 ac_cv_header_stdc=no
5925 if test $ac_cv_header_stdc = yes; then
5926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5927 if test "$cross_compiling" = yes; then
5930 cat >conftest.$ac_ext <<_ACEOF
5931 #line $LINENO "configure"
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5938 #if ((' ' & 0x0FF) == 0x020)
5939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5942 # define ISLOWER(c) \
5943 (('a' <= (c) && (c) <= 'i') \
5944 || ('j' <= (c) && (c) <= 'r') \
5945 || ('s' <= (c) && (c) <= 'z'))
5946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5954 for (i = 0; i < 256; i++)
5955 if (XOR (islower (i), ISLOWER (i))
5956 || toupper (i) != TOUPPER (i))
5961 rm -f conftest$ac_exeext
5962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5963 (eval $ac_link) 2>&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; }; then
5974 echo "$as_me: program exited with status $ac_status" >&5
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5979 ac_cv_header_stdc=no
5981 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5985 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5986 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5987 if test $ac_cv_header_stdc = yes; then
5989 cat >>confdefs.h <<\_ACEOF
5990 #define STDC_HEADERS 1
5995 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6005 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6006 inttypes.h stdint.h unistd.h
6008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6009 echo "$as_me:$LINENO: checking for $ac_header" >&5
6010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 cat >conftest.$ac_ext <<_ACEOF
6015 #line $LINENO "configure"
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h. */
6021 $ac_includes_default
6023 #include <$ac_header>
6025 rm -f conftest.$ac_objext
6026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6027 (eval $ac_compile) 2>&5
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); } &&
6031 { ac_try='test -s conftest.$ac_objext'
6032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }; }; then
6037 eval "$as_ac_Header=yes"
6039 echo "$as_me: failed program was:" >&5
6040 sed 's/^/| /' conftest.$ac_ext >&5
6042 eval "$as_ac_Header=no"
6044 rm -f conftest.$ac_objext conftest.$ac_ext
6046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6049 cat >>confdefs.h <<_ACEOF
6050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6058 echo "$as_me:$LINENO: checking for long double" >&5
6059 echo $ECHO_N "checking for long double... $ECHO_C" >&6
6060 if test "${ac_cv_type_long_double+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 cat >conftest.$ac_ext <<_ACEOF
6064 #line $LINENO "configure"
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 $ac_includes_default
6074 if ((long double *) 0)
6076 if (sizeof (long double))
6082 rm -f conftest.$ac_objext
6083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6084 (eval $ac_compile) 2>&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } &&
6088 { ac_try='test -s conftest.$ac_objext'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }; then
6094 ac_cv_type_long_double=yes
6096 echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6099 ac_cv_type_long_double=no
6101 rm -f conftest.$ac_objext conftest.$ac_ext
6103 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
6104 echo "${ECHO_T}$ac_cv_type_long_double" >&6
6106 echo "$as_me:$LINENO: checking size of long double" >&5
6107 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
6108 if test "${ac_cv_sizeof_long_double+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 if test "$ac_cv_type_long_double" = yes; then
6112 # The cast to unsigned long works around a bug in the HP C Compiler
6113 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6114 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6115 # This bug is HP SR number 8606223364.
6116 if test "$cross_compiling" = yes; then
6117 # Depending upon the size, compute the lo and hi bounds.
6118 cat >conftest.$ac_ext <<_ACEOF
6119 #line $LINENO "configure"
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125 $ac_includes_default
6129 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
6136 rm -f conftest.$ac_objext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6138 (eval $ac_compile) 2>&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } &&
6142 { ac_try='test -s conftest.$ac_objext'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; }; then
6150 cat >conftest.$ac_ext <<_ACEOF
6151 #line $LINENO "configure"
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6157 $ac_includes_default
6161 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
6168 rm -f conftest.$ac_objext
6169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6170 (eval $ac_compile) 2>&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } &&
6174 { ac_try='test -s conftest.$ac_objext'
6175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
6180 ac_hi=$ac_mid; break
6182 echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6185 ac_lo=`expr $ac_mid + 1`
6186 if test $ac_lo -le $ac_mid; then
6190 ac_mid=`expr 2 '*' $ac_mid + 1`
6192 rm -f conftest.$ac_objext conftest.$ac_ext
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6198 cat >conftest.$ac_ext <<_ACEOF
6199 #line $LINENO "configure"
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h. */
6205 $ac_includes_default
6209 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
6216 rm -f conftest.$ac_objext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6218 (eval $ac_compile) 2>&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try='test -s conftest.$ac_objext'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6230 cat >conftest.$ac_ext <<_ACEOF
6231 #line $LINENO "configure"
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237 $ac_includes_default
6241 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
6248 rm -f conftest.$ac_objext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250 (eval $ac_compile) 2>&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try='test -s conftest.$ac_objext'
6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; }; then
6260 ac_lo=$ac_mid; break
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 ac_hi=`expr '(' $ac_mid ')' - 1`
6266 if test $ac_mid -le $ac_hi; then
6270 ac_mid=`expr 2 '*' $ac_mid`
6272 rm -f conftest.$ac_objext conftest.$ac_ext
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6280 rm -f conftest.$ac_objext conftest.$ac_ext
6282 rm -f conftest.$ac_objext conftest.$ac_ext
6283 # Binary search between lo and hi bounds.
6284 while test "x$ac_lo" != "x$ac_hi"; do
6285 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6286 cat >conftest.$ac_ext <<_ACEOF
6287 #line $LINENO "configure"
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6293 $ac_includes_default
6297 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
6304 rm -f conftest.$ac_objext
6305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6306 (eval $ac_compile) 2>&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } &&
6310 { ac_try='test -s conftest.$ac_objext'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; }; then
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6321 ac_lo=`expr '(' $ac_mid ')' + 1`
6323 rm -f conftest.$ac_objext conftest.$ac_ext
6326 ?*) ac_cv_sizeof_long_double=$ac_lo;;
6327 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
6328 See \`config.log' for more details." >&5
6329 echo "$as_me: error: cannot compute sizeof (long double), 77
6330 See \`config.log' for more details." >&2;}
6331 { (exit 1); exit 1; }; } ;;
6334 if test "$cross_compiling" = yes; then
6335 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6336 See \`config.log' for more details." >&5
6337 echo "$as_me: error: cannot run test program while cross compiling
6338 See \`config.log' for more details." >&2;}
6339 { (exit 1); exit 1; }; }
6341 cat >conftest.$ac_ext <<_ACEOF
6342 #line $LINENO "configure"
6345 cat confdefs.h >>conftest.$ac_ext
6346 cat >>conftest.$ac_ext <<_ACEOF
6347 /* end confdefs.h. */
6348 $ac_includes_default
6349 long longval () { return (long) (sizeof (long double)); }
6350 unsigned long ulongval () { return (long) (sizeof (long double)); }
6357 FILE *f = fopen ("conftest.val", "w");
6360 if (((long) (sizeof (long double))) < 0)
6362 long i = longval ();
6363 if (i != ((long) (sizeof (long double))))
6365 fprintf (f, "%ld\n", i);
6369 unsigned long i = ulongval ();
6370 if (i != ((long) (sizeof (long double))))
6372 fprintf (f, "%lu\n", i);
6374 exit (ferror (f) || fclose (f) != 0);
6380 rm -f conftest$ac_exeext
6381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6382 (eval $ac_link) 2>&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; }; then
6391 ac_cv_sizeof_long_double=`cat conftest.val`
6393 echo "$as_me: program exited with status $ac_status" >&5
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6398 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
6399 See \`config.log' for more details." >&5
6400 echo "$as_me: error: cannot compute sizeof (long double), 77
6401 See \`config.log' for more details." >&2;}
6402 { (exit 1); exit 1; }; }
6404 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6409 ac_cv_sizeof_long_double=0
6412 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
6413 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
6414 cat >>confdefs.h <<_ACEOF
6415 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
6419 sizeof_long_double=$ac_cv_sizeof_long_double
6422 ### End of automated tests.
6423 ### Now run sysdeps configure fragments.
6425 # They also can set these variables.
6427 ldd_rewrite_script=no
6428 libc_cv_sysconfdir=$sysconfdir
6429 libc_cv_gcc_unwind_find_fde=no
6431 # Iterate over all the sysdep directories we will use, running their
6432 # configure fragments, and looking for a uname implementation.
6434 for dir in $sysnames; do
6437 *) dest=$srcdir/$dir ;;
6439 if test -r $dest/configure; then
6440 echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
6441 echo "${ECHO_T}running configure fragment for $dir" >&6
6445 if test -z "$uname"; then
6446 if test -r $dest/uname.c ||
6447 test -r $dest/uname.S ||
6448 { test -r $dest/syscalls.list &&
6449 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
6455 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
6456 cat >>confdefs.h <<\_ACEOF
6457 #define EXPORT_UNWIND_FIND_FDE 1
6463 # If we will use the generic uname implementation, we must figure out what
6464 # it will say by examining the system, and write the results in config-name.h.
6465 if test "$uname" = "sysdeps/generic"; then
6467 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
6468 if test $uname_sysname != $config_os; then
6469 config_release=`echo $config_os | sed s/$uname_sysname//`
6472 echo "$as_me:$LINENO: checking OS release for uname" >&5
6473 echo $ECHO_N "checking OS release for uname... $ECHO_C" >&6
6474 if test "${libc_cv_uname_release+set}" = set; then
6475 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 if test -r /vmunix; then
6478 kernel_id=`strings /vmunix | grep UNIX`
6479 elif test -r /dynix; then
6480 kernel_id=`strings /dynix | grep DYNIX`
6485 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
6486 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
6487 != x$config_release; then
6488 # The configuration release is a substring of the kernel release.
6489 libc_cv_uname_release=$kernel_release
6490 elif test x$config_release != x; then
6491 libc_cv_uname_release=$config_release
6492 elif test x$kernel_release != x; then
6493 libc_cv_uname_release=$kernel_release
6495 libc_cv_uname_release=unknown
6498 echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
6499 echo "${ECHO_T}$libc_cv_uname_release" >&6
6500 uname_release="$libc_cv_uname_release"
6502 echo "$as_me:$LINENO: checking OS version for uname" >&5
6503 echo $ECHO_N "checking OS version for uname... $ECHO_C" >&6
6504 if test "${libc_cv_uname_version+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 if test -r /vmunix; then
6508 kernel_id=`strings /vmunix | grep UNIX`
6509 elif test -r /dynix; then
6510 kernel_id=`strings /dynix | grep DYNIX`
6515 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
6516 if test -n "$kernel_version"; then
6517 libc_cv_uname_version="$kernel_version"
6519 libc_cv_uname_version=unknown
6522 echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
6523 echo "${ECHO_T}$libc_cv_uname_version" >&6
6524 uname_version="$libc_cv_uname_version"
6526 config_uname=config-name.h:config-name.in
6528 # For non-generic uname, we don't need to create config-name.h at all.
6532 cat >>confdefs.h <<\_ACEOF
6533 #define USE_IN_LIBIO 1
6537 # Test for old glibc 2.0.x headers so that they can be removed properly
6538 # Search only in includedir.
6539 echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
6540 echo $ECHO_N "checking for old glibc 2.0.x headers... $ECHO_C" >&6
6541 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
6543 old_glibc_headers=yes
6545 old_glibc_headers=no
6547 echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
6548 echo "${ECHO_T}$old_glibc_headers" >&6
6549 if test ${old_glibc_headers} = yes; then
6550 { echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
6551 echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
6552 { echo "$as_me:$LINENO: WARNING: *** be removed." >&5
6553 echo "$as_me: WARNING: *** be removed." >&2;}
6566 if test $gnu_ld = yes; then
6567 cat >>confdefs.h <<\_ACEOF
6568 #define HAVE_GNU_LD 1
6572 if test $gnu_as = yes; then
6573 cat >>confdefs.h <<\_ACEOF
6574 #define HAVE_GNU_AS 1
6578 if test $elf = yes; then
6579 cat >>confdefs.h <<\_ACEOF
6584 if test $xcoff = yes; then
6585 cat >>confdefs.h <<\_ACEOF
6586 #define HAVE_XCOFF 1
6593 if test $shared = default; then
6594 if test $gnu_ld = yes; then
6597 # For now we do not assume shared libs are available. In future more
6598 # tests might become available.
6603 echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
6604 echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6
6605 if test "${pic_default+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 cat > conftest.c <<EOF
6610 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
6611 # error PIC is default.
6614 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
6619 echo "$as_me:$LINENO: result: $pic_default" >&5
6620 echo "${ECHO_T}$pic_default" >&6
6632 *door*) linux_doors=yes ;;
6633 *) linux_doors=no ;;
6639 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
6642 config_makefile=Makefile
6645 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
6646 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
6650 ac_config_files="$ac_config_files config.make glibcbug ${config_makefile} ${config_uname}"
6652 ac_config_commands="$ac_config_commands default"
6654 cat >confcache <<\_ACEOF
6655 # This file is a shell script that caches the results of configure
6656 # tests run on this system so they can be shared between configure
6657 # scripts and configure runs, see configure's option --config-cache.
6658 # It is not useful on other systems. If it contains results you don't
6659 # want to keep, you may remove or edit it.
6661 # config.status only pays attention to the cache file if you give it
6662 # the --recheck option to rerun configure.
6664 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6665 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6670 # The following way of writing the cache mishandles newlines in values,
6671 # but we know of no workaround that is simple, portable, and efficient.
6672 # So, don't put newlines in cache variables' values.
6673 # Ultrix sh set writes to stderr and can't be redirected directly,
6674 # and sets the high bit in the cache file unless we assign to the vars.
6677 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6679 # `set' does not quote correctly, so add quotes (double-quote
6680 # substitution turns \\\\ into \\, and sed turns \\ into \).
6683 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6686 # `set' quotes correctly as required by POSIX, so do not add quotes.
6688 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6695 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6697 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6699 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6700 if test -w $cache_file; then
6701 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6702 cat confcache >$cache_file
6704 echo "not updating unwritable cache $cache_file"
6709 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6710 # Let make expand exec_prefix.
6711 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6713 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6714 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6715 # trailing colons and then remove the whole line if VPATH becomes empty
6716 # (actually we leave an empty line to preserve line numbers).
6717 if test "x$srcdir" = x.; then
6718 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6719 s/:*\$(srcdir):*/:/;
6720 s/:*\${srcdir}:*/:/;
6722 s/^\([^=]*=[ ]*\):*/\1/;
6728 DEFS=-DHAVE_CONFIG_H
6732 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6733 # 1. Remove the extension, and $U if already installed.
6734 ac_i=`echo "$ac_i" |
6735 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6737 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6738 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6742 LTLIBOBJS=$ac_ltlibobjs
6746 : ${CONFIG_STATUS=./config.status}
6747 ac_clean_files_save=$ac_clean_files
6748 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6749 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6750 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6751 cat >$CONFIG_STATUS <<_ACEOF
6753 # Generated by $as_me.
6754 # Run this file to recreate the current configuration.
6755 # Compiler output produced by configure, useful for debugging
6756 # configure, is in config.log if it exists.
6761 SHELL=\${CONFIG_SHELL-$SHELL}
6764 cat >>$CONFIG_STATUS <<\_ACEOF
6765 ## --------------------- ##
6766 ## M4sh Initialization. ##
6767 ## --------------------- ##
6769 # Be Bourne compatible
6770 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6773 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6774 # is contrary to our usage. Disable this feature.
6775 alias -g '${1+"$@"}'='"$@"'
6776 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6780 # Support unset when possible.
6781 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6788 # Work around bugs in pre-3.0 UWIN ksh.
6789 $as_unset ENV MAIL MAILPATH
6796 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6797 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6798 LC_TELEPHONE LC_TIME
6800 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6801 eval $as_var=C; export $as_var
6807 # Required to use basename.
6808 if expr a : '\(a\)' >/dev/null 2>&1; then
6814 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6815 as_basename=basename
6821 # Name of the executable.
6822 as_me=`$as_basename "$0" ||
6823 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6824 X"$0" : 'X\(//\)$' \| \
6825 X"$0" : 'X\(/\)$' \| \
6826 . : '\(.\)' 2>/dev/null ||
6828 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6829 /^X\/\(\/\/\)$/{ s//\1/; q; }
6830 /^X\/\(\/\).*/{ s//\1/; q; }
6834 # PATH needs CR, and LINENO needs CR and PATH.
6835 # Avoid depending upon Character Ranges.
6836 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6837 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6838 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6839 as_cr_digits='0123456789'
6840 as_cr_alnum=$as_cr_Letters$as_cr_digits
6842 # The user is always right.
6843 if test "${PATH_SEPARATOR+set}" != set; then
6844 echo "#! /bin/sh" >conf$$.sh
6845 echo "exit 0" >>conf$$.sh
6847 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6858 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6859 test "x$as_lineno_1" != "x$as_lineno_2" &&
6860 test "x$as_lineno_3" = "x$as_lineno_2" || {
6861 # Find who we are. Look in the path if we contain no path at all
6864 *[\\/]* ) as_myself=$0 ;;
6865 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 test -z "$as_dir" && as_dir=.
6870 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6875 # We did not find ourselves, most probably we were run as `sh COMMAND'
6876 # in which case we are not to be found in the path.
6877 if test "x$as_myself" = x; then
6880 if test ! -f "$as_myself"; then
6881 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6882 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6883 { (exit 1); exit 1; }; }
6885 case $CONFIG_SHELL in
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6891 test -z "$as_dir" && as_dir=.
6892 for as_base in sh bash ksh sh5; do
6895 if ("$as_dir/$as_base" -c '
6898 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6899 test "x$as_lineno_1" != "x$as_lineno_2" &&
6900 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6901 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6902 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6903 CONFIG_SHELL=$as_dir/$as_base
6905 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6913 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6914 # uniformly replaced by the line number. The first 'sed' inserts a
6915 # line-number line before each line; the second 'sed' does the real
6916 # work. The second script uses 'N' to pair each line-number line
6917 # with the numbered line, and appends trailing '-' during
6918 # substitution so that $LINENO is not a special case at line end.
6919 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6920 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6921 sed '=' <$as_myself |
6926 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6929 s,^['$as_cr_digits']*\n,,
6931 chmod +x $as_me.lineno ||
6932 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6933 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6934 { (exit 1); exit 1; }; }
6936 # Don't try to exec as it changes $[0], causing all sort of problems
6937 # (the dirname of $[0] is not the place where we might find the
6938 # original and so on. Autoconf is especially sensible to this).
6940 # Exit status is that of the last command.
6945 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6946 *c*,-n*) ECHO_N= ECHO_C='
6948 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6949 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6952 if expr a : '\(a\)' >/dev/null 2>&1; then
6958 rm -f conf$$ conf$$.exe conf$$.file
6960 if ln -s conf$$.file conf$$ 2>/dev/null; then
6961 # We could just check for DJGPP; but this test a) works b) is more generic
6962 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6963 if test -f conf$$.exe; then
6964 # Don't use ln at all; we don't have any links
6969 elif ln conf$$.file conf$$ 2>/dev/null; then
6974 rm -f conf$$ conf$$.exe conf$$.file
6976 if mkdir -p . 2>/dev/null; then
6982 as_executable_p="test -f"
6984 # Sed expression to map a string onto a valid CPP name.
6985 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6987 # Sed expression to map a string onto a valid variable name.
6988 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6992 # We need space, tab and new line, in precisely that order.
7002 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7003 # report actual input values of CONFIG_FILES etc. instead of their
7004 # values after options handling. Logging --version etc. is OK.
7008 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7009 ## Running $as_me. ##
7014 This file was extended by GNU C Library $as_me (see version.h), which was
7015 generated by GNU Autoconf 2.57. Invocation command line was
7017 CONFIG_FILES = $CONFIG_FILES
7018 CONFIG_HEADERS = $CONFIG_HEADERS
7019 CONFIG_LINKS = $CONFIG_LINKS
7020 CONFIG_COMMANDS = $CONFIG_COMMANDS
7024 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7028 # Files that config.status was made for.
7029 if test -n "$ac_config_files"; then
7030 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7033 if test -n "$ac_config_headers"; then
7034 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7037 if test -n "$ac_config_links"; then
7038 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7041 if test -n "$ac_config_commands"; then
7042 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7045 cat >>$CONFIG_STATUS <<\_ACEOF
7048 \`$as_me' instantiates files from templates according to the
7049 current configuration.
7051 Usage: $0 [OPTIONS] [FILE]...
7053 -h, --help print this help, then exit
7054 -V, --version print version number, then exit
7055 -q, --quiet do not print progress messages
7056 -d, --debug don't remove temporary files
7057 --recheck update $as_me by reconfiguring in the same conditions
7058 --file=FILE[:TEMPLATE]
7059 instantiate the configuration file FILE
7060 --header=FILE[:TEMPLATE]
7061 instantiate the configuration header FILE
7063 Configuration files:
7066 Configuration headers:
7069 Configuration commands:
7072 Report bugs to <bug-autoconf@gnu.org>."
7075 cat >>$CONFIG_STATUS <<_ACEOF
7077 GNU C Library config.status (see version.h)
7078 configured by $0, generated by GNU Autoconf 2.57,
7079 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7081 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7082 Free Software Foundation, Inc.
7083 This config.status script is free software; the Free Software Foundation
7084 gives unlimited permission to copy, distribute and modify it."
7089 cat >>$CONFIG_STATUS <<\_ACEOF
7090 # If no file are specified by the user, then we need to provide default
7091 # value. By we need to know if files were specified by the user.
7097 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7098 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7106 *) # This is not an option, so the user has probably given explicit
7109 ac_need_defaults=false;;
7113 # Handling of the options.
7115 cat >>$CONFIG_STATUS <<\_ACEOF
7116 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7118 --version | --vers* | -V )
7119 echo "$ac_cs_version"; exit 0 ;;
7121 # Conflict between --help and --header
7122 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7123 Try \`$0 --help' for more information." >&5
7124 echo "$as_me: error: ambiguous option: $1
7125 Try \`$0 --help' for more information." >&2;}
7126 { (exit 1); exit 1; }; };;
7127 --help | --hel | -h )
7128 echo "$ac_cs_usage"; exit 0 ;;
7129 --debug | --d* | -d )
7131 --file | --fil | --fi | --f )
7133 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7134 ac_need_defaults=false;;
7135 --header | --heade | --head | --hea )
7137 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7138 ac_need_defaults=false;;
7139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7140 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7144 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7145 Try \`$0 --help' for more information." >&5
7146 echo "$as_me: error: unrecognized option: $1
7147 Try \`$0 --help' for more information." >&2;}
7148 { (exit 1); exit 1; }; } ;;
7150 *) ac_config_targets="$ac_config_targets $1" ;;
7156 ac_configure_extra_args=
7158 if $ac_cs_silent; then
7160 ac_configure_extra_args="$ac_configure_extra_args --silent"
7164 cat >>$CONFIG_STATUS <<_ACEOF
7165 if \$ac_cs_recheck; then
7166 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7167 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7172 cat >>$CONFIG_STATUS <<_ACEOF
7174 # INIT-COMMANDS section.
7177 config_vars='$config_vars'
7183 cat >>$CONFIG_STATUS <<\_ACEOF
7184 for ac_config_target in $ac_config_targets
7186 case "$ac_config_target" in
7187 # Handling of arguments.
7188 "config.make" ) CONFIG_FILES="$CONFIG_FILES config.make" ;;
7189 "glibcbug" ) CONFIG_FILES="$CONFIG_FILES glibcbug" ;;
7190 "${config_makefile}" ) CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
7191 "${config_uname}" ) CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
7192 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7193 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7194 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7195 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7196 { (exit 1); exit 1; }; };;
7200 # If the user did not use the arguments to specify the items to instantiate,
7201 # then the envvar interface is used. Set only those that are not.
7202 # We use the long form for the default assignment because of an extremely
7203 # bizarre bug on SunOS 4.1.3.
7204 if $ac_need_defaults; then
7205 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7206 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7207 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7210 # Have a temporary directory for convenience. Make it in the build tree
7211 # simply because there is no reason to put it here, and in addition,
7212 # creating and moving files from /tmp can sometimes cause problems.
7213 # Create a temporary directory, and hook for its removal unless debugging.
7216 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7217 trap '{ (exit 1); exit 1; }' 1 2 13 15
7220 # Create a (secure) tmp directory for tmp files.
7223 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7224 test -n "$tmp" && test -d "$tmp"
7227 tmp=./confstat$$-$RANDOM
7228 (umask 077 && mkdir $tmp)
7231 echo "$me: cannot create a temporary directory in ." >&2
7232 { (exit 1); exit 1; }
7237 cat >>$CONFIG_STATUS <<_ACEOF
7240 # CONFIG_FILES section.
7243 # No need to generate the scripts if there are no CONFIG_FILES.
7244 # This happens for instance when ./config.status config.h
7245 if test -n "\$CONFIG_FILES"; then
7246 # Protect against being on the right side of a sed subst in config.status.
7247 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7248 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7249 s,@SHELL@,$SHELL,;t t
7250 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7251 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7252 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7253 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7254 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7255 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7256 s,@exec_prefix@,$exec_prefix,;t t
7257 s,@prefix@,$prefix,;t t
7258 s,@program_transform_name@,$program_transform_name,;t t
7259 s,@bindir@,$bindir,;t t
7260 s,@sbindir@,$sbindir,;t t
7261 s,@libexecdir@,$libexecdir,;t t
7262 s,@datadir@,$datadir,;t t
7263 s,@sysconfdir@,$sysconfdir,;t t
7264 s,@sharedstatedir@,$sharedstatedir,;t t
7265 s,@localstatedir@,$localstatedir,;t t
7266 s,@libdir@,$libdir,;t t
7267 s,@includedir@,$includedir,;t t
7268 s,@oldincludedir@,$oldincludedir,;t t
7269 s,@infodir@,$infodir,;t t
7270 s,@mandir@,$mandir,;t t
7271 s,@build_alias@,$build_alias,;t t
7272 s,@host_alias@,$host_alias,;t t
7273 s,@target_alias@,$target_alias,;t t
7275 s,@ECHO_C@,$ECHO_C,;t t
7276 s,@ECHO_N@,$ECHO_N,;t t
7277 s,@ECHO_T@,$ECHO_T,;t t
7279 s,@with_fp@,$with_fp,;t t
7280 s,@with_cvs@,$with_cvs,;t t
7281 s,@enable_check_abi@,$enable_check_abi,;t t
7282 s,@oldest_abi@,$oldest_abi,;t t
7283 s,@subdirs@,$subdirs,;t t
7284 s,@force_install@,$force_install,;t t
7285 s,@all_warnings@,$all_warnings,;t t
7286 s,@build@,$build,;t t
7287 s,@build_cpu@,$build_cpu,;t t
7288 s,@build_vendor@,$build_vendor,;t t
7289 s,@build_os@,$build_os,;t t
7291 s,@host_cpu@,$host_cpu,;t t
7292 s,@host_vendor@,$host_vendor,;t t
7293 s,@host_os@,$host_os,;t t
7294 s,@base_machine@,$base_machine,;t t
7295 s,@sysnames@,$sysnames,;t t
7296 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7297 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7298 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7301 s,@CFLAGS@,$CFLAGS,;t t
7302 s,@LDFLAGS@,$LDFLAGS,;t t
7303 s,@CPPFLAGS@,$CPPFLAGS,;t t
7304 s,@ac_ct_CC@,$ac_ct_CC,;t t
7305 s,@OBJEXT@,$OBJEXT,;t t
7306 s,@BUILD_CC@,$BUILD_CC,;t t
7307 s,@cross_compiling@,$cross_compiling,;t t
7310 s,@OBJDUMP@,$OBJDUMP,;t t
7311 s,@RANLIB@,$RANLIB,;t t
7312 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7316 s,@PWD_P@,$PWD_P,;t t
7318 s,@MSGFMT@,$MSGFMT,;t t
7319 s,@MAKEINFO@,$MAKEINFO,;t t
7321 s,@AUTOCONF@,$AUTOCONF,;t t
7322 s,@CCVERSION@,$CCVERSION,;t t
7323 s,@SYSINCLUDES@,$SYSINCLUDES,;t t
7324 s,@libc_cv_gcc_static_libgcc@,$libc_cv_gcc_static_libgcc,;t t
7326 s,@libc_cv_have_bash2@,$libc_cv_have_bash2,;t t
7328 s,@libc_cv_have_ksh@,$libc_cv_have_ksh,;t t
7331 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
7332 s,@OLD_DEBIAN_INSTALL_INFO@,$OLD_DEBIAN_INSTALL_INFO,;t t
7333 s,@BISON@,$BISON,;t t
7334 s,@VERSIONING@,$VERSIONING,;t t
7335 s,@libc_cv_asm_protected_directive@,$libc_cv_asm_protected_directive,;t t
7336 s,@libc_cv_initfinit_array@,$libc_cv_initfinit_array,;t t
7337 s,@libc_cv_z_nodelete@,$libc_cv_z_nodelete,;t t
7338 s,@libc_cv_z_nodlopen@,$libc_cv_z_nodlopen,;t t
7339 s,@libc_cv_z_initfirst@,$libc_cv_z_initfirst,;t t
7340 s,@libc_cv_Bgroup@,$libc_cv_Bgroup,;t t
7341 s,@libc_cv_z_combreloc@,$libc_cv_z_combreloc,;t t
7342 s,@libc_cv_have_initfini@,$libc_cv_have_initfini,;t t
7343 s,@libc_cv_cpp_asm_debuginfo@,$libc_cv_cpp_asm_debuginfo,;t t
7344 s,@no_whole_archive@,$no_whole_archive,;t t
7345 s,@exceptions@,$exceptions,;t t
7346 s,@LIBGD@,$LIBGD,;t t
7347 s,@EGREP@,$EGREP,;t t
7348 s,@sizeof_long_double@,$sizeof_long_double,;t t
7349 s,@libc_cv_gcc_unwind_find_fde@,$libc_cv_gcc_unwind_find_fde,;t t
7350 s,@uname_sysname@,$uname_sysname,;t t
7351 s,@uname_release@,$uname_release,;t t
7352 s,@uname_version@,$uname_version,;t t
7353 s,@old_glibc_headers@,$old_glibc_headers,;t t
7354 s,@libc_cv_slibdir@,$libc_cv_slibdir,;t t
7355 s,@libc_cv_localedir@,$libc_cv_localedir,;t t
7356 s,@libc_cv_sysconfdir@,$libc_cv_sysconfdir,;t t
7357 s,@libc_cv_rootsbindir@,$libc_cv_rootsbindir,;t t
7358 s,@use_ldconfig@,$use_ldconfig,;t t
7359 s,@ldd_rewrite_script@,$ldd_rewrite_script,;t t
7360 s,@gnu_ld@,$gnu_ld,;t t
7361 s,@gnu_as@,$gnu_as,;t t
7363 s,@xcoff@,$xcoff,;t t
7364 s,@static@,$static,;t t
7365 s,@shared@,$shared,;t t
7366 s,@pic_default@,$pic_default,;t t
7367 s,@profile@,$profile,;t t
7368 s,@omitfp@,$omitfp,;t t
7369 s,@bounded@,$bounded,;t t
7370 s,@static_nss@,$static_nss,;t t
7371 s,@nopic_initfini@,$nopic_initfini,;t t
7372 s,@DEFINES@,$DEFINES,;t t
7373 s,@linux_doors@,$linux_doors,;t t
7374 s,@mach_interface_list@,$mach_interface_list,;t t
7375 s,@VERSION@,$VERSION,;t t
7376 s,@RELEASE@,$RELEASE,;t t
7377 s,@LIBOBJS@,$LIBOBJS,;t t
7378 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7383 cat >>$CONFIG_STATUS <<\_ACEOF
7384 # Split the substitutions into bite-sized pieces for seds with
7385 # small command number limits, like on Digital OSF/1 and HP-UX.
7387 ac_sed_frag=1 # Number of current file.
7388 ac_beg=1 # First line for current file.
7389 ac_end=$ac_max_sed_lines # Line after last line for current file.
7392 while $ac_more_lines; do
7393 if test $ac_beg -gt 1; then
7394 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7396 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7398 if test ! -s $tmp/subs.frag; then
7401 # The purpose of the label and of the branching condition is to
7402 # speed up the sed processing (if there are no `@' at all, there
7403 # is no need to browse any of the substitutions).
7404 # These are the two extra sed commands mentioned above.
7406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7407 if test -z "$ac_sed_cmds"; then
7408 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7410 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7412 ac_sed_frag=`expr $ac_sed_frag + 1`
7414 ac_end=`expr $ac_end + $ac_max_sed_lines`
7417 if test -z "$ac_sed_cmds"; then
7420 fi # test -n "$CONFIG_FILES"
7423 cat >>$CONFIG_STATUS <<\_ACEOF
7424 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7425 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7427 - | *:- | *:-:* ) # input from stdin
7429 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7430 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7431 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7432 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7433 * ) ac_file_in=$ac_file.in ;;
7436 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7437 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7438 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7439 X"$ac_file" : 'X\(//\)[^/]' \| \
7440 X"$ac_file" : 'X\(//\)$' \| \
7441 X"$ac_file" : 'X\(/\)' \| \
7442 . : '\(.\)' 2>/dev/null ||
7444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7445 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7446 /^X\(\/\/\)$/{ s//\1/; q; }
7447 /^X\(\/\).*/{ s//\1/; q; }
7449 { if $as_mkdir_p; then
7454 while test ! -d "$as_dir"; do
7455 as_dirs="$as_dir $as_dirs"
7456 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7457 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7458 X"$as_dir" : 'X\(//\)[^/]' \| \
7459 X"$as_dir" : 'X\(//\)$' \| \
7460 X"$as_dir" : 'X\(/\)' \| \
7461 . : '\(.\)' 2>/dev/null ||
7463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7464 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7465 /^X\(\/\/\)$/{ s//\1/; q; }
7466 /^X\(\/\).*/{ s//\1/; q; }
7469 test ! -n "$as_dirs" || mkdir $as_dirs
7470 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7471 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7472 { (exit 1); exit 1; }; }; }
7476 if test "$ac_dir" != .; then
7477 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7478 # A "../" for each directory in $ac_dir_suffix.
7479 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7481 ac_dir_suffix= ac_top_builddir=
7485 .) # No --srcdir option. We are building in place.
7487 if test -z "$ac_top_builddir"; then
7490 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7492 [\\/]* | ?:[\\/]* ) # Absolute path.
7493 ac_srcdir=$srcdir$ac_dir_suffix;
7494 ac_top_srcdir=$srcdir ;;
7496 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7497 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7499 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7501 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7502 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7503 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7504 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7508 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7509 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7512 if test x"$ac_file" != x-; then
7513 { echo "$as_me:$LINENO: creating $ac_file" >&5
7514 echo "$as_me: creating $ac_file" >&6;}
7517 # Let's still pretend it is `configure' which instantiates (i.e., don't
7518 # use $as_me), people would be surprised to read:
7519 # /* config.h. Generated by config.status. */
7520 if test x"$ac_file" = x-; then
7523 configure_input="$ac_file. "
7525 configure_input=$configure_input"Generated from `echo $ac_file_in |
7526 sed 's,.*/,,'` by configure."
7528 # First look for the input files in the build tree, otherwise in the
7530 ac_file_inputs=`IFS=:
7531 for f in $ac_file_in; do
7533 -) echo $tmp/stdin ;;
7535 # Absolute (can't be DOS-style, as IFS=:)
7536 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7537 echo "$as_me: error: cannot find input file: $f" >&2;}
7538 { (exit 1); exit 1; }; }
7541 if test -f "$f"; then
7544 elif test -f "$srcdir/$f"; then
7549 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7550 echo "$as_me: error: cannot find input file: $f" >&2;}
7551 { (exit 1); exit 1; }; }
7554 done` || { (exit 1); exit 1; }
7556 cat >>$CONFIG_STATUS <<_ACEOF
7560 cat >>$CONFIG_STATUS <<\_ACEOF
7562 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7563 s,@configure_input@,$configure_input,;t t
7564 s,@srcdir@,$ac_srcdir,;t t
7565 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7566 s,@top_srcdir@,$ac_top_srcdir,;t t
7567 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7568 s,@builddir@,$ac_builddir,;t t
7569 s,@abs_builddir@,$ac_abs_builddir,;t t
7570 s,@top_builddir@,$ac_top_builddir,;t t
7571 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7572 s,@INSTALL@,$ac_INSTALL,;t t
7573 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7575 if test x"$ac_file" != x-; then
7576 mv $tmp/out $ac_file
7584 cat >>$CONFIG_STATUS <<\_ACEOF
7587 # CONFIG_HEADER section.
7590 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7591 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7593 # ac_d sets the value in "#define NAME VALUE" lines.
7594 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7595 ac_dB='[ ].*$,\1#\2'
7598 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7599 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7600 ac_uB='$,\1#\2define\3'
7604 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7605 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7607 - | *:- | *:-:* ) # input from stdin
7609 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7610 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7611 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7612 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7613 * ) ac_file_in=$ac_file.in ;;
7616 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7617 echo "$as_me: creating $ac_file" >&6;}
7619 # First look for the input files in the build tree, otherwise in the
7621 ac_file_inputs=`IFS=:
7622 for f in $ac_file_in; do
7624 -) echo $tmp/stdin ;;
7626 # Absolute (can't be DOS-style, as IFS=:)
7627 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7628 echo "$as_me: error: cannot find input file: $f" >&2;}
7629 { (exit 1); exit 1; }; }
7632 if test -f "$f"; then
7635 elif test -f "$srcdir/$f"; then
7640 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7641 echo "$as_me: error: cannot find input file: $f" >&2;}
7642 { (exit 1); exit 1; }; }
7645 done` || { (exit 1); exit 1; }
7646 # Remove the trailing spaces.
7647 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7651 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7652 # `conftest.undefs', that substitutes the proper values into
7653 # config.h.in to produce config.h. The first handles `#define'
7654 # templates, and the second `#undef' templates.
7655 # And first: Protect against being on the right side of a sed subst in
7656 # config.status. Protect against being in an unquoted here document
7658 rm -f conftest.defines conftest.undefs
7659 # Using a here document instead of a string reduces the quoting nightmare.
7660 # Putting comments in sed scripts is not portable.
7662 # `end' is used to avoid that the second main sed command (meant for
7663 # 0-ary CPP macros) applies to n-ary macro definitions.
7664 # See the Autoconf documentation for `clear'.
7665 cat >confdef2sed.sed <<\_ACEOF
7670 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7672 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7675 # If some macros were called several times there might be several times
7676 # the same #defines, which is useless. Nevertheless, we may not want to
7677 # sort them, since we want the *last* AC-DEFINE to be honored.
7678 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7679 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7680 rm -f confdef2sed.sed
7682 # This sed command replaces #undef with comments. This is necessary, for
7683 # example, in the case of _POSIX_SOURCE, which is predefined and required
7684 # on some systems where configure will not decide to define it.
7685 cat >>conftest.undefs <<\_ACEOF
7686 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7689 # Break up conftest.defines because some shells have a limit on the size
7690 # of here documents, and old seds have small limits too (100 cmds).
7691 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7692 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7693 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7694 echo ' :' >>$CONFIG_STATUS
7696 while grep . conftest.defines >/dev/null
7698 # Write a limited-size here document to $tmp/defines.sed.
7699 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7700 # Speed up: don't consider the non `#define' lines.
7701 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7702 # Work around the forget-to-reset-the-flag bug.
7703 echo 't clr' >>$CONFIG_STATUS
7704 echo ': clr' >>$CONFIG_STATUS
7705 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7707 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7711 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7712 rm -f conftest.defines
7713 mv conftest.tail conftest.defines
7715 rm -f conftest.defines
7716 echo ' fi # grep' >>$CONFIG_STATUS
7717 echo >>$CONFIG_STATUS
7719 # Break up conftest.undefs because some shells have a limit on the size
7720 # of here documents, and old seds have small limits too (100 cmds).
7721 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7723 while grep . conftest.undefs >/dev/null
7725 # Write a limited-size here document to $tmp/undefs.sed.
7726 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7727 # Speed up: don't consider the non `#undef'
7728 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7729 # Work around the forget-to-reset-the-flag bug.
7730 echo 't clr' >>$CONFIG_STATUS
7731 echo ': clr' >>$CONFIG_STATUS
7732 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7734 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7738 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7739 rm -f conftest.undefs
7740 mv conftest.tail conftest.undefs
7742 rm -f conftest.undefs
7744 cat >>$CONFIG_STATUS <<\_ACEOF
7745 # Let's still pretend it is `configure' which instantiates (i.e., don't
7746 # use $as_me), people would be surprised to read:
7747 # /* config.h. Generated by config.status. */
7748 if test x"$ac_file" = x-; then
7749 echo "/* Generated by configure. */" >$tmp/config.h
7751 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7753 cat $tmp/in >>$tmp/config.h
7755 if test x"$ac_file" != x-; then
7756 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7757 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7758 echo "$as_me: $ac_file is unchanged" >&6;}
7760 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7761 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7762 X"$ac_file" : 'X\(//\)[^/]' \| \
7763 X"$ac_file" : 'X\(//\)$' \| \
7764 X"$ac_file" : 'X\(/\)' \| \
7765 . : '\(.\)' 2>/dev/null ||
7767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7768 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7769 /^X\(\/\/\)$/{ s//\1/; q; }
7770 /^X\(\/\).*/{ s//\1/; q; }
7772 { if $as_mkdir_p; then
7777 while test ! -d "$as_dir"; do
7778 as_dirs="$as_dir $as_dirs"
7779 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7780 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7781 X"$as_dir" : 'X\(//\)[^/]' \| \
7782 X"$as_dir" : 'X\(//\)$' \| \
7783 X"$as_dir" : 'X\(/\)' \| \
7784 . : '\(.\)' 2>/dev/null ||
7786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7787 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7788 /^X\(\/\/\)$/{ s//\1/; q; }
7789 /^X\(\/\).*/{ s//\1/; q; }
7792 test ! -n "$as_dirs" || mkdir $as_dirs
7793 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7794 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7795 { (exit 1); exit 1; }; }; }
7798 mv $tmp/config.h $ac_file
7806 cat >>$CONFIG_STATUS <<\_ACEOF
7809 # CONFIG_COMMANDS section.
7811 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7812 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7813 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7814 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7815 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7816 X"$ac_dest" : 'X\(//\)[^/]' \| \
7817 X"$ac_dest" : 'X\(//\)$' \| \
7818 X"$ac_dest" : 'X\(/\)' \| \
7819 . : '\(.\)' 2>/dev/null ||
7821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7822 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7823 /^X\(\/\/\)$/{ s//\1/; q; }
7824 /^X\(\/\).*/{ s//\1/; q; }
7828 if test "$ac_dir" != .; then
7829 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7830 # A "../" for each directory in $ac_dir_suffix.
7831 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7833 ac_dir_suffix= ac_top_builddir=
7837 .) # No --srcdir option. We are building in place.
7839 if test -z "$ac_top_builddir"; then
7842 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7844 [\\/]* | ?:[\\/]* ) # Absolute path.
7845 ac_srcdir=$srcdir$ac_dir_suffix;
7846 ac_top_srcdir=$srcdir ;;
7848 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7849 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7851 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7853 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7854 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7855 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7856 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7859 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7860 echo "$as_me: executing $ac_dest commands" >&6;}
7863 case $CONFIG_FILES in *config.make*)
7864 echo "$config_vars" >> config.make;;
7866 test -d bits || mkdir bits ;;
7871 cat >>$CONFIG_STATUS <<\_ACEOF
7873 { (exit 0); exit 0; }
7875 chmod +x $CONFIG_STATUS
7876 ac_clean_files=$ac_clean_files_save
7879 # configure is writing to config.log, and then calls config.status.
7880 # config.status does its own redirection, appending to config.log.
7881 # Unfortunately, on DOS this fails, as config.log is still kept open
7882 # by configure, so config.status won't be able to write to it; its
7883 # output is simply discarded. So we exec the FD to /dev/null,
7884 # effectively closing config.log, so it can be properly (re)opened and
7885 # appended to by config.status. When coming back to configure, we
7886 # need to make the FD available again.
7887 if test "$no_create" != yes; then
7889 ac_config_status_args=
7890 test "$silent" = yes &&
7891 ac_config_status_args="$ac_config_status_args --quiet"
7893 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7895 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7896 # would make configure fail if this is the last instruction.
7897 $ac_cs_success || { (exit 1); exit 1; }
7901 # CONFIG_SUBDIRS section.
7903 if test "$no_recursion" != yes; then
7905 # Remove --cache-file and --srcdir arguments so they do not pile up.
7906 ac_sub_configure_args=
7908 for ac_arg in $ac_configure_args; do
7909 if test -n "$ac_prev"; then
7914 -cache-file | --cache-file | --cache-fil | --cache-fi \
7915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7916 ac_prev=cache_file ;;
7917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7921 --config-cache | -C)
7923 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7925 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7927 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7929 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7931 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7935 # Always prepend --prefix to ensure using the same prefix
7936 # in subdir configurations.
7937 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7940 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7942 # Do not complain, so a configure script can configure whichever
7943 # parts of a large source tree are present.
7944 test -d $srcdir/$ac_dir || continue
7946 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7947 echo "$as_me: configuring in $ac_dir" >&6;}
7948 { if $as_mkdir_p; then
7953 while test ! -d "$as_dir"; do
7954 as_dirs="$as_dir $as_dirs"
7955 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7956 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7957 X"$as_dir" : 'X\(//\)[^/]' \| \
7958 X"$as_dir" : 'X\(//\)$' \| \
7959 X"$as_dir" : 'X\(/\)' \| \
7960 . : '\(.\)' 2>/dev/null ||
7962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7963 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7964 /^X\(\/\/\)$/{ s//\1/; q; }
7965 /^X\(\/\).*/{ s//\1/; q; }
7968 test ! -n "$as_dirs" || mkdir $as_dirs
7969 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7970 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7971 { (exit 1); exit 1; }; }; }
7975 if test "$ac_dir" != .; then
7976 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7977 # A "../" for each directory in $ac_dir_suffix.
7978 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7980 ac_dir_suffix= ac_top_builddir=
7984 .) # No --srcdir option. We are building in place.
7986 if test -z "$ac_top_builddir"; then
7989 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7991 [\\/]* | ?:[\\/]* ) # Absolute path.
7992 ac_srcdir=$srcdir$ac_dir_suffix;
7993 ac_top_srcdir=$srcdir ;;
7995 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7996 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7998 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8000 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8001 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8002 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8003 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8008 # Check for guested configure; otherwise get Cygnus style configure.
8009 if test -f $ac_srcdir/configure.gnu; then
8010 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8011 elif test -f $ac_srcdir/configure; then
8012 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8013 elif test -f $ac_srcdir/configure.in; then
8014 ac_sub_configure=$ac_configure
8016 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8017 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8021 # The recursion is here.
8022 if test -n "$ac_sub_configure"; then
8023 # Make the cache file name correct relative to the subdirectory.
8025 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8027 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
8030 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8031 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8032 # The eval makes quoting arguments work.
8033 eval $ac_sub_configure $ac_sub_configure_args \
8034 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8035 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8036 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8037 { (exit 1); exit 1; }; }