* libio/fileops.c (_IO_new_file_underflow): Set error indicator
[glibc/pb-stable.git] / configure
blob99abb30b5eb073d6c1e42328b5aac6becfee5ac7
1 #! /bin/sh
3 # From configure.in CVSid
14 # Guess values for system-dependent variables and create Makefiles.
15 # Generated automatically using autoconf version 2.13
16 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
18 # This configure script is free software; the Free Software Foundation
19 # gives unlimited permission to copy, distribute and modify it.
21 # Defaults:
22 ac_help=
23 ac_default_prefix=/usr/local
24 # Any additions from configure.in:
25 ac_help="$ac_help
26 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
27 ac_help="$ac_help
28 --with-gettext=DIR find GNU gettext source code in DIR (not needed)"
29 ac_help="$ac_help
30 --with-fp if using floating-point hardware [default=yes]"
31 ac_help="$ac_help
32 --with-binutils=PATH specify location of binutils (as and ld)"
33 ac_help="$ac_help
34 --with-elf if using the ELF object format"
35 ac_help="$ac_help
36 --without-cvs if CVS should not be used"
37 ac_help="$ac_help
38 --with-headers=PATH location of system headers to use
39 [e.g. /usr/src/linux/include]
40 [default=compiler default]"
41 ac_help="$ac_help
42 --enable-libio build in GNU libio instead of GNU stdio"
43 ac_help="$ac_help
44 --disable-sanity-checks really do not use threads (should not be used
45 except in special situations) [default=yes]"
46 ac_help="$ac_help
47 --enable-shared build shared library [default=yes if GNU ld & ELF]"
48 ac_help="$ac_help
49 --enable-profile build profiled library [default=yes]"
50 ac_help="$ac_help
51 --enable-omitfp build undebuggable optimized library [default=no]"
52 ac_help="$ac_help
53 --enable-bounded build with runtime bounds checking [default=no]"
54 ac_help="$ac_help
55 --disable-versioning do not include versioning information in the
56 library objects [default=yes if supported]"
57 ac_help="$ac_help
58 --enable-add-ons[=DIR1,DIR2]...
59 configure and build add-ons in DIR1,DIR2,...
60 search for add-ons if no parameter given"
61 ac_help="$ac_help
62 --enable-static-nss build static NSS modules [default=no]"
63 ac_help="$ac_help
64 --disable-force-install don't force installation of files from this package,
65 even if they are older than the installed files"
66 ac_help="$ac_help
67 --enable-kernel=VERSION compile for compatibility with kernel not older
68 than VERSION"
70 # Initialize some variables set by options.
71 # The variables have the same names as the options, with
72 # dashes changed to underlines.
73 build=NONE
74 cache_file=./config.cache
75 exec_prefix=NONE
76 host=NONE
77 no_create=
78 nonopt=NONE
79 no_recursion=
80 prefix=NONE
81 program_prefix=NONE
82 program_suffix=NONE
83 program_transform_name=s,x,x,
84 silent=
85 site=
86 srcdir=
87 target=NONE
88 verbose=
89 x_includes=NONE
90 x_libraries=NONE
91 bindir='${exec_prefix}/bin'
92 sbindir='${exec_prefix}/sbin'
93 libexecdir='${exec_prefix}/libexec'
94 datadir='${prefix}/share'
95 sysconfdir='${prefix}/etc'
96 sharedstatedir='${prefix}/com'
97 localstatedir='${prefix}/var'
98 libdir='${exec_prefix}/lib'
99 includedir='${prefix}/include'
100 oldincludedir='/usr/include'
101 infodir='${prefix}/info'
102 mandir='${prefix}/man'
104 # Initialize some other variables.
105 subdirs=
106 MFLAGS= MAKEFLAGS=
107 SHELL=${CONFIG_SHELL-/bin/sh}
108 # Maximum number of lines to put in a shell here document.
109 ac_max_here_lines=12
111 ac_prev=
112 for ac_option
115 # If the previous option needs an argument, assign it.
116 if test -n "$ac_prev"; then
117 eval "$ac_prev=\$ac_option"
118 ac_prev=
119 continue
122 case "$ac_option" in
123 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
124 *) ac_optarg= ;;
125 esac
127 # Accept the important Cygnus configure options, so we can diagnose typos.
129 case "$ac_option" in
131 -bindir | --bindir | --bindi | --bind | --bin | --bi)
132 ac_prev=bindir ;;
133 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
134 bindir="$ac_optarg" ;;
136 -build | --build | --buil | --bui | --bu)
137 ac_prev=build ;;
138 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
139 build="$ac_optarg" ;;
141 -cache-file | --cache-file | --cache-fil | --cache-fi \
142 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
143 ac_prev=cache_file ;;
144 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
145 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
146 cache_file="$ac_optarg" ;;
148 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
149 ac_prev=datadir ;;
150 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
151 | --da=*)
152 datadir="$ac_optarg" ;;
154 -disable-* | --disable-*)
155 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
156 # Reject names that are not valid shell variable names.
157 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
158 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
161 eval "enable_${ac_feature}=no" ;;
163 -enable-* | --enable-*)
164 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
165 # Reject names that are not valid shell variable names.
166 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
167 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
170 case "$ac_option" in
171 *=*) ;;
172 *) ac_optarg=yes ;;
173 esac
174 eval "enable_${ac_feature}='$ac_optarg'" ;;
176 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
177 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
178 | --exec | --exe | --ex)
179 ac_prev=exec_prefix ;;
180 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
181 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
182 | --exec=* | --exe=* | --ex=*)
183 exec_prefix="$ac_optarg" ;;
185 -gas | --gas | --ga | --g)
186 # Obsolete; use --with-gas.
187 with_gas=yes ;;
189 -help | --help | --hel | --he)
190 # Omit some internal or obsolete options to make the list less imposing.
191 # This message is too long to be a string in the A/UX 3.1 sh.
192 cat << EOF
193 Usage: configure [options] [host]
194 Options: [defaults in brackets after descriptions]
195 Configuration:
196 --cache-file=FILE cache test results in FILE
197 --help print this message
198 --no-create do not create output files
199 --quiet, --silent do not print \`checking...' messages
200 --version print the version of autoconf that created configure
201 Directory and file names:
202 --prefix=PREFIX install architecture-independent files in PREFIX
203 [$ac_default_prefix]
204 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
205 [same as prefix]
206 --bindir=DIR user executables in DIR [EPREFIX/bin]
207 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
208 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
209 --datadir=DIR read-only architecture-independent data in DIR
210 [PREFIX/share]
211 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
212 --sharedstatedir=DIR modifiable architecture-independent data in DIR
213 [PREFIX/com]
214 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
215 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
216 --includedir=DIR C header files in DIR [PREFIX/include]
217 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
218 --infodir=DIR info documentation in DIR [PREFIX/info]
219 --mandir=DIR man documentation in DIR [PREFIX/man]
220 --srcdir=DIR find the sources in DIR [configure dir or ..]
221 --program-prefix=PREFIX prepend PREFIX to installed program names
222 --program-suffix=SUFFIX append SUFFIX to installed program names
223 --program-transform-name=PROGRAM
224 run sed PROGRAM on installed program names
226 cat << EOF
227 Host type:
228 --build=BUILD configure for building on BUILD [BUILD=HOST]
229 --host=HOST configure for HOST [guessed]
230 --target=TARGET configure for TARGET [TARGET=HOST]
231 Features and packages:
232 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
233 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
234 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
235 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
236 --x-includes=DIR X include files are in DIR
237 --x-libraries=DIR X library files are in DIR
239 if test -n "$ac_help"; then
240 echo "--enable and --with options recognized:$ac_help"
242 exit 0 ;;
244 -host | --host | --hos | --ho)
245 ac_prev=host ;;
246 -host=* | --host=* | --hos=* | --ho=*)
247 host="$ac_optarg" ;;
249 -includedir | --includedir | --includedi | --included | --include \
250 | --includ | --inclu | --incl | --inc)
251 ac_prev=includedir ;;
252 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
253 | --includ=* | --inclu=* | --incl=* | --inc=*)
254 includedir="$ac_optarg" ;;
256 -infodir | --infodir | --infodi | --infod | --info | --inf)
257 ac_prev=infodir ;;
258 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
259 infodir="$ac_optarg" ;;
261 -libdir | --libdir | --libdi | --libd)
262 ac_prev=libdir ;;
263 -libdir=* | --libdir=* | --libdi=* | --libd=*)
264 libdir="$ac_optarg" ;;
266 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
267 | --libexe | --libex | --libe)
268 ac_prev=libexecdir ;;
269 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
270 | --libexe=* | --libex=* | --libe=*)
271 libexecdir="$ac_optarg" ;;
273 -localstatedir | --localstatedir | --localstatedi | --localstated \
274 | --localstate | --localstat | --localsta | --localst \
275 | --locals | --local | --loca | --loc | --lo)
276 ac_prev=localstatedir ;;
277 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
278 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
279 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
280 localstatedir="$ac_optarg" ;;
282 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
283 ac_prev=mandir ;;
284 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
285 mandir="$ac_optarg" ;;
287 -nfp | --nfp | --nf)
288 # Obsolete; use --without-fp.
289 with_fp=no ;;
291 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
292 | --no-cr | --no-c)
293 no_create=yes ;;
295 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
296 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
297 no_recursion=yes ;;
299 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
300 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
301 | --oldin | --oldi | --old | --ol | --o)
302 ac_prev=oldincludedir ;;
303 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
304 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
305 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
306 oldincludedir="$ac_optarg" ;;
308 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
309 ac_prev=prefix ;;
310 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
311 prefix="$ac_optarg" ;;
313 -program-prefix | --program-prefix | --program-prefi | --program-pref \
314 | --program-pre | --program-pr | --program-p)
315 ac_prev=program_prefix ;;
316 -program-prefix=* | --program-prefix=* | --program-prefi=* \
317 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
318 program_prefix="$ac_optarg" ;;
320 -program-suffix | --program-suffix | --program-suffi | --program-suff \
321 | --program-suf | --program-su | --program-s)
322 ac_prev=program_suffix ;;
323 -program-suffix=* | --program-suffix=* | --program-suffi=* \
324 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
325 program_suffix="$ac_optarg" ;;
327 -program-transform-name | --program-transform-name \
328 | --program-transform-nam | --program-transform-na \
329 | --program-transform-n | --program-transform- \
330 | --program-transform | --program-transfor \
331 | --program-transfo | --program-transf \
332 | --program-trans | --program-tran \
333 | --progr-tra | --program-tr | --program-t)
334 ac_prev=program_transform_name ;;
335 -program-transform-name=* | --program-transform-name=* \
336 | --program-transform-nam=* | --program-transform-na=* \
337 | --program-transform-n=* | --program-transform-=* \
338 | --program-transform=* | --program-transfor=* \
339 | --program-transfo=* | --program-transf=* \
340 | --program-trans=* | --program-tran=* \
341 | --progr-tra=* | --program-tr=* | --program-t=*)
342 program_transform_name="$ac_optarg" ;;
344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
345 | -silent | --silent | --silen | --sile | --sil)
346 silent=yes ;;
348 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
349 ac_prev=sbindir ;;
350 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
351 | --sbi=* | --sb=*)
352 sbindir="$ac_optarg" ;;
354 -sharedstatedir | --sharedstatedir | --sharedstatedi \
355 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
356 | --sharedst | --shareds | --shared | --share | --shar \
357 | --sha | --sh)
358 ac_prev=sharedstatedir ;;
359 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
360 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
361 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
362 | --sha=* | --sh=*)
363 sharedstatedir="$ac_optarg" ;;
365 -site | --site | --sit)
366 ac_prev=site ;;
367 -site=* | --site=* | --sit=*)
368 site="$ac_optarg" ;;
370 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
371 ac_prev=srcdir ;;
372 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
373 srcdir="$ac_optarg" ;;
375 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
376 | --syscon | --sysco | --sysc | --sys | --sy)
377 ac_prev=sysconfdir ;;
378 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
379 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
380 sysconfdir="$ac_optarg" ;;
382 -target | --target | --targe | --targ | --tar | --ta | --t)
383 ac_prev=target ;;
384 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
385 target="$ac_optarg" ;;
387 -v | -verbose | --verbose | --verbos | --verbo | --verb)
388 verbose=yes ;;
390 -version | --version | --versio | --versi | --vers)
391 echo "configure generated by autoconf version 2.13"
392 exit 0 ;;
394 -with-* | --with-*)
395 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
396 # Reject names that are not valid shell variable names.
397 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
398 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
400 ac_package=`echo $ac_package| sed 's/-/_/g'`
401 case "$ac_option" in
402 *=*) ;;
403 *) ac_optarg=yes ;;
404 esac
405 eval "with_${ac_package}='$ac_optarg'" ;;
407 -without-* | --without-*)
408 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
409 # Reject names that are not valid shell variable names.
410 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
411 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
413 ac_package=`echo $ac_package| sed 's/-/_/g'`
414 eval "with_${ac_package}=no" ;;
416 --x)
417 # Obsolete; use --with-x.
418 with_x=yes ;;
420 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
421 | --x-incl | --x-inc | --x-in | --x-i)
422 ac_prev=x_includes ;;
423 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
424 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
425 x_includes="$ac_optarg" ;;
427 -x-libraries | --x-libraries | --x-librarie | --x-librari \
428 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
429 ac_prev=x_libraries ;;
430 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
431 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
432 x_libraries="$ac_optarg" ;;
434 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
438 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
439 echo "configure: warning: $ac_option: invalid host type" 1>&2
441 if test "x$nonopt" != xNONE; then
442 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
444 nonopt="$ac_option"
447 esac
448 done
450 if test -n "$ac_prev"; then
451 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
454 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
456 # File descriptor usage:
457 # 0 standard input
458 # 1 file creation
459 # 2 errors and warnings
460 # 3 some systems may open it to /dev/tty
461 # 4 used on the Kubota Titan
462 # 6 checking for... messages and results
463 # 5 compiler messages saved in config.log
464 if test "$silent" = yes; then
465 exec 6>/dev/null
466 else
467 exec 6>&1
469 exec 5>./config.log
471 echo "\
472 This file contains any messages produced by compilers while
473 running configure, to aid debugging if configure makes a mistake.
474 " 1>&5
476 # Strip out --no-create and --no-recursion so they do not pile up.
477 # Also quote any args containing shell metacharacters.
478 ac_configure_args=
479 for ac_arg
481 case "$ac_arg" in
482 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
483 | --no-cr | --no-c) ;;
484 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
485 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
486 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
487 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
488 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
489 esac
490 done
492 # NLS nuisances.
493 # Only set these to C if already set. These must not be set unconditionally
494 # because not all systems understand e.g. LANG=C (notably SCO).
495 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
496 # Non-C LC_CTYPE values break the ctype check.
497 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
498 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
499 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
500 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
502 # confdefs.h avoids OS command line length limits that DEFS can exceed.
503 rm -rf conftest* confdefs.h
504 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
505 echo > confdefs.h
507 # A filename unique to this package, relative to the directory that
508 # configure is in, which we can look for to find out if srcdir is correct.
509 ac_unique_file=include/features.h
511 # Find the source files, if location was not specified.
512 if test -z "$srcdir"; then
513 ac_srcdir_defaulted=yes
514 # Try the directory containing this script, then its parent.
515 ac_prog=$0
516 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
517 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
518 srcdir=$ac_confdir
519 if test ! -r $srcdir/$ac_unique_file; then
520 srcdir=..
522 else
523 ac_srcdir_defaulted=no
525 if test ! -r $srcdir/$ac_unique_file; then
526 if test "$ac_srcdir_defaulted" = yes; then
527 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
528 else
529 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
532 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
534 # Prefer explicitly selected file to automatically selected ones.
535 if test -z "$CONFIG_SITE"; then
536 if test "x$prefix" != xNONE; then
537 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
538 else
539 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
542 for ac_site_file in $CONFIG_SITE; do
543 if test -r "$ac_site_file"; then
544 echo "loading site script $ac_site_file"
545 . "$ac_site_file"
547 done
549 if test -r "$cache_file"; then
550 echo "loading cache $cache_file"
551 . $cache_file
552 else
553 echo "creating cache $cache_file"
554 > $cache_file
557 ac_ext=c
558 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
559 ac_cpp='$CPP $CPPFLAGS'
560 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
561 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
562 cross_compiling=$ac_cv_prog_cc_cross
564 ac_exeext=
565 ac_objext=o
566 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
567 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
568 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
569 ac_n= ac_c='
570 ' ac_t=' '
571 else
572 ac_n=-n ac_c= ac_t=
574 else
575 ac_n= ac_c='\c' ac_t=
578 if test -r /vmunix; then
579 kernel_id=`strings /vmunix | grep UNIX`
580 elif test -r /dynix; then
581 kernel_id=`strings /dynix | grep DYNIX`
582 else
583 kernel_id=
588 ac_aux_dir=
589 for ac_dir in scripts $srcdir/scripts; do
590 if test -f $ac_dir/install-sh; then
591 ac_aux_dir=$ac_dir
592 ac_install_sh="$ac_aux_dir/install-sh -c"
593 break
594 elif test -f $ac_dir/install.sh; then
595 ac_aux_dir=$ac_dir
596 ac_install_sh="$ac_aux_dir/install.sh -c"
597 break
599 done
600 if test -z "$ac_aux_dir"; then
601 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
603 ac_config_guess=$ac_aux_dir/config.guess
604 ac_config_sub=$ac_aux_dir/config.sub
605 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
608 # This will get text that should go into config.make.
609 config_vars=
611 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
612 # Check whether --with-gmp or --without-gmp was given.
613 if test "${with_gmp+set}" = set; then
614 withval="$with_gmp"
615 case "$with_gmp" in
616 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
617 ''|no) ;;
618 *) config_vars="$config_vars
619 gmp-srcdir = $withval" ;;
620 esac
624 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
625 # Check whether --with-gettext or --without-gettext was given.
626 if test "${with_gettext+set}" = set; then
627 withval="$with_gettext"
628 case "$with_gettext" in
629 yes)
630 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
631 ''|no) ;;
633 config_vars="$config_vars
634 gettext-srcdir = $withval" ;;
635 esac
640 # Check whether --with-fp or --without-fp was given.
641 if test "${with_fp+set}" = set; then
642 withval="$with_fp"
643 with_fp=$withval
644 else
645 with_fp=yes
648 # Check whether --with-binutils or --without-binutils was given.
649 if test "${with_binutils+set}" = set; then
650 withval="$with_binutils"
651 path_binutils=$withval
652 else
653 path_binutils=''
656 # Check whether --with-elf or --without-elf was given.
657 if test "${with_elf+set}" = set; then
658 withval="$with_elf"
659 elf=$withval
660 else
661 elf=no
664 # Check whether --with-cvs or --without-cvs was given.
665 if test "${with_cvs+set}" = set; then
666 withval="$with_cvs"
667 with_cvs=$withval
668 else
669 with_cvs=yes
674 # Check whether --with-headers or --without-headers was given.
675 if test "${with_headers+set}" = set; then
676 withval="$with_headers"
677 sysheaders=$withval
678 else
679 sysheaders=''
683 # Check whether --enable-libio or --disable-libio was given.
684 if test "${enable_libio+set}" = set; then
685 enableval="$enable_libio"
686 if test $enableval = yes; then
687 stdio=libio
688 else
689 stdio=stdio
691 else
692 stdio=default
696 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
697 if test "${enable_sanity_checks+set}" = set; then
698 enableval="$enable_sanity_checks"
699 enable_sanity=$enableval
700 else
701 enable_sanity=yes
705 static=yes
706 # Check whether --enable-shared or --disable-shared was given.
707 if test "${enable_shared+set}" = set; then
708 enableval="$enable_shared"
709 shared=$enableval
710 else
711 shared=default
714 # Check whether --enable-profile or --disable-profile was given.
715 if test "${enable_profile+set}" = set; then
716 enableval="$enable_profile"
717 profile=$enableval
718 else
719 profile=yes
722 # Check whether --enable-omitfp or --disable-omitfp was given.
723 if test "${enable_omitfp+set}" = set; then
724 enableval="$enable_omitfp"
725 omitfp=$enableval
726 else
727 omitfp=no
730 # Check whether --enable-bounded or --disable-bounded was given.
731 if test "${enable_bounded+set}" = set; then
732 enableval="$enable_bounded"
733 bounded=$enableval
734 else
735 bounded=no
738 # Check whether --enable-versioning or --disable-versioning was given.
739 if test "${enable_versioning+set}" = set; then
740 enableval="$enable_versioning"
741 enable_versioning=$enableval
742 else
743 enable_versioning=yes
747 # Check whether --enable-add-ons or --disable-add-ons was given.
748 if test "${enable_add_ons+set}" = set; then
749 enableval="$enable_add_ons"
750 case "$enableval" in
751 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
752 test "$add_ons" = "*" && add_ons= ;;
753 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
754 esac
755 else
756 add_ons=
760 subdirs="$add_ons"
762 add_ons_pfx=
763 if test x"$add_ons" != x; then
764 for f in $add_ons; do
765 # Test whether such a subdir really exists.
766 if test -d $srcdir/$f; then
767 add_ons_pfx="$add_ons_pfx $f/"
768 else
769 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
771 done
774 # Check whether --enable-static-nss or --disable-static-nss was given.
775 if test "${enable_static_nss+set}" = set; then
776 enableval="$enable_static_nss"
777 static_nss=$enableval
778 else
779 static_nss=no
782 if test x"$static_nss" = xyes; then
783 cat >> confdefs.h <<\EOF
784 #define DO_STATIC_NSS 1
789 # Check whether --enable-force-install or --disable-force-install was given.
790 if test "${enable_force_install+set}" = set; then
791 enableval="$enable_force_install"
792 force_install=$enableval
793 else
794 force_install=yes
799 # Check whether --enable-kernel or --disable-kernel was given.
800 if test "${enable_kernel+set}" = set; then
801 enableval="$enable_kernel"
802 minimum_kernel=$enableval
807 # Make sure we can run config.sub.
808 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
809 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
812 echo $ac_n "checking host system type""... $ac_c" 1>&6
813 echo "configure:814: checking host system type" >&5
815 host_alias=$host
816 case "$host_alias" in
817 NONE)
818 case $nonopt in
819 NONE)
820 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
821 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
822 fi ;;
823 *) host_alias=$nonopt ;;
824 esac ;;
825 esac
827 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
828 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
829 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
830 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
831 echo "$ac_t""$host" 1>&6
834 # The way shlib-versions is used to generate soversions.mk uses a
835 # fairly simplistic model for name recognition that can't distinguish
836 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
837 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
838 # tell. This doesn't get used much beyond that, so it's fairly safe.
839 case "$host_os" in
840 linux*)
842 gnu*)
843 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
845 esac
847 # We keep the original values in `$config_*' and never modify them, so we
848 # can write them unchanged into config.make. Everything else uses
849 # $machine, $vendor, and $os, and changes them whenever convenient.
850 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
852 # Some configurations imply other options.
853 case "$host_os" in
854 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
855 # These systems always use GNU tools.
856 gnu_ld=yes gnu_as=yes ;;
857 esac
858 case "$host_os" in
859 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
860 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
862 gnu* | linux* | sysv4* | solaris2* | irix6*)
863 # These systems (almost) always use the ELF format.
864 elf=yes
866 esac
868 machine=$config_machine
869 vendor=$config_vendor
870 os=$config_os
873 ### I put this here to prevent those annoying emails from people who cannot
874 ### read and try to compile glibc on unsupported platforms. --drepper
876 ### By using the undocumented --enable-hacker-mode option for configure
877 ### one can skip this test to make the configuration not fail for unsupported
878 ### platforms.
880 if test -z "$enable_hacker_mode"; then
881 case "$machine-$host_os" in
882 *-linux* | *-gnu* | arm*-none*)
885 echo "*** The GNU C library is currently not available for this platform."
886 echo "*** So far nobody cared to port it and if there is no volunteer it"
887 echo "*** might never happen. So, if you have interest to see glibc on"
888 echo "*** this platform visit"
889 echo "*** http://www.gnu.org/software/libc/porting.html"
890 echo "*** and join the group of porters"
891 exit 1
893 esac
896 # Expand the configuration machine name into a subdirectory by architecture
897 # type and particular chip.
898 case "$machine" in
899 a29k | am29000) base_machine=a29k machine=a29k ;;
900 alpha*) base_machine=alpha machine=alpha/$machine ;;
901 arm*) base_machine=arm machine=arm/$machine ;;
902 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
903 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
904 hppa*) base_machine=hppa machine=hppa/$machine ;;
905 i[3456]86) base_machine=i386 machine=i386/$machine ;;
906 m680?0) base_machine=m68k machine=m68k/$machine ;;
907 m68k) base_machine=m68k machine=m68k/m68020 ;;
908 m88???) base_machine=m88k machine=m88k/$machine ;;
909 m88k) base_machine=m88k machine=m88k/m88100 ;;
910 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
911 mips*) base_machine=mips
912 case "`uname -m`" in
913 IP22) machine=mips/mips3 ;;
914 *) machine=mips/$machine ;;
915 esac ;;
916 sparc | sparcv[67])
917 base_machine=sparc machine=sparc/sparc32 ;;
918 sparcv8 | supersparc | hypersparc)
919 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
920 sparcv8plus | sparcv8plusa | sparcv9)
921 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
922 sparc64 | ultrasparc)
923 base_machine=sparc machine=sparc/sparc64 ;;
924 esac
927 if test "$base_machine" = "i386"; then
928 cat >> confdefs.h <<\EOF
929 #define USE_REGPARMS 1
934 # Compute the list of sysdep directories for this configuration.
935 # This can take a while to compute.
936 sysdep_dir=$srcdir/sysdeps
937 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
938 echo "configure:939: checking sysdep dirs" >&5
939 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
940 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
942 case "$os" in
943 gnu*)
944 base_os=mach/hurd ;;
945 netbsd* | 386bsd* | freebsd* | bsdi*)
946 base_os=unix/bsd/bsd4.4 ;;
947 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
948 base_os=unix/bsd ;;
949 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
950 base_os=unix/sysv ;;
951 irix6*)
952 base_os=unix/sysv/irix6/$os ;;
953 solaris[2-9]*)
954 base_os=unix/sysv/sysv4 ;;
955 hpux*)
956 base_os=unix/sysv/hpux/$os ;;
957 none)
958 base_os=standalone ;;
960 base_os='' ;;
961 esac
963 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
964 tail=$os
965 ostry=$os
966 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
967 ostry="$ostry /$o"
968 tail=$o
969 done
970 o=`echo $tail | sed 's/[0-9]*$//'`
971 if test $o != $tail; then
972 ostry="$ostry /$o"
974 # For linux-gnu, try linux-gnu, then linux.
975 o=`echo $tail | sed 's/-.*$//'`
976 if test $o != $tail; then
977 ostry="$ostry /$o"
980 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
981 base=
982 tail=$base_os
983 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
984 set $b
985 base="$base /$1"
986 tail="$2"
987 done
989 # For sparc/sparc32, try sparc/sparc32 and then sparc.
990 mach=
991 tail=$machine
992 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
993 set $m
994 # Prepend the machine's FPU directory unless --without-fp.
995 if test "$with_fp" = yes; then
996 mach="$mach /$1/fpu"
998 mach="$mach /$1"
999 tail="$2"
1000 done
1003 # Find what sysdep directories exist.
1004 sysnames=
1005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1006 for d in $add_ons_pfx ''; do
1007 for b in $base ''; do
1008 for m0 in $mach ''; do
1009 for v in /$vendor ''; do
1010 test "$v" = / && continue
1011 for o in /$ostry ''; do
1012 test "$o" = / && continue
1013 for m in $mach ''; do
1014 if test "$m0$b$v$o$m"; then
1015 try="${d}sysdeps$m0$b$v$o$m"
1016 test -n "$enable_debug_configure" &&
1017 echo "$0 DEBUG: try $try" >&2
1018 if test -d $srcdir/$try; then
1019 sysnames="$sysnames $try"
1020 { test -n "$o" || test -n "$b"; } && os_used=t
1021 { test -n "$m" || test -n "$m0"; } && machine_used=t
1024 done
1025 done
1026 done
1027 done
1028 done
1029 done
1030 IFS="$ac_save_ifs"
1032 if test -z "$os_used" && test "$os" != none; then
1033 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1035 if test -z "$machine_used" && test "$machine" != none; then
1036 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1039 # We have now validated the configuration.
1042 # If using ELF, look for an `elf' subdirectory of each machine directory.
1043 # We prepend these rather than inserting them whereever the machine appears
1044 # because things specified by the machine's ELF ABI should override
1045 # OS-specific things, and should always be the same for any OS on the
1046 # machine (otherwise what's the point of an ABI?).
1047 if test "$elf" = yes; then
1048 elf_dirs=
1049 for d in $add_ons_pfx ''; do
1050 for m in $mach; do
1051 if test -d $srcdir/${d}sysdeps$m/elf; then
1052 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1054 done
1055 done
1056 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1060 # Expand the list of system names into a full list of directories
1061 # from each element's parent name and Implies file (if present).
1062 set $sysnames
1063 names=
1064 while test $# -gt 0; do
1065 name=$1
1066 shift
1068 case " $names " in *" $name "*)
1069 # Already in the list.
1070 continue
1071 esac
1073 # Report each name as we discover it, so there is no long pause in output.
1074 echo $ac_n "$name $ac_c" >&6
1076 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1078 case $name in
1079 /*) xsrcdir= ;;
1080 *) xsrcdir=$srcdir/ ;;
1081 esac
1082 test -n "$enable_debug_configure" &&
1083 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1085 if test -f $xsrcdir$name/Implies; then
1086 # Collect more names from the `Implies' file (removing comments).
1087 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1088 implied=
1089 for x in $implied_candidate; do
1090 if test -d $xsrcdir$name_base/$x; then
1091 implied="$implied $name_base/$x";
1092 else
1093 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1095 done
1096 else
1097 implied=
1100 # Add NAME to the list of names.
1101 names="$names $name"
1103 # Find the parent of NAME, using the empty string if it has none.
1104 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1106 # Add the names implied by NAME, and NAME's parent (if it has one), to
1107 # the list of names to be processed (the argument list). We prepend the
1108 # implied names to the list and append the parent. We want implied
1109 # directories to come before further directories inferred from the
1110 # configuration components; this ensures that for sysv4, unix/common
1111 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1112 # after sysv4).
1113 sysnames="`echo $implied $* $parent`"
1114 test -n "$sysnames" && set $sysnames
1115 done
1117 # Add the default directories.
1118 default_sysnames=sysdeps/generic
1119 if test "$elf" = yes; then
1120 default_sysnames="sysdeps/generic/elf $default_sysnames"
1122 sysnames="$names $default_sysnames"
1124 # The other names were emitted during the scan.
1125 echo "$ac_t""$default_sysnames" 1>&6
1128 ### Locate tools.
1130 # Find a good install program. We prefer a C program (faster),
1131 # so one script is as good as another. But avoid the broken or
1132 # incompatible versions:
1133 # SysV /etc/install, /usr/sbin/install
1134 # SunOS /usr/etc/install
1135 # IRIX /sbin/install
1136 # AIX /bin/install
1137 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1138 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1139 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1140 # ./install, which can be erroneously created by make from ./install.sh.
1141 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1142 echo "configure:1143: checking for a BSD compatible install" >&5
1143 if test -z "$INSTALL"; then
1144 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1146 else
1147 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1148 for ac_dir in $PATH; do
1149 # Account for people who put trailing slashes in PATH elements.
1150 case "$ac_dir/" in
1151 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1153 # OSF1 and SCO ODT 3.0 have their own names for install.
1154 # Don't use installbsd from OSF since it installs stuff as root
1155 # by default.
1156 for ac_prog in ginstall scoinst install; do
1157 if test -f $ac_dir/$ac_prog; then
1158 if test $ac_prog = install &&
1159 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1160 # AIX install. It has an incompatible calling convention.
1162 else
1163 ac_cv_path_install="$ac_dir/$ac_prog -c"
1164 break 2
1167 done
1169 esac
1170 done
1171 IFS="$ac_save_IFS"
1174 if test "${ac_cv_path_install+set}" = set; then
1175 INSTALL="$ac_cv_path_install"
1176 else
1177 # As a last resort, use the slow shell script. We don't cache a
1178 # path for INSTALL within a source directory, because that will
1179 # break other packages using the cache if that directory is
1180 # removed, or if the path is relative.
1181 INSTALL="$ac_install_sh"
1184 echo "$ac_t""$INSTALL" 1>&6
1186 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1187 # It thinks the first close brace ends the variable substitution.
1188 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1190 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1192 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1194 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1195 # The makefiles need to use a different form to find it in $srcdir.
1196 INSTALL='\$(..)./install-sh -c'
1198 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1199 echo "configure:1200: checking whether ln -s works" >&5
1200 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1202 else
1203 rm -f conftestdata
1204 if ln -s X conftestdata 2>/dev/null
1205 then
1206 rm -f conftestdata
1207 ac_cv_prog_LN_S="ln -s"
1208 else
1209 ac_cv_prog_LN_S=ln
1212 LN_S="$ac_cv_prog_LN_S"
1213 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1214 echo "$ac_t""yes" 1>&6
1215 else
1216 echo "$ac_t""no" 1>&6
1220 # These programs are version sensitive.
1221 echo $ac_n "checking build system type""... $ac_c" 1>&6
1222 echo "configure:1223: checking build system type" >&5
1224 build_alias=$build
1225 case "$build_alias" in
1226 NONE)
1227 case $nonopt in
1228 NONE) build_alias=$host_alias ;;
1229 *) build_alias=$nonopt ;;
1230 esac ;;
1231 esac
1233 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1234 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1235 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1236 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1237 echo "$ac_t""$build" 1>&6
1239 if test $host != $build; then
1240 ac_tool_prefix=${host_alias}-
1241 else
1242 ac_tool_prefix=
1245 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
1247 # Extract the first word of "$ac_prog", so it can be a program name with args.
1248 set dummy $ac_prog; ac_word=$2
1249 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1250 echo "configure:1251: checking for $ac_word" >&5
1251 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1253 else
1254 if test -n "$CC"; then
1255 ac_cv_prog_CC="$CC" # Let the user override the test.
1256 else
1257 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1258 ac_dummy="$PATH"
1259 for ac_dir in $ac_dummy; do
1260 test -z "$ac_dir" && ac_dir=.
1261 if test -f $ac_dir/$ac_word; then
1262 ac_cv_prog_CC="$ac_prog"
1263 break
1265 done
1266 IFS="$ac_save_ifs"
1269 CC="$ac_cv_prog_CC"
1270 if test -n "$CC"; then
1271 echo "$ac_t""$CC" 1>&6
1272 else
1273 echo "$ac_t""no" 1>&6
1276 test -n "$CC" && break
1277 done
1279 if test -z "$CC"; then
1280 ac_verc_fail=yes
1281 else
1282 # Found it, now check the version.
1283 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1284 echo "configure:1285: checking version of $CC" >&5
1285 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustp-]*[0-9.]*\).*$/\1/p'`
1286 case $ac_prog_version in
1287 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1288 egcs-2.9[1-9].*|egcs-2.90.2[789]|egcs-2.90.[3-9][0-9]|*gcc-2.9[1-9].*|pgcc-2.90.2[789]|pgcc-2.90.[3-9][0-9]|*2.8.[1-9]*|*2.9|*2.9.[0-9]*|2.9[5-9]*|cygnus-2.9[1-9].*|gcc-2.9[5-9]|gcc-2.1[0-9][0-9])
1289 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1290 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1292 esac
1293 echo "$ac_t""$ac_prog_version" 1>&6
1295 if test $ac_verc_fail = yes; then
1296 critic_missing=t
1299 for ac_prog in make gmake
1301 # Extract the first word of "$ac_prog", so it can be a program name with args.
1302 set dummy $ac_prog; ac_word=$2
1303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1304 echo "configure:1305: checking for $ac_word" >&5
1305 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1307 else
1308 if test -n "$MAKE"; then
1309 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1310 else
1311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1312 ac_dummy="$PATH"
1313 for ac_dir in $ac_dummy; do
1314 test -z "$ac_dir" && ac_dir=.
1315 if test -f $ac_dir/$ac_word; then
1316 ac_cv_prog_MAKE="$ac_prog"
1317 break
1319 done
1320 IFS="$ac_save_ifs"
1323 MAKE="$ac_cv_prog_MAKE"
1324 if test -n "$MAKE"; then
1325 echo "$ac_t""$MAKE" 1>&6
1326 else
1327 echo "$ac_t""no" 1>&6
1330 test -n "$MAKE" && break
1331 done
1333 if test -z "$MAKE"; then
1334 ac_verc_fail=yes
1335 else
1336 # Found it, now check the version.
1337 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1338 echo "configure:1339: checking version of $MAKE" >&5
1339 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*version \([0-9][0-9.]*\), by.*$/\1/p'`
1340 case $ac_prog_version in
1341 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1342 3.75 | 3.76.[1-9]* | 3.7[789]* | 3.[89]*)
1343 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1344 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1346 esac
1347 echo "$ac_t""$ac_prog_version" 1>&6
1349 if test $ac_verc_fail = yes; then
1350 critic_missing=t
1354 for ac_prog in msgfmt gmsgfmt
1356 # Extract the first word of "$ac_prog", so it can be a program name with args.
1357 set dummy $ac_prog; ac_word=$2
1358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1359 echo "configure:1360: checking for $ac_word" >&5
1360 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1362 else
1363 if test -n "$MSGFMT"; then
1364 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1365 else
1366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1367 ac_dummy="$PATH"
1368 for ac_dir in $ac_dummy; do
1369 test -z "$ac_dir" && ac_dir=.
1370 if test -f $ac_dir/$ac_word; then
1371 ac_cv_prog_MSGFMT="$ac_prog"
1372 break
1374 done
1375 IFS="$ac_save_ifs"
1378 MSGFMT="$ac_cv_prog_MSGFMT"
1379 if test -n "$MSGFMT"; then
1380 echo "$ac_t""$MSGFMT" 1>&6
1381 else
1382 echo "$ac_t""no" 1>&6
1385 test -n "$MSGFMT" && break
1386 done
1388 if test -z "$MSGFMT"; then
1389 ac_verc_fail=yes
1390 else
1391 # Found it, now check the version.
1392 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1393 echo "configure:1394: checking version of $MSGFMT" >&5
1394 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1395 case $ac_prog_version in
1396 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1397 0.[1-9][0-9].* | [1-9].*)
1398 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1399 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1401 esac
1402 echo "$ac_t""$ac_prog_version" 1>&6
1404 if test $ac_verc_fail = yes; then
1405 MSGFMT=: aux_missing=t
1408 for ac_prog in makeinfo
1410 # Extract the first word of "$ac_prog", so it can be a program name with args.
1411 set dummy $ac_prog; ac_word=$2
1412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1413 echo "configure:1414: checking for $ac_word" >&5
1414 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1416 else
1417 if test -n "$MAKEINFO"; then
1418 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1419 else
1420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1421 ac_dummy="$PATH"
1422 for ac_dir in $ac_dummy; do
1423 test -z "$ac_dir" && ac_dir=.
1424 if test -f $ac_dir/$ac_word; then
1425 ac_cv_prog_MAKEINFO="$ac_prog"
1426 break
1428 done
1429 IFS="$ac_save_ifs"
1432 MAKEINFO="$ac_cv_prog_MAKEINFO"
1433 if test -n "$MAKEINFO"; then
1434 echo "$ac_t""$MAKEINFO" 1>&6
1435 else
1436 echo "$ac_t""no" 1>&6
1439 test -n "$MAKEINFO" && break
1440 done
1442 if test -z "$MAKEINFO"; then
1443 ac_verc_fail=yes
1444 else
1445 # Found it, now check the version.
1446 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1447 echo "configure:1448: checking version of $MAKEINFO" >&5
1448 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
1449 case $ac_prog_version in
1450 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1451 3.1[1-9] | 3.[2-9][0-9] | 1.6[89] | 1.7[0-9])
1452 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1453 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1455 esac
1456 echo "$ac_t""$ac_prog_version" 1>&6
1458 if test $ac_verc_fail = yes; then
1459 MAKEINFO=: aux_missing=t
1463 if test -n "$critic_missing"; then
1464 { echo "configure: error:
1465 *** Some critical program is missing or too old.
1466 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1469 test -n "$aux_missing" && echo "configure: warning:
1470 *** An auxiliary program is missing or too old;
1471 *** some features will be disabled.
1472 *** Check the INSTALL file for required versions." 1>&2
1475 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1476 echo "configure:1477: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1477 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1479 else
1481 ac_ext=c
1482 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1483 ac_cpp='$CPP $CPPFLAGS'
1484 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1485 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1486 cross_compiling=$ac_cv_prog_cc_cross
1488 cat > conftest.$ac_ext << EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1493 main(){return(0);}
1495 if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1496 ac_cv_prog_cc_works=yes
1497 # If we can't run a trivial program, we are probably using a cross compiler.
1498 if (./conftest; exit) 2>/dev/null; then
1499 ac_cv_prog_cc_cross=no
1500 else
1501 ac_cv_prog_cc_cross=yes
1503 else
1504 echo "configure: failed program was:" >&5
1505 cat conftest.$ac_ext >&5
1506 ac_cv_prog_cc_works=no
1508 rm -fr conftest*
1509 ac_ext=c
1510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1513 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1514 cross_compiling=$ac_cv_prog_cc_cross
1518 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1519 if test $ac_cv_prog_cc_works = no; then
1520 cross_linkable=no
1521 ac_cv_prog_cc_cross=yes
1522 else
1523 cross_linkable=yes
1525 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1526 echo "configure:1527: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1527 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1528 echo $ac_n "(cached) $ac_c" 1>&6
1529 else
1533 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1535 cross_compiling=$ac_cv_prog_cc_cross
1537 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1538 echo "configure:1539: checking whether we are using GNU C" >&5
1539 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1541 else
1542 cat > conftest.c <<EOF
1543 #ifdef __GNUC__
1544 yes;
1545 #endif
1547 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1548 ac_cv_prog_gcc=yes
1549 else
1550 ac_cv_prog_gcc=no
1554 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1555 if test $ac_cv_prog_gcc != yes; then
1556 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1559 echo $ac_n "checking build system type""... $ac_c" 1>&6
1560 echo "configure:1561: checking build system type" >&5
1562 build_alias=$build
1563 case "$build_alias" in
1564 NONE)
1565 case $nonopt in
1566 NONE) build_alias=$host_alias ;;
1567 *) build_alias=$nonopt ;;
1568 esac ;;
1569 esac
1571 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1572 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1573 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1574 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1575 echo "$ac_t""$build" 1>&6
1577 if test $host != $build; then
1578 for ac_prog in gcc cc
1580 # Extract the first word of "$ac_prog", so it can be a program name with args.
1581 set dummy $ac_prog; ac_word=$2
1582 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1583 echo "configure:1584: checking for $ac_word" >&5
1584 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1586 else
1587 if test -n "$BUILD_CC"; then
1588 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1589 else
1590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1591 ac_dummy="$PATH"
1592 for ac_dir in $ac_dummy; do
1593 test -z "$ac_dir" && ac_dir=.
1594 if test -f $ac_dir/$ac_word; then
1595 ac_cv_prog_BUILD_CC="$ac_prog"
1596 break
1598 done
1599 IFS="$ac_save_ifs"
1602 BUILD_CC="$ac_cv_prog_BUILD_CC"
1603 if test -n "$BUILD_CC"; then
1604 echo "$ac_t""$BUILD_CC" 1>&6
1605 else
1606 echo "$ac_t""no" 1>&6
1609 test -n "$BUILD_CC" && break
1610 done
1614 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1615 echo "configure:1616: checking how to run the C preprocessor" >&5
1616 # On Suns, sometimes $CPP names a directory.
1617 if test -n "$CPP" && test -d "$CPP"; then
1618 CPP=
1620 if test -z "$CPP"; then
1621 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1622 echo $ac_n "(cached) $ac_c" 1>&6
1623 else
1624 # This must be in double quotes, not single quotes, because CPP may get
1625 # substituted into the Makefile and "${CC-cc}" will confuse make.
1626 CPP="${CC-cc} -E"
1627 # On the NeXT, cc -E runs the code through the compiler's parser,
1628 # not just through cpp.
1629 cat > conftest.$ac_ext <<EOF
1630 #line 1631 "configure"
1631 #include "confdefs.h"
1632 #include <assert.h>
1633 Syntax Error
1635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1636 { (eval echo configure:1637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1638 if test -z "$ac_err"; then
1640 else
1641 echo "$ac_err" >&5
1642 echo "configure: failed program was:" >&5
1643 cat conftest.$ac_ext >&5
1644 rm -rf conftest*
1645 CPP="${CC-cc} -E -traditional-cpp"
1646 cat > conftest.$ac_ext <<EOF
1647 #line 1648 "configure"
1648 #include "confdefs.h"
1649 #include <assert.h>
1650 Syntax Error
1652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1653 { (eval echo configure:1654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1655 if test -z "$ac_err"; then
1657 else
1658 echo "$ac_err" >&5
1659 echo "configure: failed program was:" >&5
1660 cat conftest.$ac_ext >&5
1661 rm -rf conftest*
1662 CPP="${CC-cc} -nologo -E"
1663 cat > conftest.$ac_ext <<EOF
1664 #line 1665 "configure"
1665 #include "confdefs.h"
1666 #include <assert.h>
1667 Syntax Error
1669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1670 { (eval echo configure:1671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1672 if test -z "$ac_err"; then
1674 else
1675 echo "$ac_err" >&5
1676 echo "configure: failed program was:" >&5
1677 cat conftest.$ac_ext >&5
1678 rm -rf conftest*
1679 CPP=/lib/cpp
1681 rm -f conftest*
1683 rm -f conftest*
1685 rm -f conftest*
1686 ac_cv_prog_CPP="$CPP"
1688 CPP="$ac_cv_prog_CPP"
1689 else
1690 ac_cv_prog_CPP="$CPP"
1692 echo "$ac_t""$CPP" 1>&6
1694 # Was a --with-binutils option given?
1695 if test -n "$path_binutils"; then
1696 # Make absolute; ensure a single trailing slash.
1697 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1698 CC="$CC -B$path_binutils"
1700 AS=`$CC -print-prog-name=as`
1701 LD=`$CC -print-prog-name=ld`
1702 AR=`$CC -print-prog-name=ar`
1705 # ranlib has to be treated a bit differently since it might not exist at all.
1706 RANLIB=`$CC -print-prog-name=ranlib`
1707 if test $RANLIB = ranlib; then
1708 # This extra check has to happen since gcc simply echos the parameter in
1709 # case it cannot find the value in its own directories.
1710 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1711 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1713 echo "configure:1714: checking for $ac_word" >&5
1714 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1715 echo $ac_n "(cached) $ac_c" 1>&6
1716 else
1717 if test -n "$RANLIB"; then
1718 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1719 else
1720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1721 ac_dummy="$PATH"
1722 for ac_dir in $ac_dummy; do
1723 test -z "$ac_dir" && ac_dir=.
1724 if test -f $ac_dir/$ac_word; then
1725 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1726 break
1728 done
1729 IFS="$ac_save_ifs"
1732 RANLIB="$ac_cv_prog_RANLIB"
1733 if test -n "$RANLIB"; then
1734 echo "$ac_t""$RANLIB" 1>&6
1735 else
1736 echo "$ac_t""no" 1>&6
1740 if test -z "$ac_cv_prog_RANLIB"; then
1741 if test -n "$ac_tool_prefix"; then
1742 # Extract the first word of "ranlib", so it can be a program name with args.
1743 set dummy ranlib; ac_word=$2
1744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1745 echo "configure:1746: checking for $ac_word" >&5
1746 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1748 else
1749 if test -n "$RANLIB"; then
1750 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1751 else
1752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1753 ac_dummy="$PATH"
1754 for ac_dir in $ac_dummy; do
1755 test -z "$ac_dir" && ac_dir=.
1756 if test -f $ac_dir/$ac_word; then
1757 ac_cv_prog_RANLIB="ranlib"
1758 break
1760 done
1761 IFS="$ac_save_ifs"
1762 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1765 RANLIB="$ac_cv_prog_RANLIB"
1766 if test -n "$RANLIB"; then
1767 echo "$ac_t""$RANLIB" 1>&6
1768 else
1769 echo "$ac_t""no" 1>&6
1772 else
1773 RANLIB=":"
1780 # Determine whether we are using GNU binutils.
1781 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1782 echo "configure:1783: checking whether $AS is GNU as" >&5
1783 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
1784 echo $ac_n "(cached) $ac_c" 1>&6
1785 else
1786 # Most GNU programs take a -v and spit out some text including
1787 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1788 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1789 libc_cv_prog_as_gnu=yes
1790 else
1791 libc_cv_prog_as_gnu=no
1793 rm -fr contest*
1796 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1797 rm -f a.out
1798 gnu_as=$libc_cv_prog_as_gnu
1800 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1801 echo "configure:1802: checking whether $LD is GNU ld" >&5
1802 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1804 else
1805 # Most GNU programs take a -v and spit out some text including
1806 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1807 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1808 libc_cv_prog_ld_gnu=yes
1809 else
1810 libc_cv_prog_ld_gnu=no
1812 rm -fr contest*
1815 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1816 gnu_ld=$libc_cv_prog_ld_gnu
1818 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
1819 set dummy ${ac_tool_prefix}mig; ac_word=$2
1820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1821 echo "configure:1822: checking for $ac_word" >&5
1822 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
1823 echo $ac_n "(cached) $ac_c" 1>&6
1824 else
1825 if test -n "$MIG"; then
1826 ac_cv_prog_MIG="$MIG" # Let the user override the test.
1827 else
1828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1829 ac_dummy="$PATH"
1830 for ac_dir in $ac_dummy; do
1831 test -z "$ac_dir" && ac_dir=.
1832 if test -f $ac_dir/$ac_word; then
1833 ac_cv_prog_MIG="${ac_tool_prefix}mig"
1834 break
1836 done
1837 IFS="$ac_save_ifs"
1838 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
1841 MIG="$ac_cv_prog_MIG"
1842 if test -n "$MIG"; then
1843 echo "$ac_t""$MIG" 1>&6
1844 else
1845 echo "$ac_t""no" 1>&6
1851 # if using special system headers, find out the compiler's sekrit
1852 # header directory and add that to the list. NOTE: Only does the right
1853 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
1854 if test -n "$sysheaders"; then
1855 ccheaders=`$CC -print-file-name=include`
1856 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
1860 # check if ranlib is necessary
1861 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
1862 echo "configure:1863: checking whether ranlib is necessary" >&5
1863 if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
1864 echo $ac_n "(cached) $ac_c" 1>&6
1865 else
1866 cat > conftest.c <<EOF
1867 int a;
1868 char b;
1869 void c(void) {}
1871 $CC $CFLAGS -c conftest.c
1872 $AR cr conftest.a conftest.c
1873 cp conftest.a conftest2.a
1874 $RANLIB conftest.a
1875 if cmp -s conftest.a conftest2.a; then
1876 libc_cv_ranlib_necessary=no
1877 else
1878 libc_cv_ranlib_necessary=yes
1880 rm -rf conftest*
1883 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
1884 if test "$libc_cv_ranlib_necessary" = no; then
1885 RANLIB=:
1888 # Test if LD_LIBRARY_PATH contains the notation for the current directory
1889 # since this would lead to problems installing/building glibc.
1890 # LD_LIBRARY_PATH contains the current directory if one of the following
1891 # is true:
1892 # - one of the terminals (":" and ";") is the first or last sign
1893 # - two terminals occur directly after each other
1894 # - the path contains an element with a dot in it
1895 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
1896 echo "configure:1897: checking LD_LIBRARY_PATH variable" >&5
1897 case ${LD_LIBRARY_PATH} in
1898 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1899 ld_library_path_setting="contains current directory"
1902 ld_library_path_setting="ok"
1904 esac
1905 echo "$ac_t""$ld_library_path_setting" 1>&6
1906 if test "$ld_library_path_setting" != "ok"; then
1907 { echo "configure: error:
1908 *** LD_LIBRARY_PATH shouldn't contain the current directory when
1909 *** building glibc. Please change the environment variable
1910 *** and run configure again." 1>&2; exit 1; }
1913 # Extract the first word of "bash", so it can be a program name with args.
1914 set dummy bash; ac_word=$2
1915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1916 echo "configure:1917: checking for $ac_word" >&5
1917 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6
1919 else
1920 case "$BASH" in
1922 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1924 ?:/*)
1925 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
1928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1929 ac_dummy="$PATH"
1930 for ac_dir in $ac_dummy; do
1931 test -z "$ac_dir" && ac_dir=.
1932 if test -f $ac_dir/$ac_word; then
1933 ac_cv_path_BASH="$ac_dir/$ac_word"
1934 break
1936 done
1937 IFS="$ac_save_ifs"
1938 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
1940 esac
1942 BASH="$ac_cv_path_BASH"
1943 if test -n "$BASH"; then
1944 echo "$ac_t""$BASH" 1>&6
1945 else
1946 echo "$ac_t""no" 1>&6
1949 if test "$BASH" != no &&
1950 $BASH -c 'test "$BASH_VERSINFO" \
1951 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1952 libc_cv_have_bash2=yes
1953 else
1954 libc_cv_have_bash2=no
1958 if test "$BASH" = no; then
1959 # Extract the first word of "ksh", so it can be a program name with args.
1960 set dummy ksh; ac_word=$2
1961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1962 echo "configure:1963: checking for $ac_word" >&5
1963 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1965 else
1966 case "$KSH" in
1968 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1970 ?:/*)
1971 ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path.
1974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1975 ac_dummy="$PATH"
1976 for ac_dir in $ac_dummy; do
1977 test -z "$ac_dir" && ac_dir=.
1978 if test -f $ac_dir/$ac_word; then
1979 ac_cv_path_KSH="$ac_dir/$ac_word"
1980 break
1982 done
1983 IFS="$ac_save_ifs"
1984 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
1986 esac
1988 KSH="$ac_cv_path_KSH"
1989 if test -n "$KSH"; then
1990 echo "$ac_t""$KSH" 1>&6
1991 else
1992 echo "$ac_t""no" 1>&6
1995 if test "$KSH" = no; then
1996 libc_cv_have_ksh=no
1997 else
1998 libc_cv_have_ksh=yes
2000 else
2001 KSH="$BASH"
2003 libc_cv_have_ksh=yes
2007 for ac_prog in mawk gawk nawk awk
2009 # Extract the first word of "$ac_prog", so it can be a program name with args.
2010 set dummy $ac_prog; ac_word=$2
2011 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2012 echo "configure:2013: checking for $ac_word" >&5
2013 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2015 else
2016 if test -n "$AWK"; then
2017 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2018 else
2019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2020 ac_dummy="$PATH"
2021 for ac_dir in $ac_dummy; do
2022 test -z "$ac_dir" && ac_dir=.
2023 if test -f $ac_dir/$ac_word; then
2024 ac_cv_prog_AWK="$ac_prog"
2025 break
2027 done
2028 IFS="$ac_save_ifs"
2031 AWK="$ac_cv_prog_AWK"
2032 if test -n "$AWK"; then
2033 echo "$ac_t""$AWK" 1>&6
2034 else
2035 echo "$ac_t""no" 1>&6
2038 test -n "$AWK" && break
2039 done
2041 # Extract the first word of "perl", so it can be a program name with args.
2042 set dummy perl; ac_word=$2
2043 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2044 echo "configure:2045: checking for $ac_word" >&5
2045 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2046 echo $ac_n "(cached) $ac_c" 1>&6
2047 else
2048 case "$PERL" in
2050 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2052 ?:/*)
2053 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
2056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2057 ac_dummy="$PATH"
2058 for ac_dir in $ac_dummy; do
2059 test -z "$ac_dir" && ac_dir=.
2060 if test -f $ac_dir/$ac_word; then
2061 ac_cv_path_PERL="$ac_dir/$ac_word"
2062 break
2064 done
2065 IFS="$ac_save_ifs"
2066 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
2068 esac
2070 PERL="$ac_cv_path_PERL"
2071 if test -n "$PERL"; then
2072 echo "$ac_t""$PERL" 1>&6
2073 else
2074 echo "$ac_t""no" 1>&6
2078 # Extract the first word of "install-info", so it can be a program name with args.
2079 set dummy install-info; ac_word=$2
2080 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2081 echo "configure:2082: checking for $ac_word" >&5
2082 if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2084 else
2085 case "$INSTALL_INFO" in
2087 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
2089 ?:/*)
2090 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a dos path.
2093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2094 ac_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
2095 for ac_dir in $ac_dummy; do
2096 test -z "$ac_dir" && ac_dir=.
2097 if test -f $ac_dir/$ac_word; then
2098 ac_cv_path_INSTALL_INFO="$ac_dir/$ac_word"
2099 break
2101 done
2102 IFS="$ac_save_ifs"
2103 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
2105 esac
2107 INSTALL_INFO="$ac_cv_path_INSTALL_INFO"
2108 if test -n "$INSTALL_INFO"; then
2109 echo "$ac_t""$INSTALL_INFO" 1>&6
2110 else
2111 echo "$ac_t""no" 1>&6
2115 if test "$INSTALL_INFO" != "no"; then
2116 echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
2117 echo "configure:2118: checking for old Debian install-info" >&5
2118 if eval "test \"`echo '$''{'libc_cv_old_debian_install_info'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2120 else
2121 mkdir conftest.d
2122 # There is a hard ^_ on the next line. I am open to better ideas.
2123 (echo '\x1f'
2124 echo 'File: dir Node: Top This is the top of the INFO tree'
2125 echo '* Menu:') >conftest.d/dir
2126 (echo 'INFO-DIR-SECTION i-d-s works'
2127 echo 'START-INFO-DIR-ENTRY'
2128 echo '* Prog: (prog). Program.'
2129 echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
2130 if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
2131 then
2132 if grep -s 'i-d-s works' conftest.d/dir >/dev/null
2133 then libc_cv_old_debian_install_info=no
2134 else libc_cv_old_debian_install_info=yes
2136 else libc_cv_old_debian_install_info=no testfailed=t
2138 rm -fr conftest.d
2141 echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2142 if test -n "$testfailed"
2143 then echo "configure: warning: install-info errored out, check config.log" 1>&2
2145 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
2149 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2150 echo "configure:2151: checking for signed size_t type" >&5
2151 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2153 else
2154 echo '#include <stddef.h>
2155 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2156 if eval "$ac_cpp conftest.c 2>/dev/null" \
2157 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
2158 libc_cv_signed_size_t=no
2159 else
2160 libc_cv_signed_size_t=yes
2162 rm -f conftest*
2165 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2166 if test $libc_cv_signed_size_t = yes; then
2167 cat >> confdefs.h <<\EOF
2168 #undef __SIZE_TYPE__
2169 #define __SIZE_TYPE__ unsigned
2173 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2174 echo "configure:2175: checking for libc-friendly stddef.h" >&5
2175 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2176 echo $ac_n "(cached) $ac_c" 1>&6
2177 else
2178 cat > conftest.$ac_ext <<EOF
2179 #line 2180 "configure"
2180 #include "confdefs.h"
2181 #define __need_size_t
2182 #define __need_wchar_t
2183 #include <stddef.h>
2184 #define __need_NULL
2185 #include <stddef.h>
2186 int main() {
2187 size_t size; wchar_t wchar;
2188 #ifdef offsetof
2189 #error stddef.h ignored __need_*
2190 #endif
2191 if (&size == NULL || &wchar == NULL) abort ();
2192 ; return 0; }
2194 if { (eval echo configure:2195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2195 rm -rf conftest*
2196 libc_cv_friendly_stddef=yes
2197 else
2198 echo "configure: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2200 rm -rf conftest*
2201 libc_cv_friendly_stddef=no
2203 rm -f conftest*
2206 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2207 if test $libc_cv_friendly_stddef = yes; then
2208 config_vars="$config_vars
2209 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2212 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2213 echo "configure:2214: checking whether we need to use -P to assemble .S files" >&5
2214 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2215 echo $ac_n "(cached) $ac_c" 1>&6
2216 else
2217 cat > conftest.S <<EOF
2218 #include "confdefs.h"
2219 /* Nothing whatsoever. */
2221 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
2222 libc_cv_need_minus_P=no
2223 else
2224 libc_cv_need_minus_P=yes
2226 rm -f conftest*
2229 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2230 if test $libc_cv_need_minus_P = yes; then
2231 config_vars="$config_vars
2232 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2235 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2236 echo "configure:2237: checking for assembler global-symbol directive" >&5
2237 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2239 else
2240 libc_cv_asm_global_directive=UNKNOWN
2241 for ac_globl in .globl .global .EXPORT; do
2242 cat > conftest.s <<EOF
2243 .text
2244 ${ac_globl} foo
2245 foo:
2247 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2248 libc_cv_asm_global_directive=${ac_globl}
2250 rm -f conftest*
2251 test $libc_cv_asm_global_directive != UNKNOWN && break
2252 done
2255 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2256 if test $libc_cv_asm_global_directive = UNKNOWN; then
2257 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2258 else
2259 cat >> confdefs.h <<EOF
2260 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2265 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2266 echo "configure:2267: checking for .set assembler directive" >&5
2267 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2268 echo $ac_n "(cached) $ac_c" 1>&6
2269 else
2270 cat > conftest.s <<EOF
2271 .text
2272 foo:
2273 .set glibc_conftest_frobozz,foo
2274 $libc_cv_asm_global_directive glibc_conftest_frobozz
2276 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2277 # (but it doesn't work), so we must do a linking check to be sure.
2278 cat > conftest1.c <<\EOF
2279 extern int glibc_conftest_frobozz;
2280 main () { printf ("%d\n", glibc_conftest_frobozz); }
2282 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2283 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2284 libc_cv_asm_set_directive=yes
2285 else
2286 libc_cv_asm_set_directive=no
2288 rm -f conftest*
2291 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2292 if test $libc_cv_asm_set_directive = yes; then
2293 cat >> confdefs.h <<\EOF
2294 #define HAVE_ASM_SET_DIRECTIVE 1
2299 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2300 echo "configure:2301: checking for .symver assembler directive" >&5
2301 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2302 echo $ac_n "(cached) $ac_c" 1>&6
2303 else
2304 cat > conftest.s <<EOF
2305 .text
2306 _sym:
2307 .symver _sym,sym@VERS
2309 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2310 libc_cv_asm_symver_directive=yes
2311 else
2312 libc_cv_asm_symver_directive=no
2314 rm -f conftest*
2317 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2318 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2319 echo "configure:2320: checking for ld --version-script" >&5
2320 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2321 echo $ac_n "(cached) $ac_c" 1>&6
2322 else
2323 if test $libc_cv_asm_symver_directive = yes; then
2324 cat > conftest.s <<EOF
2325 .text
2326 _sym:
2327 .symver _sym,sym@VERS
2329 cat > conftest.map <<EOF
2330 VERS_1 {
2331 global: sym;
2334 VERS_2 {
2335 global: sym;
2336 } VERS_1;
2338 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2339 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2340 -nostartfiles -nostdlib
2341 -Wl,--version-script,conftest.map
2342 1>&5'; { (eval echo configure:2343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2343 then
2344 libc_cv_ld_version_script_option=yes
2345 else
2346 libc_cv_ld_version_script_option=no
2348 else
2349 libc_cv_ld_version_script_option=no
2351 else
2352 libc_cv_ld_version_script_option=no
2354 rm -f conftest*
2357 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2358 if test $libc_cv_asm_symver_directive = yes &&
2359 test $libc_cv_ld_version_script_option = yes &&
2360 test $enable_versioning = yes; then
2361 VERSIONING=yes
2362 cat >> confdefs.h <<\EOF
2363 #define DO_VERSIONING 1
2366 else
2367 VERSIONING=no
2371 if test $VERSIONING = no; then
2372 echo "\
2373 *** WARNING: You should not compile GNU libc without versioning. Not using
2374 *** versioning will introduce incompatibilities so that old binaries
2375 *** will not run anymore.
2376 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2378 if test $elf = yes; then
2379 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2380 echo "configure:2381: checking for .previous assembler directive" >&5
2381 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2382 echo $ac_n "(cached) $ac_c" 1>&6
2383 else
2384 cat > conftest.s <<EOF
2385 .section foo_section
2386 .previous
2388 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2389 libc_cv_asm_previous_directive=yes
2390 else
2391 libc_cv_asm_previous_directive=no
2393 rm -f conftest*
2396 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2397 if test $libc_cv_asm_previous_directive = yes; then
2398 cat >> confdefs.h <<\EOF
2399 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2402 else
2403 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2404 echo "configure:2405: checking for .popsection assembler directive" >&5
2405 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2407 else
2408 cat > conftest.s <<EOF
2409 .pushsection foo_section
2410 .popsection
2412 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2413 libc_cv_asm_popsection_directive=yes
2414 else
2415 libc_cv_asm_popsection_directive=no
2417 rm -f conftest*
2420 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2421 if test $libc_cv_asm_popsection_directive = yes; then
2422 cat >> confdefs.h <<\EOF
2423 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2430 if test $elf != yes; then
2431 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2432 echo "configure:2433: checking for .init and .fini sections" >&5
2433 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2435 else
2436 cat > conftest.$ac_ext <<EOF
2437 #line 2438 "configure"
2438 #include "confdefs.h"
2440 int main() {
2441 asm (".section .init");
2442 asm (".section .fini");
2443 asm (".text");
2444 ; return 0; }
2446 if { (eval echo configure:2447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2447 rm -rf conftest*
2448 libc_cv_have_initfini=yes
2449 else
2450 echo "configure: failed program was:" >&5
2451 cat conftest.$ac_ext >&5
2452 rm -rf conftest*
2453 libc_cv_have_initfini=no
2455 rm -f conftest*
2458 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2459 if test $libc_cv_have_initfini = yes; then
2460 cat >> confdefs.h <<\EOF
2461 #define HAVE_INITFINI 1
2469 if test $elf = yes; then
2470 libc_cv_asm_underscores=no
2471 else
2472 if test $ac_cv_prog_cc_works = yes; then
2473 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2474 echo "configure:2475: checking for _ prefix on C symbol names" >&5
2475 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2476 echo $ac_n "(cached) $ac_c" 1>&6
2477 else
2478 cat > conftest.$ac_ext <<EOF
2479 #line 2480 "configure"
2480 #include "confdefs.h"
2481 asm ("_glibc_foobar:");
2482 int main() {
2483 glibc_foobar ();
2484 ; return 0; }
2486 if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2487 rm -rf conftest*
2488 libc_cv_asm_underscores=yes
2489 else
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 rm -rf conftest*
2493 libc_cv_asm_underscores=no
2495 rm -f conftest*
2498 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2499 else
2500 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2501 echo "configure:2502: checking for _ prefix on C symbol names" >&5
2502 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2504 else
2505 cat > conftest.$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2508 void underscore_test(void) {
2509 return; }
2511 if { (eval echo configure:2512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2512 if grep _underscore_test conftest* >/dev/null; then
2513 rm -f conftest*
2514 libc_cv_asm_underscores=yes
2515 else
2516 rm -f conftest*
2517 libc_cv_asm_underscores=no
2519 else
2520 echo "configure: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2522 rm -f conftest*
2523 libc_cv_asm_underscores=no
2525 rm -f conftest*
2528 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2531 if test $libc_cv_asm_underscores = no; then
2532 cat >> confdefs.h <<\EOF
2533 #define NO_UNDERSCORES 1
2538 if test $elf = yes; then
2539 libc_cv_weak_symbols=yes
2542 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2543 echo "configure:2544: checking for assembler .weak directive" >&5
2544 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2546 else
2547 cat > conftest.s <<EOF
2548 .text
2549 ${libc_cv_asm_global_directive} foo
2550 foo:
2551 .weak foo
2552 .weak bar; bar = foo
2554 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2555 libc_cv_asm_weak_directive=yes
2556 else
2557 libc_cv_asm_weak_directive=no
2559 rm -f conftest*
2562 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2564 if test $libc_cv_asm_weak_directive = no; then
2565 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2566 echo "configure:2567: checking for assembler .weakext directive" >&5
2567 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
2568 echo $ac_n "(cached) $ac_c" 1>&6
2569 else
2570 cat > conftest.s <<EOF
2571 .text
2572 ${libc_cv_asm_global_directive} foo
2573 foo:
2574 .weakext bar foo
2575 .weakext baz
2576 ${libc_cv_asm_global_directive} baz
2577 baz:
2579 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2580 libc_cv_asm_weakext_directive=yes
2581 else
2582 libc_cv_asm_weakext_directive=no
2584 rm -f conftest*
2587 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2589 fi # no .weak
2591 if test $libc_cv_asm_weak_directive = yes; then
2592 cat >> confdefs.h <<\EOF
2593 #define HAVE_ASM_WEAK_DIRECTIVE 1
2596 elif test $libc_cv_asm_weakext_directive = yes; then
2597 cat >> confdefs.h <<\EOF
2598 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2603 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2604 echo "configure:2605: checking for ld --no-whole-archive" >&5
2605 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2607 else
2608 cat > conftest.c <<\EOF
2609 _start () {}
2610 int __eh_pc;
2611 __throw () {}
2613 if { ac_try='${CC-cc} $CFLAGS
2614 -nostdlib -nostartfiles -Wl,--no-whole-archive
2615 -o conftest conftest.c 1>&5'; { (eval echo configure:2616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2616 libc_cv_ld_no_whole_archive=yes
2617 else
2618 libc_cv_ld_no_whole_archive=no
2620 rm -f conftest*
2623 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2624 if test $libc_cv_ld_no_whole_archive = yes; then
2625 no_whole_archive=-Wl,--no-whole-archive
2628 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
2629 echo "configure:2630: checking for gcc -fexceptions" >&5
2630 if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
2631 echo $ac_n "(cached) $ac_c" 1>&6
2632 else
2633 cat > conftest.c <<\EOF
2634 _start () {}
2635 int __eh_pc;
2636 __throw () {}
2638 if { ac_try='${CC-cc} $CFLAGS
2639 -nostdlib -nostartfiles -fexceptions
2640 -o conftest conftest.c 1>&5'; { (eval echo configure:2641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2641 libc_cv_gcc_exceptions=yes
2642 else
2643 libc_cv_gcc_exceptions=no
2645 rm -f conftest*
2648 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
2649 if test $libc_cv_gcc_exceptions = yes; then
2650 exceptions=-fexceptions
2653 if test "$base_machine" = alpha ; then
2654 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2655 echo "configure:2656: checking for function ..ng prefix" >&5
2656 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
2657 echo $ac_n "(cached) $ac_c" 1>&6
2658 else
2659 cat > conftest.c <<\EOF
2660 foo () { }
2662 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:2663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2663 then
2664 libc_cv_gcc_alpha_ng_prefix=yes
2665 else
2666 libc_cv_gcc_alpha_ng_prefix=no
2668 rm -f conftest*
2671 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2672 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2673 cat >> confdefs.h <<\EOF
2674 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2677 else
2678 cat >> confdefs.h <<\EOF
2679 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2685 if test "$host_cpu" = powerpc ; then
2686 # Check for a bug present in at least versions 2.8.x of GCC
2687 # and versions 1.0.x of EGCS.
2688 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
2689 echo "configure:2690: checking whether clobbering cr0 causes problems" >&5
2690 if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
2691 echo $ac_n "(cached) $ac_c" 1>&6
2692 else
2693 cat > conftest.$ac_ext <<EOF
2694 #line 2695 "configure"
2695 #include "confdefs.h"
2696 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
2697 int main() {
2699 ; return 0; }
2701 if { (eval echo configure:2702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2702 rm -rf conftest*
2703 libc_cv_c_asmcr0_bug='no'
2704 else
2705 echo "configure: failed program was:" >&5
2706 cat conftest.$ac_ext >&5
2707 rm -rf conftest*
2708 libc_cv_c_asmcr0_bug='yes'
2710 rm -f conftest*
2713 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
2714 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
2715 cat >> confdefs.h <<\EOF
2716 #define BROKEN_PPC_ASM_CR0 1
2722 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2723 echo "configure:2724: checking for DWARF2 unwind info support" >&5
2724 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
2725 echo $ac_n "(cached) $ac_c" 1>&6
2726 else
2727 cat > conftest.c <<EOF
2728 #line 2729 "configure"
2729 static char __EH_FRAME_BEGIN__;
2730 _start ()
2732 #ifdef CHECK__register_frame
2733 __register_frame (__EH_FRAME_BEGIN__);
2734 __deregister_frame (__EH_FRAME_BEGIN__);
2735 #endif
2736 #ifdef CHECK__register_frame_info
2737 __register_frame_info (__EH_FRAME_BEGIN__);
2738 __deregister_frame_info (__EH_FRAME_BEGIN__);
2739 #endif
2741 int __eh_pc;
2742 __throw () {}
2743 /* FIXME: this is fragile. */
2744 malloc () {}
2745 strcmp () {}
2746 strlen () {}
2747 memcpy () {}
2748 memset () {}
2749 free () {}
2750 abort () {}
2751 __bzero () {}
2753 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
2754 -nostdlib -nostartfiles
2755 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2756 libc_cv_gcc_dwarf2_unwind_info=static
2757 else
2758 libc_cv_gcc_dwarf2_unwind_info=no
2760 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
2761 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
2762 -nostdlib -nostartfiles
2763 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2764 libc_cv_gcc_dwarf2_unwind_info=yes
2765 else
2766 libc_cv_gcc_dwarf2_unwind_info=no
2769 rm -f conftest*
2772 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
2773 case $libc_cv_gcc_dwarf2_unwind_info in
2774 yes)
2775 cat >> confdefs.h <<\EOF
2776 #define HAVE_DWARF2_UNWIND_INFO 1
2780 static)
2781 cat >> confdefs.h <<\EOF
2782 #define HAVE_DWARF2_UNWIND_INFO 1
2785 cat >> confdefs.h <<\EOF
2786 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
2790 esac
2792 echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
2793 echo "configure:2794: checking for __builtin_expect" >&5
2794 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_expect'+set}'`\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2796 else
2797 cat > conftest.c <<EOF
2798 #line 2799 "configure"
2799 int foo (int a)
2801 a = __builtin_expect (a, 10);
2802 return a == 10 ? 0 : 1;
2805 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
2806 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2807 libc_cv_gcc_builtin_expect=yes
2808 else
2809 libc_cv_gcc_builtin_expect=no
2811 rm -f conftest*
2814 echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
2815 if test "$libc_cv_gcc_builtin_expect" = yes; then
2816 cat >> confdefs.h <<\EOF
2817 #define HAVE_BUILTIN_EXPECT 1
2822 ### End of automated tests.
2823 ### Now run sysdeps configure fragments.
2825 # sysdeps configure fragments may set these with files to be linked below.
2826 libc_link_dests=
2827 libc_link_sources=
2829 # They also can set these variables.
2830 ldd_rewrite_script=no
2832 # Iterate over all the sysdep directories we will use, running their
2833 # configure fragments, and looking for a uname implementation.
2834 uname=
2835 for dir in $sysnames; do
2836 case $dir in
2837 /*) dest=$dir ;;
2838 *) dest=$srcdir/$dir ;;
2839 esac
2840 if test -r $dest/configure; then
2841 echo "$ac_t""running configure fragment for $dest" 1>&6
2842 . $dest/configure
2845 if test -z "$uname"; then
2846 if test -r $dest/uname.c ||
2847 test -r $dest/uname.S ||
2848 { test -r $dest/syscalls.list &&
2849 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
2850 uname=$dir
2853 done
2857 # If we will use the generic uname implementation, we must figure out what
2858 # it will say by examining the system, and write the results in config-name.h.
2859 if test "$uname" = "sysdeps/generic"; then
2861 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
2862 if test $uname_sysname != $config_os; then
2863 config_release=`echo $config_os | sed s/$uname_sysname//`
2866 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2867 echo "configure:2868: checking OS release for uname" >&5
2868 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2870 else
2871 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2872 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
2873 != x$config_release; then
2874 # The configuration release is a substring of the kernel release.
2875 libc_cv_uname_release=$kernel_release
2876 elif test x$config_release != x; then
2877 libc_cv_uname_release=$config_release
2878 elif test x$kernel_release != x; then
2879 libc_cv_uname_release=$kernel_release
2880 else
2881 libc_cv_uname_release=unknown
2885 echo "$ac_t""$libc_cv_uname_release" 1>&6
2886 uname_release="$libc_cv_uname_release"
2888 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2889 echo "configure:2890: checking OS version for uname" >&5
2890 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
2891 echo $ac_n "(cached) $ac_c" 1>&6
2892 else
2893 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2894 if test -n "$kernel_version"; then
2895 libc_cv_uname_version="$kernel_version"
2896 else
2897 libc_cv_uname_version=unknown
2901 echo "$ac_t""$libc_cv_uname_version" 1>&6
2902 uname_version="$libc_cv_uname_version"
2904 config_uname=config-name.h:config-name.in
2905 else
2906 # For non-generic uname, we don't need to create config-name.h at all.
2907 config_uname=
2910 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
2911 echo "configure:2912: checking stdio selection" >&5
2913 case $stdio in
2914 libio) cat >> confdefs.h <<\EOF
2915 #define USE_IN_LIBIO 1
2918 default) stdio=stdio ;;
2919 esac
2920 echo "$ac_t""$stdio" 1>&6
2922 # Test for old glibc 2.0.x headers so that they can be removed properly
2923 # Search only in includedir.
2924 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
2925 echo "configure:2926: checking for old glibc 2.0.x headers" >&5
2926 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
2927 then
2928 old_glibc_headers=yes
2929 else
2930 old_glibc_headers=no
2932 echo "$ac_t""$old_glibc_headers" 1>&6
2933 if test ${old_glibc_headers} = yes; then
2934 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
2935 echo "configure: warning: *** be removed." 1>&2
2947 if test $gnu_ld = yes; then
2948 cat >> confdefs.h <<\EOF
2949 #define HAVE_GNU_LD 1
2953 if test $gnu_as = yes; then
2954 cat >> confdefs.h <<\EOF
2955 #define HAVE_GNU_AS 1
2959 if test $elf = yes; then
2960 cat >> confdefs.h <<\EOF
2961 #define HAVE_ELF 1
2968 if test $shared = default; then
2969 if test $gnu_ld = yes; then
2970 shared=$elf
2971 else
2972 # For now we do not assume shared libs are available. In future more
2973 # tests might become available.
2974 shared=no
2978 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
2979 echo "configure:2980: checking whether -fPIC is default" >&5
2980 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2982 else
2983 pic_default=yes
2984 cat > conftest.c <<EOF
2985 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
2986 # error PIC is default.
2987 #endif
2989 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
2990 pic_default=no
2992 rm -f conftest.*
2995 echo "$ac_t""$pic_default" 1>&6
3006 case "$add_ons" in
3007 *door*) linux_doors=yes ;;
3008 *) linux_doors=no ;;
3009 esac
3012 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
3013 config_makefile=
3014 else
3015 config_makefile=Makefile
3018 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
3019 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
3023 echo '*** Do NOT install this release on any production system!'
3024 echo '*** It is known to be broken and will be so for quite some time.'
3025 echo '*** Use the latest released version instead.'
3027 trap '' 1 2 15
3028 cat > confcache <<\EOF
3029 # This file is a shell script that caches the results of configure
3030 # tests run on this system so they can be shared between configure
3031 # scripts and configure runs. It is not useful on other systems.
3032 # If it contains results you don't want to keep, you may remove or edit it.
3034 # By default, configure uses ./config.cache as the cache file,
3035 # creating it if it does not exist already. You can give configure
3036 # the --cache-file=FILE option to use a different cache file; that is
3037 # what configure does when it calls configure scripts in
3038 # subdirectories, so they share the cache.
3039 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3040 # config.status only pays attention to the cache file if you give it the
3041 # --recheck option to rerun configure.
3044 # The following way of writing the cache mishandles newlines in values,
3045 # but we know of no workaround that is simple, portable, and efficient.
3046 # So, don't put newlines in cache variables' values.
3047 # Ultrix sh set writes to stderr and can't be redirected directly,
3048 # and sets the high bit in the cache file unless we assign to the vars.
3049 (set) 2>&1 |
3050 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3051 *ac_space=\ *)
3052 # `set' does not quote correctly, so add quotes (double-quote substitution
3053 # turns \\\\ into \\, and sed turns \\ into \).
3054 sed -n \
3055 -e "s/'/'\\\\''/g" \
3056 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3059 # `set' quotes correctly as required by POSIX, so do not add quotes.
3060 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3062 esac >> confcache
3063 if cmp -s $cache_file confcache; then
3065 else
3066 if test -w $cache_file; then
3067 echo "updating cache $cache_file"
3068 cat confcache > $cache_file
3069 else
3070 echo "not updating unwritable cache $cache_file"
3073 rm -f confcache
3075 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3077 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3078 # Let make expand exec_prefix.
3079 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3081 # Any assignment to VPATH causes Sun make to only execute
3082 # the first set of double-colon rules, so remove it if not needed.
3083 # If there is a colon in the path, we need to keep it.
3084 if test "x$srcdir" = x.; then
3085 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3088 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3090 DEFS=-DHAVE_CONFIG_H
3092 # Without the "./", some shells look in PATH for config.status.
3093 : ${CONFIG_STATUS=./config.status}
3095 echo creating $CONFIG_STATUS
3096 rm -f $CONFIG_STATUS
3097 cat > $CONFIG_STATUS <<EOF
3098 #! /bin/sh
3099 # Generated automatically by configure.
3100 # Run this file to recreate the current configuration.
3101 # This directory was configured as follows,
3102 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3104 # $0 $ac_configure_args
3106 # Compiler output produced by configure, useful for debugging
3107 # configure, is in ./config.log if it exists.
3109 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3110 for ac_option
3112 case "\$ac_option" in
3113 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3114 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3115 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3116 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3117 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3118 exit 0 ;;
3119 -help | --help | --hel | --he | --h)
3120 echo "\$ac_cs_usage"; exit 0 ;;
3121 *) echo "\$ac_cs_usage"; exit 1 ;;
3122 esac
3123 done
3125 ac_given_srcdir=$srcdir
3126 ac_given_INSTALL="$INSTALL"
3128 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3130 cat >> $CONFIG_STATUS <<EOF
3132 # Protect against being on the right side of a sed subst in config.status.
3133 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3134 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3135 $ac_vpsub
3136 $extrasub
3137 s%@SHELL@%$SHELL%g
3138 s%@CFLAGS@%$CFLAGS%g
3139 s%@CPPFLAGS@%$CPPFLAGS%g
3140 s%@CXXFLAGS@%$CXXFLAGS%g
3141 s%@FFLAGS@%$FFLAGS%g
3142 s%@DEFS@%$DEFS%g
3143 s%@LDFLAGS@%$LDFLAGS%g
3144 s%@LIBS@%$LIBS%g
3145 s%@exec_prefix@%$exec_prefix%g
3146 s%@prefix@%$prefix%g
3147 s%@program_transform_name@%$program_transform_name%g
3148 s%@bindir@%$bindir%g
3149 s%@sbindir@%$sbindir%g
3150 s%@libexecdir@%$libexecdir%g
3151 s%@datadir@%$datadir%g
3152 s%@sysconfdir@%$sysconfdir%g
3153 s%@sharedstatedir@%$sharedstatedir%g
3154 s%@localstatedir@%$localstatedir%g
3155 s%@libdir@%$libdir%g
3156 s%@includedir@%$includedir%g
3157 s%@oldincludedir@%$oldincludedir%g
3158 s%@infodir@%$infodir%g
3159 s%@mandir@%$mandir%g
3160 s%@with_cvs@%$with_cvs%g
3161 s%@subdirs@%$subdirs%g
3162 s%@force_install@%$force_install%g
3163 s%@host@%$host%g
3164 s%@host_alias@%$host_alias%g
3165 s%@host_cpu@%$host_cpu%g
3166 s%@host_vendor@%$host_vendor%g
3167 s%@host_os@%$host_os%g
3168 s%@base_machine@%$base_machine%g
3169 s%@sysnames@%$sysnames%g
3170 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3171 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3172 s%@INSTALL_DATA@%$INSTALL_DATA%g
3173 s%@LN_S@%$LN_S%g
3174 s%@build@%$build%g
3175 s%@build_alias@%$build_alias%g
3176 s%@build_cpu@%$build_cpu%g
3177 s%@build_vendor@%$build_vendor%g
3178 s%@build_os@%$build_os%g
3179 s%@CC@%$CC%g
3180 s%@MAKE@%$MAKE%g
3181 s%@MSGFMT@%$MSGFMT%g
3182 s%@MAKEINFO@%$MAKEINFO%g
3183 s%@cross_linkable@%$cross_linkable%g
3184 s%@BUILD_CC@%$BUILD_CC%g
3185 s%@cross_compiling@%$cross_compiling%g
3186 s%@CPP@%$CPP%g
3187 s%@AR@%$AR%g
3188 s%@RANLIB@%$RANLIB%g
3189 s%@MIG@%$MIG%g
3190 s%@SYSINCLUDES@%$SYSINCLUDES%g
3191 s%@BASH@%$BASH%g
3192 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
3193 s%@KSH@%$KSH%g
3194 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
3195 s%@AWK@%$AWK%g
3196 s%@PERL@%$PERL%g
3197 s%@INSTALL_INFO@%$INSTALL_INFO%g
3198 s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
3199 s%@VERSIONING@%$VERSIONING%g
3200 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
3201 s%@no_whole_archive@%$no_whole_archive%g
3202 s%@exceptions@%$exceptions%g
3203 s%@uname_sysname@%$uname_sysname%g
3204 s%@uname_release@%$uname_release%g
3205 s%@uname_version@%$uname_version%g
3206 s%@stdio@%$stdio%g
3207 s%@old_glibc_headers@%$old_glibc_headers%g
3208 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
3209 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
3210 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
3211 s%@has_ldconfig@%$has_ldconfig%g
3212 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
3213 s%@gnu_ld@%$gnu_ld%g
3214 s%@gnu_as@%$gnu_as%g
3215 s%@elf@%$elf%g
3216 s%@static@%$static%g
3217 s%@shared@%$shared%g
3218 s%@pic_default@%$pic_default%g
3219 s%@profile@%$profile%g
3220 s%@omitfp@%$omitfp%g
3221 s%@bounded@%$bounded%g
3222 s%@static_nss@%$static_nss%g
3223 s%@nopic_initfini@%$nopic_initfini%g
3224 s%@DEFINES@%$DEFINES%g
3225 s%@linux_doors@%$linux_doors%g
3226 s%@VERSION@%$VERSION%g
3227 s%@RELEASE@%$RELEASE%g
3229 CEOF
3232 cat >> $CONFIG_STATUS <<\EOF
3234 # Split the substitutions into bite-sized pieces for seds with
3235 # small command number limits, like on Digital OSF/1 and HP-UX.
3236 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3237 ac_file=1 # Number of current file.
3238 ac_beg=1 # First line for current file.
3239 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3240 ac_more_lines=:
3241 ac_sed_cmds=""
3242 while $ac_more_lines; do
3243 if test $ac_beg -gt 1; then
3244 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3245 else
3246 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3248 if test ! -s conftest.s$ac_file; then
3249 ac_more_lines=false
3250 rm -f conftest.s$ac_file
3251 else
3252 if test -z "$ac_sed_cmds"; then
3253 ac_sed_cmds="sed -f conftest.s$ac_file"
3254 else
3255 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3257 ac_file=`expr $ac_file + 1`
3258 ac_beg=$ac_end
3259 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3261 done
3262 if test -z "$ac_sed_cmds"; then
3263 ac_sed_cmds=cat
3267 cat >> $CONFIG_STATUS <<EOF
3269 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3271 cat >> $CONFIG_STATUS <<\EOF
3272 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3273 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3274 case "$ac_file" in
3275 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3276 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3277 *) ac_file_in="${ac_file}.in" ;;
3278 esac
3280 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3282 # Remove last slash and all that follows it. Not all systems have dirname.
3283 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3284 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3285 # The file is in a subdirectory.
3286 test ! -d "$ac_dir" && mkdir "$ac_dir"
3287 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3288 # A "../" for each directory in $ac_dir_suffix.
3289 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3290 else
3291 ac_dir_suffix= ac_dots=
3294 case "$ac_given_srcdir" in
3295 .) srcdir=.
3296 if test -z "$ac_dots"; then top_srcdir=.
3297 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3298 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3299 *) # Relative path.
3300 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3301 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3302 esac
3304 case "$ac_given_INSTALL" in
3305 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3306 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3307 esac
3309 echo creating "$ac_file"
3310 rm -f "$ac_file"
3311 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3312 case "$ac_file" in
3313 *Makefile*) ac_comsub="1i\\
3314 # $configure_input" ;;
3315 *) ac_comsub= ;;
3316 esac
3318 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3319 sed -e "$ac_comsub
3320 s%@configure_input@%$configure_input%g
3321 s%@srcdir@%$srcdir%g
3322 s%@top_srcdir@%$top_srcdir%g
3323 s%@INSTALL@%$INSTALL%g
3324 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3325 fi; done
3326 rm -f conftest.s*
3328 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3329 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3331 # ac_d sets the value in "#define NAME VALUE" lines.
3332 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3333 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3334 ac_dC='\3'
3335 ac_dD='%g'
3336 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3337 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3338 ac_uB='\([ ]\)%\1#\2define\3'
3339 ac_uC=' '
3340 ac_uD='\4%g'
3341 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3342 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3343 ac_eB='$%\1#\2define\3'
3344 ac_eC=' '
3345 ac_eD='%g'
3347 if test "${CONFIG_HEADERS+set}" != set; then
3349 cat >> $CONFIG_STATUS <<EOF
3350 CONFIG_HEADERS="config.h"
3352 cat >> $CONFIG_STATUS <<\EOF
3354 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3355 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3356 case "$ac_file" in
3357 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3358 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3359 *) ac_file_in="${ac_file}.in" ;;
3360 esac
3362 echo creating $ac_file
3364 rm -f conftest.frag conftest.in conftest.out
3365 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3366 cat $ac_file_inputs > conftest.in
3370 # Transform confdefs.h into a sed script conftest.vals that substitutes
3371 # the proper values into config.h.in to produce config.h. And first:
3372 # Protect against being on the right side of a sed subst in config.status.
3373 # Protect against being in an unquoted here document in config.status.
3374 rm -f conftest.vals
3375 cat > conftest.hdr <<\EOF
3376 s/[\\&%]/\\&/g
3377 s%[\\$`]%\\&%g
3378 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3379 s%ac_d%ac_u%gp
3380 s%ac_u%ac_e%gp
3382 sed -n -f conftest.hdr confdefs.h > conftest.vals
3383 rm -f conftest.hdr
3385 # This sed command replaces #undef with comments. This is necessary, for
3386 # example, in the case of _POSIX_SOURCE, which is predefined and required
3387 # on some systems where configure will not decide to define it.
3388 cat >> conftest.vals <<\EOF
3389 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3392 # Break up conftest.vals because some shells have a limit on
3393 # the size of here documents, and old seds have small limits too.
3395 rm -f conftest.tail
3396 while :
3398 ac_lines=`grep -c . conftest.vals`
3399 # grep -c gives empty output for an empty file on some AIX systems.
3400 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3401 # Write a limited-size here document to conftest.frag.
3402 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3403 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3404 echo 'CEOF
3405 sed -f conftest.frag conftest.in > conftest.out
3406 rm -f conftest.in
3407 mv conftest.out conftest.in
3408 ' >> $CONFIG_STATUS
3409 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3410 rm -f conftest.vals
3411 mv conftest.tail conftest.vals
3412 done
3413 rm -f conftest.vals
3415 cat >> $CONFIG_STATUS <<\EOF
3416 rm -f conftest.frag conftest.h
3417 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3418 cat conftest.in >> conftest.h
3419 rm -f conftest.in
3420 if cmp -s $ac_file conftest.h 2>/dev/null; then
3421 echo "$ac_file is unchanged"
3422 rm -f conftest.h
3423 else
3424 # Remove last slash and all that follows it. Not all systems have dirname.
3425 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3426 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3427 # The file is in a subdirectory.
3428 test ! -d "$ac_dir" && mkdir "$ac_dir"
3430 rm -f $ac_file
3431 mv conftest.h $ac_file
3433 fi; done
3437 cat >> $CONFIG_STATUS <<EOF
3438 ac_sources="`echo $libc_link_sources`"
3439 ac_dests="`echo $libc_link_dests`"
3442 cat >> $CONFIG_STATUS <<\EOF
3443 srcdir=$ac_given_srcdir
3444 while test -n "$ac_sources"; do
3445 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3446 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3448 echo "linking $srcdir/$ac_source to $ac_dest"
3450 if test ! -r $srcdir/$ac_source; then
3451 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3453 rm -f $ac_dest
3455 # Make relative symlinks.
3456 # Remove last slash and all that follows it. Not all systems have dirname.
3457 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3458 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3459 # The dest file is in a subdirectory.
3460 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3461 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3462 # A "../" for each directory in $ac_dest_dir_suffix.
3463 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3464 else
3465 ac_dest_dir_suffix= ac_dots=
3468 case "$srcdir" in
3469 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3470 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3471 esac
3473 # Make a symlink if possible; otherwise try a hard link.
3474 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3475 ln $srcdir/$ac_source $ac_dest; then :
3476 else
3477 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3479 done
3481 cat >> $CONFIG_STATUS <<EOF
3482 config_vars='$config_vars'
3484 cat >> $CONFIG_STATUS <<\EOF
3486 case $CONFIG_FILES in *config.make*)
3487 echo "$config_vars" >> config.make;;
3488 esac
3489 test -d bits || mkdir bits
3490 exit 0
3492 chmod +x $CONFIG_STATUS
3493 rm -fr confdefs* $ac_clean_files
3494 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3496 if test "$no_recursion" != yes; then
3498 # Remove --cache-file and --srcdir arguments so they do not pile up.
3499 ac_sub_configure_args=
3500 ac_prev=
3501 for ac_arg in $ac_configure_args; do
3502 if test -n "$ac_prev"; then
3503 ac_prev=
3504 continue
3506 case "$ac_arg" in
3507 -cache-file | --cache-file | --cache-fil | --cache-fi \
3508 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3509 ac_prev=cache_file ;;
3510 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3511 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3513 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3514 ac_prev=srcdir ;;
3515 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3517 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3518 esac
3519 done
3521 for ac_config_dir in $add_ons; do
3523 # Do not complain, so a configure script can configure whichever
3524 # parts of a large source tree are present.
3525 if test ! -d $srcdir/$ac_config_dir; then
3526 continue
3529 echo configuring in $ac_config_dir
3531 case "$srcdir" in
3532 .) ;;
3534 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3535 else
3536 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3539 esac
3541 ac_popdir=`pwd`
3542 cd $ac_config_dir
3544 # A "../" for each directory in /$ac_config_dir.
3545 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3547 case "$srcdir" in
3548 .) # No --srcdir option. We are building in place.
3549 ac_sub_srcdir=$srcdir ;;
3550 /*) # Absolute path.
3551 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3552 *) # Relative path.
3553 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3554 esac
3556 # Check for guested configure; otherwise get Cygnus style configure.
3557 if test -f $ac_sub_srcdir/configure; then
3558 ac_sub_configure=$ac_sub_srcdir/configure
3559 elif test -f $ac_sub_srcdir/configure.in; then
3560 ac_sub_configure=$ac_configure
3561 else
3562 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3563 ac_sub_configure=
3566 # The recursion is here.
3567 if test -n "$ac_sub_configure"; then
3569 # Make the cache file name correct relative to the subdirectory.
3570 case "$cache_file" in
3571 /*) ac_sub_cache_file=$cache_file ;;
3572 *) # Relative path.
3573 ac_sub_cache_file="$ac_dots$cache_file" ;;
3574 esac
3575 case "$ac_given_INSTALL" in
3576 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3577 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3578 esac
3580 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3581 # The eval makes quoting arguments work.
3582 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3583 then :
3584 else
3585 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3589 cd $ac_popdir
3590 done