3 # From configure.in CVSid
14 # Guess values for system-dependent variables and create Makefiles.
15 # Generated automatically using autoconf version 2.12
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-gettext=DIR find GNU gettext source code in DIR (not needed)"
30 --with-fp if using floating-point hardware [default=yes]"
32 --with-binutils=PATH specify location of binutils (as and ld)"
34 --with-elf if using the ELF object format"
36 --without-cvs if CVS should not be used"
38 --enable-libio build in GNU libio instead of GNU stdio"
40 --disable-sanity-checks really do not use threads (should not be used
41 except in special situations) [default=yes]"
43 --enable-static build static library [default=yes]"
45 --enable-shared build shared library [default=yes if GNU ld & ELF]"
47 --enable-profile build profiled library [default=yes]"
49 --enable-omitfp build undebuggable optimized library [default=no]"
51 --enable-bounded build with runtime bounds checking [default=no]"
53 --disable-versioning do not include versioning information in the
54 library objects [default=yes if supported]"
56 --enable-add-ons[=DIR1,DIR2]... configure and build add-ons in DIR1,DIR2,...
57 search for add-ons if no parameter given"
59 --enable-static-nss build static NSS modules [default=no]"
61 # Initialize some variables set by options.
62 # The variables have the same names as the options, with
63 # dashes changed to underlines.
65 cache_file=./config.cache
74 program_transform_name=s,x,x,
82 bindir='${exec_prefix}/bin'
83 sbindir='${exec_prefix}/sbin'
84 libexecdir='${exec_prefix}/libexec'
85 datadir='${prefix}/share'
86 sysconfdir='${prefix}/etc'
87 sharedstatedir='${prefix}/com'
88 localstatedir='${prefix}/var'
89 libdir='${exec_prefix}/lib'
90 includedir='${prefix}/include'
91 oldincludedir='/usr/include'
92 infodir='${prefix}/info'
93 mandir='${prefix}/man'
95 # Initialize some other variables.
98 # Maximum number of lines to put in a shell here document.
105 # If the previous option needs an argument, assign it.
106 if test -n "$ac_prev"; then
107 eval "$ac_prev=\$ac_option"
113 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
117 # Accept the important Cygnus configure options, so we can diagnose typos.
121 -bindir | --bindir | --bindi | --bind | --bin | --bi)
123 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
124 bindir="$ac_optarg" ;;
126 -build | --build | --buil | --bui | --bu)
128 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
129 build="$ac_optarg" ;;
131 -cache-file | --cache-file | --cache-fil | --cache-fi \
132 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
133 ac_prev=cache_file ;;
134 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
135 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
136 cache_file="$ac_optarg" ;;
138 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
140 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
142 datadir="$ac_optarg" ;;
144 -disable-* | --disable-*)
145 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
146 # Reject names that are not valid shell variable names.
147 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
148 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
150 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
151 eval "enable_${ac_feature}=no" ;;
153 -enable-* | --enable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164 eval "enable_${ac_feature}='$ac_optarg'" ;;
166 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
167 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
168 | --exec | --exe | --ex)
169 ac_prev=exec_prefix ;;
170 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
171 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
172 | --exec=* | --exe=* | --ex=*)
173 exec_prefix="$ac_optarg" ;;
175 -gas | --gas | --ga | --g)
176 # Obsolete; use --with-gas.
179 -help | --help | --hel | --he)
180 # Omit some internal or obsolete options to make the list less imposing.
181 # This message is too long to be a string in the A/UX 3.1 sh.
183 Usage: configure [options] [host]
184 Options: [defaults in brackets after descriptions]
186 --cache-file=FILE cache test results in FILE
187 --help print this message
188 --no-create do not create output files
189 --quiet, --silent do not print \`checking...' messages
190 --version print the version of autoconf that created configure
191 Directory and file names:
192 --prefix=PREFIX install architecture-independent files in PREFIX
194 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
196 --bindir=DIR user executables in DIR [EPREFIX/bin]
197 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
198 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
199 --datadir=DIR read-only architecture-independent data in DIR
201 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
202 --sharedstatedir=DIR modifiable architecture-independent data in DIR
204 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
205 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
206 --includedir=DIR C header files in DIR [PREFIX/include]
207 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
208 --infodir=DIR info documentation in DIR [PREFIX/info]
209 --mandir=DIR man documentation in DIR [PREFIX/man]
210 --srcdir=DIR find the sources in DIR [configure dir or ..]
211 --program-prefix=PREFIX prepend PREFIX to installed program names
212 --program-suffix=SUFFIX append SUFFIX to installed program names
213 --program-transform-name=PROGRAM
214 run sed PROGRAM on installed program names
218 --build=BUILD configure for building on BUILD [BUILD=HOST]
219 --host=HOST configure for HOST [guessed]
220 --target=TARGET configure for TARGET [TARGET=HOST]
221 Features and packages:
222 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
223 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
224 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
225 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
226 --x-includes=DIR X include files are in DIR
227 --x-libraries=DIR X library files are in DIR
229 if test -n "$ac_help"; then
230 echo "--enable and --with options recognized:$ac_help"
234 -host | --host | --hos | --ho)
236 -host=* | --host=* | --hos=* | --ho=*)
239 -includedir | --includedir | --includedi | --included | --include \
240 | --includ | --inclu | --incl | --inc)
241 ac_prev=includedir ;;
242 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
243 | --includ=* | --inclu=* | --incl=* | --inc=*)
244 includedir="$ac_optarg" ;;
246 -infodir | --infodir | --infodi | --infod | --info | --inf)
248 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
249 infodir="$ac_optarg" ;;
251 -libdir | --libdir | --libdi | --libd)
253 -libdir=* | --libdir=* | --libdi=* | --libd=*)
254 libdir="$ac_optarg" ;;
256 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
257 | --libexe | --libex | --libe)
258 ac_prev=libexecdir ;;
259 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
260 | --libexe=* | --libex=* | --libe=*)
261 libexecdir="$ac_optarg" ;;
263 -localstatedir | --localstatedir | --localstatedi | --localstated \
264 | --localstate | --localstat | --localsta | --localst \
265 | --locals | --local | --loca | --loc | --lo)
266 ac_prev=localstatedir ;;
267 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
268 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
269 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
270 localstatedir="$ac_optarg" ;;
272 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
274 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
275 mandir="$ac_optarg" ;;
278 # Obsolete; use --without-fp.
281 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
285 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
286 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
289 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
290 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
291 | --oldin | --oldi | --old | --ol | --o)
292 ac_prev=oldincludedir ;;
293 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
294 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
295 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
296 oldincludedir="$ac_optarg" ;;
298 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
300 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
301 prefix="$ac_optarg" ;;
303 -program-prefix | --program-prefix | --program-prefi | --program-pref \
304 | --program-pre | --program-pr | --program-p)
305 ac_prev=program_prefix ;;
306 -program-prefix=* | --program-prefix=* | --program-prefi=* \
307 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
308 program_prefix="$ac_optarg" ;;
310 -program-suffix | --program-suffix | --program-suffi | --program-suff \
311 | --program-suf | --program-su | --program-s)
312 ac_prev=program_suffix ;;
313 -program-suffix=* | --program-suffix=* | --program-suffi=* \
314 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
315 program_suffix="$ac_optarg" ;;
317 -program-transform-name | --program-transform-name \
318 | --program-transform-nam | --program-transform-na \
319 | --program-transform-n | --program-transform- \
320 | --program-transform | --program-transfor \
321 | --program-transfo | --program-transf \
322 | --program-trans | --program-tran \
323 | --progr-tra | --program-tr | --program-t)
324 ac_prev=program_transform_name ;;
325 -program-transform-name=* | --program-transform-name=* \
326 | --program-transform-nam=* | --program-transform-na=* \
327 | --program-transform-n=* | --program-transform-=* \
328 | --program-transform=* | --program-transfor=* \
329 | --program-transfo=* | --program-transf=* \
330 | --program-trans=* | --program-tran=* \
331 | --progr-tra=* | --program-tr=* | --program-t=*)
332 program_transform_name="$ac_optarg" ;;
334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
335 | -silent | --silent | --silen | --sile | --sil)
338 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
340 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
342 sbindir="$ac_optarg" ;;
344 -sharedstatedir | --sharedstatedir | --sharedstatedi \
345 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
346 | --sharedst | --shareds | --shared | --share | --shar \
348 ac_prev=sharedstatedir ;;
349 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
350 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
351 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
353 sharedstatedir="$ac_optarg" ;;
355 -site | --site | --sit)
357 -site=* | --site=* | --sit=*)
360 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
362 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
363 srcdir="$ac_optarg" ;;
365 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
366 | --syscon | --sysco | --sysc | --sys | --sy)
367 ac_prev=sysconfdir ;;
368 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
369 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
370 sysconfdir="$ac_optarg" ;;
372 -target | --target | --targe | --targ | --tar | --ta | --t)
374 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
375 target="$ac_optarg" ;;
377 -v | -verbose | --verbose | --verbos | --verbo | --verb)
380 -version | --version | --versio | --versi | --vers)
381 echo "configure generated by autoconf version 2.12"
385 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}='$ac_optarg'" ;;
397 -without-* | --without-*)
398 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 eval "with_${ac_package}=no" ;;
407 # Obsolete; use --with-x.
410 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
411 | --x-incl | --x-inc | --x-in | --x-i)
412 ac_prev=x_includes ;;
413 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
414 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
415 x_includes="$ac_optarg" ;;
417 -x-libraries | --x-libraries | --x-librarie | --x-librari \
418 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
419 ac_prev=x_libraries ;;
420 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
421 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
422 x_libraries="$ac_optarg" ;;
424 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
428 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
429 echo "configure: warning: $ac_option: invalid host type" 1>&2
431 if test "x$nonopt" != xNONE; then
432 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
440 if test -n "$ac_prev"; then
441 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
444 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
446 # File descriptor usage:
449 # 2 errors and warnings
450 # 3 some systems may open it to /dev/tty
451 # 4 used on the Kubota Titan
452 # 6 checking for... messages and results
453 # 5 compiler messages saved in config.log
454 if test "$silent" = yes; then
462 This file contains any messages produced by compilers while
463 running configure, to aid debugging if configure makes a mistake.
466 # Strip out --no-create and --no-recursion so they do not pile up.
467 # Also quote any args containing shell metacharacters.
472 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
473 | --no-cr | --no-c) ;;
474 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
475 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
476 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
477 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
478 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
483 # Only set these to C if already set. These must not be set unconditionally
484 # because not all systems understand e.g. LANG=C (notably SCO).
485 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
486 # Non-C LC_CTYPE values break the ctype check.
487 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
488 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
489 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
490 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
492 # confdefs.h avoids OS command line length limits that DEFS can exceed.
493 rm -rf conftest* confdefs.h
494 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
497 # A filename unique to this package, relative to the directory that
498 # configure is in, which we can look for to find out if srcdir is correct.
499 ac_unique_file=include/features.h
501 # Find the source files, if location was not specified.
502 if test -z "$srcdir"; then
503 ac_srcdir_defaulted=yes
504 # Try the directory containing this script, then its parent.
506 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
507 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
509 if test ! -r $srcdir/$ac_unique_file; then
513 ac_srcdir_defaulted=no
515 if test ! -r $srcdir/$ac_unique_file; then
516 if test "$ac_srcdir_defaulted" = yes; then
517 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
519 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
522 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
524 # Prefer explicitly selected file to automatically selected ones.
525 if test -z "$CONFIG_SITE"; then
526 if test "x$prefix" != xNONE; then
527 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
529 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
532 for ac_site_file in $CONFIG_SITE; do
533 if test -r "$ac_site_file"; then
534 echo "loading site script $ac_site_file"
539 if test -r "$cache_file"; then
540 echo "loading cache $cache_file"
543 echo "creating cache $cache_file"
548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
549 ac_cpp='$CPP $CPPFLAGS'
550 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
551 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
552 cross_compiling=$ac_cv_prog_cc_cross
554 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
555 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
556 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
563 ac_n= ac_c='\c' ac_t=
566 if test -r /vmunix; then
567 kernel_id=`strings /vmunix | grep UNIX`
568 elif test -r /dynix; then
569 kernel_id=`strings /dynix | grep DYNIX`
577 # This will get text that should go into config.make.
580 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
581 # Check whether --with-gmp or --without-gmp was given.
582 if test "${with_gmp+set}" = set; then
585 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
587 *) config_vars="$config_vars
588 gmp-srcdir = $withval" ;;
593 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
594 # Check whether --with-gettext or --without-gettext was given.
595 if test "${with_gettext+set}" = set; then
596 withval="$with_gettext"
597 case "$with_gettext" in
599 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
602 config_vars="$config_vars
603 gettext-srcdir = $withval" ;;
609 # Check whether --with-fp or --without-fp was given.
610 if test "${with_fp+set}" = set; then
617 # Check whether --with-binutils or --without-binutils was given.
618 if test "${with_binutils+set}" = set; then
619 withval="$with_binutils"
620 path_binutils=$withval
625 # Check whether --with-elf or --without-elf was given.
626 if test "${with_elf+set}" = set; then
633 # Check whether --with-cvs or --without-cvs was given.
634 if test "${with_cvs+set}" = set; then
643 # Check whether --enable-libio or --disable-libio was given.
644 if test "${enable_libio+set}" = set; then
645 enableval="$enable_libio"
646 if test $enableval = yes; then
656 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
657 if test "${enable_sanity_checks+set}" = set; then
658 enableval="$enable_sanity_checks"
659 enable_sanity=$enableval
665 # Check whether --enable-static or --disable-static was given.
666 if test "${enable_static+set}" = set; then
667 enableval="$enable_static"
673 # Check whether --enable-shared or --disable-shared was given.
674 if test "${enable_shared+set}" = set; then
675 enableval="$enable_shared"
681 # Check whether --enable-profile or --disable-profile was given.
682 if test "${enable_profile+set}" = set; then
683 enableval="$enable_profile"
689 # Check whether --enable-omitfp or --disable-omitfp was given.
690 if test "${enable_omitfp+set}" = set; then
691 enableval="$enable_omitfp"
697 # Check whether --enable-bounded or --disable-bounded was given.
698 if test "${enable_bounded+set}" = set; then
699 enableval="$enable_bounded"
705 # Check whether --enable-versioning or --disable-versioning was given.
706 if test "${enable_versioning+set}" = set; then
707 enableval="$enable_versioning"
708 enable_versioning=$enableval
710 enable_versioning=yes
714 # Check whether --enable-add-ons or --disable-add-ons was given.
715 if test "${enable_add_ons+set}" = set; then
716 enableval="$enable_add_ons"
718 yes) if test "$srcdir" = "."; then
719 add_ons=`echo */configure | sed -e 's!/configure!!g'`
721 add_ons=`echo $srcdir/*/configure | \
722 sed -e 's!/configure!!g' -e "s!$srcdir/!!g"`
724 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
732 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
733 if test -f $ac_dir/install-sh; then
735 ac_install_sh="$ac_aux_dir/install-sh -c"
737 elif test -f $ac_dir/install.sh; then
739 ac_install_sh="$ac_aux_dir/install.sh -c"
743 if test -z "$ac_aux_dir"; then
744 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
746 ac_config_guess=$ac_aux_dir/config.guess
747 ac_config_sub=$ac_aux_dir/config.sub
748 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
753 if test x"$add_ons" != x; then
754 for f in $add_ons; do
755 # Test whether such a subdir really exists.
756 if test -d $srcdir/$f; then
757 add_ons_pfx="$add_ons_pfx $f/"
759 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
764 # Check whether --enable-static-nss or --disable-static-nss was given.
765 if test "${enable_static_nss+set}" = set; then
766 enableval="$enable_static_nss"
767 static_nss=$enableval
772 if test x"$static_nss" = xyes; then
773 cat >> confdefs.h <<\EOF
774 #define DO_STATIC_NSS 1
780 # Make sure we can run config.sub.
781 if $ac_config_sub sun4 >/dev/null 2>&1; then :
782 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
785 echo $ac_n "checking host system type""... $ac_c" 1>&6
786 echo "configure:787: checking host system type" >&5
789 case "$host_alias" in
793 if host_alias=`$ac_config_guess`; then :
794 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
796 *) host_alias=$nonopt ;;
800 host=`$ac_config_sub $host_alias`
801 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
802 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
803 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
804 echo "$ac_t""$host" 1>&6
807 # The way shlib-versions is used to generate soversions.mk uses a
808 # fairly simplistic model for name recognition that can't distinguish
809 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
810 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
811 # tell. This doesn't get used much beyond that, so it's fairly safe.
816 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
821 ### I put this here to prevent those annoying emails from people who cannot
822 ### read and try to compile glibc on unsupported platforms. --drepper
824 ### By using the undocumented --enable-hacker-mode option for configure
825 ### one can skip this test to make the configuration not fail for unsupported
828 if test -z "$enable_hacker_mode"; then
829 case "$machine-$host_os" in
830 *-linux* | *-gnu* | arm*-none*)
833 echo "*** The GNU C library is currently not available for this platform."
834 echo "*** So far nobody cared to port it and if there is no volunteer it"
835 echo "*** might never happen. So, if you have interest to see glibc on"
836 echo "*** this platform visit"
837 echo "*** http://www.gnu.org/software/libc/porting.html"
838 echo "*** and join the group of porters"
844 # We keep the original values in `$config_*' and never modify them, so we
845 # can write them unchanged into config.make. Everything else uses
846 # $machine, $vendor, and $os, and changes them whenever convenient.
847 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
849 # Some configurations imply other options.
851 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
852 # These systems always use GNU tools.
853 gnu_ld=yes gnu_as=yes ;;
856 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
857 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
859 gnu* | linux* | sysv4* | solaris2* | irix6*)
860 # These systems (almost) always use the ELF format.
865 machine=$config_machine
866 vendor=$config_vendor
869 # Expand the configuration machine name into a subdirectory by architecture
870 # type and particular chip.
872 a29k | am29000) base_machine=a29k machine=a29k ;;
873 alpha*) base_machine=alpha machine=alpha/$machine ;;
874 arm*) base_machine=arm machine=arm/$machine ;;
875 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
876 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
877 hppa*) base_machine=hppa machine=hppa/$machine ;;
878 i[3456]86) base_machine=i386 machine=i386/$machine ;;
879 m680?0) base_machine=m68k machine=m68k/$machine ;;
880 m68k) base_machine=m68k machine=m68k/m68020 ;;
881 m88???) base_machine=m88k machine=m88k/$machine ;;
882 m88k) base_machine=m88k machine=m88k/m88100 ;;
883 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
884 mips*) base_machine=mips
886 IP22) machine=mips/mips3 ;;
887 *) machine=mips/$machine ,,
890 base_machine=sparc machine=sparc/sparc32 ;;
891 sparcv8 | supersparc | hypersparc)
892 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
893 sparc64 | ultrasparc)
894 base_machine=sparc machine=sparc/sparc64 ;;
898 if test "$base_machine" = "i386"; then
899 cat >> confdefs.h <<\EOF
900 #define USE_REGPARMS 1
905 # Compute the list of sysdep directories for this configuration.
906 # This can take a while to compute.
907 sysdep_dir=$srcdir/sysdeps
908 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
909 echo "configure:910: checking sysdep dirs" >&5
910 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
911 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
916 netbsd* | 386bsd* | freebsd* | bsdi*)
917 base_os=unix/bsd/bsd4.4 ;;
918 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
920 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
923 base_os=unix/sysv/irix6/$os ;;
925 base_os=unix/sysv/sysv4 ;;
927 base_os=standalone ;;
932 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
935 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
939 o=`echo $tail | sed 's/[0-9]*$//'`
940 if test $o != $tail; then
943 # For linux-gnu, try linux-gnu, then linux.
944 o=`echo $tail | sed 's/-.*$//'`
945 if test $o != $tail; then
949 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
952 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
958 # For sparc/sparc9, try sparc/sparc9 and then sparc.
961 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
963 # Prepend the machine's FPU directory unless --without-fp.
964 if test "$with_fp" = yes; then
972 # Find what sysdep directories exist.
974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
975 for d in $add_ons_pfx ''; do
976 for b in $base ''; do
977 for m0 in $mach ''; do
978 for v in /$vendor ''; do
979 test "$v" = / && continue
980 for o in /$ostry ''; do
981 test "$o" = / && continue
982 for m in $mach ''; do
983 if test "$m0$b$v$o$m"; then
984 try="${d}sysdeps$m0$b$v$o$m"
985 test -n "$enable_debug_configure" &&
986 echo "$0 DEBUG: try $try" >&2
989 *) dest=$srcdir/$try ;;
991 if test -d $dest; then
992 sysnames="$sysnames $try"
993 { test -n "$o" || test -n "$b"; } && os_used=t
994 { test -n "$m" || test -n "$m0"; } && machine_used=t
1005 if test -z "$os_used" && test "$os" != none; then
1006 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1008 if test -z "$machine_used" && test "$machine" != none; then
1009 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1012 # We have now validated the configuration.
1015 # If using ELF, look for an `elf' subdirectory of each machine directory.
1016 # We prepend these rather than inserting them whereever the machine appears
1017 # because things specified by the machine's ELF ABI should override
1018 # OS-specific things, and should always be the same for any OS on the
1019 # machine (otherwise what's the point of an ABI?).
1020 if test "$elf" = yes; then
1022 for d in $add_ons_pfx ''; do
1025 *) xsrcdir=$srcdir/ ;;
1028 if test -d $xsrcdir${d}sysdeps$m/elf; then
1029 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1033 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1037 # Expand the list of system names into a full list of directories
1038 # from each element's parent name and Implies file (if present).
1041 while test $# -gt 0; do
1045 case " $names " in *" $name "*)
1046 # Already in the list.
1050 # Report each name as we discover it, so there is no long pause in output.
1051 echo $ac_n "$name $ac_c" >&6
1053 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1057 *) xsrcdir=$srcdir/ ;;
1059 test -n "$enable_debug_configure" &&
1060 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1062 if test -f $xsrcdir$name/Implies; then
1063 # Collect more names from the `Implies' file (removing comments).
1064 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1066 for x in $implied_candidate; do
1067 if test -d $xsrcdir$name_base/$x; then
1068 implied="$implied $name_base/$x";
1070 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1077 # Add NAME to the list of names.
1078 names="$names $name"
1080 # Find the parent of NAME, using the empty string if it has none.
1081 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1083 # Add the names implied by NAME, and NAME's parent (if it has one), to
1084 # the list of names to be processed (the argument list). We prepend the
1085 # implied names to the list and append the parent. We want implied
1086 # directories to come before further directories inferred from the
1087 # configuration components; this ensures that for sysv4, unix/common
1088 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1090 sysnames="`echo $implied $* $parent`"
1091 test -n "$sysnames" && set $sysnames
1094 # Add the default directories.
1095 sysnames="$names sysdeps/generic"
1097 # The other names were emitted during the scan.
1098 echo "$ac_t""sysdeps/generic" 1>&6
1103 # Find a good install program. We prefer a C program (faster),
1104 # so one script is as good as another. But avoid the broken or
1105 # incompatible versions:
1106 # SysV /etc/install, /usr/sbin/install
1107 # SunOS /usr/etc/install
1108 # IRIX /sbin/install
1110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1112 # ./install, which can be erroneously created by make from ./install.sh.
1113 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1114 echo "configure:1115: checking for a BSD compatible install" >&5
1115 if test -z "$INSTALL"; then
1116 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1117 echo $ac_n "(cached) $ac_c" 1>&6
1119 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1120 for ac_dir in $PATH; do
1121 # Account for people who put trailing slashes in PATH elements.
1123 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1125 # OSF1 and SCO ODT 3.0 have their own names for install.
1126 for ac_prog in ginstall installbsd scoinst install; do
1127 if test -f $ac_dir/$ac_prog; then
1128 if test $ac_prog = install &&
1129 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1130 # AIX install. It has an incompatible calling convention.
1131 # OSF/1 installbsd also uses dspmsg, but is usable.
1134 ac_cv_path_install="$ac_dir/$ac_prog -c"
1145 if test "${ac_cv_path_install+set}" = set; then
1146 INSTALL="$ac_cv_path_install"
1148 # As a last resort, use the slow shell script. We don't cache a
1149 # path for INSTALL within a source directory, because that will
1150 # break other packages using the cache if that directory is
1151 # removed, or if the path is relative.
1152 INSTALL="$ac_install_sh"
1155 echo "$ac_t""$INSTALL" 1>&6
1157 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1158 # It thinks the first close brace ends the variable substitution.
1159 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1161 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1163 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1164 # The makefiles need to use a different form to find it in $srcdir.
1165 INSTALL='\$(..)./install-sh -c'
1167 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1168 echo "configure:1169: checking whether ln -s works" >&5
1169 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1173 if ln -s X conftestdata 2>/dev/null
1176 ac_cv_prog_LN_S="ln -s"
1181 LN_S="$ac_cv_prog_LN_S"
1182 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1183 echo "$ac_t""yes" 1>&6
1185 echo "$ac_t""no" 1>&6
1189 # These programs are version sensitive.
1190 # Prepare to iterate over the program-name list.
1191 set dummy gcc cc; shift
1192 echo $ac_n "checking for $1""... $ac_c" 1>&6
1193 echo "configure:1194: checking for $1" >&5
1194 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1197 if test -n "$CC"; then
1198 ac_cv_prog_CC="$CC" # Let the user override the test.
1200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1202 for ac_dir in $PATH; do
1203 test -z "$ac_dir" && ac_dir=.
1204 if test -f $ac_dir/$ac_word; then
1205 ac_cv_prog_CC="$ac_word"
1209 test -n "$ac_cv_prog_CC" && break
1214 if test -z "$ac_cv_prog_CC"; then
1215 echo "$ac_t""no" 1>&6
1217 ac_verc_fail=t; ac_verc_fatal=t
1219 # Found it, now check the version.
1220 ac_word=$ac_cv_prog_CC
1221 if test "${ac_cv_prog_CC_ver+set}" != set; then
1222 ac_cv_prog_CC_ver=`$ac_word -v 2>&1 | sed -n 's/^.*version \([egcs0-9.-]*\).*$/\1/p'`
1224 if test -n "$ac_cv_prog_CC_ver"; then
1225 case $ac_cv_prog_CC_ver in
1226 egcs-2.91.*|egcs-2.90.2[789]|egcs-2.90.[3-9][0-9]|2.8.[1-9]*|2.9.[0-9]*) ac_vers_ok=", ok"; CC=$ac_cv_prog_CC;;
1227 *) ac_vers_ok=", bad"; CC=:
1228 ac_verc_fail=t; ac_verc_fatal=t;;
1231 ac_vers_ok="v. ?.??, bad"; CC=:
1232 ac_verc_fail=t; ac_verc_fatal=t
1234 echo "$ac_t""$ac_word $ac_cv_prog_CC_ver$ac_vers_ok" 1>&6
1237 # Prepare to iterate over the program-name list.
1238 set dummy make gmake; shift
1239 echo $ac_n "checking for $1""... $ac_c" 1>&6
1240 echo "configure:1241: checking for $1" >&5
1241 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1242 echo $ac_n "(cached) $ac_c" 1>&6
1244 if test -n "$MAKE"; then
1245 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1249 for ac_dir in $PATH; do
1250 test -z "$ac_dir" && ac_dir=.
1251 if test -f $ac_dir/$ac_word; then
1252 ac_cv_prog_MAKE="$ac_word"
1256 test -n "$ac_cv_prog_MAKE" && break
1261 if test -z "$ac_cv_prog_MAKE"; then
1262 echo "$ac_t""no" 1>&6
1264 ac_verc_fail=t; ac_verc_fatal=t
1266 # Found it, now check the version.
1267 ac_word=$ac_cv_prog_MAKE
1268 if test "${ac_cv_prog_MAKE_ver+set}" != set; then
1269 ac_cv_prog_MAKE_ver=`$ac_word --version 2>&1 | sed -n 's/^.*version \([0-9][0-9.]*\), by.*$/\1/p'`
1271 if test -n "$ac_cv_prog_MAKE_ver"; then
1272 case $ac_cv_prog_MAKE_ver in
1273 3.75 | 3.76.[2-9] | 3.7[789]* | 3.[89]*) ac_vers_ok=", ok"; MAKE=$ac_cv_prog_MAKE;;
1274 *) ac_vers_ok=", bad"; MAKE=:
1275 ac_verc_fail=t; ac_verc_fatal=t;;
1278 ac_vers_ok="v. ?.??, bad"; MAKE=:
1279 ac_verc_fail=t; ac_verc_fatal=t
1281 echo "$ac_t""$ac_word $ac_cv_prog_MAKE_ver$ac_vers_ok" 1>&6
1285 # Prepare to iterate over the program-name list.
1286 set dummy msgfmt gmsgfmt; shift
1287 echo $ac_n "checking for $1""... $ac_c" 1>&6
1288 echo "configure:1289: checking for $1" >&5
1289 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 if test -n "$MSGFMT"; then
1293 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1297 for ac_dir in $PATH; do
1298 test -z "$ac_dir" && ac_dir=.
1299 if test -f $ac_dir/$ac_word; then
1300 ac_cv_prog_MSGFMT="$ac_word"
1304 test -n "$ac_cv_prog_MSGFMT" && break
1309 if test -z "$ac_cv_prog_MSGFMT"; then
1310 echo "$ac_t""no" 1>&6
1314 # Found it, now check the version.
1315 ac_word=$ac_cv_prog_MSGFMT
1316 if test "${ac_cv_prog_MSGFMT_ver+set}" != set; then
1317 ac_cv_prog_MSGFMT_ver=`$ac_word --version 2>&1 | sed -n 's/^.*GNU gettext.*\([0-9][0-9]*\.[0-9]*\).*$/\1/p'`
1319 if test -n "$ac_cv_prog_MSGFMT_ver"; then
1320 case $ac_cv_prog_MSGFMT_ver in
1321 0.[1-9][0-9] | [1-9].*) ac_vers_ok=", ok"; MSGFMT=$ac_cv_prog_MSGFMT;;
1322 *) ac_vers_ok=", bad"; MSGFMT=:
1326 ac_vers_ok="v. ?.??, bad"; MSGFMT=:
1329 echo "$ac_t""$ac_word $ac_cv_prog_MSGFMT_ver$ac_vers_ok" 1>&6
1332 # Prepare to iterate over the program-name list.
1333 set dummy makeinfo; shift
1334 echo $ac_n "checking for $1""... $ac_c" 1>&6
1335 echo "configure:1336: checking for $1" >&5
1336 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1339 if test -n "$MAKEINFO"; then
1340 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1344 for ac_dir in $PATH; do
1345 test -z "$ac_dir" && ac_dir=.
1346 if test -f $ac_dir/$ac_word; then
1347 ac_cv_prog_MAKEINFO="$ac_word"
1351 test -n "$ac_cv_prog_MAKEINFO" && break
1356 if test -z "$ac_cv_prog_MAKEINFO"; then
1357 echo "$ac_t""no" 1>&6
1361 # Found it, now check the version.
1362 ac_word=$ac_cv_prog_MAKEINFO
1363 if test "${ac_cv_prog_MAKEINFO_ver+set}" != set; then
1364 ac_cv_prog_MAKEINFO_ver=`$ac_word --version 2>&1 | sed -n 's/^.*GNU texinfo \([0-9][0-9.]*\).*$/\1/p'`
1366 if test -n "$ac_cv_prog_MAKEINFO_ver"; then
1367 case $ac_cv_prog_MAKEINFO_ver in
1368 3.1[1-9] | 3.[2-9][0-9]) ac_vers_ok=", ok"; MAKEINFO=$ac_cv_prog_MAKEINFO;;
1369 *) ac_vers_ok=", bad"; MAKEINFO=:
1373 ac_vers_ok="v. ?.??, bad"; MAKEINFO=:
1376 echo "$ac_t""$ac_word $ac_cv_prog_MAKEINFO_ver$ac_vers_ok" 1>&6
1380 test -n "$ac_verc_fatal" && { echo "configure: error:
1381 *** Some critical program is missing or too old.
1382 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1384 test -n "$ac_verc_fail" && echo "configure: warning:
1385 *** An auxiliary program is missing or too old;
1386 *** some features will be disabled.
1387 *** Check the INSTALL file for required versions." 1>&2
1390 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1391 echo "configure:1392: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1392 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1397 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1398 ac_cpp='$CPP $CPPFLAGS'
1399 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1400 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1401 cross_compiling=$ac_cv_prog_cc_cross
1403 cat > conftest.$ac_ext <<EOF
1404 #line 1405 "configure"
1405 #include "confdefs.h"
1408 if { (eval echo configure:1409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1409 ac_cv_prog_cc_works=yes
1410 # If we can't run a trivial program, we are probably using a cross compiler.
1411 if (./conftest; exit) 2>/dev/null; then
1412 ac_cv_prog_cc_cross=no
1414 ac_cv_prog_cc_cross=yes
1417 echo "configure: failed program was:" >&5
1418 cat conftest.$ac_ext >&5
1419 ac_cv_prog_cc_works=no
1425 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1426 if test $ac_cv_prog_cc_works = no; then
1428 ac_cv_prog_cc_cross=yes
1432 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1433 echo "configure:1434: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1434 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1440 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1442 cross_compiling=$ac_cv_prog_cc_cross
1444 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1445 echo "configure:1446: checking whether we are using GNU C" >&5
1446 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1449 cat > conftest.c <<EOF
1454 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1461 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1462 if test $ac_cv_prog_gcc != yes; then
1463 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1466 echo $ac_n "checking build system type""... $ac_c" 1>&6
1467 echo "configure:1468: checking build system type" >&5
1470 case "$build_alias" in
1473 NONE) build_alias=$host_alias ;;
1474 *) build_alias=$nonopt ;;
1478 build=`$ac_config_sub $build_alias`
1479 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1480 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1481 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1482 echo "$ac_t""$build" 1>&6
1484 if test $host != $build; then
1485 for ac_prog in gcc cc
1487 # Extract the first word of "$ac_prog", so it can be a program name with args.
1488 set dummy $ac_prog; ac_word=$2
1489 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1490 echo "configure:1491: checking for $ac_word" >&5
1491 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1494 if test -n "$BUILD_CC"; then
1495 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1498 for ac_dir in $PATH; do
1499 test -z "$ac_dir" && ac_dir=.
1500 if test -f $ac_dir/$ac_word; then
1501 ac_cv_prog_BUILD_CC="$ac_prog"
1508 BUILD_CC="$ac_cv_prog_BUILD_CC"
1509 if test -n "$BUILD_CC"; then
1510 echo "$ac_t""$BUILD_CC" 1>&6
1512 echo "$ac_t""no" 1>&6
1515 test -n "$BUILD_CC" && break
1520 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1521 echo "configure:1522: checking how to run the C preprocessor" >&5
1522 # On Suns, sometimes $CPP names a directory.
1523 if test -n "$CPP" && test -d "$CPP"; then
1526 if test -z "$CPP"; then
1527 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1528 echo $ac_n "(cached) $ac_c" 1>&6
1530 # This must be in double quotes, not single quotes, because CPP may get
1531 # substituted into the Makefile and "${CC-cc}" will confuse make.
1533 # On the NeXT, cc -E runs the code through the compiler's parser,
1534 # not just through cpp.
1535 cat > conftest.$ac_ext <<EOF
1536 #line 1537 "configure"
1537 #include "confdefs.h"
1541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542 { (eval echo configure:1543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1543 ac_err=`grep -v '^ *+' conftest.out`
1544 if test -z "$ac_err"; then
1548 echo "configure: failed program was:" >&5
1549 cat conftest.$ac_ext >&5
1551 CPP="${CC-cc} -E -traditional-cpp"
1552 cat > conftest.$ac_ext <<EOF
1553 #line 1554 "configure"
1554 #include "confdefs.h"
1558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1559 { (eval echo configure:1560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1560 ac_err=`grep -v '^ *+' conftest.out`
1561 if test -z "$ac_err"; then
1565 echo "configure: failed program was:" >&5
1566 cat conftest.$ac_ext >&5
1573 ac_cv_prog_CPP="$CPP"
1575 CPP="$ac_cv_prog_CPP"
1577 ac_cv_prog_CPP="$CPP"
1579 echo "$ac_t""$CPP" 1>&6
1581 # Was a --with-binutils option given?
1582 if test -n "$path_binutils"; then
1583 # Make absolute; ensure a single trailing slash.
1584 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1585 CC="$CC -B$path_binutils"
1587 AS=`$CC -print-file-name=as`
1588 LD=`$CC -print-file-name=ld`
1590 # Determine whether we are using GNU binutils.
1591 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1592 echo "configure:1593: checking whether $AS is GNU as" >&5
1593 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1596 # Most GNU programs take a -v and spit out some text including
1597 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1598 if $AS -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1599 libc_cv_prog_as_gnu=yes
1601 libc_cv_prog_as_gnu=no
1605 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1607 gnu_as=$libc_cv_prog_as_gnu
1609 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1610 echo "configure:1611: checking whether $LD is GNU ld" >&5
1611 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1614 # Most GNU programs take a -v and spit out some text including
1615 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1616 if $LD -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1617 libc_cv_prog_ld_gnu=yes
1619 libc_cv_prog_ld_gnu=no
1623 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1624 gnu_ld=$libc_cv_prog_ld_gnu
1626 if test $host != $build; then
1627 ac_tool_prefix=${host_alias}-
1632 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1633 set dummy ${ac_tool_prefix}ar; ac_word=$2
1634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1635 echo "configure:1636: checking for $ac_word" >&5
1636 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1637 echo $ac_n "(cached) $ac_c" 1>&6
1639 if test -n "$AR"; then
1640 ac_cv_prog_AR="$AR" # Let the user override the test.
1642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1643 for ac_dir in $PATH; do
1644 test -z "$ac_dir" && ac_dir=.
1645 if test -f $ac_dir/$ac_word; then
1646 ac_cv_prog_AR="${ac_tool_prefix}ar"
1651 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1655 if test -n "$AR"; then
1656 echo "$ac_t""$AR" 1>&6
1658 echo "$ac_t""no" 1>&6
1663 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1664 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1666 echo "configure:1667: checking for $ac_word" >&5
1667 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1670 if test -n "$RANLIB"; then
1671 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1674 for ac_dir in $PATH; do
1675 test -z "$ac_dir" && ac_dir=.
1676 if test -f $ac_dir/$ac_word; then
1677 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1684 RANLIB="$ac_cv_prog_RANLIB"
1685 if test -n "$RANLIB"; then
1686 echo "$ac_t""$RANLIB" 1>&6
1688 echo "$ac_t""no" 1>&6
1692 if test -z "$ac_cv_prog_RANLIB"; then
1693 if test -n "$ac_tool_prefix"; then
1694 # Extract the first word of "ranlib", so it can be a program name with args.
1695 set dummy ranlib; ac_word=$2
1696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1697 echo "configure:1698: checking for $ac_word" >&5
1698 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1699 echo $ac_n "(cached) $ac_c" 1>&6
1701 if test -n "$RANLIB"; then
1702 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1705 for ac_dir in $PATH; do
1706 test -z "$ac_dir" && ac_dir=.
1707 if test -f $ac_dir/$ac_word; then
1708 ac_cv_prog_RANLIB="ranlib"
1713 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1716 RANLIB="$ac_cv_prog_RANLIB"
1717 if test -n "$RANLIB"; then
1718 echo "$ac_t""$RANLIB" 1>&6
1720 echo "$ac_t""no" 1>&6
1729 # check if ar takes S
1730 echo $ac_n "checking for ar S""... $ac_c" 1>&6
1731 echo "configure:1732: checking for ar S" >&5
1732 if eval "test \"`echo '$''{'libc_cv_ar_S'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1739 if { ac_try='${AR-ar} rcuS $tmplib $tmpo > /dev/null 2>&1'; { (eval echo configure:1740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1747 echo "$ac_t""$libc_cv_ar_S" 1>&6
1749 # Test if LD_LIBRARY_PATH contains the notation for the current directory
1750 # since this would lead to problems installing/building glibc.
1751 # LD_LIBRARY_PATH contains the current directory if one of the following
1753 # - one of the terminals (":" and ";") is the first or last sign
1754 # - two terminals occur directly after each other
1755 # - the path contains an element with a dot in it
1756 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
1757 echo "configure:1758: checking LD_LIBRARY_PATH variable" >&5
1758 case ${LD_LIBRARY_PATH} in
1759 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1760 ld_library_path_setting="contains current directory"
1763 ld_library_path_setting="ok"
1766 echo "$ac_t""$ld_library_path_setting" 1>&6
1767 if test "$ld_library_path_setting" != "ok"; then
1768 { echo "configure: error:
1769 *** LD_LIBRARY_PATH shouldn't contain the current directory when
1770 *** building glibc. Please change the environment variable
1771 *** and run configure again." 1>&2; exit 1; }
1774 # Extract the first word of "bash", so it can be a program name with args.
1775 set dummy bash; ac_word=$2
1776 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1777 echo "configure:1778: checking for $ac_word" >&5
1778 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1779 echo $ac_n "(cached) $ac_c" 1>&6
1783 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1787 for ac_dir in $PATH; do
1788 test -z "$ac_dir" && ac_dir=.
1789 if test -f $ac_dir/$ac_word; then
1790 ac_cv_path_BASH="$ac_dir/$ac_word"
1795 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
1799 BASH="$ac_cv_path_BASH"
1800 if test -n "$BASH"; then
1801 echo "$ac_t""$BASH" 1>&6
1803 echo "$ac_t""no" 1>&6
1806 if test "$BASH" != no &&
1807 $BASH -c 'test "$BASH_VERSINFO" \
1808 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1809 libc_cv_have_bash2=yes
1811 libc_cv_have_bash2=no
1815 if test "$BASH" = no; then
1816 # Extract the first word of "ksh", so it can be a program name with args.
1817 set dummy ksh; ac_word=$2
1818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1819 echo "configure:1820: checking for $ac_word" >&5
1820 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1825 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1829 for ac_dir in $PATH; do
1830 test -z "$ac_dir" && ac_dir=.
1831 if test -f $ac_dir/$ac_word; then
1832 ac_cv_path_KSH="$ac_dir/$ac_word"
1837 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
1841 KSH="$ac_cv_path_KSH"
1842 if test -n "$KSH"; then
1843 echo "$ac_t""$KSH" 1>&6
1845 echo "$ac_t""no" 1>&6
1848 if test "$KSH" = no; then
1851 libc_cv_have_ksh=yes
1856 libc_cv_have_ksh=yes
1862 # Extract the first word of "$ac_prog", so it can be a program name with args.
1863 set dummy $ac_prog; ac_word=$2
1864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1865 echo "configure:1866: checking for $ac_word" >&5
1866 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1871 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1875 for ac_dir in $PATH; do
1876 test -z "$ac_dir" && ac_dir=.
1877 if test -f $ac_dir/$ac_word; then
1878 ac_cv_path_PERL="$ac_dir/$ac_word"
1886 PERL="$ac_cv_path_PERL"
1887 if test -n "$PERL"; then
1888 echo "$ac_t""$PERL" 1>&6
1890 echo "$ac_t""no" 1>&6
1893 test -n "$PERL" && break
1895 test -n "$PERL" || PERL="no"
1899 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1900 echo "configure:1901: checking for signed size_t type" >&5
1901 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1904 echo '#include <stddef.h>
1905 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1906 if eval "$ac_cpp conftest.c 2>/dev/null" \
1907 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
1908 libc_cv_signed_size_t=no
1910 libc_cv_signed_size_t=yes
1915 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
1916 if test $libc_cv_signed_size_t = yes; then
1917 cat >> confdefs.h <<\EOF
1918 #undef __SIZE_TYPE__
1919 #define __SIZE_TYPE__ unsigned
1923 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
1924 echo "configure:1925: checking for libc-friendly stddef.h" >&5
1925 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1928 cat > conftest.$ac_ext <<EOF
1929 #line 1930 "configure"
1930 #include "confdefs.h"
1931 #define __need_size_t
1932 #define __need_wchar_t
1937 size_t size; wchar_t wchar;
1939 #error stddef.h ignored __need_*
1941 if (&size == NULL || &wchar == NULL) abort ();
1944 if { (eval echo configure:1945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1946 libc_cv_friendly_stddef=yes
1948 echo "configure: failed program was:" >&5
1949 cat conftest.$ac_ext >&5
1951 libc_cv_friendly_stddef=no
1956 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
1957 if test $libc_cv_friendly_stddef = yes; then
1958 config_vars="$config_vars
1959 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1962 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
1963 echo "configure:1964: checking whether we need to use -P to assemble .S files" >&5
1964 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1967 cat > conftest.S <<EOF
1968 #include "confdefs.h"
1969 /* Nothing whatsoever. */
1971 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
1972 libc_cv_need_minus_P=no
1974 libc_cv_need_minus_P=yes
1979 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
1980 if test $libc_cv_need_minus_P = yes; then
1981 config_vars="$config_vars
1982 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1985 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
1986 echo "configure:1987: checking for assembler global-symbol directive" >&5
1987 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1990 libc_cv_asm_global_directive=UNKNOWN
1991 for ac_globl in .globl .global; do
1992 cat > conftest.s <<EOF
1997 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1998 libc_cv_asm_global_directive=${ac_globl}
2001 test $libc_cv_asm_global_directive != UNKNOWN && break
2005 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2006 if test $libc_cv_asm_global_directive = UNKNOWN; then
2007 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2009 cat >> confdefs.h <<EOF
2010 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2015 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2016 echo "configure:2017: checking for .set assembler directive" >&5
2017 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2018 echo $ac_n "(cached) $ac_c" 1>&6
2020 cat > conftest.s <<EOF
2023 .set glibc_conftest_frobozz,foo
2024 $libc_cv_asm_global_directive glibc_conftest_frobozz
2026 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2027 # (but it doesn't work), so we must do a linking check to be sure.
2028 cat > conftest1.c <<\EOF
2029 extern int glibc_conftest_frobozz;
2030 main () { printf ("%d\n", glibc_conftest_frobozz); }
2032 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2033 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2034 libc_cv_asm_set_directive=yes
2036 libc_cv_asm_set_directive=no
2041 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2042 if test $libc_cv_asm_set_directive = yes; then
2043 cat >> confdefs.h <<\EOF
2044 #define HAVE_ASM_SET_DIRECTIVE 1
2049 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2050 echo "configure:2051: checking for .symver assembler directive" >&5
2051 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2054 cat > conftest.s <<EOF
2057 .symver _sym,sym@VERS
2059 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2060 libc_cv_asm_symver_directive=yes
2062 libc_cv_asm_symver_directive=no
2067 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2068 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2069 echo "configure:2070: checking for ld --version-script" >&5
2070 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2073 if test $libc_cv_asm_symver_directive = yes; then
2074 cat > conftest.s <<EOF
2077 .symver _sym,sym@VERS
2079 cat > conftest.map <<EOF
2088 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2089 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2090 -nostartfiles -nostdlib
2091 -Wl,--version-script,conftest.map
2092 1>&5'; { (eval echo configure:2093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2094 libc_cv_ld_version_script_option=yes
2096 libc_cv_ld_version_script_option=no
2099 libc_cv_ld_version_script_option=no
2102 libc_cv_ld_version_script_option=no
2107 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2108 if test $libc_cv_asm_symver_directive = yes &&
2109 test $libc_cv_ld_version_script_option = yes &&
2110 test $enable_versioning = yes; then
2112 cat >> confdefs.h <<\EOF
2113 #define DO_VERSIONING 1
2121 if test $VERSIONING = no; then
2123 *** WARNING: You should not compile GNU libc without versioning. Not using
2124 *** versioning will introduce incompatibilities so that old binaries
2125 *** will not run anymore.
2126 *** For versioning you need recent binutils (binutils-2.8.1.0.17 or newer)."
2128 if test $elf = yes; then
2129 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2130 echo "configure:2131: checking for .previous assembler directive" >&5
2131 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2134 cat > conftest.s <<EOF
2135 .section foo_section
2138 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2139 libc_cv_asm_previous_directive=yes
2141 libc_cv_asm_previous_directive=no
2146 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2147 if test $libc_cv_asm_previous_directive = yes; then
2148 cat >> confdefs.h <<\EOF
2149 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2153 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2154 echo "configure:2155: checking for .popsection assembler directive" >&5
2155 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2156 echo $ac_n "(cached) $ac_c" 1>&6
2158 cat > conftest.s <<EOF
2159 .pushsection foo_section
2162 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2163 libc_cv_asm_popsection_directive=yes
2165 libc_cv_asm_popsection_directive=no
2170 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2171 if test $libc_cv_asm_popsection_directive = yes; then
2172 cat >> confdefs.h <<\EOF
2173 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2180 if test $elf != yes; then
2181 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2182 echo "configure:2183: checking for .init and .fini sections" >&5
2183 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 cat > conftest.$ac_ext <<EOF
2187 #line 2188 "configure"
2188 #include "confdefs.h"
2191 asm (".section .init");
2192 asm (".section .fini");
2196 if { (eval echo configure:2197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2198 libc_cv_have_initfini=yes
2200 echo "configure: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2203 libc_cv_have_initfini=no
2208 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2209 if test $libc_cv_have_initfini = yes; then
2210 cat >> confdefs.h <<\EOF
2211 #define HAVE_INITFINI 1
2219 if test $elf = yes; then
2220 libc_cv_asm_underscores=no
2222 if test $ac_cv_prog_cc_works = yes; then
2223 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2224 echo "configure:2225: checking for _ prefix on C symbol names" >&5
2225 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2228 cat > conftest.$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2231 asm ("_glibc_foobar:");
2236 if { (eval echo configure:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2238 libc_cv_asm_underscores=yes
2240 echo "configure: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2243 libc_cv_asm_underscores=no
2248 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2250 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2251 echo "configure:2252: checking for _ prefix on C symbol names" >&5
2252 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
2255 cat > conftest.$ac_ext <<EOF
2256 #line 2257 "configure"
2257 #include "confdefs.h"
2258 void underscore_test(void) {
2261 if { (eval echo configure:2262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2262 if grep _underscore_test conftest* >/dev/null; then
2264 libc_cv_asm_underscores=yes
2267 libc_cv_asm_underscores=no
2270 echo "configure: failed program was:" >&5
2271 cat conftest.$ac_ext >&5
2273 libc_cv_asm_underscores=no
2278 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2281 if test $libc_cv_asm_underscores = no; then
2282 cat >> confdefs.h <<\EOF
2283 #define NO_UNDERSCORES 1
2288 if test $elf = yes; then
2289 libc_cv_weak_symbols=yes
2292 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2293 echo "configure:2294: checking for assembler .weak directive" >&5
2294 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2297 cat > conftest.s <<EOF
2299 ${libc_cv_asm_global_directive} foo
2302 .weak bar; bar = foo
2304 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2305 libc_cv_asm_weak_directive=yes
2307 libc_cv_asm_weak_directive=no
2312 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2314 if test $libc_cv_asm_weak_directive = no; then
2315 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2316 echo "configure:2317: checking for assembler .weakext directive" >&5
2317 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2320 cat > conftest.s <<EOF
2322 ${libc_cv_asm_global_directive} foo
2326 ${libc_cv_asm_global_directive} baz
2329 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2330 libc_cv_asm_weakext_directive=yes
2332 libc_cv_asm_weakext_directive=no
2337 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2341 if test $libc_cv_asm_weak_directive = yes; then
2342 cat >> confdefs.h <<\EOF
2343 #define HAVE_ASM_WEAK_DIRECTIVE 1
2346 elif test $libc_cv_asm_weakext_directive = yes; then
2347 cat >> confdefs.h <<\EOF
2348 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2353 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2354 echo "configure:2355: checking for ld --no-whole-archive" >&5
2355 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2356 echo $ac_n "(cached) $ac_c" 1>&6
2358 cat > conftest.c <<\EOF
2363 if { ac_try='${CC-cc} $CFLAGS
2364 -nostdlib -nostartfiles -Wl,--no-whole-archive
2365 -o conftest conftest.c 1>&5'; { (eval echo configure:2366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2366 libc_cv_ld_no_whole_archive=yes
2368 libc_cv_ld_no_whole_archive=no
2373 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2375 echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
2376 echo "configure:2377: checking for gcc -fno-exceptions" >&5
2377 if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
2378 echo $ac_n "(cached) $ac_c" 1>&6
2380 cat > conftest.c <<\EOF
2385 if { ac_try='${CC-cc} $CFLAGS
2386 -nostdlib -nostartfiles -fno-exceptions
2387 -o conftest conftest.c 1>&5'; { (eval echo configure:2388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2388 libc_cv_gcc_no_exceptions=yes
2390 libc_cv_gcc_no_exceptions=no
2395 echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
2397 if test "$base_machine" = alpha ; then
2398 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2399 echo "configure:2400: checking for function ..ng prefix" >&5
2400 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
2401 echo $ac_n "(cached) $ac_c" 1>&6
2403 cat > conftest.c <<\EOF
2406 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:2407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2408 libc_cv_gcc_alpha_ng_prefix=yes
2410 libc_cv_gcc_alpha_ng_prefix=no
2415 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2416 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2417 cat >> confdefs.h <<\EOF
2418 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2422 cat >> confdefs.h <<\EOF
2423 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2429 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2430 echo "configure:2431: checking for DWARF2 unwind info support" >&5
2431 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2434 cat > conftest.c <<EOF
2435 #line 2436 "configure"
2436 static char __EH_FRAME_BEGIN__;
2439 #ifdef CHECK__register_frame
2440 __register_frame (__EH_FRAME_BEGIN__);
2441 __deregister_frame (__EH_FRAME_BEGIN__);
2443 #ifdef CHECK__register_frame_info
2444 __register_frame_info (__EH_FRAME_BEGIN__);
2445 __deregister_frame_info (__EH_FRAME_BEGIN__);
2450 /* FIXME: this is fragile. */
2460 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
2461 -nostdlib -nostartfiles
2462 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2463 libc_cv_gcc_dwarf2_unwind_info=static
2465 libc_cv_gcc_dwarf2_unwind_info=no
2467 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
2468 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
2469 -nostdlib -nostartfiles
2470 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2471 libc_cv_gcc_dwarf2_unwind_info=yes
2473 libc_cv_gcc_dwarf2_unwind_info=no
2479 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
2480 case $libc_cv_gcc_dwarf2_unwind_info in
2482 cat >> confdefs.h <<\EOF
2483 #define HAVE_DWARF2_UNWIND_INFO 1
2488 cat >> confdefs.h <<\EOF
2489 #define HAVE_DWARF2_UNWIND_INFO 1
2492 cat >> confdefs.h <<\EOF
2493 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
2499 ### End of automated tests.
2500 ### Now run sysdeps configure fragments.
2502 # sysdeps configure fragments may set these with files to be linked below.
2506 # They also can set these variables.
2507 ldd_rewrite_script=no
2509 # Iterate over all the sysdep directories we will use, running their
2510 # configure fragments, and looking for a uname implementation.
2512 for dir in $sysnames; do
2515 *) dest=$srcdir/$dir ;;
2517 if test -r $dest/configure; then
2518 echo "$ac_t""running configure fragment for $dest" 1>&6
2522 if test -z "$uname"; then
2523 if test -r $dest/uname.c ||
2524 test -r $dest/uname.S ||
2525 { test -r $dest/syscalls.list &&
2526 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
2534 # If we will use the generic uname implementation, we must figure out what
2535 # it will say by examining the system, and write the results in config-name.h.
2536 if test "$uname" = "sysdeps/generic"; then
2538 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
2539 if test $uname_sysname != $config_os; then
2540 config_release=`echo $config_os | sed s/$uname_sysname//`
2543 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2544 echo "configure:2545: checking OS release for uname" >&5
2545 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2548 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2549 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
2550 != x$config_release; then
2551 # The configuration release is a substring of the kernel release.
2552 libc_cv_uname_release=$kernel_release
2553 elif test x$config_release != x; then
2554 libc_cv_uname_release=$config_release
2555 elif test x$kernel_release != x; then
2556 libc_cv_uname_release=$kernel_release
2558 libc_cv_uname_release=unknown
2562 echo "$ac_t""$libc_cv_uname_release" 1>&6
2563 uname_release="$libc_cv_uname_release"
2565 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2566 echo "configure:2567: checking OS version for uname" >&5
2567 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
2568 echo $ac_n "(cached) $ac_c" 1>&6
2570 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2571 if test -n "$kernel_version"; then
2572 libc_cv_uname_version="$kernel_version"
2574 libc_cv_uname_version=unknown
2578 echo "$ac_t""$libc_cv_uname_version" 1>&6
2579 uname_version="$libc_cv_uname_version"
2581 config_uname=config-name.h:config-name.in
2583 # For non-generic uname, we don't need to create config-name.h at all.
2587 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
2588 echo "configure:2589: checking stdio selection" >&5
2591 libio) cat >> confdefs.h <<\EOF
2592 #define USE_IN_LIBIO 1
2595 default) stdio=stdio ;;
2597 echo "$ac_t""$stdio" 1>&6
2599 echo $ac_n "checking ldap selection""... $ac_c" 1>&6
2600 echo "configure:2601: checking ldap selection" >&5
2609 echo "$ac_t""$ldap" 1>&6
2619 if test $gnu_ld = yes; then
2620 cat >> confdefs.h <<\EOF
2621 #define HAVE_GNU_LD 1
2625 if test $gnu_as = yes; then
2626 cat >> confdefs.h <<\EOF
2627 #define HAVE_GNU_AS 1
2631 if test $elf = yes; then
2632 cat >> confdefs.h <<\EOF
2640 if test $shared = default; then
2641 if test $gnu_ld = yes; then
2644 # For now we do not assume shared libs are available. In future more
2645 # tests might become available.
2650 if test $static = no && test $shared = yes; then
2653 { echo "configure: error:
2654 *** You must compile with support for the static library since the shared
2655 *** library uses it. Restart configure without \`--disable-static'." 1>&2; exit 1; }
2662 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
2663 echo "configure:2664: checking whether -fPIC is default" >&5
2664 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2668 cat > conftest.c <<EOF
2669 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
2670 # error PIC is default.
2673 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
2679 echo "$ac_t""$pic_default" 1>&6
2690 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
2693 config_makefile=Makefile
2696 VERSION=`sed -e 's/^#define VERSION "\([^"]*\)"/\1/p' -e d < $srcdir/version.h`
2700 cat > confcache <<\EOF
2701 # This file is a shell script that caches the results of configure
2702 # tests run on this system so they can be shared between configure
2703 # scripts and configure runs. It is not useful on other systems.
2704 # If it contains results you don't want to keep, you may remove or edit it.
2706 # By default, configure uses ./config.cache as the cache file,
2707 # creating it if it does not exist already. You can give configure
2708 # the --cache-file=FILE option to use a different cache file; that is
2709 # what configure does when it calls configure scripts in
2710 # subdirectories, so they share the cache.
2711 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2712 # config.status only pays attention to the cache file if you give it the
2713 # --recheck option to rerun configure.
2716 # The following way of writing the cache mishandles newlines in values,
2717 # but we know of no workaround that is simple, portable, and efficient.
2718 # So, don't put newlines in cache variables' values.
2719 # Ultrix sh set writes to stderr and can't be redirected directly,
2720 # and sets the high bit in the cache file unless we assign to the vars.
2722 case `(ac_space=' '; set) 2>&1` in
2724 # `set' does not quote correctly, so add quotes (double-quote substitution
2725 # turns \\\\ into \\, and sed turns \\ into \).
2727 -e "s/'/'\\\\''/g" \
2728 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2731 # `set' quotes correctly as required by POSIX, so do not add quotes.
2732 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2735 if cmp -s $cache_file confcache; then
2738 if test -w $cache_file; then
2739 echo "updating cache $cache_file"
2740 cat confcache > $cache_file
2742 echo "not updating unwritable cache $cache_file"
2747 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2749 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2750 # Let make expand exec_prefix.
2751 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2753 # Any assignment to VPATH causes Sun make to only execute
2754 # the first set of double-colon rules, so remove it if not needed.
2755 # If there is a colon in the path, we need to keep it.
2756 if test "x$srcdir" = x.; then
2757 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2760 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2762 DEFS=-DHAVE_CONFIG_H
2764 # Without the "./", some shells look in PATH for config.status.
2765 : ${CONFIG_STATUS=./config.status}
2767 echo creating $CONFIG_STATUS
2768 rm -f $CONFIG_STATUS
2769 cat > $CONFIG_STATUS <<EOF
2771 # Generated automatically by configure.
2772 # Run this file to recreate the current configuration.
2773 # This directory was configured as follows,
2774 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2776 # $0 $ac_configure_args
2778 # Compiler output produced by configure, useful for debugging
2779 # configure, is in ./config.log if it exists.
2781 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2784 case "\$ac_option" in
2785 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2786 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2787 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2788 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2789 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2791 -help | --help | --hel | --he | --h)
2792 echo "\$ac_cs_usage"; exit 0 ;;
2793 *) echo "\$ac_cs_usage"; exit 1 ;;
2797 ac_given_srcdir=$srcdir
2798 ac_given_INSTALL="$INSTALL"
2800 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2802 cat >> $CONFIG_STATUS <<EOF
2804 # Protect against being on the right side of a sed subst in config.status.
2805 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2806 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2809 s%@CFLAGS@%$CFLAGS%g
2810 s%@CPPFLAGS@%$CPPFLAGS%g
2811 s%@CXXFLAGS@%$CXXFLAGS%g
2813 s%@LDFLAGS@%$LDFLAGS%g
2815 s%@exec_prefix@%$exec_prefix%g
2816 s%@prefix@%$prefix%g
2817 s%@program_transform_name@%$program_transform_name%g
2818 s%@bindir@%$bindir%g
2819 s%@sbindir@%$sbindir%g
2820 s%@libexecdir@%$libexecdir%g
2821 s%@datadir@%$datadir%g
2822 s%@sysconfdir@%$sysconfdir%g
2823 s%@sharedstatedir@%$sharedstatedir%g
2824 s%@localstatedir@%$localstatedir%g
2825 s%@libdir@%$libdir%g
2826 s%@includedir@%$includedir%g
2827 s%@oldincludedir@%$oldincludedir%g
2828 s%@infodir@%$infodir%g
2829 s%@mandir@%$mandir%g
2830 s%@with_cvs@%$with_cvs%g
2831 s%@subdirs@%$subdirs%g
2833 s%@host_alias@%$host_alias%g
2834 s%@host_cpu@%$host_cpu%g
2835 s%@host_vendor@%$host_vendor%g
2836 s%@host_os@%$host_os%g
2837 s%@base_machine@%$base_machine%g
2838 s%@sysnames@%$sysnames%g
2839 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2840 s%@INSTALL_DATA@%$INSTALL_DATA%g
2844 s%@MSGFMT@%$MSGFMT%g
2845 s%@MAKEINFO@%$MAKEINFO%g
2846 s%@cross_linkable@%$cross_linkable%g
2848 s%@build_alias@%$build_alias%g
2849 s%@build_cpu@%$build_cpu%g
2850 s%@build_vendor@%$build_vendor%g
2851 s%@build_os@%$build_os%g
2852 s%@BUILD_CC@%$BUILD_CC%g
2853 s%@cross_compiling@%$cross_compiling%g
2856 s%@RANLIB@%$RANLIB%g
2857 s%@libc_cv_ar_S@%$libc_cv_ar_S%g
2859 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
2861 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
2863 s%@VERSIONING@%$VERSIONING%g
2864 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
2865 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
2866 s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
2867 s%@uname_sysname@%$uname_sysname%g
2868 s%@uname_release@%$uname_release%g
2869 s%@uname_version@%$uname_version%g
2872 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
2873 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
2874 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
2875 s%@has_ldconfig@%$has_ldconfig%g
2876 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
2877 s%@gnu_ld@%$gnu_ld%g
2878 s%@gnu_as@%$gnu_as%g
2880 s%@static@%$static%g
2881 s%@shared@%$shared%g
2882 s%@pic_default@%$pic_default%g
2883 s%@profile@%$profile%g
2884 s%@omitfp@%$omitfp%g
2885 s%@bounded@%$bounded%g
2886 s%@static_nss@%$static_nss%g
2887 s%@nopic_initfini@%$nopic_initfini%g
2888 s%@DEFINES@%$DEFINES%g
2889 s%@VERSION@%$VERSION%g
2894 cat >> $CONFIG_STATUS <<\EOF
2896 # Split the substitutions into bite-sized pieces for seds with
2897 # small command number limits, like on Digital OSF/1 and HP-UX.
2898 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2899 ac_file=1 # Number of current file.
2900 ac_beg=1 # First line for current file.
2901 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2904 while $ac_more_lines; do
2905 if test $ac_beg -gt 1; then
2906 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2908 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2910 if test ! -s conftest.s$ac_file; then
2912 rm -f conftest.s$ac_file
2914 if test -z "$ac_sed_cmds"; then
2915 ac_sed_cmds="sed -f conftest.s$ac_file"
2917 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2919 ac_file=`expr $ac_file + 1`
2921 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2924 if test -z "$ac_sed_cmds"; then
2929 cat >> $CONFIG_STATUS <<EOF
2931 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
2933 cat >> $CONFIG_STATUS <<\EOF
2934 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2935 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2937 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2938 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2939 *) ac_file_in="${ac_file}.in" ;;
2942 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2944 # Remove last slash and all that follows it. Not all systems have dirname.
2945 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2946 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2947 # The file is in a subdirectory.
2948 test ! -d "$ac_dir" && mkdir "$ac_dir"
2949 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2950 # A "../" for each directory in $ac_dir_suffix.
2951 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2953 ac_dir_suffix= ac_dots=
2956 case "$ac_given_srcdir" in
2958 if test -z "$ac_dots"; then top_srcdir=.
2959 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2960 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2962 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2963 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2966 case "$ac_given_INSTALL" in
2967 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2968 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2971 echo creating "$ac_file"
2973 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2975 *Makefile*) ac_comsub="1i\\
2976 # $configure_input" ;;
2980 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2982 s%@configure_input@%$configure_input%g
2983 s%@srcdir@%$srcdir%g
2984 s%@top_srcdir@%$top_srcdir%g
2985 s%@INSTALL@%$INSTALL%g
2986 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2990 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2991 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2993 # ac_d sets the value in "#define NAME VALUE" lines.
2994 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2995 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2998 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2999 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3000 ac_uB='\([ ]\)%\1#\2define\3'
3003 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3004 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3005 ac_eB='$%\1#\2define\3'
3009 if test "${CONFIG_HEADERS+set}" != set; then
3011 cat >> $CONFIG_STATUS <<EOF
3012 CONFIG_HEADERS="config.h"
3014 cat >> $CONFIG_STATUS <<\EOF
3016 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3017 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3019 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3020 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3021 *) ac_file_in="${ac_file}.in" ;;
3024 echo creating $ac_file
3026 rm -f conftest.frag conftest.in conftest.out
3027 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3028 cat $ac_file_inputs > conftest.in
3032 # Transform confdefs.h into a sed script conftest.vals that substitutes
3033 # the proper values into config.h.in to produce config.h. And first:
3034 # Protect against being on the right side of a sed subst in config.status.
3035 # Protect against being in an unquoted here document in config.status.
3037 cat > conftest.hdr <<\EOF
3040 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3044 sed -n -f conftest.hdr confdefs.h > conftest.vals
3047 # This sed command replaces #undef with comments. This is necessary, for
3048 # example, in the case of _POSIX_SOURCE, which is predefined and required
3049 # on some systems where configure will not decide to define it.
3050 cat >> conftest.vals <<\EOF
3051 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3054 # Break up conftest.vals because some shells have a limit on
3055 # the size of here documents, and old seds have small limits too.
3060 ac_lines=`grep -c . conftest.vals`
3061 # grep -c gives empty output for an empty file on some AIX systems.
3062 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3063 # Write a limited-size here document to conftest.frag.
3064 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3065 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3067 sed -f conftest.frag conftest.in > conftest.out
3069 mv conftest.out conftest.in
3071 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3073 mv conftest.tail conftest.vals
3077 cat >> $CONFIG_STATUS <<\EOF
3078 rm -f conftest.frag conftest.h
3079 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3080 cat conftest.in >> conftest.h
3082 if cmp -s $ac_file conftest.h 2>/dev/null; then
3083 echo "$ac_file is unchanged"
3086 # Remove last slash and all that follows it. Not all systems have dirname.
3087 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3088 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3089 # The file is in a subdirectory.
3090 test ! -d "$ac_dir" && mkdir "$ac_dir"
3093 mv conftest.h $ac_file
3099 cat >> $CONFIG_STATUS <<EOF
3100 ac_sources="`echo $libc_link_sources`"
3101 ac_dests="`echo $libc_link_dests`"
3104 cat >> $CONFIG_STATUS <<\EOF
3105 srcdir=$ac_given_srcdir
3106 while test -n "$ac_sources"; do
3107 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3108 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3110 echo "linking $srcdir/$ac_source to $ac_dest"
3112 if test ! -r $srcdir/$ac_source; then
3113 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3117 # Make relative symlinks.
3118 # Remove last slash and all that follows it. Not all systems have dirname.
3119 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3120 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3121 # The dest file is in a subdirectory.
3122 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3123 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3124 # A "../" for each directory in $ac_dest_dir_suffix.
3125 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3127 ac_dest_dir_suffix= ac_dots=
3131 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3132 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3135 # Make a symlink if possible; otherwise try a hard link.
3136 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3137 ln $srcdir/$ac_source $ac_dest; then :
3139 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3143 cat >> $CONFIG_STATUS <<EOF
3144 echo '$config_vars' >> config.make; test -d bits || mkdir bits
3146 cat >> $CONFIG_STATUS <<\EOF
3150 chmod +x $CONFIG_STATUS
3151 rm -fr confdefs* $ac_clean_files
3152 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3154 if test "$no_recursion" != yes; then
3156 # Remove --cache-file and --srcdir arguments so they do not pile up.
3157 ac_sub_configure_args=
3159 for ac_arg in $ac_configure_args; do
3160 if test -n "$ac_prev"; then
3165 -cache-file | --cache-file | --cache-fil | --cache-fi \
3166 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3167 ac_prev=cache_file ;;
3168 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3169 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3171 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3173 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3175 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3179 for ac_config_dir in $add_ons; do
3181 # Do not complain, so a configure script can configure whichever
3182 # parts of a large source tree are present.
3183 if test ! -d $srcdir/$ac_config_dir; then
3187 echo configuring in $ac_config_dir
3192 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3194 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3202 # A "../" for each directory in /$ac_config_dir.
3203 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3206 .) # No --srcdir option. We are building in place.
3207 ac_sub_srcdir=$srcdir ;;
3208 /*) # Absolute path.
3209 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3211 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3214 # Check for guested configure; otherwise get Cygnus style configure.
3215 if test -f $ac_sub_srcdir/configure; then
3216 ac_sub_configure=$ac_sub_srcdir/configure
3217 elif test -f $ac_sub_srcdir/configure.in; then
3218 ac_sub_configure=$ac_configure
3220 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3224 # The recursion is here.
3225 if test -n "$ac_sub_configure"; then
3227 # Make the cache file name correct relative to the subdirectory.
3228 case "$cache_file" in
3229 /*) ac_sub_cache_file=$cache_file ;;
3231 ac_sub_cache_file="$ac_dots$cache_file" ;;
3233 case "$ac_given_INSTALL" in
3234 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3235 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3238 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3239 # The eval makes quoting arguments work.
3240 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3243 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }