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 --with-headers=PATH location of system headers to use
39 [e.g. /usr/src/linux/include]
40 [default=compiler default]"
42 --enable-libio build in GNU libio instead of GNU stdio"
44 --disable-sanity-checks really do not use threads (should not be used
45 except in special situations) [default=yes]"
47 --enable-static build static library [default=yes]"
49 --enable-shared build shared library [default=yes if GNU ld & ELF]"
51 --enable-profile build profiled library [default=yes]"
53 --enable-omitfp build undebuggable optimized library [default=no]"
55 --enable-bounded build with runtime bounds checking [default=no]"
57 --disable-versioning do not include versioning information in the
58 library objects [default=yes if supported]"
60 --enable-add-ons[=DIR1,DIR2]...
61 configure and build add-ons in DIR1,DIR2,...
62 search for add-ons if no parameter given"
64 --enable-static-nss build static NSS modules [default=no]"
66 --disable-force-install don't force installation of files from this package,
67 even if they are older than the installed files"
69 --disable-stack-frame on some machines this omits some pieces of code
70 which could help to find error easier"
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
76 cache_file=./config.cache
85 program_transform_name=s,x,x,
93 bindir='${exec_prefix}/bin'
94 sbindir='${exec_prefix}/sbin'
95 libexecdir='${exec_prefix}/libexec'
96 datadir='${prefix}/share'
97 sysconfdir='${prefix}/etc'
98 sharedstatedir='${prefix}/com'
99 localstatedir='${prefix}/var'
100 libdir='${exec_prefix}/lib'
101 includedir='${prefix}/include'
102 oldincludedir='/usr/include'
103 infodir='${prefix}/info'
104 mandir='${prefix}/man'
106 # Initialize some other variables.
109 # Maximum number of lines to put in a shell here document.
116 # If the previous option needs an argument, assign it.
117 if test -n "$ac_prev"; then
118 eval "$ac_prev=\$ac_option"
124 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
128 # Accept the important Cygnus configure options, so we can diagnose typos.
132 -bindir | --bindir | --bindi | --bind | --bin | --bi)
134 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
135 bindir="$ac_optarg" ;;
137 -build | --build | --buil | --bui | --bu)
139 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
140 build="$ac_optarg" ;;
142 -cache-file | --cache-file | --cache-fil | --cache-fi \
143 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
144 ac_prev=cache_file ;;
145 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
146 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
147 cache_file="$ac_optarg" ;;
149 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
151 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
153 datadir="$ac_optarg" ;;
155 -disable-* | --disable-*)
156 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
157 # Reject names that are not valid shell variable names.
158 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
159 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
162 eval "enable_${ac_feature}=no" ;;
164 -enable-* | --enable-*)
165 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
166 # Reject names that are not valid shell variable names.
167 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
168 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
175 eval "enable_${ac_feature}='$ac_optarg'" ;;
177 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
178 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
179 | --exec | --exe | --ex)
180 ac_prev=exec_prefix ;;
181 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
182 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
183 | --exec=* | --exe=* | --ex=*)
184 exec_prefix="$ac_optarg" ;;
186 -gas | --gas | --ga | --g)
187 # Obsolete; use --with-gas.
190 -help | --help | --hel | --he)
191 # Omit some internal or obsolete options to make the list less imposing.
192 # This message is too long to be a string in the A/UX 3.1 sh.
194 Usage: configure [options] [host]
195 Options: [defaults in brackets after descriptions]
197 --cache-file=FILE cache test results in FILE
198 --help print this message
199 --no-create do not create output files
200 --quiet, --silent do not print \`checking...' messages
201 --version print the version of autoconf that created configure
202 Directory and file names:
203 --prefix=PREFIX install architecture-independent files in PREFIX
205 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
207 --bindir=DIR user executables in DIR [EPREFIX/bin]
208 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
209 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
210 --datadir=DIR read-only architecture-independent data in DIR
212 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
213 --sharedstatedir=DIR modifiable architecture-independent data in DIR
215 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
216 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
217 --includedir=DIR C header files in DIR [PREFIX/include]
218 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
219 --infodir=DIR info documentation in DIR [PREFIX/info]
220 --mandir=DIR man documentation in DIR [PREFIX/man]
221 --srcdir=DIR find the sources in DIR [configure dir or ..]
222 --program-prefix=PREFIX prepend PREFIX to installed program names
223 --program-suffix=SUFFIX append SUFFIX to installed program names
224 --program-transform-name=PROGRAM
225 run sed PROGRAM on installed program names
229 --build=BUILD configure for building on BUILD [BUILD=HOST]
230 --host=HOST configure for HOST [guessed]
231 --target=TARGET configure for TARGET [TARGET=HOST]
232 Features and packages:
233 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
234 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
235 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
236 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
237 --x-includes=DIR X include files are in DIR
238 --x-libraries=DIR X library files are in DIR
240 if test -n "$ac_help"; then
241 echo "--enable and --with options recognized:$ac_help"
245 -host | --host | --hos | --ho)
247 -host=* | --host=* | --hos=* | --ho=*)
250 -includedir | --includedir | --includedi | --included | --include \
251 | --includ | --inclu | --incl | --inc)
252 ac_prev=includedir ;;
253 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
254 | --includ=* | --inclu=* | --incl=* | --inc=*)
255 includedir="$ac_optarg" ;;
257 -infodir | --infodir | --infodi | --infod | --info | --inf)
259 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
260 infodir="$ac_optarg" ;;
262 -libdir | --libdir | --libdi | --libd)
264 -libdir=* | --libdir=* | --libdi=* | --libd=*)
265 libdir="$ac_optarg" ;;
267 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
268 | --libexe | --libex | --libe)
269 ac_prev=libexecdir ;;
270 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
271 | --libexe=* | --libex=* | --libe=*)
272 libexecdir="$ac_optarg" ;;
274 -localstatedir | --localstatedir | --localstatedi | --localstated \
275 | --localstate | --localstat | --localsta | --localst \
276 | --locals | --local | --loca | --loc | --lo)
277 ac_prev=localstatedir ;;
278 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
279 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
280 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
281 localstatedir="$ac_optarg" ;;
283 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
286 mandir="$ac_optarg" ;;
289 # Obsolete; use --without-fp.
292 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
296 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
297 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
300 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
301 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
302 | --oldin | --oldi | --old | --ol | --o)
303 ac_prev=oldincludedir ;;
304 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
305 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
306 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
307 oldincludedir="$ac_optarg" ;;
309 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
312 prefix="$ac_optarg" ;;
314 -program-prefix | --program-prefix | --program-prefi | --program-pref \
315 | --program-pre | --program-pr | --program-p)
316 ac_prev=program_prefix ;;
317 -program-prefix=* | --program-prefix=* | --program-prefi=* \
318 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
319 program_prefix="$ac_optarg" ;;
321 -program-suffix | --program-suffix | --program-suffi | --program-suff \
322 | --program-suf | --program-su | --program-s)
323 ac_prev=program_suffix ;;
324 -program-suffix=* | --program-suffix=* | --program-suffi=* \
325 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
326 program_suffix="$ac_optarg" ;;
328 -program-transform-name | --program-transform-name \
329 | --program-transform-nam | --program-transform-na \
330 | --program-transform-n | --program-transform- \
331 | --program-transform | --program-transfor \
332 | --program-transfo | --program-transf \
333 | --program-trans | --program-tran \
334 | --progr-tra | --program-tr | --program-t)
335 ac_prev=program_transform_name ;;
336 -program-transform-name=* | --program-transform-name=* \
337 | --program-transform-nam=* | --program-transform-na=* \
338 | --program-transform-n=* | --program-transform-=* \
339 | --program-transform=* | --program-transfor=* \
340 | --program-transfo=* | --program-transf=* \
341 | --program-trans=* | --program-tran=* \
342 | --progr-tra=* | --program-tr=* | --program-t=*)
343 program_transform_name="$ac_optarg" ;;
345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
346 | -silent | --silent | --silen | --sile | --sil)
349 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353 sbindir="$ac_optarg" ;;
355 -sharedstatedir | --sharedstatedir | --sharedstatedi \
356 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
357 | --sharedst | --shareds | --shared | --share | --shar \
359 ac_prev=sharedstatedir ;;
360 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
361 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
362 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364 sharedstatedir="$ac_optarg" ;;
366 -site | --site | --sit)
368 -site=* | --site=* | --sit=*)
371 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
374 srcdir="$ac_optarg" ;;
376 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
377 | --syscon | --sysco | --sysc | --sys | --sy)
378 ac_prev=sysconfdir ;;
379 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
380 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
381 sysconfdir="$ac_optarg" ;;
383 -target | --target | --targe | --targ | --tar | --ta | --t)
385 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
386 target="$ac_optarg" ;;
388 -v | -verbose | --verbose | --verbos | --verbo | --verb)
391 -version | --version | --versio | --versi | --vers)
392 echo "configure generated by autoconf version 2.12"
396 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
397 # Reject names that are not valid shell variable names.
398 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
399 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401 ac_package=`echo $ac_package| sed 's/-/_/g'`
406 eval "with_${ac_package}='$ac_optarg'" ;;
408 -without-* | --without-*)
409 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
410 # Reject names that are not valid shell variable names.
411 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
412 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414 ac_package=`echo $ac_package| sed 's/-/_/g'`
415 eval "with_${ac_package}=no" ;;
418 # Obsolete; use --with-x.
421 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
422 | --x-incl | --x-inc | --x-in | --x-i)
423 ac_prev=x_includes ;;
424 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
425 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
426 x_includes="$ac_optarg" ;;
428 -x-libraries | --x-libraries | --x-librarie | --x-librari \
429 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
430 ac_prev=x_libraries ;;
431 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
432 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
433 x_libraries="$ac_optarg" ;;
435 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
439 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
440 echo "configure: warning: $ac_option: invalid host type" 1>&2
442 if test "x$nonopt" != xNONE; then
443 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
451 if test -n "$ac_prev"; then
452 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
455 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
457 # File descriptor usage:
460 # 2 errors and warnings
461 # 3 some systems may open it to /dev/tty
462 # 4 used on the Kubota Titan
463 # 6 checking for... messages and results
464 # 5 compiler messages saved in config.log
465 if test "$silent" = yes; then
473 This file contains any messages produced by compilers while
474 running configure, to aid debugging if configure makes a mistake.
477 # Strip out --no-create and --no-recursion so they do not pile up.
478 # Also quote any args containing shell metacharacters.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c) ;;
485 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
486 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
487 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
488 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
489 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
494 # Only set these to C if already set. These must not be set unconditionally
495 # because not all systems understand e.g. LANG=C (notably SCO).
496 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
497 # Non-C LC_CTYPE values break the ctype check.
498 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
499 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
500 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
501 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
503 # confdefs.h avoids OS command line length limits that DEFS can exceed.
504 rm -rf conftest* confdefs.h
505 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
508 # A filename unique to this package, relative to the directory that
509 # configure is in, which we can look for to find out if srcdir is correct.
510 ac_unique_file=include/features.h
512 # Find the source files, if location was not specified.
513 if test -z "$srcdir"; then
514 ac_srcdir_defaulted=yes
515 # Try the directory containing this script, then its parent.
517 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
518 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 if test ! -r $srcdir/$ac_unique_file; then
524 ac_srcdir_defaulted=no
526 if test ! -r $srcdir/$ac_unique_file; then
527 if test "$ac_srcdir_defaulted" = yes; then
528 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
533 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
535 # Prefer explicitly selected file to automatically selected ones.
536 if test -z "$CONFIG_SITE"; then
537 if test "x$prefix" != xNONE; then
538 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
543 for ac_site_file in $CONFIG_SITE; do
544 if test -r "$ac_site_file"; then
545 echo "loading site script $ac_site_file"
550 if test -r "$cache_file"; then
551 echo "loading cache $cache_file"
554 echo "creating cache $cache_file"
559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
560 ac_cpp='$CPP $CPPFLAGS'
561 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
562 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
563 cross_compiling=$ac_cv_prog_cc_cross
565 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
566 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574 ac_n= ac_c='\c' ac_t=
577 if test -r /vmunix; then
578 kernel_id=`strings /vmunix | grep UNIX`
579 elif test -r /dynix; then
580 kernel_id=`strings /dynix | grep DYNIX`
588 for ac_dir in scripts $srcdir/scripts; do
589 if test -f $ac_dir/install-sh; then
591 ac_install_sh="$ac_aux_dir/install-sh -c"
593 elif test -f $ac_dir/install.sh; then
595 ac_install_sh="$ac_aux_dir/install.sh -c"
599 if test -z "$ac_aux_dir"; then
600 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
602 ac_config_guess=$ac_aux_dir/config.guess
603 ac_config_sub=$ac_aux_dir/config.sub
604 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
607 # This will get text that should go into config.make.
610 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
611 # Check whether --with-gmp or --without-gmp was given.
612 if test "${with_gmp+set}" = set; then
615 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
617 *) config_vars="$config_vars
618 gmp-srcdir = $withval" ;;
623 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
624 # Check whether --with-gettext or --without-gettext was given.
625 if test "${with_gettext+set}" = set; then
626 withval="$with_gettext"
627 case "$with_gettext" in
629 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
632 config_vars="$config_vars
633 gettext-srcdir = $withval" ;;
639 # Check whether --with-fp or --without-fp was given.
640 if test "${with_fp+set}" = set; then
647 # Check whether --with-binutils or --without-binutils was given.
648 if test "${with_binutils+set}" = set; then
649 withval="$with_binutils"
650 path_binutils=$withval
655 # Check whether --with-elf or --without-elf was given.
656 if test "${with_elf+set}" = set; then
663 # Check whether --with-cvs or --without-cvs was given.
664 if test "${with_cvs+set}" = set; then
673 # Check whether --with-headers or --without-headers was given.
674 if test "${with_headers+set}" = set; then
675 withval="$with_headers"
682 # Check whether --enable-libio or --disable-libio was given.
683 if test "${enable_libio+set}" = set; then
684 enableval="$enable_libio"
685 if test $enableval = yes; then
695 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
696 if test "${enable_sanity_checks+set}" = set; then
697 enableval="$enable_sanity_checks"
698 enable_sanity=$enableval
704 # Check whether --enable-static or --disable-static was given.
705 if test "${enable_static+set}" = set; then
706 enableval="$enable_static"
712 # Check whether --enable-shared or --disable-shared was given.
713 if test "${enable_shared+set}" = set; then
714 enableval="$enable_shared"
720 # Check whether --enable-profile or --disable-profile was given.
721 if test "${enable_profile+set}" = set; then
722 enableval="$enable_profile"
728 # Check whether --enable-omitfp or --disable-omitfp was given.
729 if test "${enable_omitfp+set}" = set; then
730 enableval="$enable_omitfp"
736 # Check whether --enable-bounded or --disable-bounded was given.
737 if test "${enable_bounded+set}" = set; then
738 enableval="$enable_bounded"
744 # Check whether --enable-versioning or --disable-versioning was given.
745 if test "${enable_versioning+set}" = set; then
746 enableval="$enable_versioning"
747 enable_versioning=$enableval
749 enable_versioning=yes
753 # Check whether --enable-add-ons or --disable-add-ons was given.
754 if test "${enable_add_ons+set}" = set; then
755 enableval="$enable_add_ons"
757 yes) if test "$srcdir" = "."; then
758 add_ons=`echo */configure | sed -e 's!/configure!!g'`
760 add_ons=`echo $srcdir/*/configure | \
761 sed -e 's!/configure!!g' -e "s!$srcdir/!!g"`
763 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
773 if test x"$add_ons" != x; then
774 for f in $add_ons; do
775 # Test whether such a subdir really exists.
776 if test -d $srcdir/$f; then
777 add_ons_pfx="$add_ons_pfx $f/"
779 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
784 # Check whether --enable-static-nss or --disable-static-nss was given.
785 if test "${enable_static_nss+set}" = set; then
786 enableval="$enable_static_nss"
787 static_nss=$enableval
792 if test x"$static_nss" = xyes; then
793 cat >> confdefs.h <<\EOF
794 #define DO_STATIC_NSS 1
799 # Check whether --enable-force-install or --disable-force-install was given.
800 if test "${enable_force_install+set}" = set; then
801 enableval="$enable_force_install"
802 force_install=$enableval
809 # Check whether --enable-stack-frame or --disable-stack-frame was given.
810 if test "${enable_stack_frame+set}" = set; then
811 enableval="$enable_stack_frame"
812 stack_frame=$enableval
817 if test x"$stack_frame" = xyes; then
818 cat >> confdefs.h <<\EOF
819 #define GENERATE_STACK_FRAMES 1
825 # Make sure we can run config.sub.
826 if $ac_config_sub sun4 >/dev/null 2>&1; then :
827 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
830 echo $ac_n "checking host system type""... $ac_c" 1>&6
831 echo "configure:832: checking host system type" >&5
834 case "$host_alias" in
838 if host_alias=`$ac_config_guess`; then :
839 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
841 *) host_alias=$nonopt ;;
845 host=`$ac_config_sub $host_alias`
846 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
847 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
848 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
849 echo "$ac_t""$host" 1>&6
852 # The way shlib-versions is used to generate soversions.mk uses a
853 # fairly simplistic model for name recognition that can't distinguish
854 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
855 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
856 # tell. This doesn't get used much beyond that, so it's fairly safe.
861 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
866 ### I put this here to prevent those annoying emails from people who cannot
867 ### read and try to compile glibc on unsupported platforms. --drepper
869 ### By using the undocumented --enable-hacker-mode option for configure
870 ### one can skip this test to make the configuration not fail for unsupported
873 if test -z "$enable_hacker_mode"; then
874 case "$machine-$host_os" in
875 *-linux* | *-gnu* | arm*-none*)
878 echo "*** The GNU C library is currently not available for this platform."
879 echo "*** So far nobody cared to port it and if there is no volunteer it"
880 echo "*** might never happen. So, if you have interest to see glibc on"
881 echo "*** this platform visit"
882 echo "*** http://www.gnu.org/software/libc/porting.html"
883 echo "*** and join the group of porters"
889 # We keep the original values in `$config_*' and never modify them, so we
890 # can write them unchanged into config.make. Everything else uses
891 # $machine, $vendor, and $os, and changes them whenever convenient.
892 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
894 # Some configurations imply other options.
896 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
897 # These systems always use GNU tools.
898 gnu_ld=yes gnu_as=yes ;;
901 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
902 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
904 gnu* | linux* | sysv4* | solaris2* | irix6*)
905 # These systems (almost) always use the ELF format.
910 machine=$config_machine
911 vendor=$config_vendor
914 # Expand the configuration machine name into a subdirectory by architecture
915 # type and particular chip.
917 a29k | am29000) base_machine=a29k machine=a29k ;;
918 alpha*) base_machine=alpha machine=alpha/$machine ;;
919 arm*) base_machine=arm machine=arm/$machine ;;
920 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
921 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
922 hppa*) base_machine=hppa machine=hppa/$machine ;;
923 i[3456]86) base_machine=i386 machine=i386/$machine ;;
924 m680?0) base_machine=m68k machine=m68k/$machine ;;
925 m68k) base_machine=m68k machine=m68k/m68020 ;;
926 m88???) base_machine=m88k machine=m88k/$machine ;;
927 m88k) base_machine=m88k machine=m88k/m88100 ;;
928 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
929 mips*) base_machine=mips
931 IP22) machine=mips/mips3 ;;
932 *) machine=mips/$machine ,,
935 base_machine=sparc machine=sparc/sparc32 ;;
936 sparcv8 | supersparc | hypersparc)
937 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
938 sparc64 | ultrasparc)
939 base_machine=sparc machine=sparc/sparc64 ;;
943 if test "$base_machine" = "i386"; then
944 cat >> confdefs.h <<\EOF
945 #define USE_REGPARMS 1
950 # Compute the list of sysdep directories for this configuration.
951 # This can take a while to compute.
952 sysdep_dir=$srcdir/sysdeps
953 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
954 echo "configure:955: checking sysdep dirs" >&5
955 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
956 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
961 netbsd* | 386bsd* | freebsd* | bsdi*)
962 base_os=unix/bsd/bsd4.4 ;;
963 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
965 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
968 base_os=unix/sysv/irix6/$os ;;
970 base_os=unix/sysv/sysv4 ;;
972 base_os=standalone ;;
977 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
980 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
984 o=`echo $tail | sed 's/[0-9]*$//'`
985 if test $o != $tail; then
988 # For linux-gnu, try linux-gnu, then linux.
989 o=`echo $tail | sed 's/-.*$//'`
990 if test $o != $tail; then
994 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
997 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1003 # For sparc/sparc9, try sparc/sparc9 and then sparc.
1006 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1008 # Prepend the machine's FPU directory unless --without-fp.
1009 if test "$with_fp" = yes; then
1010 mach="$mach /$1/fpu"
1017 # Find what sysdep directories exist.
1019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1020 for d in $add_ons_pfx ''; do
1021 for b in $base ''; do
1022 for m0 in $mach ''; do
1023 for v in /$vendor ''; do
1024 test "$v" = / && continue
1025 for o in /$ostry ''; do
1026 test "$o" = / && continue
1027 for m in $mach ''; do
1028 if test "$m0$b$v$o$m"; then
1029 try="${d}sysdeps$m0$b$v$o$m"
1030 test -n "$enable_debug_configure" &&
1031 echo "$0 DEBUG: try $try" >&2
1034 *) dest=$srcdir/$try ;;
1036 if test -d $dest; then
1037 sysnames="$sysnames $try"
1038 { test -n "$o" || test -n "$b"; } && os_used=t
1039 { test -n "$m" || test -n "$m0"; } && machine_used=t
1050 if test -z "$os_used" && test "$os" != none; then
1051 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1053 if test -z "$machine_used" && test "$machine" != none; then
1054 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1057 # We have now validated the configuration.
1060 # If using ELF, look for an `elf' subdirectory of each machine directory.
1061 # We prepend these rather than inserting them whereever the machine appears
1062 # because things specified by the machine's ELF ABI should override
1063 # OS-specific things, and should always be the same for any OS on the
1064 # machine (otherwise what's the point of an ABI?).
1065 if test "$elf" = yes; then
1067 for d in $add_ons_pfx ''; do
1070 *) xsrcdir=$srcdir/ ;;
1073 if test -d $xsrcdir${d}sysdeps$m/elf; then
1074 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1078 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1082 # Expand the list of system names into a full list of directories
1083 # from each element's parent name and Implies file (if present).
1086 while test $# -gt 0; do
1090 case " $names " in *" $name "*)
1091 # Already in the list.
1095 # Report each name as we discover it, so there is no long pause in output.
1096 echo $ac_n "$name $ac_c" >&6
1098 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1102 *) xsrcdir=$srcdir/ ;;
1104 test -n "$enable_debug_configure" &&
1105 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1107 if test -f $xsrcdir$name/Implies; then
1108 # Collect more names from the `Implies' file (removing comments).
1109 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1111 for x in $implied_candidate; do
1112 if test -d $xsrcdir$name_base/$x; then
1113 implied="$implied $name_base/$x";
1115 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1122 # Add NAME to the list of names.
1123 names="$names $name"
1125 # Find the parent of NAME, using the empty string if it has none.
1126 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1128 # Add the names implied by NAME, and NAME's parent (if it has one), to
1129 # the list of names to be processed (the argument list). We prepend the
1130 # implied names to the list and append the parent. We want implied
1131 # directories to come before further directories inferred from the
1132 # configuration components; this ensures that for sysv4, unix/common
1133 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1135 sysnames="`echo $implied $* $parent`"
1136 test -n "$sysnames" && set $sysnames
1139 # Add the default directories.
1140 default_sysnames=sysdeps/generic
1141 if test "$elf" = yes; then
1142 default_sysnames="sysdeps/generic/elf $default_sysnames"
1144 sysnames="$names $default_sysnames"
1146 # The other names were emitted during the scan.
1147 echo "$ac_t""$default_sysnames" 1>&6
1152 # Find a good install program. We prefer a C program (faster),
1153 # so one script is as good as another. But avoid the broken or
1154 # incompatible versions:
1155 # SysV /etc/install, /usr/sbin/install
1156 # SunOS /usr/etc/install
1157 # IRIX /sbin/install
1159 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1160 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1161 # ./install, which can be erroneously created by make from ./install.sh.
1162 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1163 echo "configure:1164: checking for a BSD compatible install" >&5
1164 if test -z "$INSTALL"; then
1165 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1168 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1169 for ac_dir in $PATH; do
1170 # Account for people who put trailing slashes in PATH elements.
1172 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1174 # OSF1 and SCO ODT 3.0 have their own names for install.
1175 for ac_prog in ginstall installbsd scoinst install; do
1176 if test -f $ac_dir/$ac_prog; then
1177 if test $ac_prog = install &&
1178 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1179 # AIX install. It has an incompatible calling convention.
1180 # OSF/1 installbsd also uses dspmsg, but is usable.
1183 ac_cv_path_install="$ac_dir/$ac_prog -c"
1194 if test "${ac_cv_path_install+set}" = set; then
1195 INSTALL="$ac_cv_path_install"
1197 # As a last resort, use the slow shell script. We don't cache a
1198 # path for INSTALL within a source directory, because that will
1199 # break other packages using the cache if that directory is
1200 # removed, or if the path is relative.
1201 INSTALL="$ac_install_sh"
1204 echo "$ac_t""$INSTALL" 1>&6
1206 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1207 # It thinks the first close brace ends the variable substitution.
1208 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1210 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1212 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1213 # The makefiles need to use a different form to find it in $srcdir.
1214 INSTALL='\$(..)./install-sh -c'
1216 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1217 echo "configure:1218: checking whether ln -s works" >&5
1218 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1222 if ln -s X conftestdata 2>/dev/null
1225 ac_cv_prog_LN_S="ln -s"
1230 LN_S="$ac_cv_prog_LN_S"
1231 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1232 echo "$ac_t""yes" 1>&6
1234 echo "$ac_t""no" 1>&6
1238 # These programs are version sensitive.
1239 echo $ac_n "checking build system type""... $ac_c" 1>&6
1240 echo "configure:1241: checking build system type" >&5
1243 case "$build_alias" in
1246 NONE) build_alias=$host_alias ;;
1247 *) build_alias=$nonopt ;;
1251 build=`$ac_config_sub $build_alias`
1252 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1253 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1254 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1255 echo "$ac_t""$build" 1>&6
1257 if test $host != $build; then
1258 ac_tool_prefix=${host_alias}-
1263 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
1265 # Extract the first word of "$ac_prog", so it can be a program name with args.
1266 set dummy $ac_prog; ac_word=$2
1267 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1268 echo "configure:1269: checking for $ac_word" >&5
1269 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1272 if test -n "$CC"; then
1273 ac_cv_prog_CC="$CC" # Let the user override the test.
1275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1276 for ac_dir in $PATH; do
1277 test -z "$ac_dir" && ac_dir=.
1278 if test -f $ac_dir/$ac_word; then
1279 ac_cv_prog_CC="$ac_prog"
1287 if test -n "$CC"; then
1288 echo "$ac_t""$CC" 1>&6
1290 echo "$ac_t""no" 1>&6
1293 test -n "$CC" && break
1296 if test -z "$CC"; then
1299 # Found it, now check the version.
1300 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1301 echo "configure:1302: checking version of $CC" >&5
1302 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcst0-9.-]*\).*$/\1/p'`
1303 case $ac_prog_version in
1304 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1305 egcs-2.9[1-9].*|egcs-2.90.2[789]|egcs-2.90.[3-9][0-9]|*2.8.[1-9]*|*2.9.[0-9]*)
1306 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1307 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1310 echo "$ac_t""$ac_prog_version" 1>&6
1312 if test $ac_verc_fail = yes; then
1316 for ac_prog in make gmake
1318 # Extract the first word of "$ac_prog", so it can be a program name with args.
1319 set dummy $ac_prog; ac_word=$2
1320 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1321 echo "configure:1322: checking for $ac_word" >&5
1322 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1323 echo $ac_n "(cached) $ac_c" 1>&6
1325 if test -n "$MAKE"; then
1326 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1329 for ac_dir in $PATH; do
1330 test -z "$ac_dir" && ac_dir=.
1331 if test -f $ac_dir/$ac_word; then
1332 ac_cv_prog_MAKE="$ac_prog"
1339 MAKE="$ac_cv_prog_MAKE"
1340 if test -n "$MAKE"; then
1341 echo "$ac_t""$MAKE" 1>&6
1343 echo "$ac_t""no" 1>&6
1346 test -n "$MAKE" && break
1349 if test -z "$MAKE"; then
1352 # Found it, now check the version.
1353 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1354 echo "configure:1355: checking version of $MAKE" >&5
1355 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*version \([0-9][0-9.]*\), by.*$/\1/p'`
1356 case $ac_prog_version in
1357 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1358 3.75 | 3.76.[1-9]* | 3.7[789]* | 3.[89]*)
1359 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1360 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1363 echo "$ac_t""$ac_prog_version" 1>&6
1365 if test $ac_verc_fail = yes; then
1370 for ac_prog in msgfmt gmsgfmt
1372 # Extract the first word of "$ac_prog", so it can be a program name with args.
1373 set dummy $ac_prog; ac_word=$2
1374 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1375 echo "configure:1376: checking for $ac_word" >&5
1376 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1379 if test -n "$MSGFMT"; then
1380 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1383 for ac_dir in $PATH; do
1384 test -z "$ac_dir" && ac_dir=.
1385 if test -f $ac_dir/$ac_word; then
1386 ac_cv_prog_MSGFMT="$ac_prog"
1393 MSGFMT="$ac_cv_prog_MSGFMT"
1394 if test -n "$MSGFMT"; then
1395 echo "$ac_t""$MSGFMT" 1>&6
1397 echo "$ac_t""no" 1>&6
1400 test -n "$MSGFMT" && break
1403 if test -z "$MSGFMT"; then
1406 # Found it, now check the version.
1407 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1408 echo "configure:1409: checking version of $MSGFMT" >&5
1409 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.*\([0-9][0-9]*\.[0-9]*\).*$/\1/p'`
1410 case $ac_prog_version in
1411 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1412 0.[1-9][0-9] | [1-9].*)
1413 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1414 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1417 echo "$ac_t""$ac_prog_version" 1>&6
1419 if test $ac_verc_fail = yes; then
1420 MSGFMT=: aux_missing=t
1423 for ac_prog in makeinfo
1425 # Extract the first word of "$ac_prog", so it can be a program name with args.
1426 set dummy $ac_prog; ac_word=$2
1427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1428 echo "configure:1429: checking for $ac_word" >&5
1429 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1432 if test -n "$MAKEINFO"; then
1433 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1435 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1436 for ac_dir in $PATH; do
1437 test -z "$ac_dir" && ac_dir=.
1438 if test -f $ac_dir/$ac_word; then
1439 ac_cv_prog_MAKEINFO="$ac_prog"
1446 MAKEINFO="$ac_cv_prog_MAKEINFO"
1447 if test -n "$MAKEINFO"; then
1448 echo "$ac_t""$MAKEINFO" 1>&6
1450 echo "$ac_t""no" 1>&6
1453 test -n "$MAKEINFO" && break
1456 if test -z "$MAKEINFO"; then
1459 # Found it, now check the version.
1460 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1461 echo "configure:1462: checking version of $MAKEINFO" >&5
1462 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo \([0-9][0-9.]*\).*$/\1/p'`
1463 case $ac_prog_version in
1464 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1465 3.1[1-9] | 3.[2-9][0-9])
1466 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1467 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1470 echo "$ac_t""$ac_prog_version" 1>&6
1472 if test $ac_verc_fail = yes; then
1473 MAKEINFO=: aux_missing=t
1477 if test -n "$critic_missing"; then
1478 { echo "configure: error:
1479 *** Some critical program is missing or too old.
1480 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1483 test -n "$aux_missing" && echo "configure: warning:
1484 *** An auxiliary program is missing or too old;
1485 *** some features will be disabled.
1486 *** Check the INSTALL file for required versions." 1>&2
1489 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1490 echo "configure:1491: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1491 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1496 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1497 ac_cpp='$CPP $CPPFLAGS'
1498 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1499 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1500 cross_compiling=$ac_cv_prog_cc_cross
1502 cat > conftest.$ac_ext <<EOF
1503 #line 1504 "configure"
1504 #include "confdefs.h"
1507 if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1508 ac_cv_prog_cc_works=yes
1509 # If we can't run a trivial program, we are probably using a cross compiler.
1510 if (./conftest; exit) 2>/dev/null; then
1511 ac_cv_prog_cc_cross=no
1513 ac_cv_prog_cc_cross=yes
1516 echo "configure: failed program was:" >&5
1517 cat conftest.$ac_ext >&5
1518 ac_cv_prog_cc_works=no
1524 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1525 if test $ac_cv_prog_cc_works = no; then
1527 ac_cv_prog_cc_cross=yes
1531 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1532 echo "configure:1533: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1533 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1534 echo $ac_n "(cached) $ac_c" 1>&6
1539 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1541 cross_compiling=$ac_cv_prog_cc_cross
1543 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1544 echo "configure:1545: checking whether we are using GNU C" >&5
1545 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1546 echo $ac_n "(cached) $ac_c" 1>&6
1548 cat > conftest.c <<EOF
1553 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1560 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1561 if test $ac_cv_prog_gcc != yes; then
1562 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1565 echo $ac_n "checking build system type""... $ac_c" 1>&6
1566 echo "configure:1567: checking build system type" >&5
1569 case "$build_alias" in
1572 NONE) build_alias=$host_alias ;;
1573 *) build_alias=$nonopt ;;
1577 build=`$ac_config_sub $build_alias`
1578 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1579 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1580 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1581 echo "$ac_t""$build" 1>&6
1583 if test $host != $build; then
1584 for ac_prog in gcc cc
1586 # Extract the first word of "$ac_prog", so it can be a program name with args.
1587 set dummy $ac_prog; ac_word=$2
1588 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1589 echo "configure:1590: checking for $ac_word" >&5
1590 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1591 echo $ac_n "(cached) $ac_c" 1>&6
1593 if test -n "$BUILD_CC"; then
1594 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1597 for ac_dir in $PATH; do
1598 test -z "$ac_dir" && ac_dir=.
1599 if test -f $ac_dir/$ac_word; then
1600 ac_cv_prog_BUILD_CC="$ac_prog"
1607 BUILD_CC="$ac_cv_prog_BUILD_CC"
1608 if test -n "$BUILD_CC"; then
1609 echo "$ac_t""$BUILD_CC" 1>&6
1611 echo "$ac_t""no" 1>&6
1614 test -n "$BUILD_CC" && break
1619 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1620 echo "configure:1621: checking how to run the C preprocessor" >&5
1621 # On Suns, sometimes $CPP names a directory.
1622 if test -n "$CPP" && test -d "$CPP"; then
1625 if test -z "$CPP"; then
1626 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1629 # This must be in double quotes, not single quotes, because CPP may get
1630 # substituted into the Makefile and "${CC-cc}" will confuse make.
1632 # On the NeXT, cc -E runs the code through the compiler's parser,
1633 # not just through cpp.
1634 cat > conftest.$ac_ext <<EOF
1635 #line 1636 "configure"
1636 #include "confdefs.h"
1640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1641 { (eval echo configure:1642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1642 ac_err=`grep -v '^ *+' conftest.out`
1643 if test -z "$ac_err"; then
1647 echo "configure: failed program was:" >&5
1648 cat conftest.$ac_ext >&5
1650 CPP="${CC-cc} -E -traditional-cpp"
1651 cat > conftest.$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1658 { (eval echo configure:1659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1659 ac_err=`grep -v '^ *+' conftest.out`
1660 if test -z "$ac_err"; then
1664 echo "configure: failed program was:" >&5
1665 cat conftest.$ac_ext >&5
1672 ac_cv_prog_CPP="$CPP"
1674 CPP="$ac_cv_prog_CPP"
1676 ac_cv_prog_CPP="$CPP"
1678 echo "$ac_t""$CPP" 1>&6
1680 # Was a --with-binutils option given?
1681 if test -n "$path_binutils"; then
1682 # Make absolute; ensure a single trailing slash.
1683 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1684 CC="$CC -B$path_binutils"
1686 AS=`$CC -print-prog-name=as`
1687 LD=`$CC -print-prog-name=ld`
1689 # Determine whether we are using GNU binutils.
1690 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1691 echo "configure:1692: checking whether $AS is GNU as" >&5
1692 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
1693 echo $ac_n "(cached) $ac_c" 1>&6
1695 # Most GNU programs take a -v and spit out some text including
1696 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1697 if $AS -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1698 libc_cv_prog_as_gnu=yes
1700 libc_cv_prog_as_gnu=no
1704 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1706 gnu_as=$libc_cv_prog_as_gnu
1708 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1709 echo "configure:1710: checking whether $LD is GNU ld" >&5
1710 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
1711 echo $ac_n "(cached) $ac_c" 1>&6
1713 # Most GNU programs take a -v and spit out some text including
1714 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1715 if $LD -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1716 libc_cv_prog_ld_gnu=yes
1718 libc_cv_prog_ld_gnu=no
1722 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1723 gnu_ld=$libc_cv_prog_ld_gnu
1725 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1726 set dummy ${ac_tool_prefix}ar; ac_word=$2
1727 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1728 echo "configure:1729: checking for $ac_word" >&5
1729 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1730 echo $ac_n "(cached) $ac_c" 1>&6
1732 if test -n "$AR"; then
1733 ac_cv_prog_AR="$AR" # Let the user override the test.
1735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1736 for ac_dir in $PATH; do
1737 test -z "$ac_dir" && ac_dir=.
1738 if test -f $ac_dir/$ac_word; then
1739 ac_cv_prog_AR="${ac_tool_prefix}ar"
1744 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1748 if test -n "$AR"; then
1749 echo "$ac_t""$AR" 1>&6
1751 echo "$ac_t""no" 1>&6
1756 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1757 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1759 echo "configure:1760: checking for $ac_word" >&5
1760 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1763 if test -n "$RANLIB"; then
1764 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1767 for ac_dir in $PATH; do
1768 test -z "$ac_dir" && ac_dir=.
1769 if test -f $ac_dir/$ac_word; then
1770 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1777 RANLIB="$ac_cv_prog_RANLIB"
1778 if test -n "$RANLIB"; then
1779 echo "$ac_t""$RANLIB" 1>&6
1781 echo "$ac_t""no" 1>&6
1785 if test -z "$ac_cv_prog_RANLIB"; then
1786 if test -n "$ac_tool_prefix"; then
1787 # Extract the first word of "ranlib", so it can be a program name with args.
1788 set dummy ranlib; ac_word=$2
1789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1790 echo "configure:1791: checking for $ac_word" >&5
1791 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6
1794 if test -n "$RANLIB"; then
1795 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1798 for ac_dir in $PATH; do
1799 test -z "$ac_dir" && ac_dir=.
1800 if test -f $ac_dir/$ac_word; then
1801 ac_cv_prog_RANLIB="ranlib"
1806 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1809 RANLIB="$ac_cv_prog_RANLIB"
1810 if test -n "$RANLIB"; then
1811 echo "$ac_t""$RANLIB" 1>&6
1813 echo "$ac_t""no" 1>&6
1821 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
1822 set dummy ${ac_tool_prefix}mig; ac_word=$2
1823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1824 echo "configure:1825: checking for $ac_word" >&5
1825 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1828 if test -n "$MIG"; then
1829 ac_cv_prog_MIG="$MIG" # Let the user override the test.
1831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1832 for ac_dir in $PATH; do
1833 test -z "$ac_dir" && ac_dir=.
1834 if test -f $ac_dir/$ac_word; then
1835 ac_cv_prog_MIG="${ac_tool_prefix}mig"
1840 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
1843 MIG="$ac_cv_prog_MIG"
1844 if test -n "$MIG"; then
1845 echo "$ac_t""$MIG" 1>&6
1847 echo "$ac_t""no" 1>&6
1853 # if using special system headers, find out the compiler's sekrit
1854 # header directory and add that to the list. NOTE: Only does the right
1855 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
1856 if test -n "$sysheaders"; then
1857 ccheaders=`$CC -print-file-name=include`
1858 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
1862 # check if ranlib is necessary
1863 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
1864 echo "configure:1865: checking whether ranlib is necessary" >&5
1865 if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
1866 echo $ac_n "(cached) $ac_c" 1>&6
1868 cat > conftest.c <<EOF
1873 $CC $CFLAGS -c conftest.c
1874 $AR cr conftest.a conftest.c
1875 cp conftest.a conftest2.a
1877 if cmp -s conftest.a conftest2.a; then
1878 libc_cv_ranlib_necessary=no
1880 libc_cv_ranlib_necessary=yes
1885 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
1886 if test "$libc_cv_ranlib_necessary" = no; then
1890 # Test if LD_LIBRARY_PATH contains the notation for the current directory
1891 # since this would lead to problems installing/building glibc.
1892 # LD_LIBRARY_PATH contains the current directory if one of the following
1894 # - one of the terminals (":" and ";") is the first or last sign
1895 # - two terminals occur directly after each other
1896 # - the path contains an element with a dot in it
1897 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
1898 echo "configure:1899: checking LD_LIBRARY_PATH variable" >&5
1899 case ${LD_LIBRARY_PATH} in
1900 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1901 ld_library_path_setting="contains current directory"
1904 ld_library_path_setting="ok"
1907 echo "$ac_t""$ld_library_path_setting" 1>&6
1908 if test "$ld_library_path_setting" != "ok"; then
1909 { echo "configure: error:
1910 *** LD_LIBRARY_PATH shouldn't contain the current directory when
1911 *** building glibc. Please change the environment variable
1912 *** and run configure again." 1>&2; exit 1; }
1915 # Extract the first word of "bash", so it can be a program name with args.
1916 set dummy bash; ac_word=$2
1917 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1918 echo "configure:1919: checking for $ac_word" >&5
1919 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1920 echo $ac_n "(cached) $ac_c" 1>&6
1924 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1928 for ac_dir in $PATH; do
1929 test -z "$ac_dir" && ac_dir=.
1930 if test -f $ac_dir/$ac_word; then
1931 ac_cv_path_BASH="$ac_dir/$ac_word"
1936 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
1940 BASH="$ac_cv_path_BASH"
1941 if test -n "$BASH"; then
1942 echo "$ac_t""$BASH" 1>&6
1944 echo "$ac_t""no" 1>&6
1947 if test "$BASH" != no &&
1948 $BASH -c 'test "$BASH_VERSINFO" \
1949 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1950 libc_cv_have_bash2=yes
1952 libc_cv_have_bash2=no
1956 if test "$BASH" = no; then
1957 # Extract the first word of "ksh", so it can be a program name with args.
1958 set dummy ksh; ac_word=$2
1959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1960 echo "configure:1961: checking for $ac_word" >&5
1961 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1962 echo $ac_n "(cached) $ac_c" 1>&6
1966 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1970 for ac_dir in $PATH; do
1971 test -z "$ac_dir" && ac_dir=.
1972 if test -f $ac_dir/$ac_word; then
1973 ac_cv_path_KSH="$ac_dir/$ac_word"
1978 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
1982 KSH="$ac_cv_path_KSH"
1983 if test -n "$KSH"; then
1984 echo "$ac_t""$KSH" 1>&6
1986 echo "$ac_t""no" 1>&6
1989 if test "$KSH" = no; then
1992 libc_cv_have_ksh=yes
1997 libc_cv_have_ksh=yes
2001 for ac_prog in mawk gawk nawk awk
2003 # Extract the first word of "$ac_prog", so it can be a program name with args.
2004 set dummy $ac_prog; ac_word=$2
2005 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2006 echo "configure:2007: checking for $ac_word" >&5
2007 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2008 echo $ac_n "(cached) $ac_c" 1>&6
2010 if test -n "$AWK"; then
2011 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2014 for ac_dir in $PATH; do
2015 test -z "$ac_dir" && ac_dir=.
2016 if test -f $ac_dir/$ac_word; then
2017 ac_cv_prog_AWK="$ac_prog"
2024 AWK="$ac_cv_prog_AWK"
2025 if test -n "$AWK"; then
2026 echo "$ac_t""$AWK" 1>&6
2028 echo "$ac_t""no" 1>&6
2031 test -n "$AWK" && break
2036 # Extract the first word of "$ac_prog", so it can be a program name with args.
2037 set dummy $ac_prog; ac_word=$2
2038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2039 echo "configure:2040: checking for $ac_word" >&5
2040 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2041 echo $ac_n "(cached) $ac_c" 1>&6
2045 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2049 for ac_dir in $PATH; do
2050 test -z "$ac_dir" && ac_dir=.
2051 if test -f $ac_dir/$ac_word; then
2052 ac_cv_path_PERL="$ac_dir/$ac_word"
2060 PERL="$ac_cv_path_PERL"
2061 if test -n "$PERL"; then
2062 echo "$ac_t""$PERL" 1>&6
2064 echo "$ac_t""no" 1>&6
2067 test -n "$PERL" && break
2069 test -n "$PERL" || PERL="no"
2073 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2074 echo "configure:2075: checking for signed size_t type" >&5
2075 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2078 echo '#include <stddef.h>
2079 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2080 if eval "$ac_cpp conftest.c 2>/dev/null" \
2081 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
2082 libc_cv_signed_size_t=no
2084 libc_cv_signed_size_t=yes
2089 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2090 if test $libc_cv_signed_size_t = yes; then
2091 cat >> confdefs.h <<\EOF
2092 #undef __SIZE_TYPE__
2093 #define __SIZE_TYPE__ unsigned
2097 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2098 echo "configure:2099: checking for libc-friendly stddef.h" >&5
2099 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2100 echo $ac_n "(cached) $ac_c" 1>&6
2102 cat > conftest.$ac_ext <<EOF
2103 #line 2104 "configure"
2104 #include "confdefs.h"
2105 #define __need_size_t
2106 #define __need_wchar_t
2111 size_t size; wchar_t wchar;
2113 #error stddef.h ignored __need_*
2115 if (&size == NULL || &wchar == NULL) abort ();
2118 if { (eval echo configure:2119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2120 libc_cv_friendly_stddef=yes
2122 echo "configure: failed program was:" >&5
2123 cat conftest.$ac_ext >&5
2125 libc_cv_friendly_stddef=no
2130 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2131 if test $libc_cv_friendly_stddef = yes; then
2132 config_vars="$config_vars
2133 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2136 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2137 echo "configure:2138: checking whether we need to use -P to assemble .S files" >&5
2138 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2141 cat > conftest.S <<EOF
2142 #include "confdefs.h"
2143 /* Nothing whatsoever. */
2145 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
2146 libc_cv_need_minus_P=no
2148 libc_cv_need_minus_P=yes
2153 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2154 if test $libc_cv_need_minus_P = yes; then
2155 config_vars="$config_vars
2156 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2159 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2160 echo "configure:2161: checking for assembler global-symbol directive" >&5
2161 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2164 libc_cv_asm_global_directive=UNKNOWN
2165 for ac_globl in .globl .global; do
2166 cat > conftest.s <<EOF
2171 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2172 libc_cv_asm_global_directive=${ac_globl}
2175 test $libc_cv_asm_global_directive != UNKNOWN && break
2179 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2180 if test $libc_cv_asm_global_directive = UNKNOWN; then
2181 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2183 cat >> confdefs.h <<EOF
2184 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2189 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2190 echo "configure:2191: checking for .set assembler directive" >&5
2191 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2192 echo $ac_n "(cached) $ac_c" 1>&6
2194 cat > conftest.s <<EOF
2197 .set glibc_conftest_frobozz,foo
2198 $libc_cv_asm_global_directive glibc_conftest_frobozz
2200 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2201 # (but it doesn't work), so we must do a linking check to be sure.
2202 cat > conftest1.c <<\EOF
2203 extern int glibc_conftest_frobozz;
2204 main () { printf ("%d\n", glibc_conftest_frobozz); }
2206 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2207 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2208 libc_cv_asm_set_directive=yes
2210 libc_cv_asm_set_directive=no
2215 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2216 if test $libc_cv_asm_set_directive = yes; then
2217 cat >> confdefs.h <<\EOF
2218 #define HAVE_ASM_SET_DIRECTIVE 1
2223 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2224 echo "configure:2225: checking for .symver assembler directive" >&5
2225 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2228 cat > conftest.s <<EOF
2231 .symver _sym,sym@VERS
2233 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2234 libc_cv_asm_symver_directive=yes
2236 libc_cv_asm_symver_directive=no
2241 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2242 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2243 echo "configure:2244: checking for ld --version-script" >&5
2244 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2247 if test $libc_cv_asm_symver_directive = yes; then
2248 cat > conftest.s <<EOF
2251 .symver _sym,sym@VERS
2253 cat > conftest.map <<EOF
2262 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2263 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2264 -nostartfiles -nostdlib
2265 -Wl,--version-script,conftest.map
2266 1>&5'; { (eval echo configure:2267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2268 libc_cv_ld_version_script_option=yes
2270 libc_cv_ld_version_script_option=no
2273 libc_cv_ld_version_script_option=no
2276 libc_cv_ld_version_script_option=no
2281 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2282 if test $libc_cv_asm_symver_directive = yes &&
2283 test $libc_cv_ld_version_script_option = yes &&
2284 test $enable_versioning = yes; then
2286 cat >> confdefs.h <<\EOF
2287 #define DO_VERSIONING 1
2295 if test $VERSIONING = no; then
2297 *** WARNING: You should not compile GNU libc without versioning. Not using
2298 *** versioning will introduce incompatibilities so that old binaries
2299 *** will not run anymore.
2300 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2302 if test $elf = yes; then
2303 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2304 echo "configure:2305: checking for .previous assembler directive" >&5
2305 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2308 cat > conftest.s <<EOF
2309 .section foo_section
2312 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2313 libc_cv_asm_previous_directive=yes
2315 libc_cv_asm_previous_directive=no
2320 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2321 if test $libc_cv_asm_previous_directive = yes; then
2322 cat >> confdefs.h <<\EOF
2323 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2327 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2328 echo "configure:2329: checking for .popsection assembler directive" >&5
2329 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2330 echo $ac_n "(cached) $ac_c" 1>&6
2332 cat > conftest.s <<EOF
2333 .pushsection foo_section
2336 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2337 libc_cv_asm_popsection_directive=yes
2339 libc_cv_asm_popsection_directive=no
2344 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2345 if test $libc_cv_asm_popsection_directive = yes; then
2346 cat >> confdefs.h <<\EOF
2347 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2354 if test $elf != yes; then
2355 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2356 echo "configure:2357: checking for .init and .fini sections" >&5
2357 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2360 cat > conftest.$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2365 asm (".section .init");
2366 asm (".section .fini");
2370 if { (eval echo configure:2371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2372 libc_cv_have_initfini=yes
2374 echo "configure: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2377 libc_cv_have_initfini=no
2382 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2383 if test $libc_cv_have_initfini = yes; then
2384 cat >> confdefs.h <<\EOF
2385 #define HAVE_INITFINI 1
2393 if test $elf = yes; then
2394 libc_cv_asm_underscores=no
2396 if test $ac_cv_prog_cc_works = yes; then
2397 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2398 echo "configure:2399: checking for _ prefix on C symbol names" >&5
2399 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2402 cat > conftest.$ac_ext <<EOF
2403 #line 2404 "configure"
2404 #include "confdefs.h"
2405 asm ("_glibc_foobar:");
2410 if { (eval echo configure:2411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2412 libc_cv_asm_underscores=yes
2414 echo "configure: failed program was:" >&5
2415 cat conftest.$ac_ext >&5
2417 libc_cv_asm_underscores=no
2422 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2424 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2425 echo "configure:2426: checking for _ prefix on C symbol names" >&5
2426 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2429 cat > conftest.$ac_ext <<EOF
2430 #line 2431 "configure"
2431 #include "confdefs.h"
2432 void underscore_test(void) {
2435 if { (eval echo configure:2436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2436 if grep _underscore_test conftest* >/dev/null; then
2438 libc_cv_asm_underscores=yes
2441 libc_cv_asm_underscores=no
2444 echo "configure: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2447 libc_cv_asm_underscores=no
2452 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2455 if test $libc_cv_asm_underscores = no; then
2456 cat >> confdefs.h <<\EOF
2457 #define NO_UNDERSCORES 1
2462 if test $elf = yes; then
2463 libc_cv_weak_symbols=yes
2466 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2467 echo "configure:2468: checking for assembler .weak directive" >&5
2468 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2469 echo $ac_n "(cached) $ac_c" 1>&6
2471 cat > conftest.s <<EOF
2473 ${libc_cv_asm_global_directive} foo
2476 .weak bar; bar = foo
2478 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2479 libc_cv_asm_weak_directive=yes
2481 libc_cv_asm_weak_directive=no
2486 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2488 if test $libc_cv_asm_weak_directive = no; then
2489 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2490 echo "configure:2491: checking for assembler .weakext directive" >&5
2491 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2494 cat > conftest.s <<EOF
2496 ${libc_cv_asm_global_directive} foo
2500 ${libc_cv_asm_global_directive} baz
2503 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2504 libc_cv_asm_weakext_directive=yes
2506 libc_cv_asm_weakext_directive=no
2511 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2515 if test $libc_cv_asm_weak_directive = yes; then
2516 cat >> confdefs.h <<\EOF
2517 #define HAVE_ASM_WEAK_DIRECTIVE 1
2520 elif test $libc_cv_asm_weakext_directive = yes; then
2521 cat >> confdefs.h <<\EOF
2522 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2527 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2528 echo "configure:2529: checking for ld --no-whole-archive" >&5
2529 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2532 cat > conftest.c <<\EOF
2537 if { ac_try='${CC-cc} $CFLAGS
2538 -nostdlib -nostartfiles -Wl,--no-whole-archive
2539 -o conftest conftest.c 1>&5'; { (eval echo configure:2540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2540 libc_cv_ld_no_whole_archive=yes
2542 libc_cv_ld_no_whole_archive=no
2547 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2548 if test $libc_cv_ld_no_whole_archive = yes; then
2549 no_whole_archive=-Wl,--no-whole-archive
2552 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
2553 echo "configure:2554: checking for gcc -fexceptions" >&5
2554 if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
2555 echo $ac_n "(cached) $ac_c" 1>&6
2557 cat > conftest.c <<\EOF
2562 if { ac_try='${CC-cc} $CFLAGS
2563 -nostdlib -nostartfiles -fexceptions
2564 -o conftest conftest.c 1>&5'; { (eval echo configure:2565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2565 libc_cv_gcc_exceptions=yes
2567 libc_cv_gcc_exceptions=no
2572 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
2573 if test $libc_cv_gcc_exceptions = yes; then
2574 exceptions=-fexceptions
2577 if test "$base_machine" = alpha ; then
2578 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2579 echo "configure:2580: checking for function ..ng prefix" >&5
2580 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2583 cat > conftest.c <<\EOF
2586 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:2587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2588 libc_cv_gcc_alpha_ng_prefix=yes
2590 libc_cv_gcc_alpha_ng_prefix=no
2595 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2596 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2597 cat >> confdefs.h <<\EOF
2598 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2602 cat >> confdefs.h <<\EOF
2603 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2609 if test "$host_cpu" = powerpc ; then
2610 # Check for a bug present in at least versions 2.8.x of GCC
2611 # and versions 1.0.x of EGCS.
2612 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
2613 echo "configure:2614: checking whether clobbering cr0 causes problems" >&5
2614 if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
2615 echo $ac_n "(cached) $ac_c" 1>&6
2617 cat > conftest.$ac_ext <<EOF
2618 #line 2619 "configure"
2619 #include "confdefs.h"
2620 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
2625 if { (eval echo configure:2626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2627 libc_cv_c_asmcr0_bug='no'
2629 echo "configure: failed program was:" >&5
2630 cat conftest.$ac_ext >&5
2632 libc_cv_c_asmcr0_bug='yes'
2637 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
2638 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
2639 cat >> confdefs.h <<\EOF
2640 #define BROKEN_PPC_ASM_CR0 1
2646 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2647 echo "configure:2648: checking for DWARF2 unwind info support" >&5
2648 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6
2651 cat > conftest.c <<EOF
2652 #line 2653 "configure"
2653 static char __EH_FRAME_BEGIN__;
2656 #ifdef CHECK__register_frame
2657 __register_frame (__EH_FRAME_BEGIN__);
2658 __deregister_frame (__EH_FRAME_BEGIN__);
2660 #ifdef CHECK__register_frame_info
2661 __register_frame_info (__EH_FRAME_BEGIN__);
2662 __deregister_frame_info (__EH_FRAME_BEGIN__);
2667 /* FIXME: this is fragile. */
2677 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
2678 -nostdlib -nostartfiles
2679 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2680 libc_cv_gcc_dwarf2_unwind_info=static
2682 libc_cv_gcc_dwarf2_unwind_info=no
2684 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
2685 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
2686 -nostdlib -nostartfiles
2687 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2688 libc_cv_gcc_dwarf2_unwind_info=yes
2690 libc_cv_gcc_dwarf2_unwind_info=no
2696 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
2697 case $libc_cv_gcc_dwarf2_unwind_info in
2699 cat >> confdefs.h <<\EOF
2700 #define HAVE_DWARF2_UNWIND_INFO 1
2705 cat >> confdefs.h <<\EOF
2706 #define HAVE_DWARF2_UNWIND_INFO 1
2709 cat >> confdefs.h <<\EOF
2710 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
2716 ### End of automated tests.
2717 ### Now run sysdeps configure fragments.
2719 # sysdeps configure fragments may set these with files to be linked below.
2723 # They also can set these variables.
2724 ldd_rewrite_script=no
2726 # Iterate over all the sysdep directories we will use, running their
2727 # configure fragments, and looking for a uname implementation.
2729 for dir in $sysnames; do
2732 *) dest=$srcdir/$dir ;;
2734 if test -r $dest/configure; then
2735 echo "$ac_t""running configure fragment for $dest" 1>&6
2739 if test -z "$uname"; then
2740 if test -r $dest/uname.c ||
2741 test -r $dest/uname.S ||
2742 { test -r $dest/syscalls.list &&
2743 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
2751 # If we will use the generic uname implementation, we must figure out what
2752 # it will say by examining the system, and write the results in config-name.h.
2753 if test "$uname" = "sysdeps/generic"; then
2755 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
2756 if test $uname_sysname != $config_os; then
2757 config_release=`echo $config_os | sed s/$uname_sysname//`
2760 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2761 echo "configure:2762: checking OS release for uname" >&5
2762 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2765 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2766 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
2767 != x$config_release; then
2768 # The configuration release is a substring of the kernel release.
2769 libc_cv_uname_release=$kernel_release
2770 elif test x$config_release != x; then
2771 libc_cv_uname_release=$config_release
2772 elif test x$kernel_release != x; then
2773 libc_cv_uname_release=$kernel_release
2775 libc_cv_uname_release=unknown
2779 echo "$ac_t""$libc_cv_uname_release" 1>&6
2780 uname_release="$libc_cv_uname_release"
2782 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2783 echo "configure:2784: checking OS version for uname" >&5
2784 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
2785 echo $ac_n "(cached) $ac_c" 1>&6
2787 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2788 if test -n "$kernel_version"; then
2789 libc_cv_uname_version="$kernel_version"
2791 libc_cv_uname_version=unknown
2795 echo "$ac_t""$libc_cv_uname_version" 1>&6
2796 uname_version="$libc_cv_uname_version"
2798 config_uname=config-name.h:config-name.in
2800 # For non-generic uname, we don't need to create config-name.h at all.
2804 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
2805 echo "configure:2806: checking stdio selection" >&5
2808 libio) cat >> confdefs.h <<\EOF
2809 #define USE_IN_LIBIO 1
2812 default) stdio=stdio ;;
2814 echo "$ac_t""$stdio" 1>&6
2816 # Test for old glibc 2.0.x headers so that they can be removed properly
2817 # Search only in includedir.
2818 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
2819 echo "configure:2820: checking for old glibc 2.0.x headers" >&5
2820 if eval test -e "${includedir}/elfclass.h" -a -e "${includedir}/fcntlbits.h"
2822 old_glibc_headers=yes
2824 old_glibc_headers=no
2826 echo "$ac_t""$old_glibc_headers" 1>&6
2827 if test ${old_glibc_headers} = yes; then
2828 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
2829 echo "configure: warning: *** be removed." 1>&2
2841 if test $gnu_ld = yes; then
2842 cat >> confdefs.h <<\EOF
2843 #define HAVE_GNU_LD 1
2847 if test $gnu_as = yes; then
2848 cat >> confdefs.h <<\EOF
2849 #define HAVE_GNU_AS 1
2853 if test $elf = yes; then
2854 cat >> confdefs.h <<\EOF
2862 if test $shared = default; then
2863 if test $gnu_ld = yes; then
2866 # For now we do not assume shared libs are available. In future more
2867 # tests might become available.
2872 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
2873 echo "configure:2874: checking whether -fPIC is default" >&5
2874 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
2875 echo $ac_n "(cached) $ac_c" 1>&6
2878 cat > conftest.c <<EOF
2879 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
2880 # error PIC is default.
2883 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
2889 echo "$ac_t""$pic_default" 1>&6
2900 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
2903 config_makefile=Makefile
2906 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
2907 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
2912 cat > confcache <<\EOF
2913 # This file is a shell script that caches the results of configure
2914 # tests run on this system so they can be shared between configure
2915 # scripts and configure runs. It is not useful on other systems.
2916 # If it contains results you don't want to keep, you may remove or edit it.
2918 # By default, configure uses ./config.cache as the cache file,
2919 # creating it if it does not exist already. You can give configure
2920 # the --cache-file=FILE option to use a different cache file; that is
2921 # what configure does when it calls configure scripts in
2922 # subdirectories, so they share the cache.
2923 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2924 # config.status only pays attention to the cache file if you give it the
2925 # --recheck option to rerun configure.
2928 # The following way of writing the cache mishandles newlines in values,
2929 # but we know of no workaround that is simple, portable, and efficient.
2930 # So, don't put newlines in cache variables' values.
2931 # Ultrix sh set writes to stderr and can't be redirected directly,
2932 # and sets the high bit in the cache file unless we assign to the vars.
2934 case `(ac_space=' '; set) 2>&1` in
2936 # `set' does not quote correctly, so add quotes (double-quote substitution
2937 # turns \\\\ into \\, and sed turns \\ into \).
2939 -e "s/'/'\\\\''/g" \
2940 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2943 # `set' quotes correctly as required by POSIX, so do not add quotes.
2944 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2947 if cmp -s $cache_file confcache; then
2950 if test -w $cache_file; then
2951 echo "updating cache $cache_file"
2952 cat confcache > $cache_file
2954 echo "not updating unwritable cache $cache_file"
2959 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2961 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2962 # Let make expand exec_prefix.
2963 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2965 # Any assignment to VPATH causes Sun make to only execute
2966 # the first set of double-colon rules, so remove it if not needed.
2967 # If there is a colon in the path, we need to keep it.
2968 if test "x$srcdir" = x.; then
2969 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2972 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2974 DEFS=-DHAVE_CONFIG_H
2976 # Without the "./", some shells look in PATH for config.status.
2977 : ${CONFIG_STATUS=./config.status}
2979 echo creating $CONFIG_STATUS
2980 rm -f $CONFIG_STATUS
2981 cat > $CONFIG_STATUS <<EOF
2983 # Generated automatically by configure.
2984 # Run this file to recreate the current configuration.
2985 # This directory was configured as follows,
2986 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2988 # $0 $ac_configure_args
2990 # Compiler output produced by configure, useful for debugging
2991 # configure, is in ./config.log if it exists.
2993 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2996 case "\$ac_option" in
2997 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2998 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2999 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3000 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3001 echo "$CONFIG_STATUS generated by autoconf version 2.12"
3003 -help | --help | --hel | --he | --h)
3004 echo "\$ac_cs_usage"; exit 0 ;;
3005 *) echo "\$ac_cs_usage"; exit 1 ;;
3009 ac_given_srcdir=$srcdir
3010 ac_given_INSTALL="$INSTALL"
3012 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3014 cat >> $CONFIG_STATUS <<EOF
3016 # Protect against being on the right side of a sed subst in config.status.
3017 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3018 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3021 s%@CFLAGS@%$CFLAGS%g
3022 s%@CPPFLAGS@%$CPPFLAGS%g
3023 s%@CXXFLAGS@%$CXXFLAGS%g
3025 s%@LDFLAGS@%$LDFLAGS%g
3027 s%@exec_prefix@%$exec_prefix%g
3028 s%@prefix@%$prefix%g
3029 s%@program_transform_name@%$program_transform_name%g
3030 s%@bindir@%$bindir%g
3031 s%@sbindir@%$sbindir%g
3032 s%@libexecdir@%$libexecdir%g
3033 s%@datadir@%$datadir%g
3034 s%@sysconfdir@%$sysconfdir%g
3035 s%@sharedstatedir@%$sharedstatedir%g
3036 s%@localstatedir@%$localstatedir%g
3037 s%@libdir@%$libdir%g
3038 s%@includedir@%$includedir%g
3039 s%@oldincludedir@%$oldincludedir%g
3040 s%@infodir@%$infodir%g
3041 s%@mandir@%$mandir%g
3042 s%@with_cvs@%$with_cvs%g
3043 s%@subdirs@%$subdirs%g
3044 s%@force_install@%$force_install%g
3046 s%@host_alias@%$host_alias%g
3047 s%@host_cpu@%$host_cpu%g
3048 s%@host_vendor@%$host_vendor%g
3049 s%@host_os@%$host_os%g
3050 s%@base_machine@%$base_machine%g
3051 s%@sysnames@%$sysnames%g
3052 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3053 s%@INSTALL_DATA@%$INSTALL_DATA%g
3056 s%@build_alias@%$build_alias%g
3057 s%@build_cpu@%$build_cpu%g
3058 s%@build_vendor@%$build_vendor%g
3059 s%@build_os@%$build_os%g
3062 s%@MSGFMT@%$MSGFMT%g
3063 s%@MAKEINFO@%$MAKEINFO%g
3064 s%@cross_linkable@%$cross_linkable%g
3065 s%@BUILD_CC@%$BUILD_CC%g
3066 s%@cross_compiling@%$cross_compiling%g
3069 s%@RANLIB@%$RANLIB%g
3071 s%@SYSINCLUDES@%$SYSINCLUDES%g
3073 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
3075 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
3078 s%@VERSIONING@%$VERSIONING%g
3079 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
3080 s%@no_whole_archive@%$no_whole_archive%g
3081 s%@exceptions@%$exceptions%g
3082 s%@uname_sysname@%$uname_sysname%g
3083 s%@uname_release@%$uname_release%g
3084 s%@uname_version@%$uname_version%g
3086 s%@old_glibc_headers@%$old_glibc_headers%g
3087 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
3088 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
3089 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
3090 s%@has_ldconfig@%$has_ldconfig%g
3091 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
3092 s%@gnu_ld@%$gnu_ld%g
3093 s%@gnu_as@%$gnu_as%g
3095 s%@static@%$static%g
3096 s%@shared@%$shared%g
3097 s%@pic_default@%$pic_default%g
3098 s%@profile@%$profile%g
3099 s%@omitfp@%$omitfp%g
3100 s%@bounded@%$bounded%g
3101 s%@static_nss@%$static_nss%g
3102 s%@nopic_initfini@%$nopic_initfini%g
3103 s%@DEFINES@%$DEFINES%g
3104 s%@VERSION@%$VERSION%g
3105 s%@RELEASE@%$RELEASE%g
3110 cat >> $CONFIG_STATUS <<\EOF
3112 # Split the substitutions into bite-sized pieces for seds with
3113 # small command number limits, like on Digital OSF/1 and HP-UX.
3114 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3115 ac_file=1 # Number of current file.
3116 ac_beg=1 # First line for current file.
3117 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3120 while $ac_more_lines; do
3121 if test $ac_beg -gt 1; then
3122 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3124 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3126 if test ! -s conftest.s$ac_file; then
3128 rm -f conftest.s$ac_file
3130 if test -z "$ac_sed_cmds"; then
3131 ac_sed_cmds="sed -f conftest.s$ac_file"
3133 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3135 ac_file=`expr $ac_file + 1`
3137 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3140 if test -z "$ac_sed_cmds"; then
3145 cat >> $CONFIG_STATUS <<EOF
3147 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3149 cat >> $CONFIG_STATUS <<\EOF
3150 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3151 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3153 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3154 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3155 *) ac_file_in="${ac_file}.in" ;;
3158 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3160 # Remove last slash and all that follows it. Not all systems have dirname.
3161 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3162 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3163 # The file is in a subdirectory.
3164 test ! -d "$ac_dir" && mkdir "$ac_dir"
3165 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3166 # A "../" for each directory in $ac_dir_suffix.
3167 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3169 ac_dir_suffix= ac_dots=
3172 case "$ac_given_srcdir" in
3174 if test -z "$ac_dots"; then top_srcdir=.
3175 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3176 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3178 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3179 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3182 case "$ac_given_INSTALL" in
3183 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3184 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3187 echo creating "$ac_file"
3189 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3191 *Makefile*) ac_comsub="1i\\
3192 # $configure_input" ;;
3196 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3198 s%@configure_input@%$configure_input%g
3199 s%@srcdir@%$srcdir%g
3200 s%@top_srcdir@%$top_srcdir%g
3201 s%@INSTALL@%$INSTALL%g
3202 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3206 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3207 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3209 # ac_d sets the value in "#define NAME VALUE" lines.
3210 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3211 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3214 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3215 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3216 ac_uB='\([ ]\)%\1#\2define\3'
3219 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3220 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3221 ac_eB='$%\1#\2define\3'
3225 if test "${CONFIG_HEADERS+set}" != set; then
3227 cat >> $CONFIG_STATUS <<EOF
3228 CONFIG_HEADERS="config.h"
3230 cat >> $CONFIG_STATUS <<\EOF
3232 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3233 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3235 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3236 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3237 *) ac_file_in="${ac_file}.in" ;;
3240 echo creating $ac_file
3242 rm -f conftest.frag conftest.in conftest.out
3243 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3244 cat $ac_file_inputs > conftest.in
3248 # Transform confdefs.h into a sed script conftest.vals that substitutes
3249 # the proper values into config.h.in to produce config.h. And first:
3250 # Protect against being on the right side of a sed subst in config.status.
3251 # Protect against being in an unquoted here document in config.status.
3253 cat > conftest.hdr <<\EOF
3256 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3260 sed -n -f conftest.hdr confdefs.h > conftest.vals
3263 # This sed command replaces #undef with comments. This is necessary, for
3264 # example, in the case of _POSIX_SOURCE, which is predefined and required
3265 # on some systems where configure will not decide to define it.
3266 cat >> conftest.vals <<\EOF
3267 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3270 # Break up conftest.vals because some shells have a limit on
3271 # the size of here documents, and old seds have small limits too.
3276 ac_lines=`grep -c . conftest.vals`
3277 # grep -c gives empty output for an empty file on some AIX systems.
3278 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3279 # Write a limited-size here document to conftest.frag.
3280 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3281 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3283 sed -f conftest.frag conftest.in > conftest.out
3285 mv conftest.out conftest.in
3287 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3289 mv conftest.tail conftest.vals
3293 cat >> $CONFIG_STATUS <<\EOF
3294 rm -f conftest.frag conftest.h
3295 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3296 cat conftest.in >> conftest.h
3298 if cmp -s $ac_file conftest.h 2>/dev/null; then
3299 echo "$ac_file is unchanged"
3302 # Remove last slash and all that follows it. Not all systems have dirname.
3303 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3304 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3305 # The file is in a subdirectory.
3306 test ! -d "$ac_dir" && mkdir "$ac_dir"
3309 mv conftest.h $ac_file
3315 cat >> $CONFIG_STATUS <<EOF
3316 ac_sources="`echo $libc_link_sources`"
3317 ac_dests="`echo $libc_link_dests`"
3320 cat >> $CONFIG_STATUS <<\EOF
3321 srcdir=$ac_given_srcdir
3322 while test -n "$ac_sources"; do
3323 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3324 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3326 echo "linking $srcdir/$ac_source to $ac_dest"
3328 if test ! -r $srcdir/$ac_source; then
3329 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3333 # Make relative symlinks.
3334 # Remove last slash and all that follows it. Not all systems have dirname.
3335 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3336 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3337 # The dest file is in a subdirectory.
3338 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3339 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3340 # A "../" for each directory in $ac_dest_dir_suffix.
3341 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3343 ac_dest_dir_suffix= ac_dots=
3347 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3348 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3351 # Make a symlink if possible; otherwise try a hard link.
3352 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3353 ln $srcdir/$ac_source $ac_dest; then :
3355 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3359 cat >> $CONFIG_STATUS <<EOF
3360 config_vars='$config_vars'
3362 cat >> $CONFIG_STATUS <<\EOF
3364 case $CONFIG_FILES in *config.make*)
3365 echo "$config_vars" >> config.make;;
3367 test -d bits || mkdir bits
3370 chmod +x $CONFIG_STATUS
3371 rm -fr confdefs* $ac_clean_files
3372 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3374 if test "$no_recursion" != yes; then
3376 # Remove --cache-file and --srcdir arguments so they do not pile up.
3377 ac_sub_configure_args=
3379 for ac_arg in $ac_configure_args; do
3380 if test -n "$ac_prev"; then
3385 -cache-file | --cache-file | --cache-fil | --cache-fi \
3386 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3387 ac_prev=cache_file ;;
3388 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3389 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3391 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3393 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3395 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3399 for ac_config_dir in $add_ons; do
3401 # Do not complain, so a configure script can configure whichever
3402 # parts of a large source tree are present.
3403 if test ! -d $srcdir/$ac_config_dir; then
3407 echo configuring in $ac_config_dir
3412 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3414 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3422 # A "../" for each directory in /$ac_config_dir.
3423 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3426 .) # No --srcdir option. We are building in place.
3427 ac_sub_srcdir=$srcdir ;;
3428 /*) # Absolute path.
3429 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3431 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3434 # Check for guested configure; otherwise get Cygnus style configure.
3435 if test -f $ac_sub_srcdir/configure; then
3436 ac_sub_configure=$ac_sub_srcdir/configure
3437 elif test -f $ac_sub_srcdir/configure.in; then
3438 ac_sub_configure=$ac_configure
3440 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3444 # The recursion is here.
3445 if test -n "$ac_sub_configure"; then
3447 # Make the cache file name correct relative to the subdirectory.
3448 case "$cache_file" in
3449 /*) ac_sub_cache_file=$cache_file ;;
3451 ac_sub_cache_file="$ac_dots$cache_file" ;;
3453 case "$ac_given_INSTALL" in
3454 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3455 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3458 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3459 # The eval makes quoting arguments work.
3460 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3463 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }