3 # From configure.in CVSid
14 # Guess values for system-dependent variables and create Makefiles.
15 # Generated automatically using autoconf version 2.13
16 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
18 # This configure script is free software; the Free Software Foundation
19 # gives unlimited permission to copy, distribute and modify it.
23 ac_default_prefix=/usr/local
24 # Any additions from configure.in:
26 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
28 --with-gd=DIR find libgd include dir and library with prefix DIR"
30 --with-gd-include=DIR find libgd include files in DIR"
32 --with-gd-lib=DIR find libgd library files in DIR"
34 --with-fp if using floating-point hardware [default=yes]"
36 --with-binutils=PATH specify location of binutils (as and ld)"
38 --with-elf if using the ELF object format"
40 --with-xcoff if using the XCOFF object format"
42 --without-cvs if CVS should not be used"
44 --with-headers=PATH location of system headers to use
45 [e.g. /usr/src/linux/include]
46 [default=compiler default]"
48 --disable-sanity-checks really do not use threads (should not be used
49 except in special situations) [default=yes]"
51 --enable-shared build shared library [default=yes if GNU ld & ELF]"
53 --enable-profile build profiled library [default=yes]"
55 --enable-omitfp build undebuggable optimized library [default=no]"
57 --enable-bounded build with runtime bounds checking [default=no]"
59 --disable-versioning do not include versioning information in the
60 library objects [default=yes if supported]"
62 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
63 [default=glibc default]"
65 --enable-add-ons[=DIR1,DIR2]...
66 configure and build add-ons in DIR1,DIR2,...
67 search for add-ons if no parameter given"
69 --with-tls enable support for TLS"
71 --disable-hidden-plt do not hide internal function calls to avoid PLT"
73 --enable-static-nss build static NSS modules [default=no]"
75 --disable-force-install don't force installation of files from this package,
76 even if they are older than the installed files"
78 --enable-kernel=VERSION compile for compatibility with kernel not older
81 --enable-all-warnings enable all useful warnings gcc can issue"
83 # Initialize some variables set by options.
84 # The variables have the same names as the options, with
85 # dashes changed to underlines.
87 cache_file=./config.cache
96 program_transform_name=s,x,x,
104 bindir='${exec_prefix}/bin'
105 sbindir='${exec_prefix}/sbin'
106 libexecdir='${exec_prefix}/libexec'
107 datadir='${prefix}/share'
108 sysconfdir='${prefix}/etc'
109 sharedstatedir='${prefix}/com'
110 localstatedir='${prefix}/var'
111 libdir='${exec_prefix}/lib'
112 includedir='${prefix}/include'
113 oldincludedir='/usr/include'
114 infodir='${prefix}/info'
115 mandir='${prefix}/man'
117 # Initialize some other variables.
120 SHELL=${CONFIG_SHELL-/bin/sh}
121 # Maximum number of lines to put in a shell here document.
128 # If the previous option needs an argument, assign it.
129 if test -n "$ac_prev"; then
130 eval "$ac_prev=\$ac_option"
136 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
140 # Accept the important Cygnus configure options, so we can diagnose typos.
144 -bindir | --bindir | --bindi | --bind | --bin | --bi)
146 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
147 bindir="$ac_optarg" ;;
149 -build | --build | --buil | --bui | --bu)
151 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
152 build="$ac_optarg" ;;
154 -cache-file | --cache-file | --cache-fil | --cache-fi \
155 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
156 ac_prev=cache_file ;;
157 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
158 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
159 cache_file="$ac_optarg" ;;
161 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
163 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
165 datadir="$ac_optarg" ;;
167 -disable-* | --disable-*)
168 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
169 # Reject names that are not valid shell variable names.
170 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
171 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
173 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
174 eval "enable_${ac_feature}=no" ;;
176 -enable-* | --enable-*)
177 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
178 # Reject names that are not valid shell variable names.
179 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
182 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
187 eval "enable_${ac_feature}='$ac_optarg'" ;;
189 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
190 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
191 | --exec | --exe | --ex)
192 ac_prev=exec_prefix ;;
193 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
194 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
195 | --exec=* | --exe=* | --ex=*)
196 exec_prefix="$ac_optarg" ;;
198 -gas | --gas | --ga | --g)
199 # Obsolete; use --with-gas.
202 -help | --help | --hel | --he)
203 # Omit some internal or obsolete options to make the list less imposing.
204 # This message is too long to be a string in the A/UX 3.1 sh.
206 Usage: configure [options] [host]
207 Options: [defaults in brackets after descriptions]
209 --cache-file=FILE cache test results in FILE
210 --help print this message
211 --no-create do not create output files
212 --quiet, --silent do not print \`checking...' messages
213 --version print the version of autoconf that created configure
214 Directory and file names:
215 --prefix=PREFIX install architecture-independent files in PREFIX
217 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
219 --bindir=DIR user executables in DIR [EPREFIX/bin]
220 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
221 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
222 --datadir=DIR read-only architecture-independent data in DIR
224 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
225 --sharedstatedir=DIR modifiable architecture-independent data in DIR
227 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
228 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
229 --includedir=DIR C header files in DIR [PREFIX/include]
230 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
231 --infodir=DIR info documentation in DIR [PREFIX/info]
232 --mandir=DIR man documentation in DIR [PREFIX/man]
233 --srcdir=DIR find the sources in DIR [configure dir or ..]
234 --program-prefix=PREFIX prepend PREFIX to installed program names
235 --program-suffix=SUFFIX append SUFFIX to installed program names
236 --program-transform-name=PROGRAM
237 run sed PROGRAM on installed program names
241 --build=BUILD configure for building on BUILD [BUILD=HOST]
242 --host=HOST configure for HOST [guessed]
243 --target=TARGET configure for TARGET [TARGET=HOST]
244 Features and packages:
245 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
246 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
247 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
248 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
249 --x-includes=DIR X include files are in DIR
250 --x-libraries=DIR X library files are in DIR
252 if test -n "$ac_help"; then
253 echo "--enable and --with options recognized:$ac_help"
257 -host | --host | --hos | --ho)
259 -host=* | --host=* | --hos=* | --ho=*)
262 -includedir | --includedir | --includedi | --included | --include \
263 | --includ | --inclu | --incl | --inc)
264 ac_prev=includedir ;;
265 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
266 | --includ=* | --inclu=* | --incl=* | --inc=*)
267 includedir="$ac_optarg" ;;
269 -infodir | --infodir | --infodi | --infod | --info | --inf)
271 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
272 infodir="$ac_optarg" ;;
274 -libdir | --libdir | --libdi | --libd)
276 -libdir=* | --libdir=* | --libdi=* | --libd=*)
277 libdir="$ac_optarg" ;;
279 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
280 | --libexe | --libex | --libe)
281 ac_prev=libexecdir ;;
282 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
283 | --libexe=* | --libex=* | --libe=*)
284 libexecdir="$ac_optarg" ;;
286 -localstatedir | --localstatedir | --localstatedi | --localstated \
287 | --localstate | --localstat | --localsta | --localst \
288 | --locals | --local | --loca | --loc | --lo)
289 ac_prev=localstatedir ;;
290 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
291 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
292 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
293 localstatedir="$ac_optarg" ;;
295 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
297 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
298 mandir="$ac_optarg" ;;
301 # Obsolete; use --without-fp.
304 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
308 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
309 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
312 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
313 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
314 | --oldin | --oldi | --old | --ol | --o)
315 ac_prev=oldincludedir ;;
316 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
317 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
318 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
319 oldincludedir="$ac_optarg" ;;
321 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
323 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
324 prefix="$ac_optarg" ;;
326 -program-prefix | --program-prefix | --program-prefi | --program-pref \
327 | --program-pre | --program-pr | --program-p)
328 ac_prev=program_prefix ;;
329 -program-prefix=* | --program-prefix=* | --program-prefi=* \
330 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
331 program_prefix="$ac_optarg" ;;
333 -program-suffix | --program-suffix | --program-suffi | --program-suff \
334 | --program-suf | --program-su | --program-s)
335 ac_prev=program_suffix ;;
336 -program-suffix=* | --program-suffix=* | --program-suffi=* \
337 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
338 program_suffix="$ac_optarg" ;;
340 -program-transform-name | --program-transform-name \
341 | --program-transform-nam | --program-transform-na \
342 | --program-transform-n | --program-transform- \
343 | --program-transform | --program-transfor \
344 | --program-transfo | --program-transf \
345 | --program-trans | --program-tran \
346 | --progr-tra | --program-tr | --program-t)
347 ac_prev=program_transform_name ;;
348 -program-transform-name=* | --program-transform-name=* \
349 | --program-transform-nam=* | --program-transform-na=* \
350 | --program-transform-n=* | --program-transform-=* \
351 | --program-transform=* | --program-transfor=* \
352 | --program-transfo=* | --program-transf=* \
353 | --program-trans=* | --program-tran=* \
354 | --progr-tra=* | --program-tr=* | --program-t=*)
355 program_transform_name="$ac_optarg" ;;
357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
358 | -silent | --silent | --silen | --sile | --sil)
361 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
363 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
365 sbindir="$ac_optarg" ;;
367 -sharedstatedir | --sharedstatedir | --sharedstatedi \
368 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
369 | --sharedst | --shareds | --shared | --share | --shar \
371 ac_prev=sharedstatedir ;;
372 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
373 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
374 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
376 sharedstatedir="$ac_optarg" ;;
378 -site | --site | --sit)
380 -site=* | --site=* | --sit=*)
383 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
385 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
386 srcdir="$ac_optarg" ;;
388 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
389 | --syscon | --sysco | --sysc | --sys | --sy)
390 ac_prev=sysconfdir ;;
391 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
392 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
393 sysconfdir="$ac_optarg" ;;
395 -target | --target | --targe | --targ | --tar | --ta | --t)
397 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
398 target="$ac_optarg" ;;
400 -v | -verbose | --verbose | --verbos | --verbo | --verb)
403 -version | --version | --versio | --versi | --vers)
404 echo "configure generated by autoconf version 2.13"
408 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
409 # Reject names that are not valid shell variable names.
410 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
411 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
413 ac_package=`echo $ac_package| sed 's/-/_/g'`
418 eval "with_${ac_package}='$ac_optarg'" ;;
420 -without-* | --without-*)
421 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
422 # Reject names that are not valid shell variable names.
423 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
426 ac_package=`echo $ac_package| sed 's/-/_/g'`
427 eval "with_${ac_package}=no" ;;
430 # Obsolete; use --with-x.
433 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
434 | --x-incl | --x-inc | --x-in | --x-i)
435 ac_prev=x_includes ;;
436 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
437 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
438 x_includes="$ac_optarg" ;;
440 -x-libraries | --x-libraries | --x-librarie | --x-librari \
441 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
442 ac_prev=x_libraries ;;
443 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
444 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
445 x_libraries="$ac_optarg" ;;
447 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
451 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
452 echo "configure: warning: $ac_option: invalid host type" 1>&2
454 if test "x$nonopt" != xNONE; then
455 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
463 if test -n "$ac_prev"; then
464 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
467 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
469 # File descriptor usage:
472 # 2 errors and warnings
473 # 3 some systems may open it to /dev/tty
474 # 4 used on the Kubota Titan
475 # 6 checking for... messages and results
476 # 5 compiler messages saved in config.log
477 if test "$silent" = yes; then
485 This file contains any messages produced by compilers while
486 running configure, to aid debugging if configure makes a mistake.
489 # Strip out --no-create and --no-recursion so they do not pile up.
490 # Also quote any args containing shell metacharacters.
495 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
496 | --no-cr | --no-c) ;;
497 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
498 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
499 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
500 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
501 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
506 # Only set these to C if already set. These must not be set unconditionally
507 # because not all systems understand e.g. LANG=C (notably SCO).
508 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
509 # Non-C LC_CTYPE values break the ctype check.
510 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
511 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
512 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
513 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
515 # confdefs.h avoids OS command line length limits that DEFS can exceed.
516 rm -rf conftest* confdefs.h
517 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
520 # A filename unique to this package, relative to the directory that
521 # configure is in, which we can look for to find out if srcdir is correct.
522 ac_unique_file=include/features.h
524 # Find the source files, if location was not specified.
525 if test -z "$srcdir"; then
526 ac_srcdir_defaulted=yes
527 # Try the directory containing this script, then its parent.
529 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
530 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
532 if test ! -r $srcdir/$ac_unique_file; then
536 ac_srcdir_defaulted=no
538 if test ! -r $srcdir/$ac_unique_file; then
539 if test "$ac_srcdir_defaulted" = yes; then
540 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
542 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
545 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
547 # Prefer explicitly selected file to automatically selected ones.
548 if test -z "$CONFIG_SITE"; then
549 if test "x$prefix" != xNONE; then
550 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
552 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
555 for ac_site_file in $CONFIG_SITE; do
556 if test -r "$ac_site_file"; then
557 echo "loading site script $ac_site_file"
562 if test -r "$cache_file"; then
563 echo "loading cache $cache_file"
566 echo "creating cache $cache_file"
571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
572 ac_cpp='$CPP $CPPFLAGS'
573 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
574 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
575 cross_compiling=$ac_cv_prog_cc_cross
579 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
580 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
588 ac_n= ac_c='\c' ac_t=
591 if test -r /vmunix; then
592 kernel_id=`strings /vmunix | grep UNIX`
593 elif test -r /dynix; then
594 kernel_id=`strings /dynix | grep DYNIX`
602 for ac_dir in scripts $srcdir/scripts; do
603 if test -f $ac_dir/install-sh; then
605 ac_install_sh="$ac_aux_dir/install-sh -c"
607 elif test -f $ac_dir/install.sh; then
609 ac_install_sh="$ac_aux_dir/install.sh -c"
613 if test -z "$ac_aux_dir"; then
614 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
616 ac_config_guess=$ac_aux_dir/config.guess
617 ac_config_sub=$ac_aux_dir/config.sub
618 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
621 # This will get text that should go into config.make.
624 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
625 # Check whether --with-gmp or --without-gmp was given.
626 if test "${with_gmp+set}" = set; then
629 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
631 *) config_vars="$config_vars
632 gmp-srcdir = $withval" ;;
637 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
638 # Check whether --with-gd or --without-gd was given.
639 if test "${with_gd+set}" = set; then
643 *) libgd_include="-I$withval/include"
644 libgd_ldflags="-L$withval/lib" ;;
649 # Check whether --with-gd-include or --without-gd-include was given.
650 if test "${with_gd_include+set}" = set; then
651 withval="$with_gd_include"
652 case "$with_gd_include" in
654 *) libgd_include="-I$withval" ;;
659 # Check whether --with-gd-lib or --without-gd-lib was given.
660 if test "${with_gd_lib+set}" = set; then
661 withval="$with_gd_lib"
662 case "$with_gd_lib" in
664 *) libgd_ldflags="-L$withval" ;;
670 if test -n "$libgd_include"; then
671 config_vars="$config_vars
672 CFLAGS-memusagestat.c = $libgd_include"
674 if test -n "$libgd_ldflags"; then
675 config_vars="$config_vars
676 libgd-LDFLAGS = $libgd_ldflags"
679 # Check whether --with-fp or --without-fp was given.
680 if test "${with_fp+set}" = set; then
688 # Check whether --with-binutils or --without-binutils was given.
689 if test "${with_binutils+set}" = set; then
690 withval="$with_binutils"
691 path_binutils=$withval
696 # Check whether --with-elf or --without-elf was given.
697 if test "${with_elf+set}" = set; then
704 # Check whether --with-xcoff or --without-xcoff was given.
705 if test "${with_xcoff+set}" = set; then
706 withval="$with_xcoff"
712 # Check whether --with-cvs or --without-cvs was given.
713 if test "${with_cvs+set}" = set; then
720 if test "$with_cvs" = yes; then
721 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
728 # Check whether --with-headers or --without-headers was given.
729 if test "${with_headers+set}" = set; then
730 withval="$with_headers"
737 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
738 if test "${enable_sanity_checks+set}" = set; then
739 enableval="$enable_sanity_checks"
740 enable_sanity=$enableval
747 # Check whether --enable-shared or --disable-shared was given.
748 if test "${enable_shared+set}" = set; then
749 enableval="$enable_shared"
755 # Check whether --enable-profile or --disable-profile was given.
756 if test "${enable_profile+set}" = set; then
757 enableval="$enable_profile"
763 # Check whether --enable-omitfp or --disable-omitfp was given.
764 if test "${enable_omitfp+set}" = set; then
765 enableval="$enable_omitfp"
771 # Check whether --enable-bounded or --disable-bounded was given.
772 if test "${enable_bounded+set}" = set; then
773 enableval="$enable_bounded"
779 # Check whether --enable-versioning or --disable-versioning was given.
780 if test "${enable_versioning+set}" = set; then
781 enableval="$enable_versioning"
782 enable_versioning=$enableval
784 enable_versioning=yes
788 # Check whether --enable-oldest-abi or --disable-oldest-abi was given.
789 if test "${enable_oldest_abi+set}" = set; then
790 enableval="$enable_oldest_abi"
791 oldest_abi=$enableval
796 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
799 cat >> confdefs.h <<EOF
800 #define GLIBC_OLDEST_ABI "$oldest_abi"
806 # Check whether --enable-add-ons or --disable-add-ons was given.
807 if test "${enable_add_ons+set}" = set; then
808 enableval="$enable_add_ons"
810 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
811 test "$add_ons" = "*" && add_ons= ;;
812 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
819 # Check whether --with-tls or --without-tls was given.
820 if test "${with_tls+set}" = set; then
828 # Check whether --enable-hidden-plt or --disable-hidden-plt was given.
829 if test "${enable_hidden_plt+set}" = set; then
830 enableval="$enable_hidden_plt"
836 if test "x$hidden" = xno; then
837 cat >> confdefs.h <<\EOF
846 if test x"$add_ons" != x; then
847 for f in $add_ons; do
849 if test "$f" = "crypt"; then
850 { echo "configure: error:
851 *** It seems that you're using an old \`crypt' add-on. crypt is now
852 *** part of glibc and using the old add-on will not work with this
853 *** release. Start again with fresh sources and without the old
854 *** \`crypt' add-on." 1>&2; exit 1; }
856 if test "$f" = "localedata"; then
857 { echo "configure: error:
858 *** It seems that you're using an old \`localedata' add-on. localedata
859 *** is now part of glibc and using the old add-on will not work with
860 *** this release. Start again with fresh sources and without the old
861 *** \`localedata' add-on." 1>&2; exit 1; }
863 # Test whether such a subdir really exists.
864 if test -d $srcdir/$f; then
865 add_ons_pfx="$add_ons_pfx $f/"
867 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
872 # Check whether --enable-static-nss or --disable-static-nss was given.
873 if test "${enable_static_nss+set}" = set; then
874 enableval="$enable_static_nss"
875 static_nss=$enableval
880 if test x"$static_nss" = xyes || test x"$shared" = xno; then
882 cat >> confdefs.h <<\EOF
883 #define DO_STATIC_NSS 1
888 # Check whether --enable-force-install or --disable-force-install was given.
889 if test "${enable_force_install+set}" = set; then
890 enableval="$enable_force_install"
891 force_install=$enableval
898 # Check whether --enable-kernel or --disable-kernel was given.
899 if test "${enable_kernel+set}" = set; then
900 enableval="$enable_kernel"
901 minimum_kernel=$enableval
904 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
905 # Better nothing than this.
908 if test "$minimum_kernel" = current; then
909 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
913 # Check whether --enable-all-warnings or --disable-all-warnings was given.
914 if test "${enable_all_warnings+set}" = set; then
915 enableval="$enable_all_warnings"
916 all_warnings=$enableval
922 # Make sure we can run config.sub.
923 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
924 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
927 echo $ac_n "checking host system type""... $ac_c" 1>&6
928 echo "configure:929: checking host system type" >&5
931 case "$host_alias" in
935 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
936 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
938 *) host_alias=$nonopt ;;
942 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
943 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
944 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
945 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
946 echo "$ac_t""$host" 1>&6
949 # The way shlib-versions is used to generate soversions.mk uses a
950 # fairly simplistic model for name recognition that can't distinguish
951 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
952 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
953 # tell. This doesn't get used much beyond that, so it's fairly safe.
958 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
962 # We keep the original values in `$config_*' and never modify them, so we
963 # can write them unchanged into config.make. Everything else uses
964 # $machine, $vendor, and $os, and changes them whenever convenient.
965 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
967 # Don't allow vendor == "unknown"
968 test "$config_vendor" = unknown && config_vendor=
969 config_os="`echo $config_os | sed 's/^unknown-//'`"
971 # Some configurations imply other options.
973 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
974 # These systems always use GNU tools.
975 gnu_ld=yes gnu_as=yes ;;
978 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
979 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
981 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
982 # These systems (almost) always use the ELF format.
986 # These systems are always xcoff
992 machine=$config_machine
993 vendor=$config_vendor
996 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
998 if test "$machine" = rs6000; then
1003 ### I put this here to prevent those annoying emails from people who cannot
1004 ### read and try to compile glibc on unsupported platforms. --drepper
1006 ### By using the undocumented --enable-hacker-mode option for configure
1007 ### one can skip this test to make the configuration not fail for unsupported
1010 if test -z "$enable_hacker_mode"; then
1011 case "$machine-$host_os" in
1012 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
1015 echo "*** The GNU C library is currently not available for this platform."
1016 echo "*** So far nobody cared to port it and if there is no volunteer it"
1017 echo "*** might never happen. So, if you have interest to see glibc on"
1018 echo "*** this platform visit"
1019 echo "*** http://www.gnu.org/software/libc/porting.html"
1020 echo "*** and join the group of porters"
1026 # Expand the configuration machine name into a subdirectory by architecture
1027 # type and particular chip.
1029 a29k | am29000) base_machine=a29k machine=a29k ;;
1030 alpha*) base_machine=alpha machine=alpha/$machine ;;
1031 arm*) base_machine=arm machine=arm/arm32/$machine ;;
1032 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
1033 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
1034 hppa*64*) base_machine=hppa machine=hppa/hppa64 ;;
1035 hppa*) base_machine=hppa machine=hppa/hppa1.1 ;;
1036 i[3456]86) base_machine=i386 machine=i386/$machine ;;
1037 ia64) base_machine=ia64 machine=ia64 ;;
1038 m680?0) base_machine=m68k machine=m68k/$machine ;;
1039 m68k) base_machine=m68k machine=m68k/m68020 ;;
1040 m88???) base_machine=m88k machine=m88k/$machine ;;
1041 m88k) base_machine=m88k machine=m88k/m88100 ;;
1042 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
1043 mips*) base_machine=mips machine=mips/$machine ;;
1044 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
1045 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
1046 s390) base_machine=s390 machine=s390/s390-32 ;;
1047 s390x) base_machine=s390 machine=s390/s390-64 ;;
1048 sh3*) base_machine=sh machine=sh/sh3 ;;
1049 sh4*) base_machine=sh machine=sh/sh4 ;;
1051 base_machine=sparc machine=sparc/sparc32 ;;
1052 sparcv8 | supersparc | hypersparc)
1053 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
1054 sparcv8plus | sparcv8plusa | sparcv9)
1055 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
1056 sparcv8plusb | sparcv9b)
1057 base_machine=sparc machine=sparc/sparc32/sparcv9b ;;
1058 sparc64 | ultrasparc)
1059 base_machine=sparc machine=sparc/sparc64 ;;
1060 sparc64b | ultrasparc3)
1061 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
1062 thumb*) base_machine=thumb machine=arm/thumb/$machine ;;
1063 *) base_machine=$machine ;;
1067 if test "$base_machine" = "i386"; then
1068 cat >> confdefs.h <<\EOF
1069 #define USE_REGPARMS 1
1074 # Compute the list of sysdep directories for this configuration.
1075 # This can take a while to compute.
1076 sysdep_dir=$srcdir/sysdeps
1077 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
1078 echo "configure:1079: checking sysdep dirs" >&5
1079 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1080 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1084 base_os=mach/hurd ;;
1085 netbsd* | 386bsd* | freebsd* | bsdi*)
1086 base_os=unix/bsd/bsd4.4 ;;
1087 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1089 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1090 base_os=unix/sysv ;;
1092 base_os=unix/sysv/irix6/$os ;;
1094 base_os=unix/sysv/sysv4 ;;
1096 base_os=unix/sysv/hpux/$os ;;
1098 base_os=unix/sysv/aix/aix4.3 ;;
1100 base_os=standalone ;;
1105 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1108 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1112 o=`echo $tail | sed 's/[0-9]*$//'`
1113 if test $o != $tail; then
1116 # For linux-gnu, try linux-gnu, then linux.
1117 o=`echo $tail | sed 's/-.*$//'`
1118 if test $o != $tail; then
1122 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1125 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1131 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1134 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1136 # Prepend the machine's FPU directory unless --without-fp.
1137 if test "$with_fp" = yes; then
1138 mach="$mach /$1/fpu"
1145 # Find what sysdep directories exist.
1147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1148 for d in $add_ons_pfx ''; do
1149 for b in $base ''; do
1150 for m0 in $mach ''; do
1151 for v in /$vendor ''; do
1152 test "$v" = / && continue
1153 for o in /$ostry ''; do
1154 test "$o" = / && continue
1155 for m in $mach ''; do
1156 if test "$m0$b$v$o$m"; then
1157 try="${d}sysdeps$m0$b$v$o$m"
1158 test -n "$enable_debug_configure" &&
1159 echo "$0 DEBUG: try $try" >&2
1160 if test -d $srcdir/$try; then
1161 sysnames="$sysnames $try"
1162 { test -n "$o" || test -n "$b"; } && os_used=t
1163 { test -n "$m" || test -n "$m0"; } && machine_used=t
1174 if test -z "$os_used" && test "$os" != none; then
1175 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1177 if test -z "$machine_used" && test "$machine" != none; then
1178 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1181 # We have now validated the configuration.
1184 # If using ELF, look for an `elf' subdirectory of each machine directory.
1185 # We prepend these rather than inserting them whereever the machine appears
1186 # because things specified by the machine's ELF ABI should override
1187 # OS-specific things, and should always be the same for any OS on the
1188 # machine (otherwise what's the point of an ABI?).
1189 if test "$elf" = yes; then
1191 for d in $add_ons_pfx ''; do
1193 if test -d $srcdir/${d}sysdeps$m/elf; then
1194 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1198 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1202 # Expand the list of system names into a full list of directories
1203 # from each element's parent name and Implies file (if present).
1206 while test $# -gt 0; do
1210 case " $names " in *" $name "*)
1211 # Already in the list.
1215 # Report each name as we discover it, so there is no long pause in output.
1216 echo $ac_n "$name $ac_c" >&6
1218 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1222 *) xsrcdir=$srcdir/ ;;
1224 test -n "$enable_debug_configure" &&
1225 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1227 if test -f $xsrcdir$name/Implies; then
1228 # Collect more names from the `Implies' file (removing comments).
1229 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1231 for x in $implied_candidate; do
1233 if test -d $xsrcdir$name_base/$x; then
1234 implied="$implied $name_base/$x";
1237 for d in $add_ons_pfx ''; do
1238 try="${d}sysdeps/$x"
1241 *) try_srcdir=$srcdir/ ;;
1243 test -n "$enable_debug_configure" &&
1244 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
1245 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
1247 implied="$implied $try"
1251 if test $found = no; then
1252 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1259 # Add NAME to the list of names.
1260 names="$names $name"
1262 # Find the parent of NAME, using the empty string if it has none.
1263 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1265 # Add the names implied by NAME, and NAME's parent (if it has one), to
1266 # the list of names to be processed (the argument list). We prepend the
1267 # implied names to the list and append the parent. We want implied
1268 # directories to come before further directories inferred from the
1269 # configuration components; this ensures that for sysv4, unix/common
1270 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1272 sysnames="`echo $implied $* $parent`"
1273 test -n "$sysnames" && set $sysnames
1276 # Add the default directories.
1277 default_sysnames=sysdeps/generic
1278 if test "$elf" = yes; then
1279 default_sysnames="sysdeps/generic/elf $default_sysnames"
1281 sysnames="$names $default_sysnames"
1283 # The other names were emitted during the scan.
1284 echo "$ac_t""$default_sysnames" 1>&6
1289 # Find a good install program. We prefer a C program (faster),
1290 # so one script is as good as another. But avoid the broken or
1291 # incompatible versions:
1292 # SysV /etc/install, /usr/sbin/install
1293 # SunOS /usr/etc/install
1294 # IRIX /sbin/install
1296 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1297 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1298 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1299 # ./install, which can be erroneously created by make from ./install.sh.
1300 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1301 echo "configure:1302: checking for a BSD compatible install" >&5
1302 if test -z "$INSTALL"; then
1303 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1306 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1307 for ac_dir in $PATH; do
1308 # Account for people who put trailing slashes in PATH elements.
1310 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1312 # OSF1 and SCO ODT 3.0 have their own names for install.
1313 # Don't use installbsd from OSF since it installs stuff as root
1315 for ac_prog in ginstall scoinst install; do
1316 if test -f $ac_dir/$ac_prog; then
1317 if test $ac_prog = install &&
1318 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1319 # AIX install. It has an incompatible calling convention.
1322 ac_cv_path_install="$ac_dir/$ac_prog -c"
1333 if test "${ac_cv_path_install+set}" = set; then
1334 INSTALL="$ac_cv_path_install"
1336 # As a last resort, use the slow shell script. We don't cache a
1337 # path for INSTALL within a source directory, because that will
1338 # break other packages using the cache if that directory is
1339 # removed, or if the path is relative.
1340 INSTALL="$ac_install_sh"
1343 echo "$ac_t""$INSTALL" 1>&6
1345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1346 # It thinks the first close brace ends the variable substitution.
1347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1351 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1353 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
1354 # The makefiles need to use a different form to find it in $srcdir.
1355 INSTALL='\$(..)./scripts/install-sh -c'
1357 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1358 echo "configure:1359: checking whether ln -s works" >&5
1359 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1363 if ln -s X conftestdata 2>/dev/null
1366 ac_cv_prog_LN_S="ln -s"
1371 LN_S="$ac_cv_prog_LN_S"
1372 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1373 echo "$ac_t""yes" 1>&6
1375 echo "$ac_t""no" 1>&6
1379 # We need the physical current working directory. We cannot use the
1380 # "pwd -P" shell builtin since that's not portable. Instead we try to
1381 # find a pwd binary. Note that assigning to the PWD environment
1382 # variable might have some interesting side effects, so we don't do
1384 # Extract the first word of "pwd", so it can be a program name with args.
1385 set dummy pwd; ac_word=$2
1386 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1387 echo "configure:1388: checking for $ac_word" >&5
1388 if eval "test \"`echo '$''{'ac_cv_path_PWD_P'+set}'`\" = set"; then
1389 echo $ac_n "(cached) $ac_c" 1>&6
1393 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
1396 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a dos path.
1399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1401 for ac_dir in $ac_dummy; do
1402 test -z "$ac_dir" && ac_dir=.
1403 if test -f $ac_dir/$ac_word; then
1404 ac_cv_path_PWD_P="$ac_dir/$ac_word"
1409 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
1413 PWD_P="$ac_cv_path_PWD_P"
1414 if test -n "$PWD_P"; then
1415 echo "$ac_t""$PWD_P" 1>&6
1417 echo "$ac_t""no" 1>&6
1420 if test "$PWD_P" = no; then
1421 { echo "configure: error: *** A pwd binary could not be found." 1>&2; exit 1; }
1424 # These programs are version sensitive.
1425 echo $ac_n "checking build system type""... $ac_c" 1>&6
1426 echo "configure:1427: checking build system type" >&5
1429 case "$build_alias" in
1432 NONE) build_alias=$host_alias ;;
1433 *) build_alias=$nonopt ;;
1437 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1438 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1439 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1440 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1441 echo "$ac_t""$build" 1>&6
1443 if test $host != $build; then
1444 ac_tool_prefix=${host_alias}-
1449 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
1451 # Extract the first word of "$ac_prog", so it can be a program name with args.
1452 set dummy $ac_prog; ac_word=$2
1453 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1454 echo "configure:1455: checking for $ac_word" >&5
1455 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1458 if test -n "$CC"; then
1459 ac_cv_prog_CC="$CC" # Let the user override the test.
1461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1463 for ac_dir in $ac_dummy; do
1464 test -z "$ac_dir" && ac_dir=.
1465 if test -f $ac_dir/$ac_word; then
1466 ac_cv_prog_CC="$ac_prog"
1474 if test -n "$CC"; then
1475 echo "$ac_t""$CC" 1>&6
1477 echo "$ac_t""no" 1>&6
1480 test -n "$CC" && break
1483 if test -z "$CC"; then
1486 # Found it, now check the version.
1487 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1488 echo "configure:1489: checking version of $CC" >&5
1489 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
1490 case $ac_prog_version in
1491 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1493 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1494 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1497 echo "$ac_t""$ac_prog_version" 1>&6
1499 if test $ac_verc_fail = yes; then
1500 critic_missing="$critic_missing gcc"
1503 for ac_prog in gnumake gmake make
1505 # Extract the first word of "$ac_prog", so it can be a program name with args.
1506 set dummy $ac_prog; ac_word=$2
1507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1508 echo "configure:1509: checking for $ac_word" >&5
1509 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1512 if test -n "$MAKE"; then
1513 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1515 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1517 for ac_dir in $ac_dummy; do
1518 test -z "$ac_dir" && ac_dir=.
1519 if test -f $ac_dir/$ac_word; then
1520 ac_cv_prog_MAKE="$ac_prog"
1527 MAKE="$ac_cv_prog_MAKE"
1528 if test -n "$MAKE"; then
1529 echo "$ac_t""$MAKE" 1>&6
1531 echo "$ac_t""no" 1>&6
1534 test -n "$MAKE" && break
1537 if test -z "$MAKE"; then
1540 # Found it, now check the version.
1541 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1542 echo "configure:1543: checking version of $MAKE" >&5
1543 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
1544 case $ac_prog_version in
1545 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1547 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1548 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1551 echo "$ac_t""$ac_prog_version" 1>&6
1553 if test $ac_verc_fail = yes; then
1554 critic_missing="$critic_missing make"
1559 if test -n "$critic_missing"; then
1560 { echo "configure: error:
1561 *** These critical programs are missing or too old:$critic_missing
1562 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1566 for ac_prog in gnumsgfmt gmsgfmt msgfmt
1568 # Extract the first word of "$ac_prog", so it can be a program name with args.
1569 set dummy $ac_prog; ac_word=$2
1570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1571 echo "configure:1572: checking for $ac_word" >&5
1572 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1573 echo $ac_n "(cached) $ac_c" 1>&6
1575 if test -n "$MSGFMT"; then
1576 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1580 for ac_dir in $ac_dummy; do
1581 test -z "$ac_dir" && ac_dir=.
1582 if test -f $ac_dir/$ac_word; then
1583 ac_cv_prog_MSGFMT="$ac_prog"
1590 MSGFMT="$ac_cv_prog_MSGFMT"
1591 if test -n "$MSGFMT"; then
1592 echo "$ac_t""$MSGFMT" 1>&6
1594 echo "$ac_t""no" 1>&6
1597 test -n "$MSGFMT" && break
1600 if test -z "$MSGFMT"; then
1603 # Found it, now check the version.
1604 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1605 echo "configure:1606: checking version of $MSGFMT" >&5
1606 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1607 case $ac_prog_version in
1608 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1609 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
1610 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1611 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1614 echo "$ac_t""$ac_prog_version" 1>&6
1616 if test $ac_verc_fail = yes; then
1617 MSGFMT=: aux_missing="$aux_missing msgfmt"
1620 for ac_prog in makeinfo
1622 # Extract the first word of "$ac_prog", so it can be a program name with args.
1623 set dummy $ac_prog; ac_word=$2
1624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1625 echo "configure:1626: checking for $ac_word" >&5
1626 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1629 if test -n "$MAKEINFO"; then
1630 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1634 for ac_dir in $ac_dummy; do
1635 test -z "$ac_dir" && ac_dir=.
1636 if test -f $ac_dir/$ac_word; then
1637 ac_cv_prog_MAKEINFO="$ac_prog"
1644 MAKEINFO="$ac_cv_prog_MAKEINFO"
1645 if test -n "$MAKEINFO"; then
1646 echo "$ac_t""$MAKEINFO" 1>&6
1648 echo "$ac_t""no" 1>&6
1651 test -n "$MAKEINFO" && break
1654 if test -z "$MAKEINFO"; then
1657 # Found it, now check the version.
1658 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1659 echo "configure:1660: checking version of $MAKEINFO" >&5
1660 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
1661 case $ac_prog_version in
1662 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1664 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1665 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1668 echo "$ac_t""$ac_prog_version" 1>&6
1670 if test $ac_verc_fail = yes; then
1671 MAKEINFO=: aux_missing="$aux_missing makeinfo"
1676 # Extract the first word of "$ac_prog", so it can be a program name with args.
1677 set dummy $ac_prog; ac_word=$2
1678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1679 echo "configure:1680: checking for $ac_word" >&5
1680 if eval "test \"`echo '$''{'ac_cv_prog_SED'+set}'`\" = set"; then
1681 echo $ac_n "(cached) $ac_c" 1>&6
1683 if test -n "$SED"; then
1684 ac_cv_prog_SED="$SED" # Let the user override the test.
1686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1688 for ac_dir in $ac_dummy; do
1689 test -z "$ac_dir" && ac_dir=.
1690 if test -f $ac_dir/$ac_word; then
1691 ac_cv_prog_SED="$ac_prog"
1698 SED="$ac_cv_prog_SED"
1699 if test -n "$SED"; then
1700 echo "$ac_t""$SED" 1>&6
1702 echo "$ac_t""no" 1>&6
1705 test -n "$SED" && break
1708 if test -z "$SED"; then
1711 # Found it, now check the version.
1712 echo $ac_n "checking version of $SED""... $ac_c" 1>&6
1713 echo "configure:1714: checking version of $SED" >&5
1714 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
1715 case $ac_prog_version in
1716 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1717 3.0[2-9]*|3.[1-9]*|[4-9]*)
1718 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1719 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1722 echo "$ac_t""$ac_prog_version" 1>&6
1724 if test $ac_verc_fail = yes; then
1725 SED=: aux_missing="$aux_missing sed"
1729 for ac_prog in autoconf
1731 # Extract the first word of "$ac_prog", so it can be a program name with args.
1732 set dummy $ac_prog; ac_word=$2
1733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1734 echo "configure:1735: checking for $ac_word" >&5
1735 if eval "test \"`echo '$''{'ac_cv_prog_AUTOCONF'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1738 if test -n "$AUTOCONF"; then
1739 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
1741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1743 for ac_dir in $ac_dummy; do
1744 test -z "$ac_dir" && ac_dir=.
1745 if test -f $ac_dir/$ac_word; then
1746 ac_cv_prog_AUTOCONF="$ac_prog"
1753 AUTOCONF="$ac_cv_prog_AUTOCONF"
1754 if test -n "$AUTOCONF"; then
1755 echo "$ac_t""$AUTOCONF" 1>&6
1757 echo "$ac_t""no" 1>&6
1760 test -n "$AUTOCONF" && break
1762 test -n "$AUTOCONF" || AUTOCONF="no"
1764 case "x$AUTOCONF" in
1765 xno|x|x:) AUTOCONF=no ;;
1767 echo $ac_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works""... $ac_c" 1>&6
1768 echo "configure:1769: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
1769 if eval "test \"`echo '$''{'libc_cv_autoconf_works'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1772 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
1773 libc_cv_autoconf_works=yes
1775 libc_cv_autoconf_works=no
1779 echo "$ac_t""$libc_cv_autoconf_works" 1>&6
1780 test $libc_cv_autoconf_works = yes || AUTOCONF=no
1783 test "x$AUTOCONF" != xno || aux_missing="$aux_missing autoconf"
1786 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1787 echo "configure:1788: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1788 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1794 ac_cpp='$CPP $CPPFLAGS'
1795 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1796 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1797 cross_compiling=$ac_cv_prog_cc_cross
1799 cat > conftest.$ac_ext << EOF
1801 #line 1802 "configure"
1802 #include "confdefs.h"
1806 if { (eval echo configure:1807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1807 ac_cv_prog_cc_works=yes
1808 # If we can't run a trivial program, we are probably using a cross compiler.
1809 if (./conftest; exit) 2>/dev/null; then
1810 ac_cv_prog_cc_cross=no
1812 ac_cv_prog_cc_cross=yes
1815 echo "configure: failed program was:" >&5
1816 cat conftest.$ac_ext >&5
1817 ac_cv_prog_cc_works=no
1821 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1822 ac_cpp='$CPP $CPPFLAGS'
1823 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1824 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1825 cross_compiling=$ac_cv_prog_cc_cross
1829 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1830 if test $ac_cv_prog_cc_works = no; then
1832 ac_cv_prog_cc_cross=yes
1836 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1837 echo "configure:1838: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1838 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1844 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1846 cross_compiling=$ac_cv_prog_cc_cross
1848 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1849 echo "configure:1850: checking whether we are using GNU C" >&5
1850 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 cat > conftest.c <<EOF
1858 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1865 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1866 if test $ac_cv_prog_gcc != yes; then
1867 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1870 echo $ac_n "checking build system type""... $ac_c" 1>&6
1871 echo "configure:1872: checking build system type" >&5
1874 case "$build_alias" in
1877 NONE) build_alias=$host_alias ;;
1878 *) build_alias=$nonopt ;;
1882 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1883 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1884 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1885 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1886 echo "$ac_t""$build" 1>&6
1888 if test $host != $build; then
1889 for ac_prog in gcc cc
1891 # Extract the first word of "$ac_prog", so it can be a program name with args.
1892 set dummy $ac_prog; ac_word=$2
1893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1894 echo "configure:1895: checking for $ac_word" >&5
1895 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1898 if test -n "$BUILD_CC"; then
1899 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1903 for ac_dir in $ac_dummy; do
1904 test -z "$ac_dir" && ac_dir=.
1905 if test -f $ac_dir/$ac_word; then
1906 ac_cv_prog_BUILD_CC="$ac_prog"
1913 BUILD_CC="$ac_cv_prog_BUILD_CC"
1914 if test -n "$BUILD_CC"; then
1915 echo "$ac_t""$BUILD_CC" 1>&6
1917 echo "$ac_t""no" 1>&6
1920 test -n "$BUILD_CC" && break
1925 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1926 echo "configure:1927: checking how to run the C preprocessor" >&5
1927 # On Suns, sometimes $CPP names a directory.
1928 if test -n "$CPP" && test -d "$CPP"; then
1931 if test -z "$CPP"; then
1932 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1933 echo $ac_n "(cached) $ac_c" 1>&6
1935 # This must be in double quotes, not single quotes, because CPP may get
1936 # substituted into the Makefile and "${CC-cc}" will confuse make.
1938 # On the NeXT, cc -E runs the code through the compiler's parser,
1939 # not just through cpp.
1940 cat > conftest.$ac_ext <<EOF
1941 #line 1942 "configure"
1942 #include "confdefs.h"
1946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1947 { (eval echo configure:1948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1949 if test -z "$ac_err"; then
1953 echo "configure: failed program was:" >&5
1954 cat conftest.$ac_ext >&5
1956 CPP="${CC-cc} -E -traditional-cpp"
1957 cat > conftest.$ac_ext <<EOF
1958 #line 1959 "configure"
1959 #include "confdefs.h"
1963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1964 { (eval echo configure:1965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1965 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1966 if test -z "$ac_err"; then
1970 echo "configure: failed program was:" >&5
1971 cat conftest.$ac_ext >&5
1973 CPP="${CC-cc} -nologo -E"
1974 cat > conftest.$ac_ext <<EOF
1975 #line 1976 "configure"
1976 #include "confdefs.h"
1980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1981 { (eval echo configure:1982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1983 if test -z "$ac_err"; then
1987 echo "configure: failed program was:" >&5
1988 cat conftest.$ac_ext >&5
1997 ac_cv_prog_CPP="$CPP"
1999 CPP="$ac_cv_prog_CPP"
2001 ac_cv_prog_CPP="$CPP"
2003 echo "$ac_t""$CPP" 1>&6
2005 # Was a --with-binutils option given?
2006 if test -n "$path_binutils"; then
2007 # Make absolute; ensure a single trailing slash.
2008 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
2009 CC="$CC -B$path_binutils"
2011 AS=`$CC -print-prog-name=as`
2012 LD=`$CC -print-prog-name=ld`
2013 AR=`$CC -print-prog-name=ar`
2016 # ranlib has to be treated a bit differently since it might not exist at all.
2017 ac_ranlib=`$CC -print-prog-name=ranlib`
2018 if test "x$ac_ranlib" = xranlib; then
2019 # This extra check has to happen since gcc simply echos the parameter in
2020 # case it cannot find the value in its own directories.
2021 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2022 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2024 echo "configure:2025: checking for $ac_word" >&5
2025 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2028 if test -n "$RANLIB"; then
2029 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2033 for ac_dir in $ac_dummy; do
2034 test -z "$ac_dir" && ac_dir=.
2035 if test -f $ac_dir/$ac_word; then
2036 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2043 RANLIB="$ac_cv_prog_RANLIB"
2044 if test -n "$RANLIB"; then
2045 echo "$ac_t""$RANLIB" 1>&6
2047 echo "$ac_t""no" 1>&6
2051 if test -z "$ac_cv_prog_RANLIB"; then
2052 if test -n "$ac_tool_prefix"; then
2053 # Extract the first word of "ranlib", so it can be a program name with args.
2054 set dummy ranlib; ac_word=$2
2055 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2056 echo "configure:2057: checking for $ac_word" >&5
2057 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2060 if test -n "$RANLIB"; then
2061 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2063 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2065 for ac_dir in $ac_dummy; do
2066 test -z "$ac_dir" && ac_dir=.
2067 if test -f $ac_dir/$ac_word; then
2068 ac_cv_prog_RANLIB="ranlib"
2073 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2076 RANLIB="$ac_cv_prog_RANLIB"
2077 if test -n "$RANLIB"; then
2078 echo "$ac_t""$RANLIB" 1>&6
2080 echo "$ac_t""no" 1>&6
2093 # Determine whether we are using GNU binutils.
2094 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
2095 echo "configure:2096: checking whether $AS is GNU as" >&5
2096 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2099 # Most GNU programs take a -v and spit out some text including
2100 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
2101 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
2102 libc_cv_prog_as_gnu=yes
2104 libc_cv_prog_as_gnu=no
2109 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
2111 gnu_as=$libc_cv_prog_as_gnu
2113 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
2114 echo "configure:2115: checking whether $LD is GNU ld" >&5
2115 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
2116 echo $ac_n "(cached) $ac_c" 1>&6
2118 # Most GNU programs take a -v and spit out some text including
2119 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
2120 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
2121 libc_cv_prog_ld_gnu=yes
2123 libc_cv_prog_ld_gnu=no
2128 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
2129 gnu_ld=$libc_cv_prog_ld_gnu
2131 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
2132 set dummy ${ac_tool_prefix}mig; ac_word=$2
2133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2134 echo "configure:2135: checking for $ac_word" >&5
2135 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2138 if test -n "$MIG"; then
2139 ac_cv_prog_MIG="$MIG" # Let the user override the test.
2141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2143 for ac_dir in $ac_dummy; do
2144 test -z "$ac_dir" && ac_dir=.
2145 if test -f $ac_dir/$ac_word; then
2146 ac_cv_prog_MIG="${ac_tool_prefix}mig"
2153 MIG="$ac_cv_prog_MIG"
2154 if test -n "$MIG"; then
2155 echo "$ac_t""$MIG" 1>&6
2157 echo "$ac_t""no" 1>&6
2161 if test -z "$ac_cv_prog_MIG"; then
2162 if test -n "$ac_tool_prefix"; then
2163 # Extract the first word of "mig", so it can be a program name with args.
2164 set dummy mig; ac_word=$2
2165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2166 echo "configure:2167: checking for $ac_word" >&5
2167 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2170 if test -n "$MIG"; then
2171 ac_cv_prog_MIG="$MIG" # Let the user override the test.
2173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2175 for ac_dir in $ac_dummy; do
2176 test -z "$ac_dir" && ac_dir=.
2177 if test -f $ac_dir/$ac_word; then
2178 ac_cv_prog_MIG="mig"
2183 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="MISSING"
2186 MIG="$ac_cv_prog_MIG"
2187 if test -n "$MIG"; then
2188 echo "$ac_t""$MIG" 1>&6
2190 echo "$ac_t""no" 1>&6
2199 # Accept binutils 2.10.1 or newer (and also any ia64 2.9 version)
2200 # XXX Commented out because it filters out too many good versions.
2202 # AC_CHECK_PROG_VER(AS, $AS, --version,
2203 # [GNU assembler.* \([0-9]*\.[0-9.]*\(-ia64-[0-9]*\)*\)],
2204 # [2.10.[1-9]* | 2.1[1-9]* | 2.9-ia64-*], AS=: critic_missing=t)
2206 test -n "$aux_missing" && echo "configure: warning:
2207 *** These auxiliary programs are missing or incompatible versions:$aux_missing
2208 *** some features will be disabled.
2209 *** Check the INSTALL file for required versions." 1>&2
2211 # glibcbug.in wants to know the compiler version.
2212 CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
2215 # if using special system headers, find out the compiler's sekrit
2216 # header directory and add that to the list. NOTE: Only does the right
2217 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
2218 if test -n "$sysheaders"; then
2219 ccheaders=`$CC -print-file-name=include`
2220 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
2224 # check if ranlib is necessary
2225 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
2226 echo "configure:2227: checking whether ranlib is necessary" >&5
2227 if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2230 cat > conftest.c <<EOF
2235 $CC $CFLAGS -c conftest.c
2236 $AR cr conftest.a conftest.o
2237 cp conftest.a conftest2.a
2239 if cmp -s conftest.a conftest2.a; then
2240 libc_cv_ranlib_necessary=no
2242 libc_cv_ranlib_necessary=yes
2247 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
2248 if test "$libc_cv_ranlib_necessary" = no; then
2252 # Test if LD_LIBRARY_PATH contains the notation for the current directory
2253 # since this would lead to problems installing/building glibc.
2254 # LD_LIBRARY_PATH contains the current directory if one of the following
2256 # - one of the terminals (":" and ";") is the first or last sign
2257 # - two terminals occur directly after each other
2258 # - the path contains an element with a dot in it
2259 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
2260 echo "configure:2261: checking LD_LIBRARY_PATH variable" >&5
2261 case ${LD_LIBRARY_PATH} in
2262 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2263 ld_library_path_setting="contains current directory"
2266 ld_library_path_setting="ok"
2269 echo "$ac_t""$ld_library_path_setting" 1>&6
2270 if test "$ld_library_path_setting" != "ok"; then
2271 { echo "configure: error:
2272 *** LD_LIBRARY_PATH shouldn't contain the current directory when
2273 *** building glibc. Please change the environment variable
2274 *** and run configure again." 1>&2; exit 1; }
2277 echo $ac_n "checking whether GCC supports -static-libgcc""... $ac_c" 1>&6
2278 echo "configure:2279: checking whether GCC supports -static-libgcc" >&5
2279 if eval "test \"`echo '$''{'libc_cv_gcc_static_libgcc'+set}'`\" = set"; then
2280 echo $ac_n "(cached) $ac_c" 1>&6
2282 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
2283 libc_cv_gcc_static_libgcc=
2285 libc_cv_gcc_static_libgcc=-static-libgcc
2289 echo "$ac_t""$libc_cv_gcc_static_libgcc" 1>&6
2292 # Extract the first word of "bash", so it can be a program name with args.
2293 set dummy bash; ac_word=$2
2294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2295 echo "configure:2296: checking for $ac_word" >&5
2296 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2301 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2304 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
2307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2309 for ac_dir in $ac_dummy; do
2310 test -z "$ac_dir" && ac_dir=.
2311 if test -f $ac_dir/$ac_word; then
2312 ac_cv_path_BASH="$ac_dir/$ac_word"
2317 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
2321 BASH="$ac_cv_path_BASH"
2322 if test -n "$BASH"; then
2323 echo "$ac_t""$BASH" 1>&6
2325 echo "$ac_t""no" 1>&6
2328 if test "$BASH" != no &&
2329 $BASH -c 'test "$BASH_VERSINFO" \
2330 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
2331 libc_cv_have_bash2=yes
2333 libc_cv_have_bash2=no
2337 if test "$BASH" = no; then
2338 # Extract the first word of "ksh", so it can be a program name with args.
2339 set dummy ksh; ac_word=$2
2340 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2341 echo "configure:2342: checking for $ac_word" >&5
2342 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2347 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2350 ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path.
2353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2355 for ac_dir in $ac_dummy; do
2356 test -z "$ac_dir" && ac_dir=.
2357 if test -f $ac_dir/$ac_word; then
2358 ac_cv_path_KSH="$ac_dir/$ac_word"
2363 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
2367 KSH="$ac_cv_path_KSH"
2368 if test -n "$KSH"; then
2369 echo "$ac_t""$KSH" 1>&6
2371 echo "$ac_t""no" 1>&6
2374 if test "$KSH" = no; then
2377 libc_cv_have_ksh=yes
2382 libc_cv_have_ksh=yes
2386 for ac_prog in gawk mawk nawk awk
2388 # Extract the first word of "$ac_prog", so it can be a program name with args.
2389 set dummy $ac_prog; ac_word=$2
2390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2391 echo "configure:2392: checking for $ac_word" >&5
2392 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2393 echo $ac_n "(cached) $ac_c" 1>&6
2395 if test -n "$AWK"; then
2396 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2400 for ac_dir in $ac_dummy; do
2401 test -z "$ac_dir" && ac_dir=.
2402 if test -f $ac_dir/$ac_word; then
2403 ac_cv_prog_AWK="$ac_prog"
2410 AWK="$ac_cv_prog_AWK"
2411 if test -n "$AWK"; then
2412 echo "$ac_t""$AWK" 1>&6
2414 echo "$ac_t""no" 1>&6
2417 test -n "$AWK" && break
2420 # Extract the first word of "perl", so it can be a program name with args.
2421 set dummy perl; ac_word=$2
2422 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2423 echo "configure:2424: checking for $ac_word" >&5
2424 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2429 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2432 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
2435 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2437 for ac_dir in $ac_dummy; do
2438 test -z "$ac_dir" && ac_dir=.
2439 if test -f $ac_dir/$ac_word; then
2440 ac_cv_path_PERL="$ac_dir/$ac_word"
2445 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
2449 PERL="$ac_cv_path_PERL"
2450 if test -n "$PERL"; then
2451 echo "$ac_t""$PERL" 1>&6
2453 echo "$ac_t""no" 1>&6
2456 if test "$PERL" != no &&
2457 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
2460 # Extract the first word of "install-info", so it can be a program name with args.
2461 set dummy install-info; ac_word=$2
2462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2463 echo "configure:2464: checking for $ac_word" >&5
2464 if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2467 case "$INSTALL_INFO" in
2469 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
2472 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a dos path.
2475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2476 ac_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
2477 for ac_dir in $ac_dummy; do
2478 test -z "$ac_dir" && ac_dir=.
2479 if test -f $ac_dir/$ac_word; then
2480 ac_cv_path_INSTALL_INFO="$ac_dir/$ac_word"
2485 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
2489 INSTALL_INFO="$ac_cv_path_INSTALL_INFO"
2490 if test -n "$INSTALL_INFO"; then
2491 echo "$ac_t""$INSTALL_INFO" 1>&6
2493 echo "$ac_t""no" 1>&6
2496 if test "$INSTALL_INFO" != "no"; then
2497 echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
2498 echo "configure:2499: checking for old Debian install-info" >&5
2499 if eval "test \"`echo '$''{'libc_cv_old_debian_install_info'+set}'`\" = set"; then
2500 echo $ac_n "(cached) $ac_c" 1>&6
2503 # There is a hard ^_ on the next line. I am open to better ideas.
2505 echo 'File: dir Node: Top This is the top of the INFO tree'
2506 echo '* Menu:') >conftest.d/dir
2507 (echo 'INFO-DIR-SECTION i-d-s works'
2508 echo 'START-INFO-DIR-ENTRY'
2509 echo '* Prog: (prog). Program.'
2510 echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
2511 if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
2513 if grep -s 'i-d-s works' conftest.d/dir >/dev/null
2514 then libc_cv_old_debian_install_info=no
2515 else libc_cv_old_debian_install_info=yes
2517 else libc_cv_old_debian_install_info=no testfailed=t
2522 echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2523 if test -n "$testfailed"
2524 then echo "configure: warning: install-info errored out, check config.log" 1>&2
2526 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
2530 # Extract the first word of "bison", so it can be a program name with args.
2531 set dummy bison; ac_word=$2
2532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2533 echo "configure:2534: checking for $ac_word" >&5
2534 if eval "test \"`echo '$''{'ac_cv_path_BISON'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6
2539 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
2542 ac_cv_path_BISON="$BISON" # Let the user override the test with a dos path.
2545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2546 ac_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
2547 for ac_dir in $ac_dummy; do
2548 test -z "$ac_dir" && ac_dir=.
2549 if test -f $ac_dir/$ac_word; then
2550 ac_cv_path_BISON="$ac_dir/$ac_word"
2555 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
2559 BISON="$ac_cv_path_BISON"
2560 if test -n "$BISON"; then
2561 echo "$ac_t""$BISON" 1>&6
2563 echo "$ac_t""no" 1>&6
2567 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2568 echo "configure:2569: checking for signed size_t type" >&5
2569 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2570 echo $ac_n "(cached) $ac_c" 1>&6
2572 echo '#include <stddef.h>
2573 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2574 if eval "$ac_cpp conftest.c 2>/dev/null" \
2575 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
2576 libc_cv_signed_size_t=no
2578 libc_cv_signed_size_t=yes
2583 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2584 if test $libc_cv_signed_size_t = yes; then
2585 cat >> confdefs.h <<\EOF
2586 #undef __SIZE_TYPE__
2587 #define __SIZE_TYPE__ unsigned
2591 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2592 echo "configure:2593: checking for libc-friendly stddef.h" >&5
2593 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2596 cat > conftest.$ac_ext <<EOF
2597 #line 2598 "configure"
2598 #include "confdefs.h"
2599 #define __need_size_t
2600 #define __need_wchar_t
2605 size_t size; wchar_t wchar;
2607 #error stddef.h ignored __need_*
2609 if (&size == NULL || &wchar == NULL) abort ();
2612 if { (eval echo configure:2613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2614 libc_cv_friendly_stddef=yes
2616 echo "configure: failed program was:" >&5
2617 cat conftest.$ac_ext >&5
2619 libc_cv_friendly_stddef=no
2624 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2625 if test $libc_cv_friendly_stddef = yes; then
2626 config_vars="$config_vars
2627 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2630 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2631 echo "configure:2632: checking whether we need to use -P to assemble .S files" >&5
2632 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2633 echo $ac_n "(cached) $ac_c" 1>&6
2635 cat > conftest.S <<EOF
2636 #include "confdefs.h"
2637 /* Nothing whatsoever. */
2639 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
2640 libc_cv_need_minus_P=no
2642 libc_cv_need_minus_P=yes
2647 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2648 if test $libc_cv_need_minus_P = yes; then
2649 config_vars="$config_vars
2650 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2653 echo $ac_n "checking whether .text pseudo-op must be used""... $ac_c" 1>&6
2654 echo "configure:2655: checking whether .text pseudo-op must be used" >&5
2655 if eval "test \"`echo '$''{'libc_cv_dot_text'+set}'`\" = set"; then
2656 echo $ac_n "(cached) $ac_c" 1>&6
2658 cat > conftest.s <<EOF
2662 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2663 libc_cv_dot_text=.text
2668 if test -z "$libc_cv_dot_text"; then
2669 echo "$ac_t""no" 1>&6
2671 echo "$ac_t""yes" 1>&6
2674 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2675 echo "configure:2676: checking for assembler global-symbol directive" >&5
2676 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2679 libc_cv_asm_global_directive=UNKNOWN
2680 for ac_globl in .globl .global .EXPORT; do
2681 cat > conftest.s <<EOF
2686 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2687 libc_cv_asm_global_directive=${ac_globl}
2690 test $libc_cv_asm_global_directive != UNKNOWN && break
2694 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2695 if test $libc_cv_asm_global_directive = UNKNOWN; then
2696 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2698 cat >> confdefs.h <<EOF
2699 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2704 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2705 echo "configure:2706: checking for .set assembler directive" >&5
2706 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2709 cat > conftest.s <<EOF
2712 .set glibc_conftest_frobozz,foo
2713 $libc_cv_asm_global_directive glibc_conftest_frobozz
2715 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2716 # (but it doesn't work), so we must do a linking check to be sure.
2717 cat > conftest1.c <<\EOF
2718 extern int glibc_conftest_frobozz;
2719 main () { printf ("%d\n", glibc_conftest_frobozz); }
2721 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2722 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2723 libc_cv_asm_set_directive=yes
2725 libc_cv_asm_set_directive=no
2730 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2731 if test $libc_cv_asm_set_directive = yes; then
2732 cat >> confdefs.h <<\EOF
2733 #define HAVE_ASM_SET_DIRECTIVE 1
2738 echo $ac_n "checking for assembler .type directive prefix""... $ac_c" 1>&6
2739 echo "configure:2740: checking for assembler .type directive prefix" >&5
2740 if eval "test \"`echo '$''{'libc_cv_asm_type_prefix'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2743 libc_cv_asm_type_prefix=no
2744 for ac_try_prefix in '@' '%' '#'; do
2745 cat > conftest.s <<EOF
2747 ${libc_cv_asm_global_directive} foo
2748 .type foo, ${ac_try_prefix}object
2753 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2754 libc_cv_asm_type_prefix=${ac_try_prefix}
2757 test "x$libc_cv_asm_type_prefix" != xno && break
2761 echo "$ac_t""$libc_cv_asm_type_prefix" 1>&6
2762 if test "x$libc_cv_asm_type_prefix" != xno; then
2763 cat >> confdefs.h <<EOF
2764 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
2769 # The Aix ld uses global .symbol_names instead of symbol_names.
2770 # Unfortunately also used in the PPC64 ELF ABI.
2771 case "${os}${machine}" in
2772 aix4.3* | linux*powerpc/powerpc64*)
2773 cat >> confdefs.h <<\EOF
2774 #define HAVE_ASM_GLOBAL_DOT_NAME 1
2779 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2780 echo "configure:2781: checking for .symver assembler directive" >&5
2781 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2782 echo $ac_n "(cached) $ac_c" 1>&6
2784 cat > conftest.s <<EOF
2787 .symver _sym,sym@VERS
2789 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2790 libc_cv_asm_symver_directive=yes
2792 libc_cv_asm_symver_directive=no
2797 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2798 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2799 echo "configure:2800: checking for ld --version-script" >&5
2800 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2803 if test $libc_cv_asm_symver_directive = yes; then
2804 cat > conftest.s <<EOF
2807 .symver _sym,sym@VERS
2809 cat > conftest.map <<EOF
2818 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2819 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2820 -nostartfiles -nostdlib
2821 -Wl,--version-script,conftest.map
2822 1>&5'; { (eval echo configure:2823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2824 libc_cv_ld_version_script_option=yes
2826 libc_cv_ld_version_script_option=no
2829 libc_cv_ld_version_script_option=no
2832 libc_cv_ld_version_script_option=no
2837 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2838 if test $shared != no &&
2839 test $libc_cv_asm_symver_directive = yes &&
2840 test $libc_cv_ld_version_script_option = yes &&
2841 test $enable_versioning = yes; then
2843 cat >> confdefs.h <<\EOF
2844 #define DO_VERSIONING 1
2852 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
2854 *** WARNING: You should not compile GNU libc without versioning. Not using
2855 *** versioning will introduce incompatibilities so that old binaries
2856 *** will not run anymore.
2857 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2859 if test $elf = yes; then
2860 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2861 echo "configure:2862: checking for .previous assembler directive" >&5
2862 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2863 echo $ac_n "(cached) $ac_c" 1>&6
2865 cat > conftest.s <<EOF
2866 .section foo_section
2869 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2870 libc_cv_asm_previous_directive=yes
2872 libc_cv_asm_previous_directive=no
2877 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2878 if test $libc_cv_asm_previous_directive = yes; then
2879 cat >> confdefs.h <<\EOF
2880 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2884 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2885 echo "configure:2886: checking for .popsection assembler directive" >&5
2886 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2887 echo $ac_n "(cached) $ac_c" 1>&6
2889 cat > conftest.s <<EOF
2890 .pushsection foo_section
2893 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2894 libc_cv_asm_popsection_directive=yes
2896 libc_cv_asm_popsection_directive=no
2901 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2902 if test $libc_cv_asm_popsection_directive = yes; then
2903 cat >> confdefs.h <<\EOF
2904 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2909 echo $ac_n "checking for .protected and .hidden assembler directive""... $ac_c" 1>&6
2910 echo "configure:2911: checking for .protected and .hidden assembler directive" >&5
2911 if eval "test \"`echo '$''{'libc_cv_asm_protected_directive'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2914 cat > conftest.s <<EOF
2920 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2921 libc_cv_asm_protected_directive=yes
2923 libc_cv_asm_protected_directive=no
2928 echo "$ac_t""$libc_cv_asm_protected_directive" 1>&6
2930 cat >> confdefs.h <<\EOF
2931 #define HAVE_PROTECTED 1
2934 cat >> confdefs.h <<\EOF
2935 #define HAVE_HIDDEN 1
2939 if test $libc_cv_asm_protected_directive = yes; then
2940 echo $ac_n "checking whether __attribute__((visibility())) is supported""... $ac_c" 1>&6
2941 echo "configure:2942: checking whether __attribute__((visibility())) is supported" >&5
2942 if eval "test \"`echo '$''{'libc_cv_visibility_attribute'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2945 cat > conftest.c <<EOF
2946 int foo __attribute__ ((visibility ("hidden"))) = 1;
2947 int bar __attribute__ ((visibility ("protected"))) = 1;
2949 libc_cv_visibility_attribute=no
2950 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
2951 if grep '\.hidden.*foo' conftest.s >/dev/null; then
2952 if grep '\.protected.*bar' conftest.s >/dev/null; then
2953 libc_cv_visibility_attribute=yes
2961 echo "$ac_t""$libc_cv_visibility_attribute" 1>&6
2962 if test $libc_cv_visibility_attribute = yes; then
2963 cat >> confdefs.h <<\EOF
2964 #define HAVE_VISIBILITY_ATTRIBUTE 1
2970 if test $libc_cv_visibility_attribute = yes; then
2971 echo $ac_n "checking for broken __attribute__((visibility()))""... $ac_c" 1>&6
2972 echo "configure:2973: checking for broken __attribute__((visibility()))" >&5
2973 if eval "test \"`echo '$''{'libc_cv_broken_visibility_attribute'+set}'`\" = set"; then
2974 echo $ac_n "(cached) $ac_c" 1>&6
2976 cat > conftest.c <<EOF
2978 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
2979 int bar (int x) { return x; }
2981 libc_cv_broken_visibility_attribute=yes
2982 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
2983 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
2984 libc_cv_broken_visibility_attribute=no
2987 rm -f conftest.c conftest.s
2991 echo "$ac_t""$libc_cv_broken_visibility_attribute" 1>&6
2992 if test $libc_cv_broken_visibility_attribute = yes; then
2993 cat >> confdefs.h <<\EOF
2994 #define HAVE_BROKEN_VISIBILITY_ATTRIBUTE 1
3000 echo $ac_n "checking for broken __attribute__((alias()))""... $ac_c" 1>&6
3001 echo "configure:3002: checking for broken __attribute__((alias()))" >&5
3002 if eval "test \"`echo '$''{'libc_cv_broken_alias_attribute'+set}'`\" = set"; then
3003 echo $ac_n "(cached) $ac_c" 1>&6
3005 cat > conftest.c <<EOF
3006 extern int foo (int x) __asm ("xyzzy");
3007 int bar (int x) { return x; }
3008 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
3010 extern __typeof (dfoo) dfoo __asm ("abccb");
3013 libc_cv_broken_alias_attribute=yes
3014 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
3015 if grep 'xyzzy' conftest.s >/dev/null &&
3016 grep 'abccb' conftest.s >/dev/null; then
3017 libc_cv_broken_alias_attribute=no
3020 rm -f conftest.c conftest.s
3024 echo "$ac_t""$libc_cv_broken_alias_attribute" 1>&6
3025 if test $libc_cv_broken_alias_attribute = yes; then
3026 cat >> confdefs.h <<\EOF
3027 #define HAVE_BROKEN_ALIAS_ATTRIBUTE 1
3032 if test $libc_cv_visibility_attribute = yes -a $gnu_ld = yes; then
3033 echo $ac_n "checking whether to put _rtld_local into .sdata section""... $ac_c" 1>&6
3034 echo "configure:3035: checking whether to put _rtld_local into .sdata section" >&5
3035 if eval "test \"`echo '$''{'libc_cv_have_sdata_section'+set}'`\" = set"; then
3036 echo $ac_n "(cached) $ac_c" 1>&6
3038 echo "int i;" > conftest.c
3039 libc_cv_have_sdata_section=no
3040 if ${CC-cc} -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
3041 | grep '\.sdata' >/dev/null; then
3042 libc_cv_have_sdata_section=yes
3044 rm -f conftest.c conftest.so
3048 echo "$ac_t""$libc_cv_have_sdata_section" 1>&6
3049 if test $libc_cv_have_sdata_section = yes; then
3050 cat >> confdefs.h <<\EOF
3051 #define HAVE_SDATA_SECTION 1
3057 echo $ac_n "checking for .preinit_array/.init_array/.fini_array support""... $ac_c" 1>&6
3058 echo "configure:3059: checking for .preinit_array/.init_array/.fini_array support" >&5
3059 if eval "test \"`echo '$''{'libc_cv_initfinit_array'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3062 cat > conftest.c <<EOF
3063 int _start (void) { return 0; }
3064 int __start (void) { return 0; }
3065 int foo (void) { return 1; }
3066 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
3068 if { ac_try='${CC-cc} -o conftest conftest.c
3069 -static -nostartfiles -nostdlib 1>&5'; { (eval echo configure:3070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
3071 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
3072 libc_cv_initfinit_array=yes
3074 libc_cv_initfinit_array=no
3077 libc_cv_initfinit_array=no
3082 echo "$ac_t""$libc_cv_initfinit_array" 1>&6
3084 if test $libc_cv_initfinit_array = yes; then
3085 cat >> confdefs.h <<\EOF
3086 #define HAVE_INITFINI_ARRAY 1
3091 echo $ac_n "checking for -z nodelete option""... $ac_c" 1>&6
3092 echo "configure:3093: checking for -z nodelete option" >&5
3093 if eval "test \"`echo '$''{'libc_cv_z_nodelete'+set}'`\" = set"; then
3094 echo $ac_n "(cached) $ac_c" 1>&6
3096 cat > conftest.c <<EOF
3097 int _start (void) { return 42; }
3099 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
3100 -nostartfiles -nostdlib
3101 -Wl,--enable-new-dtags,-z,nodelete 1>&5'; { (eval echo configure:3102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
3103 libc_cv_z_nodelete=yes
3105 libc_cv_z_nodelete=no
3110 echo "$ac_t""$libc_cv_z_nodelete" 1>&6
3113 echo $ac_n "checking for -z nodlopen option""... $ac_c" 1>&6
3114 echo "configure:3115: checking for -z nodlopen option" >&5
3115 if eval "test \"`echo '$''{'libc_cv_z_nodlopen'+set}'`\" = set"; then
3116 echo $ac_n "(cached) $ac_c" 1>&6
3118 cat > conftest.c <<EOF
3119 int _start (void) { return 42; }
3121 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
3122 -nostartfiles -nostdlib
3123 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'; { (eval echo configure:3124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
3125 libc_cv_z_nodlopen=yes
3127 libc_cv_z_nodlopen=no
3132 echo "$ac_t""$libc_cv_z_nodlopen" 1>&6
3135 echo $ac_n "checking for -z initfirst option""... $ac_c" 1>&6
3136 echo "configure:3137: checking for -z initfirst option" >&5
3137 if eval "test \"`echo '$''{'libc_cv_z_initfirst'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3140 cat > conftest.c <<EOF
3141 int _start (void) { return 42; }
3143 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
3144 -nostartfiles -nostdlib
3145 -Wl,--enable-new-dtags,-z,initfirst 1>&5'; { (eval echo configure:3146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
3147 libc_cv_z_initfirst=yes
3149 libc_cv_z_initfirst=no
3154 echo "$ac_t""$libc_cv_z_initfirst" 1>&6
3157 echo $ac_n "checking for -Bgroup option""... $ac_c" 1>&6
3158 echo "configure:3159: checking for -Bgroup option" >&5
3159 if eval "test \"`echo '$''{'libc_cv_Bgroup'+set}'`\" = set"; then
3160 echo $ac_n "(cached) $ac_c" 1>&6
3162 cat > conftest.c <<EOF
3163 int _start (void) { return 42; }
3165 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,-Bgroup -nostdlib 1>&5'; { (eval echo configure:3166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
3174 echo "$ac_t""$libc_cv_Bgroup" 1>&6
3177 echo $ac_n "checking for -z combreloc""... $ac_c" 1>&6
3178 echo "configure:3179: checking for -z combreloc" >&5
3179 if eval "test \"`echo '$''{'libc_cv_z_combreloc'+set}'`\" = set"; then
3180 echo $ac_n "(cached) $ac_c" 1>&6
3182 cat > conftest.c <<EOF
3183 extern int bar (int);
3185 int foo (void) { return bar (mumble); }
3187 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
3188 -nostdlib -nostartfiles
3189 -Wl,-z,combreloc 1>&5'; { (eval echo configure:3190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
3191 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
3192 libc_cv_z_combreloc=yes
3194 libc_cv_z_combreloc=no
3197 libc_cv_z_combreloc=no
3202 echo "$ac_t""$libc_cv_z_combreloc" 1>&6
3203 if test "$libc_cv_z_combreloc" = yes; then
3204 cat >> confdefs.h <<\EOF
3205 #define HAVE_Z_COMBRELOC 1
3212 if test $elf != yes; then
3213 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
3214 echo "configure:3215: checking for .init and .fini sections" >&5
3215 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3218 cat > conftest.$ac_ext <<EOF
3219 #line 3220 "configure"
3220 #include "confdefs.h"
3223 asm (".section .init");
3224 asm (".section .fini");
3225 asm ("${libc_cv_dot_text}");
3228 if { (eval echo configure:3229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3230 libc_cv_have_initfini=yes
3232 echo "configure: failed program was:" >&5
3233 cat conftest.$ac_ext >&5
3235 libc_cv_have_initfini=no
3240 echo "$ac_t""$libc_cv_have_initfini" 1>&6
3241 if test $libc_cv_have_initfini = yes; then
3242 cat >> confdefs.h <<\EOF
3243 #define HAVE_INITFINI 1
3249 if test $elf = yes -a $gnu_ld = yes; then
3250 echo $ac_n "checking whether cc puts quotes around section names""... $ac_c" 1>&6
3251 echo "configure:3252: checking whether cc puts quotes around section names" >&5
3252 if eval "test \"`echo '$''{'libc_cv_have_section_quotes'+set}'`\" = set"; then
3253 echo $ac_n "(cached) $ac_c" 1>&6
3255 cat > conftest.c <<EOF
3256 static const int foo
3257 __attribute__ ((section ("bar"))) = 1;
3259 if ${CC-cc} -S conftest.c -o conftest.s; then
3260 if grep '\.section.*"bar"' conftest.s >/dev/null; then
3261 libc_cv_have_section_quotes=yes
3263 libc_cv_have_section_quotes=no
3266 libc_cv_have_section_quotes=unknown
3272 echo "$ac_t""$libc_cv_have_section_quotes" 1>&6
3273 if test $libc_cv_have_section_quotes = yes; then
3274 cat >> confdefs.h <<\EOF
3275 #define HAVE_SECTION_QUOTES 1
3283 if test $elf = yes; then
3284 libc_cv_asm_underscores=no
3286 if test $ac_cv_prog_cc_works = yes; then
3287 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
3288 echo "configure:3289: checking for _ prefix on C symbol names" >&5
3289 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
3290 echo $ac_n "(cached) $ac_c" 1>&6
3292 cat > conftest.$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 asm ("_glibc_foobar:");
3300 if { (eval echo configure:3301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3302 libc_cv_asm_underscores=yes
3304 echo "configure: failed program was:" >&5
3305 cat conftest.$ac_ext >&5
3307 libc_cv_asm_underscores=no
3312 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
3314 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
3315 echo "configure:3316: checking for _ prefix on C symbol names" >&5
3316 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 cat > conftest.$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3322 void underscore_test(void) {
3325 if { (eval echo configure:3326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3326 if grep _underscore_test conftest* >/dev/null; then
3328 libc_cv_asm_underscores=yes
3331 libc_cv_asm_underscores=no
3334 echo "configure: failed program was:" >&5
3335 cat conftest.$ac_ext >&5
3337 libc_cv_asm_underscores=no
3342 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
3345 if test $libc_cv_asm_underscores = no; then
3346 cat >> confdefs.h <<\EOF
3347 #define NO_UNDERSCORES 1
3352 if test $elf = yes; then
3353 libc_cv_weak_symbols=yes
3356 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
3357 echo "configure:3358: checking for assembler .weak directive" >&5
3358 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
3359 echo $ac_n "(cached) $ac_c" 1>&6
3361 cat > conftest.s <<EOF
3363 ${libc_cv_asm_global_directive} foo
3366 .weak bar; bar = foo
3368 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
3369 libc_cv_asm_weak_directive=yes
3371 libc_cv_asm_weak_directive=no
3376 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
3378 if test $libc_cv_asm_weak_directive = no; then
3379 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
3380 echo "configure:3381: checking for assembler .weakext directive" >&5
3381 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
3382 echo $ac_n "(cached) $ac_c" 1>&6
3384 cat > conftest.s <<EOF
3386 ${libc_cv_asm_global_directive} foo
3390 ${libc_cv_asm_global_directive} baz
3393 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
3394 libc_cv_asm_weakext_directive=yes
3396 libc_cv_asm_weakext_directive=no
3401 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
3405 if test $libc_cv_asm_weak_directive = yes; then
3406 cat >> confdefs.h <<\EOF
3407 #define HAVE_ASM_WEAK_DIRECTIVE 1
3410 elif test $libc_cv_asm_weakext_directive = yes; then
3411 cat >> confdefs.h <<\EOF
3412 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
3417 case "${host_cpu}-${host_os}" in
3419 libc_cv_asm_line_sep='@'
3420 cat >> confdefs.h <<EOF
3421 #define ASM_LINE_SEP $libc_cv_asm_line_sep
3426 echo $ac_n "checking for assembler line separator""... $ac_c" 1>&6
3427 echo "configure:3428: checking for assembler line separator" >&5
3428 if eval "test \"`echo '$''{'libc_cv_asm_line_sep'+set}'`\" = set"; then
3429 echo $ac_n "(cached) $ac_c" 1>&6
3431 cat > conftest.s <<EOF
3434 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:3435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3435 libc_cv_asm_line_sep='!'
3437 if test -z "$enable_hacker_mode"; then
3438 echo "*** You need a newer assembler to compile glibc"
3442 libc_cv_asm_line_sep=';'
3447 echo "$ac_t""$libc_cv_asm_line_sep" 1>&6
3448 cat >> confdefs.h <<EOF
3449 #define ASM_LINE_SEP $libc_cv_asm_line_sep
3455 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
3456 echo "configure:3457: checking for ld --no-whole-archive" >&5
3457 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
3458 echo $ac_n "(cached) $ac_c" 1>&6
3460 cat > conftest.c <<\EOF
3465 if { ac_try='${CC-cc} $CFLAGS
3466 -nostdlib -nostartfiles -Wl,--no-whole-archive
3467 -o conftest conftest.c 1>&5'; { (eval echo configure:3468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3468 libc_cv_ld_no_whole_archive=yes
3470 libc_cv_ld_no_whole_archive=no
3475 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
3476 if test $libc_cv_ld_no_whole_archive = yes; then
3477 no_whole_archive=-Wl,--no-whole-archive
3480 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
3481 echo "configure:3482: checking for gcc -fexceptions" >&5
3482 if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
3483 echo $ac_n "(cached) $ac_c" 1>&6
3485 cat > conftest.c <<\EOF
3490 if { ac_try='${CC-cc} $CFLAGS
3491 -nostdlib -nostartfiles -fexceptions
3492 -o conftest conftest.c 1>&5'; { (eval echo configure:3493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3493 libc_cv_gcc_exceptions=yes
3495 libc_cv_gcc_exceptions=no
3500 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
3501 if test $libc_cv_gcc_exceptions = yes; then
3502 exceptions=-fexceptions
3505 if test "$base_machine" = alpha ; then
3506 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
3507 echo "configure:3508: checking for function ..ng prefix" >&5
3508 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
3509 echo $ac_n "(cached) $ac_c" 1>&6
3511 cat > conftest.c <<\EOF
3514 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:3515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
3516 libc_cv_gcc_alpha_ng_prefix=yes
3518 libc_cv_gcc_alpha_ng_prefix=no
3523 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
3524 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
3525 cat >> confdefs.h <<\EOF
3526 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
3530 cat >> confdefs.h <<\EOF
3531 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
3537 if test "$host_cpu" = powerpc ; then
3538 # Check for a bug present in at least versions 2.8.x of GCC
3539 # and versions 1.0.x of EGCS.
3540 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
3541 echo "configure:3542: checking whether clobbering cr0 causes problems" >&5
3542 if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
3543 echo $ac_n "(cached) $ac_c" 1>&6
3545 cat > conftest.$ac_ext <<EOF
3546 #line 3547 "configure"
3547 #include "confdefs.h"
3548 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
3553 if { (eval echo configure:3554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3555 libc_cv_c_asmcr0_bug='no'
3557 echo "configure: failed program was:" >&5
3558 cat conftest.$ac_ext >&5
3560 libc_cv_c_asmcr0_bug='yes'
3565 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
3566 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
3567 cat >> confdefs.h <<\EOF
3568 #define BROKEN_PPC_ASM_CR0 1
3574 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
3575 echo "configure:3576: checking for DWARF2 unwind info support" >&5
3576 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
3577 echo $ac_n "(cached) $ac_c" 1>&6
3579 cat > conftest.c <<EOF
3580 #line 3581 "configure"
3581 static char *__EH_FRAME_BEGIN__;
3584 #ifdef CHECK__register_frame
3585 __register_frame (__EH_FRAME_BEGIN__);
3586 __deregister_frame (__EH_FRAME_BEGIN__);
3588 #ifdef CHECK__register_frame_info
3589 __register_frame_info (__EH_FRAME_BEGIN__);
3590 __deregister_frame_info (__EH_FRAME_BEGIN__);
3595 /* FIXME: this is fragile. */
3604 dl_iterate_phdr () {}
3606 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
3607 -nostdlib -nostartfiles
3608 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3609 libc_cv_gcc_dwarf2_unwind_info=static
3611 libc_cv_gcc_dwarf2_unwind_info=no
3613 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
3614 -nostdlib -nostartfiles
3615 -o conftest conftest.c -lgcc -lgcc_eh >&5'; { (eval echo configure:3616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3616 if ${CC-cc} $CFLAGS -DCHECK__register_frame_info -nostdlib -nostartfiles \
3617 -o conftest conftest.c -lgcc -lgcc_eh -v 2>&1 >/dev/null \
3618 | grep -q -- --eh-frame-hdr; then
3619 libc_cv_gcc_dwarf2_unwind_info=no_registry_needed
3621 libc_cv_gcc_dwarf2_unwind_info=static
3624 libc_cv_gcc_dwarf2_unwind_info=no
3626 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
3627 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
3628 -nostdlib -nostartfiles
3629 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3630 libc_cv_gcc_dwarf2_unwind_info=yes
3632 libc_cv_gcc_dwarf2_unwind_info=no
3638 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
3639 case $libc_cv_gcc_dwarf2_unwind_info in
3641 cat >> confdefs.h <<\EOF
3642 #define HAVE_DWARF2_UNWIND_INFO 1
3647 cat >> confdefs.h <<\EOF
3648 #define HAVE_DWARF2_UNWIND_INFO 1
3651 cat >> confdefs.h <<\EOF
3652 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
3658 echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
3659 echo "configure:3660: checking for __builtin_expect" >&5
3660 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_expect'+set}'`\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3663 cat > conftest.c <<EOF
3664 #line 3665 "configure"
3667 a = __builtin_expect (a, 10);
3668 return a == 10 ? 0 : 1;
3671 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3672 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3673 libc_cv_gcc_builtin_expect=yes
3675 libc_cv_gcc_builtin_expect=no
3680 echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
3681 if test "$libc_cv_gcc_builtin_expect" = yes; then
3682 cat >> confdefs.h <<\EOF
3683 #define HAVE_BUILTIN_EXPECT 1
3688 echo $ac_n "checking for __builtin_memset""... $ac_c" 1>&6
3689 echo "configure:3690: checking for __builtin_memset" >&5
3690 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_memset'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3693 cat > conftest.c <<\EOF
3696 __builtin_memset (x, 0, 1000);
3699 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'; { (eval echo configure:3700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
3701 libc_cv_gcc_builtin_memset=no
3703 libc_cv_gcc_builtin_memset=yes
3708 echo "$ac_t""$libc_cv_gcc_builtin_memset" 1>&6
3709 if test "$libc_cv_gcc_builtin_memset" = yes ; then
3710 cat >> confdefs.h <<\EOF
3711 #define HAVE_BUILTIN_MEMSET 1
3716 echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6
3717 echo "configure:3718: checking for local label subtraction" >&5
3718 if eval "test \"`echo '$''{'libc_cv_gcc_subtract_local_labels'+set}'`\" = set"; then
3719 echo $ac_n "(cached) $ac_c" 1>&6
3721 cat > conftest.c <<EOF
3722 #line 3723 "configure"
3725 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
3726 void *p = &&l1 + ar[a];
3734 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3735 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3736 libc_cv_gcc_subtract_local_labels=yes
3738 libc_cv_gcc_subtract_local_labels=no
3743 echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6
3744 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
3745 cat >> confdefs.h <<\EOF
3746 #define HAVE_SUBTRACT_LOCAL_LABELS 1
3751 echo $ac_n "checking for __thread""... $ac_c" 1>&6
3752 echo "configure:3753: checking for __thread" >&5
3753 if eval "test \"`echo '$''{'libc_cv_gcc___thread'+set}'`\" = set"; then
3754 echo $ac_n "(cached) $ac_c" 1>&6
3756 cat > conftest.c <<\EOF
3757 __thread int a = 42;
3759 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'; { (eval echo configure:3760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3760 libc_cv_gcc___thread=yes
3762 libc_cv_gcc___thread=no
3767 echo "$ac_t""$libc_cv_gcc___thread" 1>&6
3768 if test "$libc_cv_gcc___thread" = yes; then
3769 cat >> confdefs.h <<\EOF
3770 #define HAVE___THREAD 1
3776 echo $ac_n "checking for libgd""... $ac_c" 1>&6
3777 echo "configure:3778: checking for libgd" >&5
3778 if test "$with_gd" != "no"; then
3779 old_CFLAGS="$CFLAGS"
3780 CFLAGS="$CFLAGS $libgd_include"
3781 old_LDFLAGS="$LDFLAGS"
3782 LDFLAGS="$LDFLAGS $libgd_ldflags"
3784 LIBS="$LIBS -lgd -lpng -lz -lm"
3785 cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3793 if { (eval echo configure:3794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3797 echo "configure: failed program was:" >&5
3798 cat conftest.$ac_ext >&5
3803 CFLAGS="$old_CFLAGS"
3804 LDFLAGS="$old_LDFLAGS"
3809 echo "$ac_t""$LIBGD" 1>&6
3812 echo $ac_n "checking size of long double""... $ac_c" 1>&6
3813 echo "configure:3814: checking size of long double" >&5
3814 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3817 if test "$cross_compiling" = yes; then
3818 ac_cv_sizeof_long_double=0
3820 cat > conftest.$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3826 FILE *f=fopen("conftestval", "w");
3828 fprintf(f, "%d\n", sizeof(long double));
3832 if { (eval echo configure:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3834 ac_cv_sizeof_long_double=`cat conftestval`
3836 echo "configure: failed program was:" >&5
3837 cat conftest.$ac_ext >&5
3839 ac_cv_sizeof_long_double=0
3845 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3846 cat >> confdefs.h <<EOF
3847 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3851 sizeof_long_double=$ac_cv_sizeof_long_double
3854 ### End of automated tests.
3855 ### Now run sysdeps configure fragments.
3857 # sysdeps configure fragments may set these with files to be linked below.
3861 # They also can set these variables.
3863 ldd_rewrite_script=no
3864 libc_cv_sysconfdir=$sysconfdir
3865 libc_cv_gcc_unwind_find_fde=no
3867 # Iterate over all the sysdep directories we will use, running their
3868 # configure fragments, and looking for a uname implementation.
3870 for dir in $sysnames; do
3873 *) dest=$srcdir/$dir ;;
3875 if test -r $dest/configure; then
3876 echo "$ac_t""running configure fragment for $dest" 1>&6
3880 if test -z "$uname"; then
3881 if test -r $dest/uname.c ||
3882 test -r $dest/uname.S ||
3883 { test -r $dest/syscalls.list &&
3884 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
3890 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
3891 cat >> confdefs.h <<\EOF
3892 #define EXPORT_UNWIND_FIND_FDE 1
3900 # If we will use the generic uname implementation, we must figure out what
3901 # it will say by examining the system, and write the results in config-name.h.
3902 if test "$uname" = "sysdeps/generic"; then
3904 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
3905 if test $uname_sysname != $config_os; then
3906 config_release=`echo $config_os | sed s/$uname_sysname//`
3909 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
3910 echo "configure:3911: checking OS release for uname" >&5
3911 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3914 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
3915 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
3916 != x$config_release; then
3917 # The configuration release is a substring of the kernel release.
3918 libc_cv_uname_release=$kernel_release
3919 elif test x$config_release != x; then
3920 libc_cv_uname_release=$config_release
3921 elif test x$kernel_release != x; then
3922 libc_cv_uname_release=$kernel_release
3924 libc_cv_uname_release=unknown
3928 echo "$ac_t""$libc_cv_uname_release" 1>&6
3929 uname_release="$libc_cv_uname_release"
3931 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
3932 echo "configure:3933: checking OS version for uname" >&5
3933 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
3934 echo $ac_n "(cached) $ac_c" 1>&6
3936 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
3937 if test -n "$kernel_version"; then
3938 libc_cv_uname_version="$kernel_version"
3940 libc_cv_uname_version=unknown
3944 echo "$ac_t""$libc_cv_uname_version" 1>&6
3945 uname_version="$libc_cv_uname_version"
3947 config_uname=config-name.h:config-name.in
3949 # For non-generic uname, we don't need to create config-name.h at all.
3953 cat >> confdefs.h <<\EOF
3954 #define USE_IN_LIBIO 1
3958 # Test for old glibc 2.0.x headers so that they can be removed properly
3959 # Search only in includedir.
3960 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
3961 echo "configure:3962: checking for old glibc 2.0.x headers" >&5
3962 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
3964 old_glibc_headers=yes
3966 old_glibc_headers=no
3968 echo "$ac_t""$old_glibc_headers" 1>&6
3969 if test ${old_glibc_headers} = yes; then
3970 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
3971 echo "configure: warning: *** be removed." 1>&2
3984 if test $gnu_ld = yes; then
3985 cat >> confdefs.h <<\EOF
3986 #define HAVE_GNU_LD 1
3990 if test $gnu_as = yes; then
3991 cat >> confdefs.h <<\EOF
3992 #define HAVE_GNU_AS 1
3996 if test $elf = yes; then
3997 cat >> confdefs.h <<\EOF
4002 if test $xcoff = yes; then
4003 cat >> confdefs.h <<\EOF
4004 #define HAVE_XCOFF 1
4011 if test $shared = default; then
4012 if test $gnu_ld = yes; then
4015 # For now we do not assume shared libs are available. In future more
4016 # tests might become available.
4021 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
4022 echo "configure:4023: checking whether -fPIC is default" >&5
4023 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
4024 echo $ac_n "(cached) $ac_c" 1>&6
4027 cat > conftest.c <<EOF
4028 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
4029 # error PIC is default.
4032 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
4038 echo "$ac_t""$pic_default" 1>&6
4050 *door*) linux_doors=yes ;;
4051 *) linux_doors=no ;;
4057 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
4060 config_makefile=Makefile
4063 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
4064 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
4069 cat > confcache <<\EOF
4070 # This file is a shell script that caches the results of configure
4071 # tests run on this system so they can be shared between configure
4072 # scripts and configure runs. It is not useful on other systems.
4073 # If it contains results you don't want to keep, you may remove or edit it.
4075 # By default, configure uses ./config.cache as the cache file,
4076 # creating it if it does not exist already. You can give configure
4077 # the --cache-file=FILE option to use a different cache file; that is
4078 # what configure does when it calls configure scripts in
4079 # subdirectories, so they share the cache.
4080 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4081 # config.status only pays attention to the cache file if you give it the
4082 # --recheck option to rerun configure.
4085 # The following way of writing the cache mishandles newlines in values,
4086 # but we know of no workaround that is simple, portable, and efficient.
4087 # So, don't put newlines in cache variables' values.
4088 # Ultrix sh set writes to stderr and can't be redirected directly,
4089 # and sets the high bit in the cache file unless we assign to the vars.
4091 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4093 # `set' does not quote correctly, so add quotes (double-quote substitution
4094 # turns \\\\ into \\, and sed turns \\ into \).
4096 -e "s/'/'\\\\''/g" \
4097 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4100 # `set' quotes correctly as required by POSIX, so do not add quotes.
4101 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4104 if cmp -s $cache_file confcache; then
4107 if test -w $cache_file; then
4108 echo "updating cache $cache_file"
4109 cat confcache > $cache_file
4111 echo "not updating unwritable cache $cache_file"
4116 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4118 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4119 # Let make expand exec_prefix.
4120 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4122 # Any assignment to VPATH causes Sun make to only execute
4123 # the first set of double-colon rules, so remove it if not needed.
4124 # If there is a colon in the path, we need to keep it.
4125 if test "x$srcdir" = x.; then
4126 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4129 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4131 DEFS=-DHAVE_CONFIG_H
4133 # Without the "./", some shells look in PATH for config.status.
4134 : ${CONFIG_STATUS=./config.status}
4136 echo creating $CONFIG_STATUS
4137 rm -f $CONFIG_STATUS
4138 cat > $CONFIG_STATUS <<EOF
4140 # Generated automatically by configure.
4141 # Run this file to recreate the current configuration.
4142 # This directory was configured as follows,
4143 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4145 # $0 $ac_configure_args
4147 # Compiler output produced by configure, useful for debugging
4148 # configure, is in ./config.log if it exists.
4150 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4153 case "\$ac_option" in
4154 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4155 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4156 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4157 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4158 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4160 -help | --help | --hel | --he | --h)
4161 echo "\$ac_cs_usage"; exit 0 ;;
4162 *) echo "\$ac_cs_usage"; exit 1 ;;
4166 ac_given_srcdir=$srcdir
4167 ac_given_INSTALL="$INSTALL"
4169 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4171 cat >> $CONFIG_STATUS <<EOF
4173 # Protect against being on the right side of a sed subst in config.status.
4174 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4175 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4179 s%@CFLAGS@%$CFLAGS%g
4180 s%@CPPFLAGS@%$CPPFLAGS%g
4181 s%@CXXFLAGS@%$CXXFLAGS%g
4182 s%@FFLAGS@%$FFLAGS%g
4184 s%@LDFLAGS@%$LDFLAGS%g
4186 s%@exec_prefix@%$exec_prefix%g
4187 s%@prefix@%$prefix%g
4188 s%@program_transform_name@%$program_transform_name%g
4189 s%@bindir@%$bindir%g
4190 s%@sbindir@%$sbindir%g
4191 s%@libexecdir@%$libexecdir%g
4192 s%@datadir@%$datadir%g
4193 s%@sysconfdir@%$sysconfdir%g
4194 s%@sharedstatedir@%$sharedstatedir%g
4195 s%@localstatedir@%$localstatedir%g
4196 s%@libdir@%$libdir%g
4197 s%@includedir@%$includedir%g
4198 s%@oldincludedir@%$oldincludedir%g
4199 s%@infodir@%$infodir%g
4200 s%@mandir@%$mandir%g
4201 s%@with_fp@%$with_fp%g
4202 s%@with_cvs@%$with_cvs%g
4203 s%@oldest_abi@%$oldest_abi%g
4204 s%@subdirs@%$subdirs%g
4205 s%@force_install@%$force_install%g
4206 s%@all_warnings@%$all_warnings%g
4208 s%@host_alias@%$host_alias%g
4209 s%@host_cpu@%$host_cpu%g
4210 s%@host_vendor@%$host_vendor%g
4211 s%@host_os@%$host_os%g
4212 s%@base_machine@%$base_machine%g
4213 s%@sysnames@%$sysnames%g
4214 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4215 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4216 s%@INSTALL_DATA@%$INSTALL_DATA%g
4220 s%@build_alias@%$build_alias%g
4221 s%@build_cpu@%$build_cpu%g
4222 s%@build_vendor@%$build_vendor%g
4223 s%@build_os@%$build_os%g
4226 s%@MSGFMT@%$MSGFMT%g
4227 s%@MAKEINFO@%$MAKEINFO%g
4229 s%@AUTOCONF@%$AUTOCONF%g
4230 s%@cross_linkable@%$cross_linkable%g
4231 s%@BUILD_CC@%$BUILD_CC%g
4232 s%@cross_compiling@%$cross_compiling%g
4235 s%@RANLIB@%$RANLIB%g
4237 s%@CCVERSION@%$CCVERSION%g
4238 s%@SYSINCLUDES@%$SYSINCLUDES%g
4239 s%@libc_cv_gcc_static_libgcc@%$libc_cv_gcc_static_libgcc%g
4241 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
4243 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
4246 s%@INSTALL_INFO@%$INSTALL_INFO%g
4247 s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
4249 s%@VERSIONING@%$VERSIONING%g
4250 s%@libc_cv_asm_protected_directive@%$libc_cv_asm_protected_directive%g
4251 s%@libc_cv_initfinit_array@%$libc_cv_initfinit_array%g
4252 s%@libc_cv_z_nodelete@%$libc_cv_z_nodelete%g
4253 s%@libc_cv_z_nodlopen@%$libc_cv_z_nodlopen%g
4254 s%@libc_cv_z_initfirst@%$libc_cv_z_initfirst%g
4255 s%@libc_cv_Bgroup@%$libc_cv_Bgroup%g
4256 s%@libc_cv_z_combreloc@%$libc_cv_z_combreloc%g
4257 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
4258 s%@no_whole_archive@%$no_whole_archive%g
4259 s%@exceptions@%$exceptions%g
4261 s%@sizeof_long_double@%$sizeof_long_double%g
4262 s%@libc_cv_gcc_unwind_find_fde@%$libc_cv_gcc_unwind_find_fde%g
4263 s%@uname_sysname@%$uname_sysname%g
4264 s%@uname_release@%$uname_release%g
4265 s%@uname_version@%$uname_version%g
4266 s%@old_glibc_headers@%$old_glibc_headers%g
4267 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
4268 s%@libc_cv_localedir@%$libc_cv_localedir%g
4269 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
4270 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
4271 s%@use_ldconfig@%$use_ldconfig%g
4272 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
4273 s%@gnu_ld@%$gnu_ld%g
4274 s%@gnu_as@%$gnu_as%g
4277 s%@static@%$static%g
4278 s%@shared@%$shared%g
4279 s%@pic_default@%$pic_default%g
4280 s%@profile@%$profile%g
4281 s%@omitfp@%$omitfp%g
4282 s%@bounded@%$bounded%g
4283 s%@static_nss@%$static_nss%g
4284 s%@nopic_initfini@%$nopic_initfini%g
4285 s%@DEFINES@%$DEFINES%g
4286 s%@linux_doors@%$linux_doors%g
4287 s%@mach_interface_list@%$mach_interface_list%g
4288 s%@VERSION@%$VERSION%g
4289 s%@RELEASE@%$RELEASE%g
4294 cat >> $CONFIG_STATUS <<\EOF
4296 # Split the substitutions into bite-sized pieces for seds with
4297 # small command number limits, like on Digital OSF/1 and HP-UX.
4298 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4299 ac_file=1 # Number of current file.
4300 ac_beg=1 # First line for current file.
4301 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4304 while $ac_more_lines; do
4305 if test $ac_beg -gt 1; then
4306 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4308 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4310 if test ! -s conftest.s$ac_file; then
4312 rm -f conftest.s$ac_file
4314 if test -z "$ac_sed_cmds"; then
4315 ac_sed_cmds="sed -f conftest.s$ac_file"
4317 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4319 ac_file=`expr $ac_file + 1`
4321 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4324 if test -z "$ac_sed_cmds"; then
4329 cat >> $CONFIG_STATUS <<EOF
4331 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
4333 cat >> $CONFIG_STATUS <<\EOF
4334 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4335 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4337 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4338 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4339 *) ac_file_in="${ac_file}.in" ;;
4342 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4344 # Remove last slash and all that follows it. Not all systems have dirname.
4345 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4346 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4347 # The file is in a subdirectory.
4348 test ! -d "$ac_dir" && mkdir "$ac_dir"
4349 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4350 # A "../" for each directory in $ac_dir_suffix.
4351 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4353 ac_dir_suffix= ac_dots=
4356 case "$ac_given_srcdir" in
4358 if test -z "$ac_dots"; then top_srcdir=.
4359 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4360 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4362 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4363 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4366 case "$ac_given_INSTALL" in
4367 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4368 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4371 echo creating "$ac_file"
4373 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4375 *Makefile*) ac_comsub="1i\\
4376 # $configure_input" ;;
4380 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4382 s%@configure_input@%$configure_input%g
4383 s%@srcdir@%$srcdir%g
4384 s%@top_srcdir@%$top_srcdir%g
4385 s%@INSTALL@%$INSTALL%g
4386 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4390 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4391 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4393 # ac_d sets the value in "#define NAME VALUE" lines.
4394 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4395 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4398 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4399 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4400 ac_uB='\([ ]\)%\1#\2define\3'
4403 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4404 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4405 ac_eB='$%\1#\2define\3'
4409 if test "${CONFIG_HEADERS+set}" != set; then
4411 cat >> $CONFIG_STATUS <<EOF
4412 CONFIG_HEADERS="config.h"
4414 cat >> $CONFIG_STATUS <<\EOF
4416 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4417 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4419 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4420 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4421 *) ac_file_in="${ac_file}.in" ;;
4424 echo creating $ac_file
4426 rm -f conftest.frag conftest.in conftest.out
4427 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4428 cat $ac_file_inputs > conftest.in
4432 # Transform confdefs.h into a sed script conftest.vals that substitutes
4433 # the proper values into config.h.in to produce config.h. And first:
4434 # Protect against being on the right side of a sed subst in config.status.
4435 # Protect against being in an unquoted here document in config.status.
4437 cat > conftest.hdr <<\EOF
4440 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4444 sed -n -f conftest.hdr confdefs.h > conftest.vals
4447 # This sed command replaces #undef with comments. This is necessary, for
4448 # example, in the case of _POSIX_SOURCE, which is predefined and required
4449 # on some systems where configure will not decide to define it.
4450 cat >> conftest.vals <<\EOF
4451 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4454 # Break up conftest.vals because some shells have a limit on
4455 # the size of here documents, and old seds have small limits too.
4460 ac_lines=`grep -c . conftest.vals`
4461 # grep -c gives empty output for an empty file on some AIX systems.
4462 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4463 # Write a limited-size here document to conftest.frag.
4464 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4465 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4467 sed -f conftest.frag conftest.in > conftest.out
4469 mv conftest.out conftest.in
4471 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4473 mv conftest.tail conftest.vals
4477 cat >> $CONFIG_STATUS <<\EOF
4478 rm -f conftest.frag conftest.h
4479 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4480 cat conftest.in >> conftest.h
4482 if cmp -s $ac_file conftest.h 2>/dev/null; then
4483 echo "$ac_file is unchanged"
4486 # Remove last slash and all that follows it. Not all systems have dirname.
4487 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4488 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4489 # The file is in a subdirectory.
4490 test ! -d "$ac_dir" && mkdir "$ac_dir"
4493 mv conftest.h $ac_file
4499 cat >> $CONFIG_STATUS <<EOF
4500 ac_sources="`echo $libc_link_sources`"
4501 ac_dests="`echo $libc_link_dests`"
4504 cat >> $CONFIG_STATUS <<\EOF
4505 srcdir=$ac_given_srcdir
4506 while test -n "$ac_sources"; do
4507 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4508 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4510 echo "linking $srcdir/$ac_source to $ac_dest"
4512 if test ! -r $srcdir/$ac_source; then
4513 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4517 # Make relative symlinks.
4518 # Remove last slash and all that follows it. Not all systems have dirname.
4519 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4520 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4521 # The dest file is in a subdirectory.
4522 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4523 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4524 # A "../" for each directory in $ac_dest_dir_suffix.
4525 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4527 ac_dest_dir_suffix= ac_dots=
4531 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4532 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4535 # Make a symlink if possible; otherwise try a hard link.
4536 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4537 ln $srcdir/$ac_source $ac_dest; then :
4539 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4543 cat >> $CONFIG_STATUS <<EOF
4544 config_vars='$config_vars'
4546 cat >> $CONFIG_STATUS <<\EOF
4548 case $CONFIG_FILES in *config.make*)
4549 echo "$config_vars" >> config.make;;
4551 test -d bits || mkdir bits
4554 chmod +x $CONFIG_STATUS
4555 rm -fr confdefs* $ac_clean_files
4556 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4558 if test "$no_recursion" != yes; then
4560 # Remove --cache-file and --srcdir arguments so they do not pile up.
4561 ac_sub_configure_args=
4563 for ac_arg in $ac_configure_args; do
4564 if test -n "$ac_prev"; then
4569 -cache-file | --cache-file | --cache-fil | --cache-fi \
4570 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4571 ac_prev=cache_file ;;
4572 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4573 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4575 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4577 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4579 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4583 for ac_config_dir in $add_ons; do
4585 # Do not complain, so a configure script can configure whichever
4586 # parts of a large source tree are present.
4587 if test ! -d $srcdir/$ac_config_dir; then
4591 echo configuring in $ac_config_dir
4596 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4598 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4606 # A "../" for each directory in /$ac_config_dir.
4607 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4610 .) # No --srcdir option. We are building in place.
4611 ac_sub_srcdir=$srcdir ;;
4612 /*) # Absolute path.
4613 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4615 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4618 # Check for guested configure; otherwise get Cygnus style configure.
4619 if test -f $ac_sub_srcdir/configure; then
4620 ac_sub_configure=$ac_sub_srcdir/configure
4621 elif test -f $ac_sub_srcdir/configure.in; then
4622 ac_sub_configure=$ac_configure
4624 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4628 # The recursion is here.
4629 if test -n "$ac_sub_configure"; then
4631 # Make the cache file name correct relative to the subdirectory.
4632 case "$cache_file" in
4633 /*) ac_sub_cache_file=$cache_file ;;
4635 ac_sub_cache_file="$ac_dots$cache_file" ;;
4637 case "$ac_given_INSTALL" in
4638 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4639 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4642 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4643 # The eval makes quoting arguments work.
4644 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4647 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }