2 # From configure.in CVSid.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for GNU C Library (see version.h).
6 # Report bugs to <glibc>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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
224 test -d ./-p && rmdir ./-p
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
263 SHELL=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
271 PACKAGE_NAME='GNU C Library'
272 PACKAGE_TARNAME='c-library'
273 PACKAGE_VERSION='(see version.h)'
274 PACKAGE_STRING='GNU C Library (see version.h)'
275 PACKAGE_BUGREPORT='glibc'
277 ac_unique_file="include/features.h"
278 ac_subdirs_all="$ac_subdirs_all "
279 # Factoring default headers for most tests.
280 ac_includes_default="\
283 # include <sys/types.h>
286 # include <sys/stat.h>
297 # if !STDC_HEADERS && HAVE_MEMORY_H
303 # include <strings.h>
306 # include <inttypes.h>
316 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 bindnow force_install all_warnings build build_cpu build_vendor build_os host host_cpu host_vendor host_os subdirs add_ons base_machine sysnames INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT BUILD_CC cross_compiling CPP CXX CXXFLAGS ac_ct_CXX AR OBJDUMP RANLIB ac_ct_RANLIB MIG AS LD PWD_P MAKE MSGFMT MAKEINFO SED AUTOCONF SYSINCLUDES libc_cv_gcc_static_libgcc BASH libc_cv_have_bash2 KSH libc_cv_have_ksh AWK PERL INSTALL_INFO BISON VERSIONING libc_cv_asm_protected_directive libc_cv_initfinit_array libc_cv_cc_with_libunwind libc_cv_z_nodelete libc_cv_z_nodlopen libc_cv_z_initfirst libc_cv_z_relro libc_cv_Bgroup libc_cv_libgcc_s_suffix libc_cv_as_needed ASFLAGS_config libc_cv_z_combreloc libc_cv_z_execstack libc_cv_fpie fno_unit_at_a_time 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 libc_cv_forced_unwind 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'
319 # Initialize some variables set by options.
321 ac_init_version=false
322 # The variables have the same names as the options, with
323 # dashes changed to underlines.
331 program_transform_name=s,x,x,
339 # Installation directory options.
340 # These are left unexpanded so users can "make install exec_prefix=/foo"
341 # and all the variables that are supposed to be based on exec_prefix
342 # by default will actually change.
343 # Use braces instead of parens because sh, perl, etc. also accept them.
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
369 # Accept the important Cygnus configure options, so we can diagnose typos.
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
391 cache_file=config.cache ;;
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397 datadir=$ac_optarg ;;
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
419 eval "enable_$ac_feature='$ac_optarg'" ;;
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
434 -help | --help | --hel | --he | -h)
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
458 -libdir | --libdir | --libdi | --libd)
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
485 # Obsolete; use --without-fp.
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549 sbindir=$ac_optarg ;;
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560 sharedstatedir=$ac_optarg ;;
562 -site | --site | --sit)
564 -site=* | --site=* | --sit=*)
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
587 -version | --version | --versio | --versi | --vers | -V)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
601 eval "with_$ac_package='$ac_optarg'" ;;
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
613 # Obsolete; use --with-x.
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631 Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
656 if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
665 eval ac_val=$`echo $ac_var`
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
673 # Be sure to have absolute paths.
674 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
677 eval ac_val=$`echo $ac_var`
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
685 # There might be people who depend on the old broken behavior: `$host'
686 # used to hold the argument of --host etc.
687 # FIXME: To remove some day.
692 # FIXME: To remove some day.
693 if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
706 test "$silent" = yes && exec 6>/dev/null
709 # Find the source files, if location was not specified.
710 if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
726 if test ! -r $srcdir/$ac_unique_file; then
730 ac_srcdir_defaulted=no
732 if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
741 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745 ac_env_build_alias_set=${build_alias+set}
746 ac_env_build_alias_value=$build_alias
747 ac_cv_env_build_alias_set=${build_alias+set}
748 ac_cv_env_build_alias_value=$build_alias
749 ac_env_host_alias_set=${host_alias+set}
750 ac_env_host_alias_value=$host_alias
751 ac_cv_env_host_alias_set=${host_alias+set}
752 ac_cv_env_host_alias_value=$host_alias
753 ac_env_target_alias_set=${target_alias+set}
754 ac_env_target_alias_value=$target_alias
755 ac_cv_env_target_alias_set=${target_alias+set}
756 ac_cv_env_target_alias_value=$target_alias
757 ac_env_CC_set=${CC+set}
759 ac_cv_env_CC_set=${CC+set}
760 ac_cv_env_CC_value=$CC
761 ac_env_CFLAGS_set=${CFLAGS+set}
762 ac_env_CFLAGS_value=$CFLAGS
763 ac_cv_env_CFLAGS_set=${CFLAGS+set}
764 ac_cv_env_CFLAGS_value=$CFLAGS
765 ac_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_env_LDFLAGS_value=$LDFLAGS
767 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_cv_env_LDFLAGS_value=$LDFLAGS
769 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_env_CPPFLAGS_value=$CPPFLAGS
771 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
777 ac_env_CXX_set=${CXX+set}
778 ac_env_CXX_value=$CXX
779 ac_cv_env_CXX_set=${CXX+set}
780 ac_cv_env_CXX_value=$CXX
781 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782 ac_env_CXXFLAGS_value=$CXXFLAGS
783 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
787 # Report the --help message.
789 if test "$ac_init_help" = "long"; then
790 # Omit some internal or obsolete options to make the list less imposing.
791 # This message is too long to be a string in the A/UX 3.1 sh.
793 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
795 Usage: $0 [OPTION]... [VAR=VALUE]...
797 To assign environment variables (e.g., CC, CFLAGS...), specify them as
798 VAR=VALUE. See below for descriptions of some of the useful variables.
800 Defaults for the options are specified in brackets.
803 -h, --help display this help and exit
804 --help=short display options specific to this package
805 --help=recursive display the short help of all the included packages
806 -V, --version display version information and exit
807 -q, --quiet, --silent do not print \`checking...' messages
808 --cache-file=FILE cache test results in FILE [disabled]
809 -C, --config-cache alias for \`--cache-file=config.cache'
810 -n, --no-create do not create output files
811 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816 Installation directories:
817 --prefix=PREFIX install architecture-independent files in PREFIX
819 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
822 By default, \`make install' will install all the files in
823 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
824 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
825 for instance \`--prefix=\$HOME'.
827 For better control, use the options below.
829 Fine tuning of the installation directories:
830 --bindir=DIR user executables [EPREFIX/bin]
831 --sbindir=DIR system admin executables [EPREFIX/sbin]
832 --libexecdir=DIR program executables [EPREFIX/libexec]
833 --datadir=DIR read-only architecture-independent data [PREFIX/share]
834 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
835 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
836 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
837 --libdir=DIR object code libraries [EPREFIX/lib]
838 --includedir=DIR C header files [PREFIX/include]
839 --oldincludedir=DIR C header files for non-gcc [/usr/include]
840 --infodir=DIR info documentation [PREFIX/info]
841 --mandir=DIR man documentation [PREFIX/man]
847 --build=BUILD configure for building on BUILD [guessed]
848 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 if test -n "$ac_init_help"; then
853 case $ac_init_help in
854 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
861 --disable-sanity-checks really do not use threads (should not be used except
862 in special situations) [default=yes]
863 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
865 --enable-shared build shared library [default=yes if GNU ld &
867 --enable-profile build profiled library [default=yes]
868 --enable-omitfp build undebuggable optimized library
870 --enable-bounded build with runtime bounds checking
872 --disable-versioning do not include versioning information in the library
873 objects [default=yes if supported]
874 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
875 [default=glibc default]
876 --enable-add-ons[=DIRS...]
877 configure and build add-ons in DIR1,DIR2,... search
878 for add-ons if no parameter given
879 --disable-hidden-plt do not hide internal function calls to avoid PLT
880 --enable-bind-now disable lazy relocations in DSOs
881 --enable-static-nss build static NSS modules [default=no]
882 --disable-force-install don't force installation of files from this package,
883 even if they are older than the installed files
884 --enable-kernel=VERSION compile for compatibility with kernel not older than
886 --enable-all-warnings enable all useful warnings gcc can issue
889 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
890 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
891 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)
892 --with-gd=DIR find libgd include dir and library with prefix DIR
893 --with-gd-include=DIR find libgd include files in DIR
894 --with-gd-lib=DIR find libgd library files in DIR
895 --with-fp if using floating-point hardware [default=yes]
896 --with-binutils=PATH specify location of binutils (as and ld)
897 --with-elf if using the ELF object format
898 --with-xcoff if using the XCOFF object format
899 --without-cvs if CVS should not be used
900 --with-headers=PATH location of system headers to use (for example
901 /usr/src/linux/include) [default=compiler
903 --with-tls enable support for TLS
904 --without-__thread do not use TLS features even when supporting them
906 Some influential environment variables:
907 CC C compiler command
908 CFLAGS C compiler flags
909 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
910 nonstandard directory <lib dir>
911 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
912 headers in a nonstandard directory <include dir>
914 CXX C++ compiler command
915 CXXFLAGS C++ compiler flags
917 Use these variables to override the choices made by `configure' or to help
918 it to find libraries and programs with nonstandard names/locations.
920 Report bugs to <glibc>.
924 if test "$ac_init_help" = "recursive"; then
925 # If there are subdirs, report their specific --help.
927 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
928 test -d $ac_dir || continue
931 if test "$ac_dir" != .; then
932 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
933 # A "../" for each directory in $ac_dir_suffix.
934 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
936 ac_dir_suffix= ac_top_builddir=
940 .) # No --srcdir option. We are building in place.
942 if test -z "$ac_top_builddir"; then
945 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
947 [\\/]* | ?:[\\/]* ) # Absolute path.
948 ac_srcdir=$srcdir$ac_dir_suffix;
949 ac_top_srcdir=$srcdir ;;
951 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
952 ac_top_srcdir=$ac_top_builddir$srcdir ;;
955 # Do not use `cd foo && pwd` to compute absolute paths, because
956 # the directories may not exist.
958 .) ac_abs_builddir="$ac_dir";;
961 .) ac_abs_builddir=`pwd`;;
962 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
963 *) ac_abs_builddir=`pwd`/"$ac_dir";;
966 case $ac_abs_builddir in
967 .) ac_abs_top_builddir=${ac_top_builddir}.;;
969 case ${ac_top_builddir}. in
970 .) ac_abs_top_builddir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
972 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
975 case $ac_abs_builddir in
976 .) ac_abs_srcdir=$ac_srcdir;;
979 .) ac_abs_srcdir=$ac_abs_builddir;;
980 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
981 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
984 case $ac_abs_builddir in
985 .) ac_abs_top_srcdir=$ac_top_srcdir;;
987 case $ac_top_srcdir in
988 .) ac_abs_top_srcdir=$ac_abs_builddir;;
989 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
990 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
995 # Check for guested configure; otherwise get Cygnus style configure.
996 if test -f $ac_srcdir/configure.gnu; then
998 $SHELL $ac_srcdir/configure.gnu --help=recursive
999 elif test -f $ac_srcdir/configure; then
1001 $SHELL $ac_srcdir/configure --help=recursive
1002 elif test -f $ac_srcdir/configure.ac ||
1003 test -f $ac_srcdir/configure.in; then
1005 $ac_configure --help
1007 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1013 test -n "$ac_init_help" && exit 0
1014 if $ac_init_version; then
1016 GNU C Library configure (see version.h)
1017 generated by GNU Autoconf 2.59
1019 Copyright (C) 2003 Free Software Foundation, Inc.
1020 This configure script is free software; the Free Software Foundation
1021 gives unlimited permission to copy, distribute and modify it.
1027 This file contains any messages produced by compilers while
1028 running configure, to aid debugging if configure makes a mistake.
1030 It was created by GNU C Library $as_me (see version.h), which was
1031 generated by GNU Autoconf 2.59. Invocation command line was
1042 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1043 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1044 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1045 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1046 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1048 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1049 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1051 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1052 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1053 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1054 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1055 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1056 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1057 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1065 test -z "$as_dir" && as_dir=.
1066 echo "PATH: $as_dir"
1081 # Keep a trace of the command line.
1082 # Strip out --no-create and --no-recursion so they do not pile up.
1083 # Strip out --silent because we don't want to record it for future runs.
1084 # Also quote any args containing shell meta-characters.
1085 # Make two passes to allow for proper duplicate-argument suppression.
1090 ac_must_keep_next=false
1096 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1100 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1101 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1104 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1106 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1107 if test $ac_must_keep_next = true; then
1108 ac_must_keep_next=false # Got value, back to normal.
1111 *=* | --config-cache | -C | -disable-* | --disable-* \
1112 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1113 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1114 | -with-* | --with-* | -without-* | --without-* | --x)
1115 case "$ac_configure_args0 " in
1116 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1119 -* ) ac_must_keep_next=true ;;
1122 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1123 # Get rid of the leading space.
1129 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1130 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1132 # When interrupted or exit'd, cleanup temporary files, and complete
1133 # config.log. We remove comments because anyway the quotes in there
1134 # would cause problems or look ugly.
1135 # WARNING: Be sure not to use single quotes in there, as some shells,
1136 # such as our DU 5.0 friend, will then `close' the trap.
1137 trap 'exit_status=$?
1138 # Save into config.log some information that might help in debugging.
1143 ## ---------------- ##
1144 ## Cache variables. ##
1145 ## ---------------- ##
1148 # The following way of writing the cache mishandles newlines in values,
1151 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1154 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1155 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1159 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1166 ## ----------------- ##
1167 ## Output variables. ##
1168 ## ----------------- ##
1171 for ac_var in $ac_subst_vars
1173 eval ac_val=$`echo $ac_var`
1174 echo "$ac_var='"'"'$ac_val'"'"'"
1178 if test -n "$ac_subst_files"; then
1185 for ac_var in $ac_subst_files
1187 eval ac_val=$`echo $ac_var`
1188 echo "$ac_var='"'"'$ac_val'"'"'"
1193 if test -s confdefs.h; then
1200 sed "/^$/d" confdefs.h | sort
1203 test "$ac_signal" != 0 &&
1204 echo "$as_me: caught signal $ac_signal"
1205 echo "$as_me: exit $exit_status"
1207 rm -f core *.core &&
1208 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1211 for ac_signal in 1 2 13 15; do
1212 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1216 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1217 rm -rf conftest* confdefs.h
1218 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1221 # Predefined preprocessor variables.
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_NAME "$PACKAGE_NAME"
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_STRING "$PACKAGE_STRING"
1243 cat >>confdefs.h <<_ACEOF
1244 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1248 # Let the site file select an alternate cache file if it wants to.
1249 # Prefer explicitly selected file to automatically selected ones.
1250 if test -z "$CONFIG_SITE"; then
1251 if test "x$prefix" != xNONE; then
1252 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1254 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1257 for ac_site_file in $CONFIG_SITE; do
1258 if test -r "$ac_site_file"; then
1259 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1260 echo "$as_me: loading site script $ac_site_file" >&6;}
1261 sed 's/^/| /' "$ac_site_file" >&5
1266 if test -r "$cache_file"; then
1267 # Some versions of bash will fail to source /dev/null (special
1268 # files actually), so we avoid doing that.
1269 if test -f "$cache_file"; then
1270 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1271 echo "$as_me: loading cache $cache_file" >&6;}
1273 [\\/]* | ?:[\\/]* ) . $cache_file;;
1274 *) . ./$cache_file;;
1278 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1279 echo "$as_me: creating cache $cache_file" >&6;}
1283 # Check that the precious variables saved in the cache have kept the same
1285 ac_cache_corrupted=false
1286 for ac_var in `(set) 2>&1 |
1287 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1288 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1289 eval ac_new_set=\$ac_env_${ac_var}_set
1290 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1291 eval ac_new_val="\$ac_env_${ac_var}_value"
1292 case $ac_old_set,$ac_new_set in
1294 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1295 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1296 ac_cache_corrupted=: ;;
1298 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1299 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1300 ac_cache_corrupted=: ;;
1303 if test "x$ac_old_val" != "x$ac_new_val"; then
1304 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1305 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1306 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1307 echo "$as_me: former value: $ac_old_val" >&2;}
1308 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1309 echo "$as_me: current value: $ac_new_val" >&2;}
1310 ac_cache_corrupted=:
1313 # Pass precious variables to config.status.
1314 if test "$ac_new_set" = set; then
1316 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1317 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1318 *) ac_arg=$ac_var=$ac_new_val ;;
1320 case " $ac_configure_args " in
1321 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1322 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1326 if $ac_cache_corrupted; then
1327 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1328 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1329 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1330 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1331 { (exit 1); exit 1; }; }
1335 ac_cpp='$CPP $CPPFLAGS'
1336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1367 ac_config_headers="$ac_config_headers config.h"
1370 for ac_dir in scripts $srcdir/scripts; do
1371 if test -f $ac_dir/install-sh; then
1373 ac_install_sh="$ac_aux_dir/install-sh -c"
1375 elif test -f $ac_dir/install.sh; then
1377 ac_install_sh="$ac_aux_dir/install.sh -c"
1379 elif test -f $ac_dir/shtool; then
1381 ac_install_sh="$ac_aux_dir/shtool install -c"
1385 if test -z "$ac_aux_dir"; then
1386 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&5
1387 echo "$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&2;}
1388 { (exit 1); exit 1; }; }
1390 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1391 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1392 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1395 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
1396 { { echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
1397 echo "$as_me: error: you must configure in a separate build directory" >&2;}
1398 { (exit 1); exit 1; }; }
1401 # This will get text that should go into config.make.
1404 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
1406 # Check whether --with-gmp or --without-gmp was given.
1407 if test "${with_gmp+set}" = set; then
1411 yes) { { echo "$as_me:$LINENO: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&5
1412 echo "$as_me: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&2;}
1413 { (exit 1); exit 1; }; } ;;
1415 *) config_vars="$config_vars
1416 gmp-srcdir = $withval" ;;
1420 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
1422 # Check whether --with-gd or --without-gd was given.
1423 if test "${with_gd+set}" = set; then
1427 *) libgd_include="-I$withval/include"
1428 libgd_ldflags="-L$withval/lib" ;;
1433 # Check whether --with-gd-include or --without-gd-include was given.
1434 if test "${with_gd_include+set}" = set; then
1435 withval="$with_gd_include"
1436 case "$with_gd_include" in
1438 *) libgd_include="-I$withval" ;;
1443 # Check whether --with-gd-lib or --without-gd-lib was given.
1444 if test "${with_gd_lib+set}" = set; then
1445 withval="$with_gd_lib"
1446 case "$with_gd_lib" in
1448 *) libgd_ldflags="-L$withval" ;;
1453 if test -n "$libgd_include"; then
1454 config_vars="$config_vars
1455 CFLAGS-memusagestat.c = $libgd_include"
1457 if test -n "$libgd_ldflags"; then
1458 config_vars="$config_vars
1459 libgd-LDFLAGS = $libgd_ldflags"
1463 # Check whether --with-fp or --without-fp was given.
1464 if test "${with_fp+set}" = set; then
1472 # Check whether --with-binutils or --without-binutils was given.
1473 if test "${with_binutils+set}" = set; then
1474 withval="$with_binutils"
1475 path_binutils=$withval
1480 # Check whether --with-elf or --without-elf was given.
1481 if test "${with_elf+set}" = set; then
1488 # Check whether --with-xcoff or --without-xcoff was given.
1489 if test "${with_xcoff+set}" = set; then
1490 withval="$with_xcoff"
1496 # Check whether --with-cvs or --without-cvs was given.
1497 if test "${with_cvs+set}" = set; then
1503 if test "$with_cvs" = yes; then
1504 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
1512 # Check whether --with-headers or --without-headers was given.
1513 if test "${with_headers+set}" = set; then
1514 withval="$with_headers"
1520 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
1521 if test "${enable_sanity_checks+set}" = set; then
1522 enableval="$enable_sanity_checks"
1523 enable_sanity=$enableval
1529 # Check whether --enable-check-abi or --disable-check-abi was given.
1530 if test "${enable_check_abi+set}" = set; then
1531 enableval="$enable_check_abi"
1532 enable_check_abi=$enableval
1538 # Check whether --enable-shared or --disable-shared was given.
1539 if test "${enable_shared+set}" = set; then
1540 enableval="$enable_shared"
1545 # Check whether --enable-profile or --disable-profile was given.
1546 if test "${enable_profile+set}" = set; then
1547 enableval="$enable_profile"
1552 # Check whether --enable-omitfp or --disable-omitfp was given.
1553 if test "${enable_omitfp+set}" = set; then
1554 enableval="$enable_omitfp"
1559 # Check whether --enable-bounded or --disable-bounded was given.
1560 if test "${enable_bounded+set}" = set; then
1561 enableval="$enable_bounded"
1566 # Check whether --enable-versioning or --disable-versioning was given.
1567 if test "${enable_versioning+set}" = set; then
1568 enableval="$enable_versioning"
1569 enable_versioning=$enableval
1571 enable_versioning=yes
1574 # Check whether --enable-oldest-abi or --disable-oldest-abi was given.
1575 if test "${enable_oldest_abi+set}" = set; then
1576 enableval="$enable_oldest_abi"
1577 oldest_abi=$enableval
1581 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
1584 cat >>confdefs.h <<_ACEOF
1585 #define GLIBC_OLDEST_ABI "$oldest_abi"
1591 # Check whether --enable-add-ons or --disable-add-ons was given.
1592 if test "${enable_add_ons+set}" = set; then
1593 enableval="$enable_add_ons"
1594 case "$enableval" in
1595 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
1596 add_ons_automatic=yes
1597 test "$add_ons" = "*" && add_ons= ;;
1598 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`
1599 add_ons_automatic=no ;;
1602 add_ons= add_ons_automatic=no
1606 # Check whether --with-tls or --without-tls was given.
1607 if test "${with_tls+set}" = set; then
1615 # Check whether --with-__thread or --without-__thread was given.
1616 if test "${with___thread+set}" = set; then
1617 withval="$with___thread"
1618 use__thread=$withval
1623 # Check whether --enable-hidden-plt or --disable-hidden-plt was given.
1624 if test "${enable_hidden_plt+set}" = set; then
1625 enableval="$enable_hidden_plt"
1630 if test "x$hidden" = xno; then
1631 cat >>confdefs.h <<\_ACEOF
1637 # Check whether --enable-bind-now or --disable-bind-now was given.
1638 if test "${enable_bind_now+set}" = set; then
1639 enableval="$enable_bind_now"
1646 # Check whether --enable-static-nss or --disable-static-nss was given.
1647 if test "${enable_static_nss+set}" = set; then
1648 enableval="$enable_static_nss"
1649 static_nss=$enableval
1653 if test x"$static_nss" = xyes || test x"$shared" = xno; then
1655 cat >>confdefs.h <<\_ACEOF
1656 #define DO_STATIC_NSS 1
1661 # Check whether --enable-force-install or --disable-force-install was given.
1662 if test "${enable_force_install+set}" = set; then
1663 enableval="$enable_force_install"
1664 force_install=$enableval
1670 # Check whether --enable-kernel or --disable-kernel was given.
1671 if test "${enable_kernel+set}" = set; then
1672 enableval="$enable_kernel"
1673 minimum_kernel=$enableval
1675 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
1676 # Better nothing than this.
1679 if test "$minimum_kernel" = current; then
1680 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
1684 # Check whether --enable-all-warnings or --disable-all-warnings was given.
1685 if test "${enable_all_warnings+set}" = set; then
1686 enableval="$enable_all_warnings"
1687 all_warnings=$enableval
1691 # Make sure we can run config.sub.
1692 $ac_config_sub sun4 >/dev/null 2>&1 ||
1693 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1694 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1695 { (exit 1); exit 1; }; }
1697 echo "$as_me:$LINENO: checking build system type" >&5
1698 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1699 if test "${ac_cv_build+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 ac_cv_build_alias=$build_alias
1703 test -z "$ac_cv_build_alias" &&
1704 ac_cv_build_alias=`$ac_config_guess`
1705 test -z "$ac_cv_build_alias" &&
1706 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1707 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1708 { (exit 1); exit 1; }; }
1709 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1710 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1711 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1712 { (exit 1); exit 1; }; }
1715 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1716 echo "${ECHO_T}$ac_cv_build" >&6
1718 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1719 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1720 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1723 echo "$as_me:$LINENO: checking host system type" >&5
1724 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1725 if test "${ac_cv_host+set}" = set; then
1726 echo $ECHO_N "(cached) $ECHO_C" >&6
1728 ac_cv_host_alias=$host_alias
1729 test -z "$ac_cv_host_alias" &&
1730 ac_cv_host_alias=$ac_cv_build_alias
1731 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1732 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1733 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1734 { (exit 1); exit 1; }; }
1737 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1738 echo "${ECHO_T}$ac_cv_host" >&6
1740 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1741 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1742 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1746 # The way shlib-versions is used to generate soversions.mk uses a
1747 # fairly simplistic model for name recognition that can't distinguish
1748 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
1749 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
1750 # tell. This doesn't get used much beyond that, so it's fairly safe.
1755 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
1759 # We keep the original values in `$config_*' and never modify them, so we
1760 # can write them unchanged into config.make. Everything else uses
1761 # $machine, $vendor, and $os, and changes them whenever convenient.
1762 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
1764 # Don't allow vendor == "unknown"
1765 test "$config_vendor" = unknown && config_vendor=
1766 config_os="`echo $config_os | sed 's/^unknown-//'`"
1768 # Some configurations imply other options.
1770 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
1771 # These systems always use GNU tools.
1772 gnu_ld=yes gnu_as=yes ;;
1775 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
1776 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
1778 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
1779 # These systems (almost) always use the ELF format.
1783 # These systems are always xcoff
1789 # The configure fragment of an add-on port can modify these to supplement
1790 # or override the table in the case statement below. No fragment should
1791 # ever change the config_* variables, however.
1792 machine=$config_machine
1793 vendor=$config_vendor
1796 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
1798 if test "$machine" = rs6000; then
1802 # Braindead PowerPC box with absolutely no FPU.
1803 case "$machine-$host_os" in
1810 # An add-on can set this when it the tuple to disable the sanity check below.
1820 if test x"$add_ons" != x; then
1821 for f in $add_ons; do
1822 # Some sanity checks
1825 { { echo "$as_me:$LINENO: error:
1826 *** It seems that you're using an old \`crypt' add-on. crypt is now
1827 *** part of glibc and using the old add-on will not work with this
1828 *** release. Start again with fresh sources and without the old
1829 *** \`crypt' add-on." >&5
1830 echo "$as_me: error:
1831 *** It seems that you're using an old \`crypt' add-on. crypt is now
1832 *** part of glibc and using the old add-on will not work with this
1833 *** release. Start again with fresh sources and without the old
1834 *** \`crypt' add-on." >&2;}
1835 { (exit 1); exit 1; }; }
1838 { { echo "$as_me:$LINENO: error:
1839 *** It seems that you're using an old \`localedata' add-on. localedata
1840 *** is now part of glibc and using the old add-on will not work with
1841 *** this release. Start again with fresh sources and without the old
1842 *** \`localedata' add-on." >&5
1843 echo "$as_me: error:
1844 *** It seems that you're using an old \`localedata' add-on. localedata
1845 *** is now part of glibc and using the old add-on will not work with
1846 *** this release. Start again with fresh sources and without the old
1847 *** \`localedata' add-on." >&2;}
1848 { (exit 1); exit 1; }; }
1852 # Test whether such a subdir really exists.
1853 if test -d $srcdir/$f; then
1854 add_ons_pfx="$add_ons_pfx $f/"
1855 add_ons_sfx="$add_ons_sfx /$f"
1857 { { echo "$as_me:$LINENO: error: add-on directory \"$f\" does not exist" >&5
1858 echo "$as_me: error: add-on directory \"$f\" does not exist" >&2;}
1859 { (exit 1); exit 1; }; }
1863 # Now source each add-on's configure fragment.
1864 # The fragments can use $srcdir/$libc_add_on to find themselves,
1865 # and test $add_ons_automatic to see if they were explicitly requested.
1866 # A fragment can clear (or even change) $libc_add_on to affect
1867 # whether it goes into the list to be actually used in the build.
1869 for libc_add_on in $add_ons; do
1870 libc_add_on_frag=$srcdir/$libc_add_on/configure
1871 if test -r $libc_add_on_frag; then
1872 echo "$as_me:$LINENO: result: running configure fragment for add-on $libc_add_on" >&5
1873 echo "${ECHO_T}running configure fragment for add-on $libc_add_on" >&6
1876 { echo "$as_me:$LINENO: WARNING: add-on fragment $libc_add_on_frag missing" >&5
1877 echo "$as_me: WARNING: add-on fragment $libc_add_on_frag missing" >&2;}
1879 use_add_ons="$use_add_ons $libc_add_on"
1881 # Use echo to strip excess whitespace.
1882 add_ons="`echo $use_add_ons`"
1888 ### I put this here to prevent those annoying emails from people who cannot
1889 ### read and try to compile glibc on unsupported platforms. --drepper
1891 ### By using the undocumented --enable-hacker-mode option for configure
1892 ### one can skip this test to make the configuration not fail for unsupported
1895 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
1896 case "$machine-$host_os" in
1897 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
1900 echo "*** The GNU C library is currently not available for this platform."
1901 echo "*** So far nobody cared to port it and if there is no volunteer it"
1902 echo "*** might never happen. So, if you have interest to see glibc on"
1903 echo "*** this platform visit"
1904 echo "*** http://www.gnu.org/software/libc/porting.html"
1905 echo "*** and join the group of porters"
1911 # Expand the configuration machine name into a subdirectory by architecture
1912 # type and particular chip. If an add-on configure fragment already set
1913 # base_machine, we don't change it.
1914 test -n "$base_machine" || case "$machine" in
1915 a29k | am29000) base_machine=a29k machine=a29k ;;
1916 alpha*) base_machine=alpha machine=alpha/$machine ;;
1917 arm*) base_machine=arm machine=arm/arm32/$machine ;;
1918 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
1919 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
1920 hppa*64*) base_machine=hppa machine=hppa/hppa64 ;;
1921 hppa*) base_machine=hppa machine=hppa/hppa1.1 ;;
1922 i[34567]86) base_machine=i386 machine=i386/$machine ;;
1923 ia64) base_machine=ia64 machine=ia64 ;;
1924 m680?0) base_machine=m68k machine=m68k/$machine ;;
1925 m68k) base_machine=m68k machine=m68k/m68020 ;;
1926 m88???) base_machine=m88k machine=m88k/$machine ;;
1927 m88k) base_machine=m88k machine=m88k/m88100 ;;
1928 mips64*) base_machine=mips64
1929 case "$CC $CFLAGS $CPPFLAGS " in
1930 *" -mabi=n32 "*) mips_cc_abi=n32 ;;
1931 *" -mabi=64 "*|*" -mabi=n64 "*) mips_cc_abi=64 ;;
1932 *" -mabi=32 "*|*" -mabi=o32 "*) mips_cc_abi=32 ;;
1933 *) mips_cc_abi=default ;;
1936 *abin32*) mips_config_abi=n32 ;;
1937 *abi64*|*abin64*) mips_config_abi=64 ;;
1938 *abi32*|*abio32*) mips_config_abi=32 ;;
1939 *) mips_config_abi=$mips_cc_abi ;;
1941 case $mips_config_abi in
1942 default) machine=mips/mips64/n32 mips_config_abi=n32 ;;
1943 n32) machine=mips/mips64/n32 ;;
1944 64) machine=mips/mips64/n64 ;;
1945 32) machine=mips/mips32/kern64 ;;
1947 machine=$machine/$config_machine
1948 if test $mips_config_abi != $mips_cc_abi; then
1949 # This won't make it to config.make, but we want to
1950 # set this in case configure tests depend on it.
1951 CPPFLAGS="$CPPFLAGS -mabi=$mips_config_abi"
1954 mips*) base_machine=mips machine=mips/mips32/$machine ;;
1955 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
1956 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
1957 s390) base_machine=s390 machine=s390/s390-32 ;;
1958 s390x) base_machine=s390 machine=s390/s390-64 ;;
1959 sh3*) base_machine=sh machine=sh/sh3 ;;
1960 sh4*) base_machine=sh machine=sh/sh4 ;;
1962 base_machine=sparc machine=sparc/sparc32 ;;
1963 sparcv8 | supersparc | hypersparc)
1964 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
1965 sparcv8plus | sparcv8plusa | sparcv9)
1966 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
1967 sparcv8plusb | sparcv9b)
1968 base_machine=sparc machine=sparc/sparc32/sparcv9b ;;
1969 sparc64 | ultrasparc)
1970 base_machine=sparc machine=sparc/sparc64 ;;
1971 sparc64b | ultrasparc3)
1972 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
1973 thumb*) base_machine=thumb machine=arm/thumb/$machine ;;
1974 *) base_machine=$machine ;;
1978 if test "$base_machine" = "i386"; then
1979 cat >>confdefs.h <<\_ACEOF
1980 #define USE_REGPARMS 1
1985 # Compute the list of sysdep directories for this configuration.
1986 # This can take a while to compute.
1987 sysdep_dir=$srcdir/sysdeps
1988 echo "$as_me:$LINENO: checking sysdep dirs" >&5
1989 echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6
1990 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1991 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1995 base_os=mach/hurd ;;
1996 netbsd* | 386bsd* | freebsd* | bsdi*)
1997 base_os=unix/bsd/bsd4.4 ;;
1998 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
2000 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
2001 base_os=unix/sysv ;;
2003 base_os=unix/sysv/irix6/$os ;;
2005 base_os=unix/sysv/sysv4 ;;
2007 base_os=unix/sysv/hpux/$os ;;
2009 base_os=unix/sysv/aix/aix4.3 ;;
2011 base_os=standalone ;;
2016 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
2019 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
2023 o=`echo $tail | sed 's/[0-9]*$//'`
2024 if test $o != $tail; then
2027 # For linux-gnu, try linux-gnu, then linux.
2028 o=`echo $tail | sed 's/-.*$//'`
2029 if test $o != $tail; then
2033 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
2036 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
2042 # For sparc/sparc32, try sparc/sparc32 and then sparc.
2045 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
2047 # Prepend the machine's FPU directory unless --without-fp.
2048 if test "$with_fp" = yes; then
2049 mach="$mach /$1/fpu"
2051 mach="$mach /$1/nofpu"
2058 # Find what sysdep directories exist.
2060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2061 for d in $add_ons_pfx ''; do
2062 for b in $base ''; do
2063 for m0 in $mach ''; do
2064 for v in /$vendor ''; do
2065 test "$v" = / && continue
2066 for o in /$ostry ''; do
2067 test "$o" = / && continue
2068 for m in $mach ''; do
2069 for a in $add_ons_sfx ''; do
2070 if test "$m0$b$v$o$m"; then
2071 try="${d}sysdeps$m0$b$v$o$m$a"
2072 test -n "$enable_debug_configure" &&
2073 echo "$0 DEBUG: try $try" >&2
2074 if test -d $srcdir/$try; then
2075 sysnames="$sysnames $try"
2076 { test -n "$o" || test -n "$b"; } && os_used=t
2077 { test -n "$m" || test -n "$m0"; } && machine_used=t
2089 if test -z "$os_used" && test "$os" != none; then
2090 { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
2091 echo "$as_me: error: Operating system $os is not supported." >&2;}
2092 { (exit 1); exit 1; }; }
2094 if test -z "$machine_used" && test "$machine" != none; then
2095 { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
2096 echo "$as_me: error: The $machine is not supported." >&2;}
2097 { (exit 1); exit 1; }; }
2100 # We have now validated the configuration.
2103 # If using ELF, look for an `elf' subdirectory of each machine directory.
2104 # We prepend these rather than inserting them whereever the machine appears
2105 # because things specified by the machine's ELF ABI should override
2106 # OS-specific things, and should always be the same for any OS on the
2107 # machine (otherwise what's the point of an ABI?).
2108 if test "$elf" = yes; then
2110 for d in $add_ons_pfx ''; do
2112 if test -d $srcdir/${d}sysdeps$m/elf; then
2113 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
2117 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
2121 # Expand the list of system names into a full list of directories
2122 # from each element's parent name and Implies file (if present).
2125 while test $# -gt 0; do
2129 case " $names " in *" $name "*)
2130 # Already in the list.
2134 # Report each name as we discover it, so there is no long pause in output.
2135 echo $ECHO_N "$name $ECHO_C" >&6
2137 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
2141 *) xsrcdir=$srcdir/ ;;
2143 test -n "$enable_debug_configure" &&
2144 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
2146 if test -f $xsrcdir$name/Implies; then
2147 # Collect more names from the `Implies' file (removing comments).
2148 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
2150 for x in $implied_candidate; do
2152 if test -d $xsrcdir$name_base/$x; then
2153 implied="$implied $name_base/$x";
2156 for d in $add_ons_pfx ''; do
2157 try="${d}sysdeps/$x"
2160 *) try_srcdir=$srcdir/ ;;
2162 test -n "$enable_debug_configure" &&
2163 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
2164 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
2166 implied="$implied $try"
2170 if test $found = no; then
2171 { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
2172 echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
2179 # Add NAME to the list of names.
2180 names="$names $name"
2182 # Find the parent of NAME, using the empty string if it has none.
2183 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
2185 # Add the names implied by NAME, and NAME's parent (if it has one), to
2186 # the list of names to be processed (the argument list). We prepend the
2187 # implied names to the list and append the parent. We want implied
2188 # directories to come before further directories inferred from the
2189 # configuration components; this ensures that for sysv4, unix/common
2190 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
2192 sysnames="`echo $implied $* $parent`"
2193 test -n "$sysnames" && set $sysnames
2196 # Add the default directories.
2197 default_sysnames=sysdeps/generic
2198 if test "$elf" = yes; then
2199 default_sysnames="sysdeps/generic/elf $default_sysnames"
2201 sysnames="$names $default_sysnames"
2203 # The other names were emitted during the scan.
2204 echo "$as_me:$LINENO: result: $default_sysnames" >&5
2205 echo "${ECHO_T}$default_sysnames" >&6
2210 # Find a good install program. We prefer a C program (faster),
2211 # so one script is as good as another. But avoid the broken or
2212 # incompatible versions:
2213 # SysV /etc/install, /usr/sbin/install
2214 # SunOS /usr/etc/install
2215 # IRIX /sbin/install
2217 # AmigaOS /C/install, which installs bootblocks on floppy discs
2218 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2219 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2220 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2221 # OS/2's system install, which has a completely different semantic
2222 # ./install, which can be erroneously created by make from ./install.sh.
2223 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2224 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2225 if test -z "$INSTALL"; then
2226 if test "${ac_cv_path_install+set}" = set; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 test -z "$as_dir" && as_dir=.
2234 # Account for people who put trailing slashes in PATH elements.
2236 ./ | .// | /cC/* | \
2237 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2238 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2241 # OSF1 and SCO ODT 3.0 have their own names for install.
2242 # Don't use installbsd from OSF since it installs stuff as root
2244 for ac_prog in ginstall scoinst install; do
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2247 if test $ac_prog = install &&
2248 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2249 # AIX install. It has an incompatible calling convention.
2251 elif test $ac_prog = install &&
2252 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2253 # program-specific install script used by HP pwplus--don't use.
2256 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2268 if test "${ac_cv_path_install+set}" = set; then
2269 INSTALL=$ac_cv_path_install
2271 # As a last resort, use the slow shell script. We don't cache a
2272 # path for INSTALL within a source directory, because that will
2273 # break other packages using the cache if that directory is
2274 # removed, or if the path is relative.
2275 INSTALL=$ac_install_sh
2278 echo "$as_me:$LINENO: result: $INSTALL" >&5
2279 echo "${ECHO_T}$INSTALL" >&6
2281 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2282 # It thinks the first close brace ends the variable substitution.
2283 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2285 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2287 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2289 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
2290 # The makefiles need to use a different form to find it in $srcdir.
2291 INSTALL='\$(..)./scripts/install-sh -c'
2293 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2294 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2296 if test "$LN_S" = "ln -s"; then
2297 echo "$as_me:$LINENO: result: yes" >&5
2298 echo "${ECHO_T}yes" >&6
2300 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2301 echo "${ECHO_T}no, using $LN_S" >&6
2306 ac_cpp='$CPP $CPPFLAGS'
2307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310 if test -n "$ac_tool_prefix"; then
2311 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2312 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2313 echo "$as_me:$LINENO: checking for $ac_word" >&5
2314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2315 if test "${ac_cv_prog_CC+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 if test -n "$CC"; then
2319 ac_cv_prog_CC="$CC" # Let the user override the test.
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
2327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2328 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 if test -n "$CC"; then
2339 echo "$as_me:$LINENO: result: $CC" >&5
2340 echo "${ECHO_T}$CC" >&6
2342 echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6
2347 if test -z "$ac_cv_prog_CC"; then
2349 # Extract the first word of "gcc", so it can be a program name with args.
2350 set dummy gcc; 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_ac_ct_CC+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 if test -n "$ac_ct_CC"; then
2357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2366 ac_cv_prog_ac_ct_CC="gcc"
2367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2376 if test -n "$ac_ct_CC"; then
2377 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2378 echo "${ECHO_T}$ac_ct_CC" >&6
2380 echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6
2389 if test -z "$CC"; then
2390 if test -n "$ac_tool_prefix"; then
2391 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2392 set dummy ${ac_tool_prefix}cc; ac_word=$2
2393 echo "$as_me:$LINENO: checking for $ac_word" >&5
2394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2395 if test "${ac_cv_prog_CC+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 if test -n "$CC"; then
2399 ac_cv_prog_CC="$CC" # Let the user override the test.
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 test -z "$as_dir" && as_dir=.
2406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2408 ac_cv_prog_CC="${ac_tool_prefix}cc"
2409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 if test -n "$CC"; then
2419 echo "$as_me:$LINENO: result: $CC" >&5
2420 echo "${ECHO_T}$CC" >&6
2422 echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6
2427 if test -z "$ac_cv_prog_CC"; then
2429 # Extract the first word of "cc", so it can be a program name with args.
2430 set dummy cc; ac_word=$2
2431 echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2433 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 if test -n "$ac_ct_CC"; then
2437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2446 ac_cv_prog_ac_ct_CC="cc"
2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2456 if test -n "$ac_ct_CC"; then
2457 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2458 echo "${ECHO_T}$ac_ct_CC" >&6
2460 echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6
2470 if test -z "$CC"; then
2471 # Extract the first word of "cc", so it can be a program name with args.
2472 set dummy cc; ac_word=$2
2473 echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2475 if test "${ac_cv_prog_CC+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 if test -n "$CC"; then
2479 ac_cv_prog_CC="$CC" # Let the user override the test.
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2490 ac_prog_rejected=yes
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 if test $ac_prog_rejected = yes; then
2501 # We found a bogon in the path, so make sure we never use it.
2502 set dummy $ac_cv_prog_CC
2504 if test $# != 0; then
2505 # We chose a different compiler from the bogus one.
2506 # However, it has the same basename, so the bogon will be chosen
2507 # first if we set CC to just the basename; use the full file name.
2509 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2515 if test -n "$CC"; then
2516 echo "$as_me:$LINENO: result: $CC" >&5
2517 echo "${ECHO_T}$CC" >&6
2519 echo "$as_me:$LINENO: result: no" >&5
2520 echo "${ECHO_T}no" >&6
2524 if test -z "$CC"; then
2525 if test -n "$ac_tool_prefix"; then
2528 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2529 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2530 echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2532 if test "${ac_cv_prog_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC="$CC" # Let the user override the test.
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 test -z "$as_dir" && as_dir=.
2543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2545 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 if test -n "$CC"; then
2556 echo "$as_me:$LINENO: result: $CC" >&5
2557 echo "${ECHO_T}$CC" >&6
2559 echo "$as_me:$LINENO: result: no" >&5
2560 echo "${ECHO_T}no" >&6
2563 test -n "$CC" && break
2566 if test -z "$CC"; then
2570 # Extract the first word of "$ac_prog", so it can be a program name with args.
2571 set dummy $ac_prog; ac_word=$2
2572 echo "$as_me:$LINENO: checking for $ac_word" >&5
2573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2574 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 if test -n "$ac_ct_CC"; then
2578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2587 ac_cv_prog_ac_ct_CC="$ac_prog"
2588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2597 if test -n "$ac_ct_CC"; then
2598 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2599 echo "${ECHO_T}$ac_ct_CC" >&6
2601 echo "$as_me:$LINENO: result: no" >&5
2602 echo "${ECHO_T}no" >&6
2605 test -n "$ac_ct_CC" && break
2614 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2615 See \`config.log' for more details." >&5
2616 echo "$as_me: error: no acceptable C compiler found in \$PATH
2617 See \`config.log' for more details." >&2;}
2618 { (exit 1); exit 1; }; }
2620 # Provide some information about the compiler.
2621 echo "$as_me:$LINENO:" \
2622 "checking for C compiler version" >&5
2623 ac_compiler=`set X $ac_compile; echo $2`
2624 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2625 (eval $ac_compiler --version </dev/null >&5) 2>&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }
2629 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2630 (eval $ac_compiler -v </dev/null >&5) 2>&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }
2634 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2635 (eval $ac_compiler -V </dev/null >&5) 2>&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }
2641 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2642 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2643 if test "${ac_cv_objext+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 cat >conftest.$ac_ext <<_ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h. */
2661 rm -f conftest.o conftest.obj
2662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2663 (eval $ac_compile) 2>&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; then
2667 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2670 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2675 echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2678 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2679 See \`config.log' for more details." >&5
2680 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2681 See \`config.log' for more details." >&2;}
2682 { (exit 1); exit 1; }; }
2685 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2687 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2688 echo "${ECHO_T}$ac_cv_objext" >&6
2689 OBJEXT=$ac_cv_objext
2691 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2692 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2693 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2694 echo $ECHO_N "(cached) $ECHO_C" >&6
2696 cat >conftest.$ac_ext <<_ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2714 rm -f conftest.$ac_objext
2715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716 (eval $ac_compile) 2>conftest.er1
2718 grep -v '^ *+' conftest.er1 >conftest.err
2720 cat conftest.err >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } &&
2723 { ac_try='test -z "$ac_c_werror_flag"
2724 || test ! -s conftest.err'
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; } &&
2730 { ac_try='test -s conftest.$ac_objext'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; }; then
2738 echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2744 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2747 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2748 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2749 GCC=`test $ac_compiler_gnu = yes && echo yes`
2750 ac_test_CFLAGS=${CFLAGS+set}
2751 ac_save_CFLAGS=$CFLAGS
2753 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2754 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2755 if test "${ac_cv_prog_cc_g+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 cat >conftest.$ac_ext <<_ACEOF
2761 cat confdefs.h >>conftest.$ac_ext
2762 cat >>conftest.$ac_ext <<_ACEOF
2763 /* end confdefs.h. */
2773 rm -f conftest.$ac_objext
2774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2775 (eval $ac_compile) 2>conftest.er1
2777 grep -v '^ *+' conftest.er1 >conftest.err
2779 cat conftest.err >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } &&
2782 { ac_try='test -z "$ac_c_werror_flag"
2783 || test ! -s conftest.err'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; } &&
2789 { ac_try='test -s conftest.$ac_objext'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2804 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2805 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2806 if test "$ac_test_CFLAGS" = set; then
2807 CFLAGS=$ac_save_CFLAGS
2808 elif test $ac_cv_prog_cc_g = yes; then
2809 if test "$GCC" = yes; then
2815 if test "$GCC" = yes; then
2821 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2822 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2823 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 ac_cv_prog_cc_stdc=no
2828 cat >conftest.$ac_ext <<_ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2836 #include <sys/types.h>
2837 #include <sys/stat.h>
2838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2839 struct buf { int x; };
2840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2841 static char *e (p, i)
2847 static char *f (char * (*g) (char **, int), char **p, ...)
2852 s = g (p, va_arg (v,int));
2857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2858 function prototypes and stuff, but not '\xHH' hex character constants.
2859 These don't provoke an error unfortunately, instead are silently treated
2860 as 'x'. The following induces an error, until -std1 is added to get
2861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2862 array size at least. It's necessary to write '\x00'==0 to get something
2863 that's true only with -std1. */
2864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2866 int test (int i, double x);
2867 struct s1 {int (*f) (int a);};
2868 struct s2 {int (*f) (double a);};
2869 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2875 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2880 # Don't try gcc -ansi; that turns off useful extensions and
2881 # breaks some systems' header files.
2882 # AIX -qlanglvl=ansi
2883 # Ultrix and OSF/1 -std1
2884 # HP-UX 10.20 and later -Ae
2885 # HP-UX older versions -Aa -D_HPUX_SOURCE
2886 # SVR4 -Xc -D__EXTENSIONS__
2887 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2889 CC="$ac_save_CC $ac_arg"
2890 rm -f conftest.$ac_objext
2891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2892 (eval $ac_compile) 2>conftest.er1
2894 grep -v '^ *+' conftest.er1 >conftest.err
2896 cat conftest.err >&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
2899 { ac_try='test -z "$ac_c_werror_flag"
2900 || test ! -s conftest.err'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; } &&
2906 { ac_try='test -s conftest.$ac_objext'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 ac_cv_prog_cc_stdc=$ac_arg
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2919 rm -f conftest.err conftest.$ac_objext
2921 rm -f conftest.$ac_ext conftest.$ac_objext
2926 case "x$ac_cv_prog_cc_stdc" in
2928 echo "$as_me:$LINENO: result: none needed" >&5
2929 echo "${ECHO_T}none needed" >&6 ;;
2931 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2932 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2933 CC="$CC $ac_cv_prog_cc_stdc" ;;
2936 # Some people use a C++ compiler to compile C. Since we use `exit',
2937 # in C++ we need to declare it. In case someone uses the same compiler
2938 # for both compiling C and C++ we need to have the C++ compiler decide
2939 # the declaration of exit, since it's the most demanding environment.
2940 cat >conftest.$ac_ext <<_ACEOF
2945 rm -f conftest.$ac_objext
2946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2947 (eval $ac_compile) 2>conftest.er1
2949 grep -v '^ *+' conftest.er1 >conftest.err
2951 cat conftest.err >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } &&
2954 { ac_try='test -z "$ac_c_werror_flag"
2955 || test ! -s conftest.err'
2956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; } &&
2961 { ac_try='test -s conftest.$ac_objext'
2962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; }; then
2967 for ac_declaration in \
2969 'extern "C" void std::exit (int) throw (); using std::exit;' \
2970 'extern "C" void std::exit (int); using std::exit;' \
2971 'extern "C" void exit (int) throw ();' \
2972 'extern "C" void exit (int);' \
2975 cat >conftest.$ac_ext <<_ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h. */
2991 rm -f conftest.$ac_objext
2992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2993 (eval $ac_compile) 2>conftest.er1
2995 grep -v '^ *+' conftest.er1 >conftest.err
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } &&
3000 { ac_try='test -z "$ac_c_werror_flag"
3001 || test ! -s conftest.err'
3002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); }; } &&
3007 { ac_try='test -s conftest.$ac_objext'
3008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; }; then
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3021 cat >conftest.$ac_ext <<_ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h. */
3036 rm -f conftest.$ac_objext
3037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3038 (eval $ac_compile) 2>conftest.er1
3040 grep -v '^ *+' conftest.er1 >conftest.err
3042 cat conftest.err >&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } &&
3045 { ac_try='test -z "$ac_c_werror_flag"
3046 || test ! -s conftest.err'
3047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; } &&
3052 { ac_try='test -s conftest.$ac_objext'
3053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; }; then
3060 echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3067 if test -n "$ac_declaration"; then
3068 echo '#ifdef __cplusplus' >>confdefs.h
3069 echo $ac_declaration >>confdefs.h
3070 echo '#endif' >>confdefs.h
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3080 ac_cpp='$CPP $CPPFLAGS'
3081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3085 if test $host != $build; then
3086 for ac_prog in gcc cc
3088 # Extract the first word of "$ac_prog", so it can be a program name with args.
3089 set dummy $ac_prog; ac_word=$2
3090 echo "$as_me:$LINENO: checking for $ac_word" >&5
3091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3092 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3095 if test -n "$BUILD_CC"; then
3096 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105 ac_cv_prog_BUILD_CC="$ac_prog"
3106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 BUILD_CC=$ac_cv_prog_BUILD_CC
3115 if test -n "$BUILD_CC"; then
3116 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3117 echo "${ECHO_T}$BUILD_CC" >&6
3119 echo "$as_me:$LINENO: result: no" >&5
3120 echo "${ECHO_T}no" >&6
3123 test -n "$BUILD_CC" && break
3129 ac_cpp='$CPP $CPPFLAGS'
3130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3134 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3135 # On Suns, sometimes $CPP names a directory.
3136 if test -n "$CPP" && test -d "$CPP"; then
3139 if test -z "$CPP"; then
3140 if test "${ac_cv_prog_CPP+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 # Double quotes because CPP needs to be expanded
3144 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3147 for ac_c_preproc_warn_flag in '' yes
3149 # Use a header file that comes with gcc, so configuring glibc
3150 # with a fresh cross-compiler works.
3151 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3152 # <limits.h> exists even on freestanding compilers.
3153 # On the NeXT, cc -E runs the code through the compiler's parser,
3154 # not just through cpp. "Syntax error" is here to catch this case.
3155 cat >conftest.$ac_ext <<_ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3162 # include <limits.h>
3164 # include <assert.h>
3168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3171 grep -v '^ *+' conftest.er1 >conftest.err
3173 cat conftest.err >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } >/dev/null; then
3176 if test -s conftest.err; then
3177 ac_cpp_err=$ac_c_preproc_warn_flag
3178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3185 if test -z "$ac_cpp_err"; then
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3191 # Broken: fails on valid input.
3194 rm -f conftest.err conftest.$ac_ext
3196 # OK, works on sane cases. Now check whether non-existent headers
3197 # can be detected and how.
3198 cat >conftest.$ac_ext <<_ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3204 #include <ac_nonexistent.h>
3206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3209 grep -v '^ *+' conftest.er1 >conftest.err
3211 cat conftest.err >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } >/dev/null; then
3214 if test -s conftest.err; then
3215 ac_cpp_err=$ac_c_preproc_warn_flag
3216 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3223 if test -z "$ac_cpp_err"; then
3224 # Broken: success on invalid input.
3227 echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3230 # Passes both tests.
3234 rm -f conftest.err conftest.$ac_ext
3237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3238 rm -f conftest.err conftest.$ac_ext
3239 if $ac_preproc_ok; then
3251 echo "$as_me:$LINENO: result: $CPP" >&5
3252 echo "${ECHO_T}$CPP" >&6
3254 for ac_c_preproc_warn_flag in '' yes
3256 # Use a header file that comes with gcc, so configuring glibc
3257 # with a fresh cross-compiler works.
3258 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3259 # <limits.h> exists even on freestanding compilers.
3260 # On the NeXT, cc -E runs the code through the compiler's parser,
3261 # not just through cpp. "Syntax error" is here to catch this case.
3262 cat >conftest.$ac_ext <<_ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3269 # include <limits.h>
3271 # include <assert.h>
3275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3278 grep -v '^ *+' conftest.er1 >conftest.err
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } >/dev/null; then
3283 if test -s conftest.err; then
3284 ac_cpp_err=$ac_c_preproc_warn_flag
3285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3292 if test -z "$ac_cpp_err"; then
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 # Broken: fails on valid input.
3301 rm -f conftest.err conftest.$ac_ext
3303 # OK, works on sane cases. Now check whether non-existent headers
3304 # can be detected and how.
3305 cat >conftest.$ac_ext <<_ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3311 #include <ac_nonexistent.h>
3313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3316 grep -v '^ *+' conftest.er1 >conftest.err
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } >/dev/null; then
3321 if test -s conftest.err; then
3322 ac_cpp_err=$ac_c_preproc_warn_flag
3323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3330 if test -z "$ac_cpp_err"; then
3331 # Broken: success on invalid input.
3334 echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3337 # Passes both tests.
3341 rm -f conftest.err conftest.$ac_ext
3344 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3345 rm -f conftest.err conftest.$ac_ext
3346 if $ac_preproc_ok; then
3349 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3350 See \`config.log' for more details." >&5
3351 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3352 See \`config.log' for more details." >&2;}
3353 { (exit 1); exit 1; }; }
3357 ac_cpp='$CPP $CPPFLAGS'
3358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362 # We need the C++ compiler only for testing.
3364 ac_cpp='$CXXCPP $CPPFLAGS'
3365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3368 if test -n "$ac_tool_prefix"; then
3369 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3371 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3372 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3373 echo "$as_me:$LINENO: checking for $ac_word" >&5
3374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3375 if test "${ac_cv_prog_CXX+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 if test -n "$CXX"; then
3379 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3388 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 if test -n "$CXX"; then
3399 echo "$as_me:$LINENO: result: $CXX" >&5
3400 echo "${ECHO_T}$CXX" >&6
3402 echo "$as_me:$LINENO: result: no" >&5
3403 echo "${ECHO_T}no" >&6
3406 test -n "$CXX" && break
3409 if test -z "$CXX"; then
3411 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3413 # Extract the first word of "$ac_prog", so it can be a program name with args.
3414 set dummy $ac_prog; ac_word=$2
3415 echo "$as_me:$LINENO: checking for $ac_word" >&5
3416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3417 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3418 echo $ECHO_N "(cached) $ECHO_C" >&6
3420 if test -n "$ac_ct_CXX"; then
3421 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 test -z "$as_dir" && as_dir=.
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430 ac_cv_prog_ac_ct_CXX="$ac_prog"
3431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3440 if test -n "$ac_ct_CXX"; then
3441 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3442 echo "${ECHO_T}$ac_ct_CXX" >&6
3444 echo "$as_me:$LINENO: result: no" >&5
3445 echo "${ECHO_T}no" >&6
3448 test -n "$ac_ct_CXX" && break
3450 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3456 # Provide some information about the compiler.
3457 echo "$as_me:$LINENO:" \
3458 "checking for C++ compiler version" >&5
3459 ac_compiler=`set X $ac_compile; echo $2`
3460 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3461 (eval $ac_compiler --version </dev/null >&5) 2>&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }
3465 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3466 (eval $ac_compiler -v </dev/null >&5) 2>&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }
3470 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3471 (eval $ac_compiler -V </dev/null >&5) 2>&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }
3476 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3477 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3478 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 cat >conftest.$ac_ext <<_ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3499 rm -f conftest.$ac_objext
3500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3501 (eval $ac_compile) 2>conftest.er1
3503 grep -v '^ *+' conftest.er1 >conftest.err
3505 cat conftest.err >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } &&
3508 { ac_try='test -z "$ac_cxx_werror_flag"
3509 || test ! -s conftest.err'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; } &&
3515 { ac_try='test -s conftest.$ac_objext'
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; }; then
3523 echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3529 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3532 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3533 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3534 GXX=`test $ac_compiler_gnu = yes && echo yes`
3535 ac_test_CXXFLAGS=${CXXFLAGS+set}
3536 ac_save_CXXFLAGS=$CXXFLAGS
3538 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3539 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3540 if test "${ac_cv_prog_cxx_g+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 cat >conftest.$ac_ext <<_ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3558 rm -f conftest.$ac_objext
3559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3560 (eval $ac_compile) 2>conftest.er1
3562 grep -v '^ *+' conftest.er1 >conftest.err
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } &&
3567 { ac_try='test -z "$ac_cxx_werror_flag"
3568 || test ! -s conftest.err'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; } &&
3574 { ac_try='test -s conftest.$ac_objext'
3575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3580 ac_cv_prog_cxx_g=yes
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3589 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3590 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3591 if test "$ac_test_CXXFLAGS" = set; then
3592 CXXFLAGS=$ac_save_CXXFLAGS
3593 elif test $ac_cv_prog_cxx_g = yes; then
3594 if test "$GXX" = yes; then
3600 if test "$GXX" = yes; then
3606 for ac_declaration in \
3608 'extern "C" void std::exit (int) throw (); using std::exit;' \
3609 'extern "C" void std::exit (int); using std::exit;' \
3610 'extern "C" void exit (int) throw ();' \
3611 'extern "C" void exit (int);' \
3614 cat >conftest.$ac_ext <<_ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3630 rm -f conftest.$ac_objext
3631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3632 (eval $ac_compile) 2>conftest.er1
3634 grep -v '^ *+' conftest.er1 >conftest.err
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } &&
3639 { ac_try='test -z "$ac_cxx_werror_flag"
3640 || test ! -s conftest.err'
3641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; } &&
3646 { ac_try='test -s conftest.$ac_objext'
3647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; }; then
3654 echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3660 cat >conftest.$ac_ext <<_ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3675 rm -f conftest.$ac_objext
3676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3677 (eval $ac_compile) 2>conftest.er1
3679 grep -v '^ *+' conftest.er1 >conftest.err
3681 cat conftest.err >&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } &&
3684 { ac_try='test -z "$ac_cxx_werror_flag"
3685 || test ! -s conftest.err'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; } &&
3691 { ac_try='test -s conftest.$ac_objext'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; }; then
3699 echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3706 if test -n "$ac_declaration"; then
3707 echo '#ifdef __cplusplus' >>confdefs.h
3708 echo $ac_declaration >>confdefs.h
3709 echo '#endif' >>confdefs.h
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718 # Was a --with-binutils option given?
3719 if test -n "$path_binutils"; then
3720 # Make absolute; ensure a single trailing slash.
3721 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
3722 CC="$CC -B$path_binutils"
3724 AS=`$CC -print-prog-name=as`
3725 LD=`$CC -print-prog-name=ld`
3726 AR=`$CC -print-prog-name=ar`
3728 OBJDUMP=`$CC -print-prog-name=objdump`
3731 # ranlib has to be treated a bit differently since it might not exist at all.
3732 ac_ranlib=`$CC -print-prog-name=ranlib`
3733 if test "x$ac_ranlib" = xranlib; then
3734 # This extra check has to happen since gcc simply echos the parameter in
3735 # case it cannot find the value in its own directories.
3736 if test -n "$ac_tool_prefix"; then
3737 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3738 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3739 echo "$as_me:$LINENO: checking for $ac_word" >&5
3740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3741 if test "${ac_cv_prog_RANLIB+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3744 if test -n "$RANLIB"; then
3745 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 test -z "$as_dir" && as_dir=.
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3754 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 RANLIB=$ac_cv_prog_RANLIB
3764 if test -n "$RANLIB"; then
3765 echo "$as_me:$LINENO: result: $RANLIB" >&5
3766 echo "${ECHO_T}$RANLIB" >&6
3768 echo "$as_me:$LINENO: result: no" >&5
3769 echo "${ECHO_T}no" >&6
3773 if test -z "$ac_cv_prog_RANLIB"; then
3774 ac_ct_RANLIB=$RANLIB
3775 # Extract the first word of "ranlib", so it can be a program name with args.
3776 set dummy ranlib; ac_word=$2
3777 echo "$as_me:$LINENO: checking for $ac_word" >&5
3778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3779 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 if test -n "$ac_ct_RANLIB"; then
3783 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 test -z "$as_dir" && as_dir=.
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3792 ac_cv_prog_ac_ct_RANLIB="ranlib"
3793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3802 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3803 if test -n "$ac_ct_RANLIB"; then
3804 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3805 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3807 echo "$as_me:$LINENO: result: no" >&5
3808 echo "${ECHO_T}no" >&6
3811 RANLIB=$ac_ct_RANLIB
3813 RANLIB="$ac_cv_prog_RANLIB"
3821 # Determine whether we are using GNU binutils.
3822 echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
3823 echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6
3824 if test "${libc_cv_prog_as_gnu+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 # Most GNU programs take a -v and spit out some text including
3828 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
3829 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3830 libc_cv_prog_as_gnu=yes
3832 libc_cv_prog_as_gnu=no
3836 echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
3837 echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6
3839 gnu_as=$libc_cv_prog_as_gnu
3841 echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
3842 echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6
3843 if test "${libc_cv_prog_ld_gnu+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 # Most GNU programs take a -v and spit out some text including
3847 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
3848 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3849 libc_cv_prog_ld_gnu=yes
3851 libc_cv_prog_ld_gnu=no
3855 echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
3856 echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6
3857 gnu_ld=$libc_cv_prog_ld_gnu
3860 # Accept binutils 2.13 or newer.
3863 # Extract the first word of "$ac_prog", so it can be a program name with args.
3864 set dummy $ac_prog; ac_word=$2
3865 echo "$as_me:$LINENO: checking for $ac_word" >&5
3866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3867 if test "${ac_cv_prog_AS+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 if test -n "$AS"; then
3871 ac_cv_prog_AS="$AS" # Let the user override the test.
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 test -z "$as_dir" && as_dir=.
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3880 ac_cv_prog_AS="$ac_prog"
3881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3890 if test -n "$AS"; then
3891 echo "$as_me:$LINENO: result: $AS" >&5
3892 echo "${ECHO_T}$AS" >&6
3894 echo "$as_me:$LINENO: result: no" >&5
3895 echo "${ECHO_T}no" >&6
3898 test -n "$AS" && break
3901 if test -z "$AS"; then
3904 # Found it, now check the version.
3905 echo "$as_me:$LINENO: checking version of $AS" >&5
3906 echo $ECHO_N "checking version of $AS... $ECHO_C" >&6
3907 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3908 case $ac_prog_version in
3909 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3911 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3912 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3915 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3916 echo "${ECHO_T}$ac_prog_version" >&6
3918 if test $ac_verc_fail = yes; then
3919 AS=: critic_missing="$critic_missing as"
3924 # Extract the first word of "$ac_prog", so it can be a program name with args.
3925 set dummy $ac_prog; ac_word=$2
3926 echo "$as_me:$LINENO: checking for $ac_word" >&5
3927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3928 if test "${ac_cv_prog_LD+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3931 if test -n "$LD"; then
3932 ac_cv_prog_LD="$LD" # Let the user override the test.
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 test -z "$as_dir" && as_dir=.
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3941 ac_cv_prog_LD="$ac_prog"
3942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3951 if test -n "$LD"; then
3952 echo "$as_me:$LINENO: result: $LD" >&5
3953 echo "${ECHO_T}$LD" >&6
3955 echo "$as_me:$LINENO: result: no" >&5
3956 echo "${ECHO_T}no" >&6
3959 test -n "$LD" && break
3962 if test -z "$LD"; then
3965 # Found it, now check the version.
3966 echo "$as_me:$LINENO: checking version of $LD" >&5
3967 echo $ECHO_N "checking version of $LD... $ECHO_C" >&6
3968 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
3969 case $ac_prog_version in
3970 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3972 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3973 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3976 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3977 echo "${ECHO_T}$ac_prog_version" >&6
3979 if test $ac_verc_fail = yes; then
3980 LD=: critic_missing="$critic_missing ld"
3984 # We need the physical current working directory. We cannot use the
3985 # "pwd -P" shell builtin since that's not portable. Instead we try to
3986 # find a pwd binary. Note that assigning to the PWD environment
3987 # variable might have some interesting side effects, so we don't do
3989 # Extract the first word of "pwd", so it can be a program name with args.
3990 set dummy pwd; ac_word=$2
3991 echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993 if test "${ac_cv_path_PWD_P+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4008 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4019 PWD_P=$ac_cv_path_PWD_P
4021 if test -n "$PWD_P"; then
4022 echo "$as_me:$LINENO: result: $PWD_P" >&5
4023 echo "${ECHO_T}$PWD_P" >&6
4025 echo "$as_me:$LINENO: result: no" >&5
4026 echo "${ECHO_T}no" >&6
4029 if test "$PWD_P" = no; then
4030 { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
4031 echo "$as_me: error: *** A pwd binary could not be found." >&2;}
4032 { (exit 1); exit 1; }; }
4035 # These programs are version sensitive.
4037 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4039 # Extract the first word of "$ac_prog", so it can be a program name with args.
4040 set dummy $ac_prog; ac_word=$2
4041 echo "$as_me:$LINENO: checking for $ac_word" >&5
4042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043 if test "${ac_cv_prog_CC+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 if test -n "$CC"; then
4047 ac_cv_prog_CC="$CC" # Let the user override the test.
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056 ac_cv_prog_CC="$ac_prog"
4057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4066 if test -n "$CC"; then
4067 echo "$as_me:$LINENO: result: $CC" >&5
4068 echo "${ECHO_T}$CC" >&6
4070 echo "$as_me:$LINENO: result: no" >&5
4071 echo "${ECHO_T}no" >&6
4074 test -n "$CC" && break
4077 if test -z "$CC"; then
4080 # Found it, now check the version.
4081 echo "$as_me:$LINENO: checking version of $CC" >&5
4082 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
4083 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
4084 case $ac_prog_version in
4085 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4087 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4088 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4091 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4092 echo "${ECHO_T}$ac_prog_version" >&6
4094 if test $ac_verc_fail = yes; then
4095 critic_missing="$critic_missing gcc"
4098 for ac_prog in gnumake gmake make
4100 # Extract the first word of "$ac_prog", so it can be a program name with args.
4101 set dummy $ac_prog; ac_word=$2
4102 echo "$as_me:$LINENO: checking for $ac_word" >&5
4103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4104 if test "${ac_cv_prog_MAKE+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 if test -n "$MAKE"; then
4108 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 test -z "$as_dir" && as_dir=.
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117 ac_cv_prog_MAKE="$ac_prog"
4118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4126 MAKE=$ac_cv_prog_MAKE
4127 if test -n "$MAKE"; then
4128 echo "$as_me:$LINENO: result: $MAKE" >&5
4129 echo "${ECHO_T}$MAKE" >&6
4131 echo "$as_me:$LINENO: result: no" >&5
4132 echo "${ECHO_T}no" >&6
4135 test -n "$MAKE" && break
4138 if test -z "$MAKE"; then
4141 # Found it, now check the version.
4142 echo "$as_me:$LINENO: checking version of $MAKE" >&5
4143 echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6
4144 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4145 case $ac_prog_version in
4146 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4148 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4149 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4152 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4153 echo "${ECHO_T}$ac_prog_version" >&6
4155 if test $ac_verc_fail = yes; then
4156 critic_missing="$critic_missing make"
4160 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4162 # Extract the first word of "$ac_prog", so it can be a program name with args.
4163 set dummy $ac_prog; ac_word=$2
4164 echo "$as_me:$LINENO: checking for $ac_word" >&5
4165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4166 if test "${ac_cv_prog_MSGFMT+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 if test -n "$MSGFMT"; then
4170 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179 ac_cv_prog_MSGFMT="$ac_prog"
4180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 MSGFMT=$ac_cv_prog_MSGFMT
4189 if test -n "$MSGFMT"; then
4190 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4191 echo "${ECHO_T}$MSGFMT" >&6
4193 echo "$as_me:$LINENO: result: no" >&5
4194 echo "${ECHO_T}no" >&6
4197 test -n "$MSGFMT" && break
4200 if test -z "$MSGFMT"; then
4203 # Found it, now check the version.
4204 echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
4205 echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6
4206 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4207 case $ac_prog_version in
4208 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4209 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4210 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4211 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4214 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4215 echo "${ECHO_T}$ac_prog_version" >&6
4217 if test $ac_verc_fail = yes; then
4218 MSGFMT=: aux_missing="$aux_missing msgfmt"
4221 for ac_prog in makeinfo
4223 # Extract the first word of "$ac_prog", so it can be a program name with args.
4224 set dummy $ac_prog; ac_word=$2
4225 echo "$as_me:$LINENO: checking for $ac_word" >&5
4226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4227 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 if test -n "$MAKEINFO"; then
4231 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4240 ac_cv_prog_MAKEINFO="$ac_prog"
4241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 MAKEINFO=$ac_cv_prog_MAKEINFO
4250 if test -n "$MAKEINFO"; then
4251 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4252 echo "${ECHO_T}$MAKEINFO" >&6
4254 echo "$as_me:$LINENO: result: no" >&5
4255 echo "${ECHO_T}no" >&6
4258 test -n "$MAKEINFO" && break
4261 if test -z "$MAKEINFO"; then
4264 # Found it, now check the version.
4265 echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
4266 echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6
4267 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4268 case $ac_prog_version in
4269 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4271 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4272 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4275 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4276 echo "${ECHO_T}$ac_prog_version" >&6
4278 if test $ac_verc_fail = yes; then
4279 MAKEINFO=: aux_missing="$aux_missing makeinfo"
4284 # Extract the first word of "$ac_prog", so it can be a program name with args.
4285 set dummy $ac_prog; ac_word=$2
4286 echo "$as_me:$LINENO: checking for $ac_word" >&5
4287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4288 if test "${ac_cv_prog_SED+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 if test -n "$SED"; then
4292 ac_cv_prog_SED="$SED" # Let the user override the test.
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301 ac_cv_prog_SED="$ac_prog"
4302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4311 if test -n "$SED"; then
4312 echo "$as_me:$LINENO: result: $SED" >&5
4313 echo "${ECHO_T}$SED" >&6
4315 echo "$as_me:$LINENO: result: no" >&5
4316 echo "${ECHO_T}no" >&6
4319 test -n "$SED" && break
4322 if test -z "$SED"; then
4325 # Found it, now check the version.
4326 echo "$as_me:$LINENO: checking version of $SED" >&5
4327 echo $ECHO_N "checking version of $SED... $ECHO_C" >&6
4328 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
4329 case $ac_prog_version in
4330 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4331 3.0[2-9]*|3.[1-9]*|[4-9]*)
4332 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4333 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4336 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4337 echo "${ECHO_T}$ac_prog_version" >&6
4339 if test $ac_verc_fail = yes; then
4340 SED=: aux_missing="$aux_missing sed"
4344 for ac_prog in autoconf
4346 # Extract the first word of "$ac_prog", so it can be a program name with args.
4347 set dummy $ac_prog; ac_word=$2
4348 echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4350 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 if test -n "$AUTOCONF"; then
4354 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4363 ac_cv_prog_AUTOCONF="$ac_prog"
4364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 AUTOCONF=$ac_cv_prog_AUTOCONF
4373 if test -n "$AUTOCONF"; then
4374 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
4375 echo "${ECHO_T}$AUTOCONF" >&6
4377 echo "$as_me:$LINENO: result: no" >&5
4378 echo "${ECHO_T}no" >&6
4381 test -n "$AUTOCONF" && break
4383 test -n "$AUTOCONF" || AUTOCONF="no"
4385 case "x$AUTOCONF" in
4386 xno|x|x:) AUTOCONF=no ;;
4388 echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
4389 echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6
4390 if test "${libc_cv_autoconf_works+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
4394 libc_cv_autoconf_works=yes
4396 libc_cv_autoconf_works=no
4399 echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
4400 echo "${ECHO_T}$libc_cv_autoconf_works" >&6
4401 test $libc_cv_autoconf_works = yes || AUTOCONF=no
4404 if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
4405 # If --without-cvs they probably won't change configure.in, so no complaints.
4406 aux_missing="$aux_missing autoconf"
4409 test -n "$critic_missing" && { { echo "$as_me:$LINENO: error:
4410 *** These critical programs are missing or too old:$critic_missing
4411 *** Check the INSTALL file for required versions." >&5
4412 echo "$as_me: error:
4413 *** These critical programs are missing or too old:$critic_missing
4414 *** Check the INSTALL file for required versions." >&2;}
4415 { (exit 1); exit 1; }; }
4417 test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
4418 *** These auxiliary programs are missing or incompatible versions:$aux_missing
4419 *** some features will be disabled.
4420 *** Check the INSTALL file for required versions." >&5
4421 echo "$as_me: WARNING:
4422 *** These auxiliary programs are missing or incompatible versions:$aux_missing
4423 *** some features will be disabled.
4424 *** Check the INSTALL file for required versions." >&2;}
4426 # if using special system headers, find out the compiler's sekrit
4427 # header directory and add that to the list. NOTE: Only does the right
4428 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
4429 if test -n "$sysheaders"; then
4430 ccheaders=`$CC -print-file-name=include`
4431 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
4435 # check if ranlib is necessary
4436 echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
4437 echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6
4438 if test "${libc_cv_ranlib_necessary+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 cat > conftest.c <<EOF
4446 $CC $CFLAGS $CPPFLAGS -c conftest.c
4447 $AR cr conftest.a conftest.o
4448 cp conftest.a conftest2.a
4450 if cmp -s conftest.a conftest2.a; then
4451 libc_cv_ranlib_necessary=no
4453 libc_cv_ranlib_necessary=yes
4457 echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
4458 echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6
4459 if test "$libc_cv_ranlib_necessary" = no; then
4463 # Test if LD_LIBRARY_PATH contains the notation for the current directory
4464 # since this would lead to problems installing/building glibc.
4465 # LD_LIBRARY_PATH contains the current directory if one of the following
4467 # - one of the terminals (":" and ";") is the first or last sign
4468 # - two terminals occur directly after each other
4469 # - the path contains an element with a dot in it
4470 echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
4471 echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6
4472 case ${LD_LIBRARY_PATH} in
4473 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
4474 ld_library_path_setting="contains current directory"
4477 ld_library_path_setting="ok"
4480 echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
4481 echo "${ECHO_T}$ld_library_path_setting" >&6
4482 if test "$ld_library_path_setting" != "ok"; then
4483 { { echo "$as_me:$LINENO: error:
4484 *** LD_LIBRARY_PATH shouldn't contain the current directory when
4485 *** building glibc. Please change the environment variable
4486 *** and run configure again." >&5
4487 echo "$as_me: error:
4488 *** LD_LIBRARY_PATH shouldn't contain the current directory when
4489 *** building glibc. Please change the environment variable
4490 *** and run configure again." >&2;}
4491 { (exit 1); exit 1; }; }
4494 echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
4495 echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6
4496 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
4500 libc_cv_gcc_static_libgcc=
4502 libc_cv_gcc_static_libgcc=-static-libgcc
4505 echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
4506 echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6
4509 # Extract the first word of "bash", so it can be a program name with args.
4510 set dummy bash; ac_word=$2
4511 echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513 if test "${ac_cv_path_BASH+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
4539 BASH=$ac_cv_path_BASH
4541 if test -n "$BASH"; then
4542 echo "$as_me:$LINENO: result: $BASH" >&5
4543 echo "${ECHO_T}$BASH" >&6
4545 echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4549 if test "$BASH" != no &&
4550 $BASH -c 'test "$BASH_VERSINFO" \
4551 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
4552 libc_cv_have_bash2=yes
4554 libc_cv_have_bash2=no
4558 if test "$BASH" = no; then
4559 # Extract the first word of "ksh", so it can be a program name with args.
4560 set dummy ksh; ac_word=$2
4561 echo "$as_me:$LINENO: checking for $ac_word" >&5
4562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4563 if test "${ac_cv_path_KSH+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
4579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
4591 if test -n "$KSH"; then
4592 echo "$as_me:$LINENO: result: $KSH" >&5
4593 echo "${ECHO_T}$KSH" >&6
4595 echo "$as_me:$LINENO: result: no" >&5
4596 echo "${ECHO_T}no" >&6
4599 if test "$KSH" = no; then
4602 libc_cv_have_ksh=yes
4607 libc_cv_have_ksh=yes
4611 for ac_prog in gawk mawk nawk awk
4613 # Extract the first word of "$ac_prog", so it can be a program name with args.
4614 set dummy $ac_prog; ac_word=$2
4615 echo "$as_me:$LINENO: checking for $ac_word" >&5
4616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4617 if test "${ac_cv_prog_AWK+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 if test -n "$AWK"; then
4621 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4630 ac_cv_prog_AWK="$ac_prog"
4631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 if test -n "$AWK"; then
4641 echo "$as_me:$LINENO: result: $AWK" >&5
4642 echo "${ECHO_T}$AWK" >&6
4644 echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6
4648 test -n "$AWK" && break
4651 # Extract the first word of "perl", so it can be a program name with args.
4652 set dummy perl; ac_word=$2
4653 echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4655 if test "${ac_cv_path_PERL+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4670 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
4681 PERL=$ac_cv_path_PERL
4683 if test -n "$PERL"; then
4684 echo "$as_me:$LINENO: result: $PERL" >&5
4685 echo "${ECHO_T}$PERL" >&6
4687 echo "$as_me:$LINENO: result: no" >&5
4688 echo "${ECHO_T}no" >&6
4691 if test "$PERL" != no &&
4692 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
4695 # Extract the first word of "install-info", so it can be a program name with args.
4696 set dummy install-info; ac_word=$2
4697 echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4699 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 case $INSTALL_INFO in
4704 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
4709 for as_dir in $as_dummy
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4715 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
4726 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4728 if test -n "$INSTALL_INFO"; then
4729 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4730 echo "${ECHO_T}$INSTALL_INFO" >&6
4732 echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6
4736 # Extract the first word of "bison", so it can be a program name with args.
4737 set dummy bison; ac_word=$2
4738 echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4740 if test "${ac_cv_path_BISON+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
4750 for as_dir in $as_dummy
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
4767 BISON=$ac_cv_path_BISON
4769 if test -n "$BISON"; then
4770 echo "$as_me:$LINENO: result: $BISON" >&5
4771 echo "${ECHO_T}$BISON" >&6
4773 echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6
4778 echo "$as_me:$LINENO: checking for signed size_t type" >&5
4779 echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6
4780 if test "${libc_cv_signed_size_t+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 echo '#include <stddef.h>
4784 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
4785 if eval "$ac_cpp conftest.c 2>/dev/null" \
4786 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
4787 libc_cv_signed_size_t=no
4789 libc_cv_signed_size_t=yes
4793 echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
4794 echo "${ECHO_T}$libc_cv_signed_size_t" >&6
4795 if test $libc_cv_signed_size_t = yes; then
4796 cat >> confdefs.h <<\EOF
4797 #undef __SIZE_TYPE__
4798 #define __SIZE_TYPE__ unsigned
4803 echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
4804 echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6
4805 if test "${libc_cv_friendly_stddef+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 cat >conftest.$ac_ext <<_ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4814 #define __need_size_t
4815 #define __need_wchar_t
4822 size_t size; wchar_t wchar;
4824 #error stddef.h ignored __need_*
4826 if (&size == NULL || &wchar == NULL) abort ();
4831 rm -f conftest.$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833 (eval $ac_compile) 2>conftest.er1
4835 grep -v '^ *+' conftest.er1 >conftest.err
4837 cat conftest.err >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try='test -z "$ac_c_werror_flag"
4841 || test ! -s conftest.err'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; } &&
4847 { ac_try='test -s conftest.$ac_objext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4853 libc_cv_friendly_stddef=yes
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4858 libc_cv_friendly_stddef=no
4860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4862 echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
4863 echo "${ECHO_T}$libc_cv_friendly_stddef" >&6
4864 if test $libc_cv_friendly_stddef = yes; then
4865 config_vars="$config_vars
4866 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
4869 echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
4870 echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6
4871 if test "${libc_cv_need_minus_P+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 cat > conftest.S <<EOF
4875 #include "confdefs.h"
4876 /* Nothing whatsoever. */
4878 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; }; then
4884 libc_cv_need_minus_P=no
4886 libc_cv_need_minus_P=yes
4890 echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
4891 echo "${ECHO_T}$libc_cv_need_minus_P" >&6
4892 if test $libc_cv_need_minus_P = yes; then
4893 config_vars="$config_vars
4894 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
4897 echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
4898 echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6
4899 if test "${libc_cv_dot_text+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 cat > conftest.s <<EOF
4906 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; }; then
4912 libc_cv_dot_text=.text
4917 if test -z "$libc_cv_dot_text"; then
4918 echo "$as_me:$LINENO: result: no" >&5
4919 echo "${ECHO_T}no" >&6
4921 echo "$as_me:$LINENO: result: yes" >&5
4922 echo "${ECHO_T}yes" >&6
4925 echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
4926 echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6
4927 if test "${libc_cv_asm_global_directive+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 libc_cv_asm_global_directive=UNKNOWN
4931 for ac_globl in .globl .global .EXPORT; do
4932 cat > conftest.s <<EOF
4937 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; }; then
4943 libc_cv_asm_global_directive=${ac_globl}
4946 test $libc_cv_asm_global_directive != UNKNOWN && break
4949 echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
4950 echo "${ECHO_T}$libc_cv_asm_global_directive" >&6
4951 if test $libc_cv_asm_global_directive = UNKNOWN; then
4952 { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
4953 echo "$as_me: error: cannot determine asm global directive" >&2;}
4954 { (exit 1); exit 1; }; }
4956 cat >>confdefs.h <<_ACEOF
4957 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
4962 echo "$as_me:$LINENO: checking for .set assembler directive" >&5
4963 echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6
4964 if test "${libc_cv_asm_set_directive+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 cat > conftest.s <<EOF
4970 .set glibc_conftest_frobozz,foo
4971 $libc_cv_asm_global_directive glibc_conftest_frobozz
4973 # The alpha-dec-osf1 assembler gives only a warning for `.set'
4974 # (but it doesn't work), so we must do a linking check to be sure.
4975 cat > conftest1.c <<\EOF
4976 extern int glibc_conftest_frobozz;
4977 void _start() { glibc_conftest_frobozz = 1; }
4979 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
4980 -nostartfiles -nostdlib \
4981 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
4982 libc_cv_asm_set_directive=yes
4984 libc_cv_asm_set_directive=no
4988 echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
4989 echo "${ECHO_T}$libc_cv_asm_set_directive" >&6
4990 if test $libc_cv_asm_set_directive = yes; then
4991 cat >>confdefs.h <<\_ACEOF
4992 #define HAVE_ASM_SET_DIRECTIVE 1
4997 echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
4998 echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6
4999 if test "${libc_cv_asm_type_prefix+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5002 libc_cv_asm_type_prefix=no
5003 for ac_try_prefix in '@' '%' '#'; do
5004 cat > conftest.s <<EOF
5006 ${libc_cv_asm_global_directive} foo
5007 .type foo, ${ac_try_prefix}object
5012 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; }; then
5018 libc_cv_asm_type_prefix=${ac_try_prefix}
5021 test "x$libc_cv_asm_type_prefix" != xno && break
5024 echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
5025 echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6
5026 if test "x$libc_cv_asm_type_prefix" != xno; then
5027 cat >>confdefs.h <<_ACEOF
5028 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
5033 # The Aix ld uses global .symbol_names instead of symbol_names.
5034 # Unfortunately also used in the PPC64 ELF ABI.
5035 case "${os}${machine}" in
5036 aix4.3* | linux*powerpc/powerpc64*)
5037 cat >>confdefs.h <<\_ACEOF
5038 #define HAVE_ASM_GLOBAL_DOT_NAME 1
5043 echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
5044 echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6
5045 if test "${libc_cv_asm_symver_directive+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5048 cat > conftest.s <<EOF
5051 .symver _sym,sym@VERS
5053 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5054 libc_cv_asm_symver_directive=yes
5056 libc_cv_asm_symver_directive=no
5060 echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
5061 echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6
5062 echo "$as_me:$LINENO: checking for ld --version-script" >&5
5063 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6
5064 if test "${libc_cv_ld_version_script_option+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 if test $libc_cv_asm_symver_directive = yes; then
5068 cat > conftest.s <<EOF
5071 .symver _sym,sym@VERS
5073 cat > conftest.map <<EOF
5082 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5083 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
5084 -o conftest.so conftest.o
5085 -nostartfiles -nostdlib
5086 -Wl,--version-script,conftest.map
5088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); }; };
5094 libc_cv_ld_version_script_option=yes
5096 libc_cv_ld_version_script_option=no
5099 libc_cv_ld_version_script_option=no
5102 libc_cv_ld_version_script_option=no
5106 echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
5107 echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6
5108 if test $shared != no &&
5109 test $libc_cv_asm_symver_directive = yes &&
5110 test $libc_cv_ld_version_script_option = yes &&
5111 test $enable_versioning = yes; then
5113 cat >>confdefs.h <<\_ACEOF
5114 #define DO_VERSIONING 1
5122 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
5124 *** WARNING: You should not compile GNU libc without versioning. Not using
5125 *** versioning will introduce incompatibilities so that old binaries
5126 *** will not run anymore.
5127 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
5129 if test $elf = yes; then
5130 echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
5131 echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6
5132 if test "${libc_cv_asm_previous_directive+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 cat > conftest.s <<EOF
5136 .section foo_section
5139 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; }; then
5145 libc_cv_asm_previous_directive=yes
5147 libc_cv_asm_previous_directive=no
5151 echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
5152 echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6
5153 if test $libc_cv_asm_previous_directive = yes; then
5154 cat >>confdefs.h <<\_ACEOF
5155 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
5159 echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
5160 echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6
5161 if test "${libc_cv_asm_popsection_directive+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 cat > conftest.s <<EOF
5165 .pushsection foo_section
5168 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; }; then
5174 libc_cv_asm_popsection_directive=yes
5176 libc_cv_asm_popsection_directive=no
5180 echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
5181 echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6
5182 if test $libc_cv_asm_popsection_directive = yes; then
5183 cat >>confdefs.h <<\_ACEOF
5184 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
5189 echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
5190 echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6
5191 if test "${libc_cv_asm_protected_directive+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 cat > conftest.s <<EOF
5200 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; }; then
5206 libc_cv_asm_protected_directive=yes
5208 libc_cv_asm_protected_directive=no
5212 echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
5213 echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6
5215 cat >>confdefs.h <<\_ACEOF
5216 #define HAVE_PROTECTED 1
5219 cat >>confdefs.h <<\_ACEOF
5220 #define HAVE_HIDDEN 1
5224 if test $libc_cv_asm_protected_directive = yes; then
5225 echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
5226 echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6
5227 if test "${libc_cv_visibility_attribute+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 cat > conftest.c <<EOF
5231 int foo __attribute__ ((visibility ("hidden"))) = 1;
5232 int bar __attribute__ ((visibility ("protected"))) = 1;
5234 libc_cv_visibility_attribute=no
5235 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; }; then
5241 if grep '\.hidden.*foo' conftest.s >/dev/null; then
5242 if grep '\.protected.*bar' conftest.s >/dev/null; then
5243 libc_cv_visibility_attribute=yes
5250 echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
5251 echo "${ECHO_T}$libc_cv_visibility_attribute" >&6
5252 if test $libc_cv_visibility_attribute = yes; then
5253 cat >>confdefs.h <<\_ACEOF
5254 #define HAVE_VISIBILITY_ATTRIBUTE 1
5260 if test $libc_cv_visibility_attribute = yes; then
5261 echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
5262 echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6
5263 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 cat > conftest.c <<EOF
5268 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
5269 int bar (int x) { return x; }
5271 libc_cv_broken_visibility_attribute=yes
5272 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; }; then
5278 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
5279 libc_cv_broken_visibility_attribute=no
5282 rm -f conftest.c conftest.s
5285 echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
5286 echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6
5287 if test $libc_cv_broken_visibility_attribute = yes; then
5288 cat >>confdefs.h <<\_ACEOF
5289 #define HAVE_BROKEN_VISIBILITY_ATTRIBUTE 1
5295 echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
5296 echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6
5297 if test "${libc_cv_broken_alias_attribute+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 cat > conftest.c <<EOF
5301 extern int foo (int x) __asm ("xyzzy");
5302 int bar (int x) { return x; }
5303 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5305 extern __typeof (dfoo) dfoo __asm ("abccb");
5308 libc_cv_broken_alias_attribute=yes
5309 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; }; then
5315 if grep 'xyzzy' conftest.s >/dev/null &&
5316 grep 'abccb' conftest.s >/dev/null; then
5317 libc_cv_broken_alias_attribute=no
5320 rm -f conftest.c conftest.s
5323 echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
5324 echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6
5325 if test $libc_cv_broken_alias_attribute = yes; then
5326 cat >>confdefs.h <<\_ACEOF
5327 #define HAVE_BROKEN_ALIAS_ATTRIBUTE 1
5332 if test $libc_cv_visibility_attribute = yes -a $gnu_ld = yes; then
5333 echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
5334 echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6
5335 if test "${libc_cv_have_sdata_section+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 echo "int i;" > conftest.c
5339 libc_cv_have_sdata_section=no
5340 if ${CC-cc} $LDFLAGS -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
5341 | grep '\.sdata' >/dev/null; then
5342 libc_cv_have_sdata_section=yes
5344 rm -f conftest.c conftest.so
5347 echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
5348 echo "${ECHO_T}$libc_cv_have_sdata_section" >&6
5349 if test $libc_cv_have_sdata_section = yes; then
5350 cat >>confdefs.h <<\_ACEOF
5351 #define HAVE_SDATA_SECTION 1
5357 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
5358 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
5359 if test "${libc_cv_initfinit_array+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 cat > conftest.c <<EOF
5363 int _start (void) { return 0; }
5364 int __start (void) { return 0; }
5365 int foo (void) { return 1; }
5366 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
5368 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
5369 -static -nostartfiles -nostdlib 1>&5'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; }
5376 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
5377 libc_cv_initfinit_array=yes
5379 libc_cv_initfinit_array=no
5382 libc_cv_initfinit_array=no
5386 echo "$as_me:$LINENO: result: $libc_cv_initfinit_array" >&5
5387 echo "${ECHO_T}$libc_cv_initfinit_array" >&6
5389 if test $libc_cv_initfinit_array = yes; then
5390 cat >>confdefs.h <<\_ACEOF
5391 #define HAVE_INITFINI_ARRAY 1
5396 echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
5397 echo $ECHO_N "checking for libunwind-support in compiler... $ECHO_C" >&6
5398 if test "${libc_cv_cc_with_libunwind+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5401 cat >conftest.$ac_ext <<_ACEOF
5404 cat confdefs.h >>conftest.$ac_ext
5405 cat >>conftest.$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5407 #include <libunwind.h>
5414 unw_getcontext (&uc);
5415 unw_init_local (&c, &uc)
5420 rm -f conftest.$ac_objext conftest$ac_exeext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5422 (eval $ac_link) 2>conftest.er1
5424 grep -v '^ *+' conftest.er1 >conftest.err
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } &&
5429 { ac_try='test -z "$ac_c_werror_flag"
5430 || test ! -s conftest.err'
5431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); }; } &&
5436 { ac_try='test -s conftest$ac_exeext'
5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); }; }; then
5442 libc_cv_cc_with_libunwind=yes
5444 echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5447 libc_cv_cc_with_libunwind=no
5449 rm -f conftest.err conftest.$ac_objext \
5450 conftest$ac_exeext conftest.$ac_ext
5452 echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
5453 echo "${ECHO_T}$libc_cv_cc_with_libunwind" >&6
5455 if test $libc_cv_cc_with_libunwind = yes; then
5456 cat >>confdefs.h <<\_ACEOF
5457 #define HAVE_CC_WITH_LIBUNWIND 1
5462 echo "$as_me:$LINENO: checking for -z nodelete option" >&5
5463 echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6
5464 if test "${libc_cv_z_nodelete+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 cat > conftest.c <<EOF
5468 int _start (void) { return 42; }
5470 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5471 -shared -o conftest.so conftest.c
5472 -nostartfiles -nostdlib
5473 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; }
5480 libc_cv_z_nodelete=yes
5482 libc_cv_z_nodelete=no
5486 echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
5487 echo "${ECHO_T}$libc_cv_z_nodelete" >&6
5490 echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
5491 echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6
5492 if test "${libc_cv_z_nodlopen+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 cat > conftest.c <<EOF
5496 int _start (void) { return 42; }
5498 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5499 -shared -o conftest.so conftest.c
5500 -nostartfiles -nostdlib
5501 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; }
5508 libc_cv_z_nodlopen=yes
5510 libc_cv_z_nodlopen=no
5514 echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
5515 echo "${ECHO_T}$libc_cv_z_nodlopen" >&6
5518 echo "$as_me:$LINENO: checking for -z initfirst option" >&5
5519 echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6
5520 if test "${libc_cv_z_initfirst+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 cat > conftest.c <<EOF
5524 int _start (void) { return 42; }
5526 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5527 -shared -o conftest.so conftest.c
5528 -nostartfiles -nostdlib
5529 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
5530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); }; }
5536 libc_cv_z_initfirst=yes
5538 libc_cv_z_initfirst=no
5542 echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
5543 echo "${ECHO_T}$libc_cv_z_initfirst" >&6
5546 echo "$as_me:$LINENO: checking for -z relro option" >&5
5547 echo $ECHO_N "checking for -z relro option... $ECHO_C" >&6
5548 if test "${libc_cv_z_relro+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
5552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; }
5563 echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
5564 echo "${ECHO_T}$libc_cv_z_relro" >&6
5566 if test $libc_cv_z_relro = yes; then
5567 cat >>confdefs.h <<\_ACEOF
5568 #define HAVE_Z_RELRO 1
5573 echo "$as_me:$LINENO: checking for -Bgroup option" >&5
5574 echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6
5575 if test "${libc_cv_Bgroup+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 cat > conftest.c <<EOF
5579 int _start (void) { return 42; }
5581 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5582 -shared -o conftest.so conftest.c
5583 -Wl,-Bgroup -nostdlib 1>&5'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; }
5596 echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
5597 echo "${ECHO_T}$libc_cv_Bgroup" >&6
5600 echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
5601 echo $ECHO_N "checking for libgcc_s suffix... $ECHO_C" >&6
5602 if test "${libc_cv_libgcc_s_suffix+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5605 cat > conftest.c <<EOF
5606 int main (void) { return 0; }
5608 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5609 -shared -shared-libgcc -o conftest.so \
5610 conftest.c -v 2>&1 >/dev/null \
5611 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
5614 echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
5615 echo "${ECHO_T}$libc_cv_libgcc_s_suffix" >&6
5618 echo "$as_me:$LINENO: checking for --as-needed option" >&5
5619 echo $ECHO_N "checking for --as-needed option... $ECHO_C" >&6
5620 if test "${libc_cv_as_needed+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 cat > conftest.c <<EOF
5624 int main (void) { return 0; }
5626 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5627 -shared -o conftest.so conftest.c
5628 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }
5636 libc_cv_as_needed=yes
5638 libc_cv_as_needed=no
5642 echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
5643 echo "${ECHO_T}$libc_cv_as_needed" >&6
5647 echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
5648 echo $ECHO_N "checking whether --noexecstack is desirable for .S files... $ECHO_C" >&6
5649 if test "${libc_cv_as_noexecstack+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 cat > conftest.c <<EOF
5655 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
5656 -S -o conftest.s conftest.c 1>&5'
5657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; } \
5662 && grep -q .note.GNU-stack conftest.s \
5663 && { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wa,--noexecstack
5664 -c -o conftest.o conftest.s 1>&5'
5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; }
5671 libc_cv_as_noexecstack=yes
5673 libc_cv_as_noexecstack=no
5677 echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
5678 echo "${ECHO_T}$libc_cv_as_noexecstack" >&6
5679 if test $libc_cv_as_noexecstack = yes; then
5680 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
5684 echo "$as_me:$LINENO: checking for -z combreloc" >&5
5685 echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6
5686 if test "${libc_cv_z_combreloc+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 cat > conftest.c <<EOF
5690 extern int bar (int);
5692 int foo (void) { return bar (mumble); }
5694 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5695 -shared -o conftest.so conftest.c
5696 -nostdlib -nostartfiles
5697 -Wl,-z,combreloc 1>&5'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; }
5704 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
5705 libc_cv_z_combreloc=yes
5707 libc_cv_z_combreloc=no
5710 libc_cv_z_combreloc=no
5714 echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
5715 echo "${ECHO_T}$libc_cv_z_combreloc" >&6
5716 if test "$libc_cv_z_combreloc" = yes; then
5717 cat >>confdefs.h <<\_ACEOF
5718 #define HAVE_Z_COMBRELOC 1
5724 echo "$as_me:$LINENO: checking for -z execstack" >&5
5725 echo $ECHO_N "checking for -z execstack... $ECHO_C" >&6
5726 if test "${libc_cv_z_execstack+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 cat > conftest.c <<EOF
5730 int _start (void) { return 42; }
5732 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5733 -shared -o conftest.so conftest.c
5734 -Wl,-z,execstack -nostdlib
5736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; }
5742 libc_cv_z_execstack=yes
5744 libc_cv_z_execstack=no
5748 echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
5749 echo "${ECHO_T}$libc_cv_z_execstack" >&6
5752 echo "$as_me:$LINENO: checking for -fpie" >&5
5753 echo $ECHO_N "checking for -fpie... $ECHO_C" >&6
5754 if test "${libc_cv_fpie+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 cat > conftest.c <<EOF
5759 main () { return 0;}
5761 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
5762 -o conftest conftest.c 1>&5'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; }
5775 echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
5776 echo "${ECHO_T}$libc_cv_fpie" >&6
5781 echo "$as_me:$LINENO: checking for -fno-unit-at-a-time" >&5
5782 echo $ECHO_N "checking for -fno-unit-at-a-time... $ECHO_C" >&6
5783 if test "${libc_cv_fno_unit_at_a_time+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 cat > conftest.c <<EOF
5789 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-unit-at-a-time
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; }
5797 libc_cv_fno_unit_at_a_time=yes
5799 libc_cv_fno_unit_at_a_time=no
5803 echo "$as_me:$LINENO: result: $libc_cv_fno_unit_at_a_time" >&5
5804 echo "${ECHO_T}$libc_cv_fno_unit_at_a_time" >&6
5805 if test $libc_cv_fno_unit_at_a_time = yes; then
5806 fno_unit_at_a_time=-fno-unit-at-a-time
5810 if test $elf != yes; then
5811 echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
5812 echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6
5813 if test "${libc_cv_have_initfini+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 cat >conftest.$ac_ext <<_ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5826 asm (".section .init");
5827 asm (".section .fini");
5828 asm ("${libc_cv_dot_text}");
5833 rm -f conftest.$ac_objext
5834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5835 (eval $ac_compile) 2>conftest.er1
5837 grep -v '^ *+' conftest.er1 >conftest.err
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } &&
5842 { ac_try='test -z "$ac_c_werror_flag"
5843 || test ! -s conftest.err'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; } &&
5849 { ac_try='test -s conftest.$ac_objext'
5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; }; then
5855 libc_cv_have_initfini=yes
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5860 libc_cv_have_initfini=no
5862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5864 echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
5865 echo "${ECHO_T}$libc_cv_have_initfini" >&6
5866 if test $libc_cv_have_initfini = yes; then
5867 cat >>confdefs.h <<\_ACEOF
5868 #define HAVE_INITFINI 1
5874 if test $elf = yes -a $gnu_ld = yes; then
5875 echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
5876 echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6
5877 if test "${libc_cv_have_section_quotes+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 cat > conftest.c <<EOF
5881 static const int foo
5882 __attribute__ ((section ("bar"))) = 1;
5884 if ${CC-cc} -S conftest.c -o conftest.s; then
5885 if grep '\.section.*"bar"' conftest.s >/dev/null; then
5886 libc_cv_have_section_quotes=yes
5888 libc_cv_have_section_quotes=no
5891 libc_cv_have_section_quotes=unknown
5896 echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
5897 echo "${ECHO_T}$libc_cv_have_section_quotes" >&6
5898 if test $libc_cv_have_section_quotes = yes; then
5899 cat >>confdefs.h <<\_ACEOF
5900 #define HAVE_SECTION_QUOTES 1
5908 if test $elf = yes; then
5909 libc_cv_asm_underscores=no
5911 if test $ac_cv_prog_cc_works = yes; then
5912 echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
5913 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6
5914 if test "${libc_cv_asm_underscores+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 cat >conftest.$ac_ext <<_ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h. */
5923 asm ("_glibc_foobar:");
5932 rm -f conftest.$ac_objext conftest$ac_exeext
5933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5934 (eval $ac_link) 2>conftest.er1
5936 grep -v '^ *+' conftest.er1 >conftest.err
5938 cat conftest.err >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } &&
5941 { ac_try='test -z "$ac_c_werror_flag"
5942 || test ! -s conftest.err'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; } &&
5948 { ac_try='test -s conftest$ac_exeext'
5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
5954 libc_cv_asm_underscores=yes
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5959 libc_cv_asm_underscores=no
5961 rm -f conftest.err conftest.$ac_objext \
5962 conftest$ac_exeext conftest.$ac_ext
5964 echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
5965 echo "${ECHO_T}$libc_cv_asm_underscores" >&6
5967 echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
5968 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6
5969 if test "${libc_cv_asm_underscores+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 cat > conftest.$ac_ext <<EOF
5973 #line $LINENO "configure"
5974 #include "confdefs.h"
5975 void underscore_test(void) {
5978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5979 (eval $ac_compile) 2>&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; then
5983 if grep _underscore_test conftest* >/dev/null; then
5985 libc_cv_asm_underscores=yes
5988 libc_cv_asm_underscores=no
5991 echo "configure: failed program was:" >&5
5992 cat conftest.$ac_ext >&5
5994 libc_cv_asm_underscores=no
5998 echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
5999 echo "${ECHO_T}$libc_cv_asm_underscores" >&6
6002 if test $libc_cv_asm_underscores = no; then
6003 cat >>confdefs.h <<\_ACEOF
6004 #define NO_UNDERSCORES 1
6009 if test $elf = yes; then
6010 libc_cv_weak_symbols=yes
6013 echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
6014 echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6
6015 if test "${libc_cv_asm_weak_directive+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 cat > conftest.s <<EOF
6020 ${libc_cv_asm_global_directive} foo
6023 .weak bar; bar = foo
6025 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }; }; then
6031 libc_cv_asm_weak_directive=yes
6033 libc_cv_asm_weak_directive=no
6037 echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
6038 echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6
6040 if test $libc_cv_asm_weak_directive = no; then
6041 echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
6042 echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6
6043 if test "${libc_cv_asm_weakext_directive+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 cat > conftest.s <<EOF
6048 ${libc_cv_asm_global_directive} foo
6052 ${libc_cv_asm_global_directive} baz
6055 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }; }; then
6061 libc_cv_asm_weakext_directive=yes
6063 libc_cv_asm_weakext_directive=no
6067 echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
6068 echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6
6072 if test $libc_cv_asm_weak_directive = yes; then
6073 cat >>confdefs.h <<\_ACEOF
6074 #define HAVE_ASM_WEAK_DIRECTIVE 1
6077 elif test $libc_cv_asm_weakext_directive = yes; then
6078 cat >>confdefs.h <<\_ACEOF
6079 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
6084 case "${host_cpu}-${host_os}" in
6086 libc_cv_asm_line_sep='@'
6087 cat >>confdefs.h <<_ACEOF
6088 #define ASM_LINE_SEP $libc_cv_asm_line_sep
6093 echo "$as_me:$LINENO: checking for assembler line separator" >&5
6094 echo $ECHO_N "checking for assembler line separator... $ECHO_C" >&6
6095 if test "${libc_cv_asm_line_sep+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 cat > conftest.s <<EOF
6101 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); }; }; then
6107 libc_cv_asm_line_sep='!'
6109 if test -z "$enable_hacker_mode"; then
6110 echo "*** You need a newer assembler to compile glibc"
6114 libc_cv_asm_line_sep=';'
6118 echo "$as_me:$LINENO: result: $libc_cv_asm_line_sep" >&5
6119 echo "${ECHO_T}$libc_cv_asm_line_sep" >&6
6120 cat >>confdefs.h <<_ACEOF
6121 #define ASM_LINE_SEP $libc_cv_asm_line_sep
6127 echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
6128 echo $ECHO_N "checking whether CFI directives are supported... $ECHO_C" >&6
6129 if test "${libc_cv_asm_cfi_directives+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6132 cat > conftest.s <<EOF
6134 .type func,@function
6138 .cfi_rel_offset 1, 0
6141 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
6147 libc_cv_asm_cfi_directives=yes
6149 libc_cv_asm_cfi_directives=no
6153 echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
6154 echo "${ECHO_T}$libc_cv_asm_cfi_directives" >&6
6155 if test $libc_cv_asm_cfi_directives = yes; then
6156 cat >>confdefs.h <<\_ACEOF
6157 #define HAVE_ASM_CFI_DIRECTIVES 1
6162 echo "$as_me:$LINENO: checking if -g produces usable source locations for assembler-with-cpp" >&5
6163 echo $ECHO_N "checking if -g produces usable source locations for assembler-with-cpp... $ECHO_C" >&6
6164 if test "${libc_cv_cpp_asm_debuginfo+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 cat > conftest.S <<EOF
6168 #include "confdefs.h"
6173 ${libc_cv_asm_global_directive} foo
6175 /* Unfortunately this test only works for a real instruction,
6176 not for any of the machine-independent pseudo-ops.
6177 So we just have to assume everybody has a "nop". */
6184 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -g -c conftest.S 1>&5'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; } && {
6190 ac_pattern='conftest\.S'
6191 { ac_try='readelf --debug-dump=line conftest.o |
6192 grep $ac_pattern 1>&5'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }
6199 libc_cv_cpp_asm_debuginfo=yes
6201 libc_cv_cpp_asm_debuginfo=no
6205 echo "$as_me:$LINENO: result: $libc_cv_cpp_asm_debuginfo" >&5
6206 echo "${ECHO_T}$libc_cv_cpp_asm_debuginfo" >&6
6207 if test $libc_cv_cpp_asm_debuginfo = yes; then
6208 cat >>confdefs.h <<\_ACEOF
6209 #define HAVE_CPP_ASM_DEBUGINFO 1
6214 echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
6215 echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6
6216 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 cat > conftest.c <<\EOF
6224 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6225 -nostdlib -nostartfiles -Wl,--no-whole-archive
6226 -o conftest conftest.c 1>&5'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; }; then
6232 libc_cv_ld_no_whole_archive=yes
6234 libc_cv_ld_no_whole_archive=no
6238 echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
6239 echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6
6240 if test $libc_cv_ld_no_whole_archive = yes; then
6241 no_whole_archive=-Wl,--no-whole-archive
6244 echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
6245 echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6
6246 if test "${libc_cv_gcc_exceptions+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 cat > conftest.c <<\EOF
6254 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6255 -nostdlib -nostartfiles -fexceptions
6256 -o conftest conftest.c 1>&5'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; }; then
6262 libc_cv_gcc_exceptions=yes
6264 libc_cv_gcc_exceptions=no
6268 echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
6269 echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6
6270 if test $libc_cv_gcc_exceptions = yes; then
6271 exceptions=-fexceptions
6274 if test "$host_cpu" = powerpc ; then
6275 # Check for a bug present in at least versions 2.8.x of GCC
6276 # and versions 1.0.x of EGCS.
6277 echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
6278 echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6
6279 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 cat >conftest.$ac_ext <<_ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6288 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
6297 rm -f conftest.$ac_objext
6298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6299 (eval $ac_compile) 2>conftest.er1
6301 grep -v '^ *+' conftest.er1 >conftest.err
6303 cat conftest.err >&5
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } &&
6306 { ac_try='test -z "$ac_c_werror_flag"
6307 || test ! -s conftest.err'
6308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; } &&
6313 { ac_try='test -s conftest.$ac_objext'
6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; }; then
6319 libc_cv_c_asmcr0_bug='no'
6321 echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6324 libc_cv_c_asmcr0_bug='yes'
6326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6328 echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
6329 echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6
6330 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
6331 cat >>confdefs.h <<\_ACEOF
6332 #define BROKEN_PPC_ASM_CR0 1
6338 echo "$as_me:$LINENO: checking for DWARF2 unwind info support" >&5
6339 echo $ECHO_N "checking for DWARF2 unwind info support... $ECHO_C" >&6
6340 if test "${libc_cv_gcc_dwarf2_unwind_info+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 cat > conftest.c <<EOF
6344 #line $LINENO "configure"
6345 static char *__EH_FRAME_BEGIN__;
6348 #ifdef CHECK__register_frame
6349 __register_frame (__EH_FRAME_BEGIN__);
6350 __deregister_frame (__EH_FRAME_BEGIN__);
6352 #ifdef CHECK__register_frame_info
6353 __register_frame_info (__EH_FRAME_BEGIN__);
6354 __deregister_frame_info (__EH_FRAME_BEGIN__);
6359 /* FIXME: this is fragile. */
6368 dl_iterate_phdr () {}
6370 libc_unwind_check="${CC-cc} $CFLAGS $CPPFLAGS -DCHECK__register_frame_info \
6372 -nostdlib -nostartfiles -o conftest conftest.c \
6374 # Some platforms' specs put -lgcc first. The second one doesn't hurt.
6375 if { ac_try='$libc_unwind_check >&5'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; } ||
6381 { ac_try='$libc_unwind_check -lgcc_eh -lgcc >&5'
6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; }
6388 if $libc_unwind_check -v 2>&1 >/dev/null \
6389 | grep -- --eh-frame-hdr 2>&1 >/dev/null; then
6390 libc_cv_gcc_dwarf2_unwind_info=no_registry_needed
6392 libc_cv_gcc_dwarf2_unwind_info=static
6395 libc_cv_gcc_dwarf2_unwind_info=no
6397 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
6398 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -DCHECK__register_frame
6399 $LDFLAGS -nostdlib -nostartfiles
6400 -o conftest conftest.c -lgcc >&5'
6401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; }; then
6406 libc_cv_gcc_dwarf2_unwind_info=yes
6408 libc_cv_gcc_dwarf2_unwind_info=no
6413 echo "$as_me:$LINENO: result: $libc_cv_gcc_dwarf2_unwind_info" >&5
6414 echo "${ECHO_T}$libc_cv_gcc_dwarf2_unwind_info" >&6
6415 case $libc_cv_gcc_dwarf2_unwind_info in
6417 cat >>confdefs.h <<\_ACEOF
6418 #define HAVE_DWARF2_UNWIND_INFO 1
6423 cat >>confdefs.h <<\_ACEOF
6424 #define HAVE_DWARF2_UNWIND_INFO 1
6427 cat >>confdefs.h <<\_ACEOF
6428 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
6434 echo "$as_me:$LINENO: checking for __builtin_expect" >&5
6435 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6
6436 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 cat > conftest.c <<EOF
6440 #line $LINENO "configure"
6443 a = __builtin_expect (a, 10);
6444 return a == 10 ? 0 : 1;
6447 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
6448 -o conftest conftest.c -lgcc >&5'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; }; then
6454 libc_cv_gcc_builtin_expect=yes
6456 libc_cv_gcc_builtin_expect=no
6460 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
6461 echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6
6462 if test "$libc_cv_gcc_builtin_expect" = yes; then
6463 cat >>confdefs.h <<\_ACEOF
6464 #define HAVE_BUILTIN_EXPECT 1
6469 echo "$as_me:$LINENO: checking for __builtin_memset" >&5
6470 echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6
6471 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 cat > conftest.c <<\EOF
6477 __builtin_memset (x, 0, 1000);
6480 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
6481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; };
6487 libc_cv_gcc_builtin_memset=no
6489 libc_cv_gcc_builtin_memset=yes
6493 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
6494 echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6
6495 if test "$libc_cv_gcc_builtin_memset" = yes ; then
6496 cat >>confdefs.h <<\_ACEOF
6497 #define HAVE_BUILTIN_MEMSET 1
6502 echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
6503 echo $ECHO_N "checking for redirection of built-in functions... $ECHO_C" >&6
6504 if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 cat > conftest.c <<\EOF
6508 extern char *strstr (const char *, const char *) __asm ("my_strstr");
6509 char *foo (const char *a, const char *b)
6511 return __builtin_strstr (a, b);
6514 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; };
6521 libc_cv_gcc_builtin_redirection=yes
6523 libc_cv_gcc_builtin_redirection=no
6527 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
6528 echo "${ECHO_T}$libc_cv_gcc_builtin_redirection" >&6
6529 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
6530 cat >>confdefs.h <<\_ACEOF
6531 #define HAVE_BUILTIN_REDIRECTION 1
6536 echo "$as_me:$LINENO: checking for local label subtraction" >&5
6537 echo $ECHO_N "checking for local label subtraction... $ECHO_C" >&6
6538 if test "${libc_cv_gcc_subtract_local_labels+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 cat > conftest.c <<EOF
6542 #line $LINENO "configure"
6545 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
6546 void *p = &&l1 + ar[a];
6554 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
6555 -o conftest conftest.c -lgcc >&5'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; }; then
6561 libc_cv_gcc_subtract_local_labels=yes
6563 libc_cv_gcc_subtract_local_labels=no
6567 echo "$as_me:$LINENO: result: $libc_cv_gcc_subtract_local_labels" >&5
6568 echo "${ECHO_T}$libc_cv_gcc_subtract_local_labels" >&6
6569 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
6570 cat >>confdefs.h <<\_ACEOF
6571 #define HAVE_SUBTRACT_LOCAL_LABELS 1
6576 if test "x$use__thread" != xno; then
6577 echo "$as_me:$LINENO: checking for __thread" >&5
6578 echo $ECHO_N "checking for __thread... $ECHO_C" >&6
6579 if test "${libc_cv_gcc___thread+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 cat > conftest.c <<\EOF
6583 __thread int a = 42;
6585 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 libc_cv_gcc___thread=yes
6593 libc_cv_gcc___thread=no
6597 echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
6598 echo "${ECHO_T}$libc_cv_gcc___thread" >&6
6599 if test "$libc_cv_gcc___thread" = yes; then
6600 cat >>confdefs.h <<\_ACEOF
6601 #define HAVE___THREAD 1
6606 libc_cv_gcc___thread=no
6609 if test "$libc_cv_gcc___thread" = yes; then
6610 echo "$as_me:$LINENO: checking for tls_model attribute" >&5
6611 echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6
6612 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 cat > conftest.c <<\EOF
6616 extern __thread int a __attribute__((tls_model ("initial-exec")));
6618 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; }; then
6624 libc_cv_gcc_tls_model_attr=yes
6626 libc_cv_gcc_tls_model_attr=no
6630 echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
6631 echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6
6632 if test "$libc_cv_gcc_tls_model_attr" = yes; then
6633 cat >>confdefs.h <<\_ACEOF
6634 #define HAVE_TLS_MODEL_ATTRIBUTE 1
6640 echo "$as_me:$LINENO: checking for libgd" >&5
6641 echo $ECHO_N "checking for libgd... $ECHO_C" >&6
6642 if test "$with_gd" != "no"; then
6643 old_CFLAGS="$CFLAGS"
6644 CFLAGS="$CFLAGS $libgd_include"
6645 old_LDFLAGS="$LDFLAGS"
6646 LDFLAGS="$LDFLAGS $libgd_ldflags"
6648 LIBS="$LIBS -lgd -lpng -lz -lm"
6649 cat >conftest.$ac_ext <<_ACEOF
6652 cat confdefs.h >>conftest.$ac_ext
6653 cat >>conftest.$ac_ext <<_ACEOF
6654 /* end confdefs.h. */
6664 rm -f conftest.$ac_objext conftest$ac_exeext
6665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6666 (eval $ac_link) 2>conftest.er1
6668 grep -v '^ *+' conftest.er1 >conftest.err
6670 cat conftest.err >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } &&
6673 { ac_try='test -z "$ac_c_werror_flag"
6674 || test ! -s conftest.err'
6675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); }; } &&
6680 { ac_try='test -s conftest$ac_exeext'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; }; then
6688 echo "$as_me: failed program was:" >&5
6689 sed 's/^/| /' conftest.$ac_ext >&5
6693 rm -f conftest.err conftest.$ac_objext \
6694 conftest$ac_exeext conftest.$ac_ext
6695 CFLAGS="$old_CFLAGS"
6696 LDFLAGS="$old_LDFLAGS"
6701 echo "$as_me:$LINENO: result: $LIBGD" >&5
6702 echo "${ECHO_T}$LIBGD" >&6
6706 echo "$as_me:$LINENO: checking for egrep" >&5
6707 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6708 if test "${ac_cv_prog_egrep+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6712 then ac_cv_prog_egrep='grep -E'
6713 else ac_cv_prog_egrep='egrep'
6716 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6717 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6718 EGREP=$ac_cv_prog_egrep
6721 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6722 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6723 if test "${ac_cv_header_stdc+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 cat >conftest.$ac_ext <<_ACEOF
6729 cat confdefs.h >>conftest.$ac_ext
6730 cat >>conftest.$ac_ext <<_ACEOF
6731 /* end confdefs.h. */
6745 rm -f conftest.$ac_objext
6746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6747 (eval $ac_compile) 2>conftest.er1
6749 grep -v '^ *+' conftest.er1 >conftest.err
6751 cat conftest.err >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } &&
6754 { ac_try='test -z "$ac_c_werror_flag"
6755 || test ! -s conftest.err'
6756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; } &&
6761 { ac_try='test -s conftest.$ac_objext'
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; }; then
6767 ac_cv_header_stdc=yes
6769 echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6772 ac_cv_header_stdc=no
6774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6776 if test $ac_cv_header_stdc = yes; then
6777 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6778 cat >conftest.$ac_ext <<_ACEOF
6781 cat confdefs.h >>conftest.$ac_ext
6782 cat >>conftest.$ac_ext <<_ACEOF
6783 /* end confdefs.h. */
6787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6788 $EGREP "memchr" >/dev/null 2>&1; then
6791 ac_cv_header_stdc=no
6797 if test $ac_cv_header_stdc = yes; then
6798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6799 cat >conftest.$ac_ext <<_ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6809 $EGREP "free" >/dev/null 2>&1; then
6812 ac_cv_header_stdc=no
6818 if test $ac_cv_header_stdc = yes; then
6819 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6820 if test "$cross_compiling" = yes; then
6823 cat >conftest.$ac_ext <<_ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6830 #if ((' ' & 0x0FF) == 0x020)
6831 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6832 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6834 # define ISLOWER(c) \
6835 (('a' <= (c) && (c) <= 'i') \
6836 || ('j' <= (c) && (c) <= 'r') \
6837 || ('s' <= (c) && (c) <= 'z'))
6838 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6841 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6846 for (i = 0; i < 256; i++)
6847 if (XOR (islower (i), ISLOWER (i))
6848 || toupper (i) != TOUPPER (i))
6853 rm -f conftest$ac_exeext
6854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6855 (eval $ac_link) 2>&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }; }; then
6866 echo "$as_me: program exited with status $ac_status" >&5
6867 echo "$as_me: failed program was:" >&5
6868 sed 's/^/| /' conftest.$ac_ext >&5
6871 ac_cv_header_stdc=no
6873 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6877 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6878 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6879 if test $ac_cv_header_stdc = yes; then
6881 cat >>confdefs.h <<\_ACEOF
6882 #define STDC_HEADERS 1
6887 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6897 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6898 inttypes.h stdint.h unistd.h
6900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6901 echo "$as_me:$LINENO: checking for $ac_header" >&5
6902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 cat >conftest.$ac_ext <<_ACEOF
6909 cat confdefs.h >>conftest.$ac_ext
6910 cat >>conftest.$ac_ext <<_ACEOF
6911 /* end confdefs.h. */
6912 $ac_includes_default
6914 #include <$ac_header>
6916 rm -f conftest.$ac_objext
6917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6918 (eval $ac_compile) 2>conftest.er1
6920 grep -v '^ *+' conftest.er1 >conftest.err
6922 cat conftest.err >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } &&
6925 { ac_try='test -z "$ac_c_werror_flag"
6926 || test ! -s conftest.err'
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; } &&
6932 { ac_try='test -s conftest.$ac_objext'
6933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; }; then
6938 eval "$as_ac_Header=yes"
6940 echo "$as_me: failed program was:" >&5
6941 sed 's/^/| /' conftest.$ac_ext >&5
6943 eval "$as_ac_Header=no"
6945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6950 cat >>confdefs.h <<_ACEOF
6951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6959 echo "$as_me:$LINENO: checking for long double" >&5
6960 echo $ECHO_N "checking for long double... $ECHO_C" >&6
6961 if test "${ac_cv_type_long_double+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6964 cat >conftest.$ac_ext <<_ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6970 $ac_includes_default
6974 if ((long double *) 0)
6976 if (sizeof (long double))
6982 rm -f conftest.$ac_objext
6983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6984 (eval $ac_compile) 2>conftest.er1
6986 grep -v '^ *+' conftest.er1 >conftest.err
6988 cat conftest.err >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } &&
6991 { ac_try='test -z "$ac_c_werror_flag"
6992 || test ! -s conftest.err'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; } &&
6998 { ac_try='test -s conftest.$ac_objext'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; }; then
7004 ac_cv_type_long_double=yes
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 ac_cv_type_long_double=no
7011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7013 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
7014 echo "${ECHO_T}$ac_cv_type_long_double" >&6
7016 echo "$as_me:$LINENO: checking size of long double" >&5
7017 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
7018 if test "${ac_cv_sizeof_long_double+set}" = set; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 if test "$ac_cv_type_long_double" = yes; then
7022 # The cast to unsigned long works around a bug in the HP C Compiler
7023 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7024 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7025 # This bug is HP SR number 8606223364.
7026 if test "$cross_compiling" = yes; then
7027 # Depending upon the size, compute the lo and hi bounds.
7028 cat >conftest.$ac_ext <<_ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7034 $ac_includes_default
7038 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
7045 rm -f conftest.$ac_objext
7046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7047 (eval $ac_compile) 2>conftest.er1
7049 grep -v '^ *+' conftest.er1 >conftest.err
7051 cat conftest.err >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } &&
7054 { ac_try='test -z "$ac_c_werror_flag"
7055 || test ! -s conftest.err'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; } &&
7061 { ac_try='test -s conftest.$ac_objext'
7062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); }; }; then
7069 cat >conftest.$ac_ext <<_ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7075 $ac_includes_default
7079 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
7086 rm -f conftest.$ac_objext
7087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7088 (eval $ac_compile) 2>conftest.er1
7090 grep -v '^ *+' conftest.er1 >conftest.err
7092 cat conftest.err >&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); } &&
7095 { ac_try='test -z "$ac_c_werror_flag"
7096 || test ! -s conftest.err'
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; } &&
7102 { ac_try='test -s conftest.$ac_objext'
7103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); }; }; then
7108 ac_hi=$ac_mid; break
7110 echo "$as_me: failed program was:" >&5
7111 sed 's/^/| /' conftest.$ac_ext >&5
7113 ac_lo=`expr $ac_mid + 1`
7114 if test $ac_lo -le $ac_mid; then
7118 ac_mid=`expr 2 '*' $ac_mid + 1`
7120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7123 echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7126 cat >conftest.$ac_ext <<_ACEOF
7129 cat confdefs.h >>conftest.$ac_ext
7130 cat >>conftest.$ac_ext <<_ACEOF
7131 /* end confdefs.h. */
7132 $ac_includes_default
7136 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
7143 rm -f conftest.$ac_objext
7144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7145 (eval $ac_compile) 2>conftest.er1
7147 grep -v '^ *+' conftest.er1 >conftest.err
7149 cat conftest.err >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } &&
7152 { ac_try='test -z "$ac_c_werror_flag"
7153 || test ! -s conftest.err'
7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; } &&
7159 { ac_try='test -s conftest.$ac_objext'
7160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); }; }; then
7167 cat >conftest.$ac_ext <<_ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7173 $ac_includes_default
7177 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
7184 rm -f conftest.$ac_objext
7185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7186 (eval $ac_compile) 2>conftest.er1
7188 grep -v '^ *+' conftest.er1 >conftest.err
7190 cat conftest.err >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } &&
7193 { ac_try='test -z "$ac_c_werror_flag"
7194 || test ! -s conftest.err'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; } &&
7200 { ac_try='test -s conftest.$ac_objext'
7201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); }; }; then
7206 ac_lo=$ac_mid; break
7208 echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7211 ac_hi=`expr '(' $ac_mid ')' - 1`
7212 if test $ac_mid -le $ac_hi; then
7216 ac_mid=`expr 2 '*' $ac_mid`
7218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7221 echo "$as_me: failed program was:" >&5
7222 sed 's/^/| /' conftest.$ac_ext >&5
7226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7229 # Binary search between lo and hi bounds.
7230 while test "x$ac_lo" != "x$ac_hi"; do
7231 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7232 cat >conftest.$ac_ext <<_ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h. */
7238 $ac_includes_default
7242 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
7249 rm -f conftest.$ac_objext
7250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7251 (eval $ac_compile) 2>conftest.er1
7253 grep -v '^ *+' conftest.er1 >conftest.err
7255 cat conftest.err >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); } &&
7258 { ac_try='test -z "$ac_c_werror_flag"
7259 || test ! -s conftest.err'
7260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); }; } &&
7265 { ac_try='test -s conftest.$ac_objext'
7266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); }; }; then
7273 echo "$as_me: failed program was:" >&5
7274 sed 's/^/| /' conftest.$ac_ext >&5
7276 ac_lo=`expr '(' $ac_mid ')' + 1`
7278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7281 ?*) ac_cv_sizeof_long_double=$ac_lo;;
7282 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
7283 See \`config.log' for more details." >&5
7284 echo "$as_me: error: cannot compute sizeof (long double), 77
7285 See \`config.log' for more details." >&2;}
7286 { (exit 1); exit 1; }; } ;;
7289 if test "$cross_compiling" = yes; then
7290 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7291 See \`config.log' for more details." >&5
7292 echo "$as_me: error: cannot run test program while cross compiling
7293 See \`config.log' for more details." >&2;}
7294 { (exit 1); exit 1; }; }
7296 cat >conftest.$ac_ext <<_ACEOF
7299 cat confdefs.h >>conftest.$ac_ext
7300 cat >>conftest.$ac_ext <<_ACEOF
7301 /* end confdefs.h. */
7302 $ac_includes_default
7303 long longval () { return (long) (sizeof (long double)); }
7304 unsigned long ulongval () { return (long) (sizeof (long double)); }
7311 FILE *f = fopen ("conftest.val", "w");
7314 if (((long) (sizeof (long double))) < 0)
7316 long i = longval ();
7317 if (i != ((long) (sizeof (long double))))
7319 fprintf (f, "%ld\n", i);
7323 unsigned long i = ulongval ();
7324 if (i != ((long) (sizeof (long double))))
7326 fprintf (f, "%lu\n", i);
7328 exit (ferror (f) || fclose (f) != 0);
7334 rm -f conftest$ac_exeext
7335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7336 (eval $ac_link) 2>&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); }; }; then
7345 ac_cv_sizeof_long_double=`cat conftest.val`
7347 echo "$as_me: program exited with status $ac_status" >&5
7348 echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7352 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
7353 See \`config.log' for more details." >&5
7354 echo "$as_me: error: cannot compute sizeof (long double), 77
7355 See \`config.log' for more details." >&2;}
7356 { (exit 1); exit 1; }; }
7358 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7363 ac_cv_sizeof_long_double=0
7366 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
7367 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
7368 cat >>confdefs.h <<_ACEOF
7369 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7373 sizeof_long_double=$ac_cv_sizeof_long_double
7376 ### End of automated tests.
7377 ### Now run sysdeps configure fragments.
7379 # They also can set these variables.
7381 ldd_rewrite_script=no
7382 libc_cv_sysconfdir=$sysconfdir
7383 libc_cv_gcc_unwind_find_fde=no
7386 # Iterate over all the sysdep directories we will use, running their
7387 # configure fragments, and looking for a uname implementation.
7389 for dir in $sysnames; do
7392 *) dest=$srcdir/$dir ;;
7394 if test -r $dest/configure; then
7395 echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
7396 echo "${ECHO_T}running configure fragment for $dir" >&6
7400 if test -z "$uname"; then
7401 if test -r $dest/uname.c ||
7402 test -r $dest/uname.S ||
7403 { test -r $dest/syscalls.list &&
7404 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
7410 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
7411 cat >>confdefs.h <<\_ACEOF
7412 #define EXPORT_UNWIND_FIND_FDE 1
7418 # If we will use the generic uname implementation, we must figure out what
7419 # it will say by examining the system, and write the results in config-name.h.
7420 if test "$uname" = "sysdeps/generic"; then
7422 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
7423 if test $uname_sysname != $config_os; then
7424 config_release=`echo $config_os | sed s/$uname_sysname//`
7427 echo "$as_me:$LINENO: checking OS release for uname" >&5
7428 echo $ECHO_N "checking OS release for uname... $ECHO_C" >&6
7429 if test "${libc_cv_uname_release+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 if test -r /vmunix; then
7433 kernel_id=`strings /vmunix | grep UNIX`
7434 elif test -r /dynix; then
7435 kernel_id=`strings /dynix | grep DYNIX`
7440 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
7441 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
7442 != x$config_release; then
7443 # The configuration release is a substring of the kernel release.
7444 libc_cv_uname_release=$kernel_release
7445 elif test x$config_release != x; then
7446 libc_cv_uname_release=$config_release
7447 elif test x$kernel_release != x; then
7448 libc_cv_uname_release=$kernel_release
7450 libc_cv_uname_release=unknown
7453 echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
7454 echo "${ECHO_T}$libc_cv_uname_release" >&6
7455 uname_release="$libc_cv_uname_release"
7457 echo "$as_me:$LINENO: checking OS version for uname" >&5
7458 echo $ECHO_N "checking OS version for uname... $ECHO_C" >&6
7459 if test "${libc_cv_uname_version+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 if test -r /vmunix; then
7463 kernel_id=`strings /vmunix | grep UNIX`
7464 elif test -r /dynix; then
7465 kernel_id=`strings /dynix | grep DYNIX`
7470 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
7471 if test -n "$kernel_version"; then
7472 libc_cv_uname_version="$kernel_version"
7474 libc_cv_uname_version=unknown
7477 echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
7478 echo "${ECHO_T}$libc_cv_uname_version" >&6
7479 uname_version="$libc_cv_uname_version"
7481 config_uname=config-name.h:config-name.in
7483 # For non-generic uname, we don't need to create config-name.h at all.
7487 cat >>confdefs.h <<\_ACEOF
7488 #define USE_IN_LIBIO 1
7492 # Test for old glibc 2.0.x headers so that they can be removed properly
7493 # Search only in includedir.
7494 echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
7495 echo $ECHO_N "checking for old glibc 2.0.x headers... $ECHO_C" >&6
7496 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
7498 old_glibc_headers=yes
7500 old_glibc_headers=no
7502 echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
7503 echo "${ECHO_T}$old_glibc_headers" >&6
7504 if test ${old_glibc_headers} = yes; then
7505 { echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
7506 echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
7507 { echo "$as_me:$LINENO: WARNING: *** be removed." >&5
7508 echo "$as_me: WARNING: *** be removed." >&2;}
7522 if test $gnu_ld = yes; then
7523 cat >>confdefs.h <<\_ACEOF
7524 #define HAVE_GNU_LD 1
7528 if test $gnu_as = yes; then
7529 cat >>confdefs.h <<\_ACEOF
7530 #define HAVE_GNU_AS 1
7534 if test $elf = yes; then
7535 cat >>confdefs.h <<\_ACEOF
7540 if test $xcoff = yes; then
7541 cat >>confdefs.h <<\_ACEOF
7542 #define HAVE_XCOFF 1
7549 if test $shared = default; then
7550 if test $gnu_ld = yes; then
7553 # For now we do not assume shared libs are available. In future more
7554 # tests might become available.
7559 if test x"$libc_cv_idn" = xyes; then
7560 cat >>confdefs.h <<\_ACEOF
7561 #define HAVE_LIBIDN 1
7566 echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
7567 echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6
7568 if test "${pic_default+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7572 cat > conftest.c <<EOF
7573 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
7574 # error PIC is default.
7577 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
7582 echo "$as_me:$LINENO: result: $pic_default" >&5
7583 echo "${ECHO_T}$pic_default" >&6
7595 *door*) linux_doors=yes ;;
7596 *) linux_doors=no ;;
7602 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
7605 config_makefile=Makefile
7608 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
7609 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
7613 ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
7615 ac_config_commands="$ac_config_commands default"
7617 cat >confcache <<\_ACEOF
7618 # This file is a shell script that caches the results of configure
7619 # tests run on this system so they can be shared between configure
7620 # scripts and configure runs, see configure's option --config-cache.
7621 # It is not useful on other systems. If it contains results you don't
7622 # want to keep, you may remove or edit it.
7624 # config.status only pays attention to the cache file if you give it
7625 # the --recheck option to rerun configure.
7627 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7628 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7633 # The following way of writing the cache mishandles newlines in values,
7634 # but we know of no workaround that is simple, portable, and efficient.
7635 # So, don't put newlines in cache variables' values.
7636 # Ultrix sh set writes to stderr and can't be redirected directly,
7637 # and sets the high bit in the cache file unless we assign to the vars.
7640 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7642 # `set' does not quote correctly, so add quotes (double-quote
7643 # substitution turns \\\\ into \\, and sed turns \\ into \).
7646 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7649 # `set' quotes correctly as required by POSIX, so do not add quotes.
7651 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7658 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7660 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7662 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7663 if test -w $cache_file; then
7664 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7665 cat confcache >$cache_file
7667 echo "not updating unwritable cache $cache_file"
7672 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7673 # Let make expand exec_prefix.
7674 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7676 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7677 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7678 # trailing colons and then remove the whole line if VPATH becomes empty
7679 # (actually we leave an empty line to preserve line numbers).
7680 if test "x$srcdir" = x.; then
7681 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7682 s/:*\$(srcdir):*/:/;
7683 s/:*\${srcdir}:*/:/;
7685 s/^\([^=]*=[ ]*\):*/\1/;
7691 DEFS=-DHAVE_CONFIG_H
7695 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7696 # 1. Remove the extension, and $U if already installed.
7697 ac_i=`echo "$ac_i" |
7698 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7700 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7701 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7705 LTLIBOBJS=$ac_ltlibobjs
7709 : ${CONFIG_STATUS=./config.status}
7710 ac_clean_files_save=$ac_clean_files
7711 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7712 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7713 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7714 cat >$CONFIG_STATUS <<_ACEOF
7716 # Generated by $as_me.
7717 # Run this file to recreate the current configuration.
7718 # Compiler output produced by configure, useful for debugging
7719 # configure, is in config.log if it exists.
7724 SHELL=\${CONFIG_SHELL-$SHELL}
7727 cat >>$CONFIG_STATUS <<\_ACEOF
7728 ## --------------------- ##
7729 ## M4sh Initialization. ##
7730 ## --------------------- ##
7732 # Be Bourne compatible
7733 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7736 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7737 # is contrary to our usage. Disable this feature.
7738 alias -g '${1+"$@"}'='"$@"'
7739 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7742 DUALCASE=1; export DUALCASE # for MKS sh
7744 # Support unset when possible.
7745 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7752 # Work around bugs in pre-3.0 UWIN ksh.
7753 $as_unset ENV MAIL MAILPATH
7760 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7761 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7762 LC_TELEPHONE LC_TIME
7764 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7765 eval $as_var=C; export $as_var
7771 # Required to use basename.
7772 if expr a : '\(a\)' >/dev/null 2>&1; then
7778 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7779 as_basename=basename
7785 # Name of the executable.
7786 as_me=`$as_basename "$0" ||
7787 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7788 X"$0" : 'X\(//\)$' \| \
7789 X"$0" : 'X\(/\)$' \| \
7790 . : '\(.\)' 2>/dev/null ||
7792 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7793 /^X\/\(\/\/\)$/{ s//\1/; q; }
7794 /^X\/\(\/\).*/{ s//\1/; q; }
7798 # PATH needs CR, and LINENO needs CR and PATH.
7799 # Avoid depending upon Character Ranges.
7800 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7801 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7802 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7803 as_cr_digits='0123456789'
7804 as_cr_alnum=$as_cr_Letters$as_cr_digits
7806 # The user is always right.
7807 if test "${PATH_SEPARATOR+set}" != set; then
7808 echo "#! /bin/sh" >conf$$.sh
7809 echo "exit 0" >>conf$$.sh
7811 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7822 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7823 test "x$as_lineno_1" != "x$as_lineno_2" &&
7824 test "x$as_lineno_3" = "x$as_lineno_2" || {
7825 # Find who we are. Look in the path if we contain no path at all
7828 *[\\/]* ) as_myself=$0 ;;
7829 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 test -z "$as_dir" && as_dir=.
7834 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7839 # We did not find ourselves, most probably we were run as `sh COMMAND'
7840 # in which case we are not to be found in the path.
7841 if test "x$as_myself" = x; then
7844 if test ! -f "$as_myself"; then
7845 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7846 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7847 { (exit 1); exit 1; }; }
7849 case $CONFIG_SHELL in
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7855 test -z "$as_dir" && as_dir=.
7856 for as_base in sh bash ksh sh5; do
7859 if ("$as_dir/$as_base" -c '
7862 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7863 test "x$as_lineno_1" != "x$as_lineno_2" &&
7864 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7865 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7866 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7867 CONFIG_SHELL=$as_dir/$as_base
7869 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7877 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7878 # uniformly replaced by the line number. The first 'sed' inserts a
7879 # line-number line before each line; the second 'sed' does the real
7880 # work. The second script uses 'N' to pair each line-number line
7881 # with the numbered line, and appends trailing '-' during
7882 # substitution so that $LINENO is not a special case at line end.
7883 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7884 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7885 sed '=' <$as_myself |
7890 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7893 s,^['$as_cr_digits']*\n,,
7895 chmod +x $as_me.lineno ||
7896 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7897 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7898 { (exit 1); exit 1; }; }
7900 # Don't try to exec as it changes $[0], causing all sort of problems
7901 # (the dirname of $[0] is not the place where we might find the
7902 # original and so on. Autoconf is especially sensible to this).
7904 # Exit status is that of the last command.
7909 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7910 *c*,-n*) ECHO_N= ECHO_C='
7912 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7913 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7916 if expr a : '\(a\)' >/dev/null 2>&1; then
7922 rm -f conf$$ conf$$.exe conf$$.file
7924 if ln -s conf$$.file conf$$ 2>/dev/null; then
7925 # We could just check for DJGPP; but this test a) works b) is more generic
7926 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7927 if test -f conf$$.exe; then
7928 # Don't use ln at all; we don't have any links
7933 elif ln conf$$.file conf$$ 2>/dev/null; then
7938 rm -f conf$$ conf$$.exe conf$$.file
7940 if mkdir -p . 2>/dev/null; then
7943 test -d ./-p && rmdir ./-p
7947 as_executable_p="test -f"
7949 # Sed expression to map a string onto a valid CPP name.
7950 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7952 # Sed expression to map a string onto a valid variable name.
7953 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7957 # We need space, tab and new line, in precisely that order.
7967 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7968 # report actual input values of CONFIG_FILES etc. instead of their
7969 # values after options handling. Logging --version etc. is OK.
7973 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7974 ## Running $as_me. ##
7979 This file was extended by GNU C Library $as_me (see version.h), which was
7980 generated by GNU Autoconf 2.59. Invocation command line was
7982 CONFIG_FILES = $CONFIG_FILES
7983 CONFIG_HEADERS = $CONFIG_HEADERS
7984 CONFIG_LINKS = $CONFIG_LINKS
7985 CONFIG_COMMANDS = $CONFIG_COMMANDS
7989 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7993 # Files that config.status was made for.
7994 if test -n "$ac_config_files"; then
7995 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7998 if test -n "$ac_config_headers"; then
7999 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8002 if test -n "$ac_config_links"; then
8003 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8006 if test -n "$ac_config_commands"; then
8007 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8010 cat >>$CONFIG_STATUS <<\_ACEOF
8013 \`$as_me' instantiates files from templates according to the
8014 current configuration.
8016 Usage: $0 [OPTIONS] [FILE]...
8018 -h, --help print this help, then exit
8019 -V, --version print version number, then exit
8020 -q, --quiet do not print progress messages
8021 -d, --debug don't remove temporary files
8022 --recheck update $as_me by reconfiguring in the same conditions
8023 --file=FILE[:TEMPLATE]
8024 instantiate the configuration file FILE
8025 --header=FILE[:TEMPLATE]
8026 instantiate the configuration header FILE
8028 Configuration files:
8031 Configuration headers:
8034 Configuration commands:
8037 Report bugs to <bug-autoconf@gnu.org>."
8040 cat >>$CONFIG_STATUS <<_ACEOF
8042 GNU C Library config.status (see version.h)
8043 configured by $0, generated by GNU Autoconf 2.59,
8044 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8046 Copyright (C) 2003 Free Software Foundation, Inc.
8047 This config.status script is free software; the Free Software Foundation
8048 gives unlimited permission to copy, distribute and modify it."
8053 cat >>$CONFIG_STATUS <<\_ACEOF
8054 # If no file are specified by the user, then we need to provide default
8055 # value. By we need to know if files were specified by the user.
8061 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8062 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8070 *) # This is not an option, so the user has probably given explicit
8073 ac_need_defaults=false;;
8077 # Handling of the options.
8079 cat >>$CONFIG_STATUS <<\_ACEOF
8080 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8082 --version | --vers* | -V )
8083 echo "$ac_cs_version"; exit 0 ;;
8085 # Conflict between --help and --header
8086 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8087 Try \`$0 --help' for more information." >&5
8088 echo "$as_me: error: ambiguous option: $1
8089 Try \`$0 --help' for more information." >&2;}
8090 { (exit 1); exit 1; }; };;
8091 --help | --hel | -h )
8092 echo "$ac_cs_usage"; exit 0 ;;
8093 --debug | --d* | -d )
8095 --file | --fil | --fi | --f )
8097 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8098 ac_need_defaults=false;;
8099 --header | --heade | --head | --hea )
8101 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8102 ac_need_defaults=false;;
8103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8104 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8108 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8109 Try \`$0 --help' for more information." >&5
8110 echo "$as_me: error: unrecognized option: $1
8111 Try \`$0 --help' for more information." >&2;}
8112 { (exit 1); exit 1; }; } ;;
8114 *) ac_config_targets="$ac_config_targets $1" ;;
8120 ac_configure_extra_args=
8122 if $ac_cs_silent; then
8124 ac_configure_extra_args="$ac_configure_extra_args --silent"
8128 cat >>$CONFIG_STATUS <<_ACEOF
8129 if \$ac_cs_recheck; then
8130 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8131 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8136 cat >>$CONFIG_STATUS <<_ACEOF
8138 # INIT-COMMANDS section.
8141 config_vars='$config_vars'
8147 cat >>$CONFIG_STATUS <<\_ACEOF
8148 for ac_config_target in $ac_config_targets
8150 case "$ac_config_target" in
8151 # Handling of arguments.
8152 "config.make" ) CONFIG_FILES="$CONFIG_FILES config.make" ;;
8153 "${config_makefile}" ) CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
8154 "${config_uname}" ) CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
8155 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8156 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8157 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8158 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8159 { (exit 1); exit 1; }; };;
8163 # If the user did not use the arguments to specify the items to instantiate,
8164 # then the envvar interface is used. Set only those that are not.
8165 # We use the long form for the default assignment because of an extremely
8166 # bizarre bug on SunOS 4.1.3.
8167 if $ac_need_defaults; then
8168 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8169 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8170 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8173 # Have a temporary directory for convenience. Make it in the build tree
8174 # simply because there is no reason to put it here, and in addition,
8175 # creating and moving files from /tmp can sometimes cause problems.
8176 # Create a temporary directory, and hook for its removal unless debugging.
8179 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8180 trap '{ (exit 1); exit 1; }' 1 2 13 15
8183 # Create a (secure) tmp directory for tmp files.
8186 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8187 test -n "$tmp" && test -d "$tmp"
8190 tmp=./confstat$$-$RANDOM
8191 (umask 077 && mkdir $tmp)
8194 echo "$me: cannot create a temporary directory in ." >&2
8195 { (exit 1); exit 1; }
8200 cat >>$CONFIG_STATUS <<_ACEOF
8203 # CONFIG_FILES section.
8206 # No need to generate the scripts if there are no CONFIG_FILES.
8207 # This happens for instance when ./config.status config.h
8208 if test -n "\$CONFIG_FILES"; then
8209 # Protect against being on the right side of a sed subst in config.status.
8210 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8211 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8212 s,@SHELL@,$SHELL,;t t
8213 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8214 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8215 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8216 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8217 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8218 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8219 s,@exec_prefix@,$exec_prefix,;t t
8220 s,@prefix@,$prefix,;t t
8221 s,@program_transform_name@,$program_transform_name,;t t
8222 s,@bindir@,$bindir,;t t
8223 s,@sbindir@,$sbindir,;t t
8224 s,@libexecdir@,$libexecdir,;t t
8225 s,@datadir@,$datadir,;t t
8226 s,@sysconfdir@,$sysconfdir,;t t
8227 s,@sharedstatedir@,$sharedstatedir,;t t
8228 s,@localstatedir@,$localstatedir,;t t
8229 s,@libdir@,$libdir,;t t
8230 s,@includedir@,$includedir,;t t
8231 s,@oldincludedir@,$oldincludedir,;t t
8232 s,@infodir@,$infodir,;t t
8233 s,@mandir@,$mandir,;t t
8234 s,@build_alias@,$build_alias,;t t
8235 s,@host_alias@,$host_alias,;t t
8236 s,@target_alias@,$target_alias,;t t
8238 s,@ECHO_C@,$ECHO_C,;t t
8239 s,@ECHO_N@,$ECHO_N,;t t
8240 s,@ECHO_T@,$ECHO_T,;t t
8242 s,@with_fp@,$with_fp,;t t
8243 s,@with_cvs@,$with_cvs,;t t
8244 s,@enable_check_abi@,$enable_check_abi,;t t
8245 s,@oldest_abi@,$oldest_abi,;t t
8246 s,@bindnow@,$bindnow,;t t
8247 s,@force_install@,$force_install,;t t
8248 s,@all_warnings@,$all_warnings,;t t
8249 s,@build@,$build,;t t
8250 s,@build_cpu@,$build_cpu,;t t
8251 s,@build_vendor@,$build_vendor,;t t
8252 s,@build_os@,$build_os,;t t
8254 s,@host_cpu@,$host_cpu,;t t
8255 s,@host_vendor@,$host_vendor,;t t
8256 s,@host_os@,$host_os,;t t
8257 s,@subdirs@,$subdirs,;t t
8258 s,@add_ons@,$add_ons,;t t
8259 s,@base_machine@,$base_machine,;t t
8260 s,@sysnames@,$sysnames,;t t
8261 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8262 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8263 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8266 s,@CFLAGS@,$CFLAGS,;t t
8267 s,@LDFLAGS@,$LDFLAGS,;t t
8268 s,@CPPFLAGS@,$CPPFLAGS,;t t
8269 s,@ac_ct_CC@,$ac_ct_CC,;t t
8270 s,@OBJEXT@,$OBJEXT,;t t
8271 s,@BUILD_CC@,$BUILD_CC,;t t
8272 s,@cross_compiling@,$cross_compiling,;t t
8275 s,@CXXFLAGS@,$CXXFLAGS,;t t
8276 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8278 s,@OBJDUMP@,$OBJDUMP,;t t
8279 s,@RANLIB@,$RANLIB,;t t
8280 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8284 s,@PWD_P@,$PWD_P,;t t
8286 s,@MSGFMT@,$MSGFMT,;t t
8287 s,@MAKEINFO@,$MAKEINFO,;t t
8289 s,@AUTOCONF@,$AUTOCONF,;t t
8290 s,@SYSINCLUDES@,$SYSINCLUDES,;t t
8291 s,@libc_cv_gcc_static_libgcc@,$libc_cv_gcc_static_libgcc,;t t
8293 s,@libc_cv_have_bash2@,$libc_cv_have_bash2,;t t
8295 s,@libc_cv_have_ksh@,$libc_cv_have_ksh,;t t
8298 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
8299 s,@BISON@,$BISON,;t t
8300 s,@VERSIONING@,$VERSIONING,;t t
8301 s,@libc_cv_asm_protected_directive@,$libc_cv_asm_protected_directive,;t t
8302 s,@libc_cv_initfinit_array@,$libc_cv_initfinit_array,;t t
8303 s,@libc_cv_cc_with_libunwind@,$libc_cv_cc_with_libunwind,;t t
8304 s,@libc_cv_z_nodelete@,$libc_cv_z_nodelete,;t t
8305 s,@libc_cv_z_nodlopen@,$libc_cv_z_nodlopen,;t t
8306 s,@libc_cv_z_initfirst@,$libc_cv_z_initfirst,;t t
8307 s,@libc_cv_z_relro@,$libc_cv_z_relro,;t t
8308 s,@libc_cv_Bgroup@,$libc_cv_Bgroup,;t t
8309 s,@libc_cv_libgcc_s_suffix@,$libc_cv_libgcc_s_suffix,;t t
8310 s,@libc_cv_as_needed@,$libc_cv_as_needed,;t t
8311 s,@ASFLAGS_config@,$ASFLAGS_config,;t t
8312 s,@libc_cv_z_combreloc@,$libc_cv_z_combreloc,;t t
8313 s,@libc_cv_z_execstack@,$libc_cv_z_execstack,;t t
8314 s,@libc_cv_fpie@,$libc_cv_fpie,;t t
8315 s,@fno_unit_at_a_time@,$fno_unit_at_a_time,;t t
8316 s,@libc_cv_have_initfini@,$libc_cv_have_initfini,;t t
8317 s,@libc_cv_cpp_asm_debuginfo@,$libc_cv_cpp_asm_debuginfo,;t t
8318 s,@no_whole_archive@,$no_whole_archive,;t t
8319 s,@exceptions@,$exceptions,;t t
8320 s,@LIBGD@,$LIBGD,;t t
8321 s,@EGREP@,$EGREP,;t t
8322 s,@sizeof_long_double@,$sizeof_long_double,;t t
8323 s,@libc_cv_gcc_unwind_find_fde@,$libc_cv_gcc_unwind_find_fde,;t t
8324 s,@uname_sysname@,$uname_sysname,;t t
8325 s,@uname_release@,$uname_release,;t t
8326 s,@uname_version@,$uname_version,;t t
8327 s,@old_glibc_headers@,$old_glibc_headers,;t t
8328 s,@libc_cv_slibdir@,$libc_cv_slibdir,;t t
8329 s,@libc_cv_localedir@,$libc_cv_localedir,;t t
8330 s,@libc_cv_sysconfdir@,$libc_cv_sysconfdir,;t t
8331 s,@libc_cv_rootsbindir@,$libc_cv_rootsbindir,;t t
8332 s,@libc_cv_forced_unwind@,$libc_cv_forced_unwind,;t t
8333 s,@use_ldconfig@,$use_ldconfig,;t t
8334 s,@ldd_rewrite_script@,$ldd_rewrite_script,;t t
8335 s,@gnu_ld@,$gnu_ld,;t t
8336 s,@gnu_as@,$gnu_as,;t t
8338 s,@xcoff@,$xcoff,;t t
8339 s,@static@,$static,;t t
8340 s,@shared@,$shared,;t t
8341 s,@pic_default@,$pic_default,;t t
8342 s,@profile@,$profile,;t t
8343 s,@omitfp@,$omitfp,;t t
8344 s,@bounded@,$bounded,;t t
8345 s,@static_nss@,$static_nss,;t t
8346 s,@nopic_initfini@,$nopic_initfini,;t t
8347 s,@DEFINES@,$DEFINES,;t t
8348 s,@linux_doors@,$linux_doors,;t t
8349 s,@mach_interface_list@,$mach_interface_list,;t t
8350 s,@VERSION@,$VERSION,;t t
8351 s,@RELEASE@,$RELEASE,;t t
8352 s,@LIBOBJS@,$LIBOBJS,;t t
8353 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8358 cat >>$CONFIG_STATUS <<\_ACEOF
8359 # Split the substitutions into bite-sized pieces for seds with
8360 # small command number limits, like on Digital OSF/1 and HP-UX.
8362 ac_sed_frag=1 # Number of current file.
8363 ac_beg=1 # First line for current file.
8364 ac_end=$ac_max_sed_lines # Line after last line for current file.
8367 while $ac_more_lines; do
8368 if test $ac_beg -gt 1; then
8369 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8371 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8373 if test ! -s $tmp/subs.frag; then
8376 # The purpose of the label and of the branching condition is to
8377 # speed up the sed processing (if there are no `@' at all, there
8378 # is no need to browse any of the substitutions).
8379 # These are the two extra sed commands mentioned above.
8381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8382 if test -z "$ac_sed_cmds"; then
8383 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8385 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8387 ac_sed_frag=`expr $ac_sed_frag + 1`
8389 ac_end=`expr $ac_end + $ac_max_sed_lines`
8392 if test -z "$ac_sed_cmds"; then
8395 fi # test -n "$CONFIG_FILES"
8398 cat >>$CONFIG_STATUS <<\_ACEOF
8399 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8400 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8402 - | *:- | *:-:* ) # input from stdin
8404 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8405 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8406 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8407 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8408 * ) ac_file_in=$ac_file.in ;;
8411 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8412 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8413 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8414 X"$ac_file" : 'X\(//\)[^/]' \| \
8415 X"$ac_file" : 'X\(//\)$' \| \
8416 X"$ac_file" : 'X\(/\)' \| \
8417 . : '\(.\)' 2>/dev/null ||
8419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8420 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8421 /^X\(\/\/\)$/{ s//\1/; q; }
8422 /^X\(\/\).*/{ s//\1/; q; }
8424 { if $as_mkdir_p; then
8429 while test ! -d "$as_dir"; do
8430 as_dirs="$as_dir $as_dirs"
8431 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8432 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8433 X"$as_dir" : 'X\(//\)[^/]' \| \
8434 X"$as_dir" : 'X\(//\)$' \| \
8435 X"$as_dir" : 'X\(/\)' \| \
8436 . : '\(.\)' 2>/dev/null ||
8438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8440 /^X\(\/\/\)$/{ s//\1/; q; }
8441 /^X\(\/\).*/{ s//\1/; q; }
8444 test ! -n "$as_dirs" || mkdir $as_dirs
8445 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8446 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8447 { (exit 1); exit 1; }; }; }
8451 if test "$ac_dir" != .; then
8452 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8453 # A "../" for each directory in $ac_dir_suffix.
8454 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8456 ac_dir_suffix= ac_top_builddir=
8460 .) # No --srcdir option. We are building in place.
8462 if test -z "$ac_top_builddir"; then
8465 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8467 [\\/]* | ?:[\\/]* ) # Absolute path.
8468 ac_srcdir=$srcdir$ac_dir_suffix;
8469 ac_top_srcdir=$srcdir ;;
8471 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8472 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8475 # Do not use `cd foo && pwd` to compute absolute paths, because
8476 # the directories may not exist.
8478 .) ac_abs_builddir="$ac_dir";;
8481 .) ac_abs_builddir=`pwd`;;
8482 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8483 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8486 case $ac_abs_builddir in
8487 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8489 case ${ac_top_builddir}. in
8490 .) ac_abs_top_builddir=$ac_abs_builddir;;
8491 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8492 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8495 case $ac_abs_builddir in
8496 .) ac_abs_srcdir=$ac_srcdir;;
8499 .) ac_abs_srcdir=$ac_abs_builddir;;
8500 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8501 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8504 case $ac_abs_builddir in
8505 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8507 case $ac_top_srcdir in
8508 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8509 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8510 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8516 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8517 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8520 if test x"$ac_file" != x-; then
8521 { echo "$as_me:$LINENO: creating $ac_file" >&5
8522 echo "$as_me: creating $ac_file" >&6;}
8525 # Let's still pretend it is `configure' which instantiates (i.e., don't
8526 # use $as_me), people would be surprised to read:
8527 # /* config.h. Generated by config.status. */
8528 if test x"$ac_file" = x-; then
8531 configure_input="$ac_file. "
8533 configure_input=$configure_input"Generated from `echo $ac_file_in |
8534 sed 's,.*/,,'` by configure."
8536 # First look for the input files in the build tree, otherwise in the
8538 ac_file_inputs=`IFS=:
8539 for f in $ac_file_in; do
8541 -) echo $tmp/stdin ;;
8543 # Absolute (can't be DOS-style, as IFS=:)
8544 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8545 echo "$as_me: error: cannot find input file: $f" >&2;}
8546 { (exit 1); exit 1; }; }
8549 if test -f "$f"; then
8552 elif test -f "$srcdir/$f"; then
8557 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8558 echo "$as_me: error: cannot find input file: $f" >&2;}
8559 { (exit 1); exit 1; }; }
8562 done` || { (exit 1); exit 1; }
8564 cat >>$CONFIG_STATUS <<_ACEOF
8568 cat >>$CONFIG_STATUS <<\_ACEOF
8570 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8571 s,@configure_input@,$configure_input,;t t
8572 s,@srcdir@,$ac_srcdir,;t t
8573 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8574 s,@top_srcdir@,$ac_top_srcdir,;t t
8575 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8576 s,@builddir@,$ac_builddir,;t t
8577 s,@abs_builddir@,$ac_abs_builddir,;t t
8578 s,@top_builddir@,$ac_top_builddir,;t t
8579 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8580 s,@INSTALL@,$ac_INSTALL,;t t
8581 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8583 if test x"$ac_file" != x-; then
8584 mv $tmp/out $ac_file
8592 cat >>$CONFIG_STATUS <<\_ACEOF
8595 # CONFIG_HEADER section.
8598 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8599 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8601 # ac_d sets the value in "#define NAME VALUE" lines.
8602 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8603 ac_dB='[ ].*$,\1#\2'
8606 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8607 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8608 ac_uB='$,\1#\2define\3'
8612 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8613 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8615 - | *:- | *:-:* ) # input from stdin
8617 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8618 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8619 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8620 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8621 * ) ac_file_in=$ac_file.in ;;
8624 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8625 echo "$as_me: creating $ac_file" >&6;}
8627 # First look for the input files in the build tree, otherwise in the
8629 ac_file_inputs=`IFS=:
8630 for f in $ac_file_in; do
8632 -) echo $tmp/stdin ;;
8634 # Absolute (can't be DOS-style, as IFS=:)
8635 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8636 echo "$as_me: error: cannot find input file: $f" >&2;}
8637 { (exit 1); exit 1; }; }
8638 # Do quote $f, to prevent DOS paths from being IFS'd.
8641 if test -f "$f"; then
8644 elif test -f "$srcdir/$f"; then
8649 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8650 echo "$as_me: error: cannot find input file: $f" >&2;}
8651 { (exit 1); exit 1; }; }
8654 done` || { (exit 1); exit 1; }
8655 # Remove the trailing spaces.
8656 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8660 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8661 # `conftest.undefs', that substitutes the proper values into
8662 # config.h.in to produce config.h. The first handles `#define'
8663 # templates, and the second `#undef' templates.
8664 # And first: Protect against being on the right side of a sed subst in
8665 # config.status. Protect against being in an unquoted here document
8667 rm -f conftest.defines conftest.undefs
8668 # Using a here document instead of a string reduces the quoting nightmare.
8669 # Putting comments in sed scripts is not portable.
8671 # `end' is used to avoid that the second main sed command (meant for
8672 # 0-ary CPP macros) applies to n-ary macro definitions.
8673 # See the Autoconf documentation for `clear'.
8674 cat >confdef2sed.sed <<\_ACEOF
8679 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8681 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8684 # If some macros were called several times there might be several times
8685 # the same #defines, which is useless. Nevertheless, we may not want to
8686 # sort them, since we want the *last* AC-DEFINE to be honored.
8687 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8688 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8689 rm -f confdef2sed.sed
8691 # This sed command replaces #undef with comments. This is necessary, for
8692 # example, in the case of _POSIX_SOURCE, which is predefined and required
8693 # on some systems where configure will not decide to define it.
8694 cat >>conftest.undefs <<\_ACEOF
8695 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8698 # Break up conftest.defines because some shells have a limit on the size
8699 # of here documents, and old seds have small limits too (100 cmds).
8700 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8701 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8702 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8703 echo ' :' >>$CONFIG_STATUS
8705 while grep . conftest.defines >/dev/null
8707 # Write a limited-size here document to $tmp/defines.sed.
8708 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8709 # Speed up: don't consider the non `#define' lines.
8710 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8711 # Work around the forget-to-reset-the-flag bug.
8712 echo 't clr' >>$CONFIG_STATUS
8713 echo ': clr' >>$CONFIG_STATUS
8714 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8716 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8720 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8721 rm -f conftest.defines
8722 mv conftest.tail conftest.defines
8724 rm -f conftest.defines
8725 echo ' fi # grep' >>$CONFIG_STATUS
8726 echo >>$CONFIG_STATUS
8728 # Break up conftest.undefs because some shells have a limit on the size
8729 # of here documents, and old seds have small limits too (100 cmds).
8730 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8732 while grep . conftest.undefs >/dev/null
8734 # Write a limited-size here document to $tmp/undefs.sed.
8735 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8736 # Speed up: don't consider the non `#undef'
8737 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8738 # Work around the forget-to-reset-the-flag bug.
8739 echo 't clr' >>$CONFIG_STATUS
8740 echo ': clr' >>$CONFIG_STATUS
8741 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8743 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8747 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8748 rm -f conftest.undefs
8749 mv conftest.tail conftest.undefs
8751 rm -f conftest.undefs
8753 cat >>$CONFIG_STATUS <<\_ACEOF
8754 # Let's still pretend it is `configure' which instantiates (i.e., don't
8755 # use $as_me), people would be surprised to read:
8756 # /* config.h. Generated by config.status. */
8757 if test x"$ac_file" = x-; then
8758 echo "/* Generated by configure. */" >$tmp/config.h
8760 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8762 cat $tmp/in >>$tmp/config.h
8764 if test x"$ac_file" != x-; then
8765 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8766 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8767 echo "$as_me: $ac_file is unchanged" >&6;}
8769 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8770 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8771 X"$ac_file" : 'X\(//\)[^/]' \| \
8772 X"$ac_file" : 'X\(//\)$' \| \
8773 X"$ac_file" : 'X\(/\)' \| \
8774 . : '\(.\)' 2>/dev/null ||
8776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8778 /^X\(\/\/\)$/{ s//\1/; q; }
8779 /^X\(\/\).*/{ s//\1/; q; }
8781 { if $as_mkdir_p; then
8786 while test ! -d "$as_dir"; do
8787 as_dirs="$as_dir $as_dirs"
8788 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8789 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8790 X"$as_dir" : 'X\(//\)[^/]' \| \
8791 X"$as_dir" : 'X\(//\)$' \| \
8792 X"$as_dir" : 'X\(/\)' \| \
8793 . : '\(.\)' 2>/dev/null ||
8795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8797 /^X\(\/\/\)$/{ s//\1/; q; }
8798 /^X\(\/\).*/{ s//\1/; q; }
8801 test ! -n "$as_dirs" || mkdir $as_dirs
8802 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8803 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8804 { (exit 1); exit 1; }; }; }
8807 mv $tmp/config.h $ac_file
8815 cat >>$CONFIG_STATUS <<\_ACEOF
8818 # CONFIG_COMMANDS section.
8820 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8821 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8822 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8823 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8824 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8825 X"$ac_dest" : 'X\(//\)[^/]' \| \
8826 X"$ac_dest" : 'X\(//\)$' \| \
8827 X"$ac_dest" : 'X\(/\)' \| \
8828 . : '\(.\)' 2>/dev/null ||
8830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8831 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8832 /^X\(\/\/\)$/{ s//\1/; q; }
8833 /^X\(\/\).*/{ s//\1/; q; }
8835 { if $as_mkdir_p; then
8840 while test ! -d "$as_dir"; do
8841 as_dirs="$as_dir $as_dirs"
8842 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8843 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8844 X"$as_dir" : 'X\(//\)[^/]' \| \
8845 X"$as_dir" : 'X\(//\)$' \| \
8846 X"$as_dir" : 'X\(/\)' \| \
8847 . : '\(.\)' 2>/dev/null ||
8849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8850 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8851 /^X\(\/\/\)$/{ s//\1/; q; }
8852 /^X\(\/\).*/{ s//\1/; q; }
8855 test ! -n "$as_dirs" || mkdir $as_dirs
8856 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8857 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8858 { (exit 1); exit 1; }; }; }
8862 if test "$ac_dir" != .; then
8863 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8864 # A "../" for each directory in $ac_dir_suffix.
8865 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8867 ac_dir_suffix= ac_top_builddir=
8871 .) # No --srcdir option. We are building in place.
8873 if test -z "$ac_top_builddir"; then
8876 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8878 [\\/]* | ?:[\\/]* ) # Absolute path.
8879 ac_srcdir=$srcdir$ac_dir_suffix;
8880 ac_top_srcdir=$srcdir ;;
8882 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8883 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8886 # Do not use `cd foo && pwd` to compute absolute paths, because
8887 # the directories may not exist.
8889 .) ac_abs_builddir="$ac_dir";;
8892 .) ac_abs_builddir=`pwd`;;
8893 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8894 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8897 case $ac_abs_builddir in
8898 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8900 case ${ac_top_builddir}. in
8901 .) ac_abs_top_builddir=$ac_abs_builddir;;
8902 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8903 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8906 case $ac_abs_builddir in
8907 .) ac_abs_srcdir=$ac_srcdir;;
8910 .) ac_abs_srcdir=$ac_abs_builddir;;
8911 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8912 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8915 case $ac_abs_builddir in
8916 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8918 case $ac_top_srcdir in
8919 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8920 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8921 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8926 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8927 echo "$as_me: executing $ac_dest commands" >&6;}
8930 case $CONFIG_FILES in *config.make*)
8931 echo "$config_vars" >> config.make;;
8933 test -d bits || mkdir bits ;;
8938 cat >>$CONFIG_STATUS <<\_ACEOF
8940 { (exit 0); exit 0; }
8942 chmod +x $CONFIG_STATUS
8943 ac_clean_files=$ac_clean_files_save
8946 # configure is writing to config.log, and then calls config.status.
8947 # config.status does its own redirection, appending to config.log.
8948 # Unfortunately, on DOS this fails, as config.log is still kept open
8949 # by configure, so config.status won't be able to write to it; its
8950 # output is simply discarded. So we exec the FD to /dev/null,
8951 # effectively closing config.log, so it can be properly (re)opened and
8952 # appended to by config.status. When coming back to configure, we
8953 # need to make the FD available again.
8954 if test "$no_create" != yes; then
8956 ac_config_status_args=
8957 test "$silent" = yes &&
8958 ac_config_status_args="$ac_config_status_args --quiet"
8960 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8962 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8963 # would make configure fail if this is the last instruction.
8964 $ac_cs_success || { (exit 1); exit 1; }
8968 # CONFIG_SUBDIRS section.
8970 if test "$no_recursion" != yes; then
8972 # Remove --cache-file and --srcdir arguments so they do not pile up.
8973 ac_sub_configure_args=
8975 for ac_arg in $ac_configure_args; do
8976 if test -n "$ac_prev"; then
8981 -cache-file | --cache-file | --cache-fil | --cache-fi \
8982 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8983 ac_prev=cache_file ;;
8984 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8985 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8988 --config-cache | -C)
8990 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8992 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8994 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8996 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8998 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9002 # Always prepend --prefix to ensure using the same prefix
9003 # in subdir configurations.
9004 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
9007 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9009 # Do not complain, so a configure script can configure whichever
9010 # parts of a large source tree are present.
9011 test -d $srcdir/$ac_dir || continue
9013 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
9014 echo "$as_me: configuring in $ac_dir" >&6;}
9015 { if $as_mkdir_p; then
9020 while test ! -d "$as_dir"; do
9021 as_dirs="$as_dir $as_dirs"
9022 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9023 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9024 X"$as_dir" : 'X\(//\)[^/]' \| \
9025 X"$as_dir" : 'X\(//\)$' \| \
9026 X"$as_dir" : 'X\(/\)' \| \
9027 . : '\(.\)' 2>/dev/null ||
9029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9030 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9031 /^X\(\/\/\)$/{ s//\1/; q; }
9032 /^X\(\/\).*/{ s//\1/; q; }
9035 test ! -n "$as_dirs" || mkdir $as_dirs
9036 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9037 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9038 { (exit 1); exit 1; }; }; }
9042 if test "$ac_dir" != .; then
9043 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9044 # A "../" for each directory in $ac_dir_suffix.
9045 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9047 ac_dir_suffix= ac_top_builddir=
9051 .) # No --srcdir option. We are building in place.
9053 if test -z "$ac_top_builddir"; then
9056 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9058 [\\/]* | ?:[\\/]* ) # Absolute path.
9059 ac_srcdir=$srcdir$ac_dir_suffix;
9060 ac_top_srcdir=$srcdir ;;
9062 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9063 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9066 # Do not use `cd foo && pwd` to compute absolute paths, because
9067 # the directories may not exist.
9069 .) ac_abs_builddir="$ac_dir";;
9072 .) ac_abs_builddir=`pwd`;;
9073 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9074 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9077 case $ac_abs_builddir in
9078 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9080 case ${ac_top_builddir}. in
9081 .) ac_abs_top_builddir=$ac_abs_builddir;;
9082 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9083 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9086 case $ac_abs_builddir in
9087 .) ac_abs_srcdir=$ac_srcdir;;
9090 .) ac_abs_srcdir=$ac_abs_builddir;;
9091 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9092 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9095 case $ac_abs_builddir in
9096 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9098 case $ac_top_srcdir in
9099 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9100 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9101 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9108 # Check for guested configure; otherwise get Cygnus style configure.
9109 if test -f $ac_srcdir/configure.gnu; then
9110 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
9111 elif test -f $ac_srcdir/configure; then
9112 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
9113 elif test -f $ac_srcdir/configure.in; then
9114 ac_sub_configure=$ac_configure
9116 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
9117 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9121 # The recursion is here.
9122 if test -n "$ac_sub_configure"; then
9123 # Make the cache file name correct relative to the subdirectory.
9125 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9127 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
9130 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9131 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9132 # The eval makes quoting arguments work.
9133 eval $ac_sub_configure $ac_sub_configure_args \
9134 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
9135 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
9136 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
9137 { (exit 1); exit 1; }; }