Update.
[glibc.git] / configure
blob50a2443fa663c7b6a014433df9aaf391cc0b6887
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.12.2
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-static build static library [default=yes]"
48 ac_help="$ac_help
49 --enable-shared build shared library [default=yes if GNU ld & ELF]"
50 ac_help="$ac_help
51 --enable-profile build profiled library [default=yes]"
52 ac_help="$ac_help
53 --enable-omitfp build undebuggable optimized library [default=no]"
54 ac_help="$ac_help
55 --enable-bounded build with runtime bounds checking [default=no]"
56 ac_help="$ac_help
57 --disable-versioning do not include versioning information in the
58 library objects [default=yes if supported]"
59 ac_help="$ac_help
60 --enable-add-ons[=DIR1,DIR2]...
61 configure and build add-ons in DIR1,DIR2,...
62 search for add-ons if no parameter given"
63 ac_help="$ac_help
64 --enable-static-nss build static NSS modules [default=no]"
65 ac_help="$ac_help
66 --disable-force-install don't force installation of files from this package,
67 even if they are older than the installed files"
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
72 build=NONE
73 cache_file=./config.cache
74 exec_prefix=NONE
75 host=NONE
76 no_create=
77 nonopt=NONE
78 no_recursion=
79 prefix=NONE
80 program_prefix=NONE
81 program_suffix=NONE
82 program_transform_name=s,x,x,
83 silent=
84 site=
85 srcdir=
86 target=NONE
87 verbose=
88 x_includes=NONE
89 x_libraries=NONE
90 bindir='${exec_prefix}/bin'
91 sbindir='${exec_prefix}/sbin'
92 libexecdir='${exec_prefix}/libexec'
93 datadir='${prefix}/share'
94 sysconfdir='${prefix}/etc'
95 sharedstatedir='${prefix}/com'
96 localstatedir='${prefix}/var'
97 libdir='${exec_prefix}/lib'
98 includedir='${prefix}/include'
99 oldincludedir='/usr/include'
100 infodir='${prefix}/info'
101 mandir='${prefix}/man'
103 # Initialize some other variables.
104 subdirs=
105 MFLAGS= MAKEFLAGS=
106 SHELL=${CONFIG_SHELL-/bin/sh}
107 # Maximum number of lines to put in a shell here document.
108 ac_max_here_lines=12
110 ac_prev=
111 for ac_option
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
117 ac_prev=
118 continue
121 case "$ac_option" in
122 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 *) ac_optarg= ;;
124 esac
126 # Accept the important Cygnus configure options, so we can diagnose typos.
128 case "$ac_option" in
130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
131 ac_prev=bindir ;;
132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
133 bindir="$ac_optarg" ;;
135 -build | --build | --buil | --bui | --bu)
136 ac_prev=build ;;
137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
138 build="$ac_optarg" ;;
140 -cache-file | --cache-file | --cache-fil | --cache-fi \
141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142 ac_prev=cache_file ;;
143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
145 cache_file="$ac_optarg" ;;
147 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
148 ac_prev=datadir ;;
149 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
150 | --da=*)
151 datadir="$ac_optarg" ;;
153 -disable-* | --disable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
162 -enable-* | --enable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 case "$ac_option" in
170 *=*) ;;
171 *) ac_optarg=yes ;;
172 esac
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177 | --exec | --exe | --ex)
178 ac_prev=exec_prefix ;;
179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181 | --exec=* | --exe=* | --ex=*)
182 exec_prefix="$ac_optarg" ;;
184 -gas | --gas | --ga | --g)
185 # Obsolete; use --with-gas.
186 with_gas=yes ;;
188 -help | --help | --hel | --he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
191 cat << EOF
192 Usage: configure [options] [host]
193 Options: [defaults in brackets after descriptions]
194 Configuration:
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --version print the version of autoconf that created configure
200 Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
202 [$ac_default_prefix]
203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
204 [same as prefix]
205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
209 [PREFIX/share]
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
212 [PREFIX/com]
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
225 cat << EOF
226 Host type:
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230 Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
241 exit 0 ;;
243 -host | --host | --hos | --ho)
244 ac_prev=host ;;
245 -host=* | --host=* | --hos=* | --ho=*)
246 host="$ac_optarg" ;;
248 -includedir | --includedir | --includedi | --included | --include \
249 | --includ | --inclu | --incl | --inc)
250 ac_prev=includedir ;;
251 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
252 | --includ=* | --inclu=* | --incl=* | --inc=*)
253 includedir="$ac_optarg" ;;
255 -infodir | --infodir | --infodi | --infod | --info | --inf)
256 ac_prev=infodir ;;
257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
258 infodir="$ac_optarg" ;;
260 -libdir | --libdir | --libdi | --libd)
261 ac_prev=libdir ;;
262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
263 libdir="$ac_optarg" ;;
265 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
266 | --libexe | --libex | --libe)
267 ac_prev=libexecdir ;;
268 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
269 | --libexe=* | --libex=* | --libe=*)
270 libexecdir="$ac_optarg" ;;
272 -localstatedir | --localstatedir | --localstatedi | --localstated \
273 | --localstate | --localstat | --localsta | --localst \
274 | --locals | --local | --loca | --loc | --lo)
275 ac_prev=localstatedir ;;
276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
277 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
278 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
279 localstatedir="$ac_optarg" ;;
281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
282 ac_prev=mandir ;;
283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
284 mandir="$ac_optarg" ;;
286 -nfp | --nfp | --nf)
287 # Obsolete; use --without-fp.
288 with_fp=no ;;
290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
291 | --no-cr | --no-c)
292 no_create=yes ;;
294 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
295 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296 no_recursion=yes ;;
298 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
299 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
300 | --oldin | --oldi | --old | --ol | --o)
301 ac_prev=oldincludedir ;;
302 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
303 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
304 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
305 oldincludedir="$ac_optarg" ;;
307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
308 ac_prev=prefix ;;
309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
310 prefix="$ac_optarg" ;;
312 -program-prefix | --program-prefix | --program-prefi | --program-pref \
313 | --program-pre | --program-pr | --program-p)
314 ac_prev=program_prefix ;;
315 -program-prefix=* | --program-prefix=* | --program-prefi=* \
316 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
317 program_prefix="$ac_optarg" ;;
319 -program-suffix | --program-suffix | --program-suffi | --program-suff \
320 | --program-suf | --program-su | --program-s)
321 ac_prev=program_suffix ;;
322 -program-suffix=* | --program-suffix=* | --program-suffi=* \
323 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
324 program_suffix="$ac_optarg" ;;
326 -program-transform-name | --program-transform-name \
327 | --program-transform-nam | --program-transform-na \
328 | --program-transform-n | --program-transform- \
329 | --program-transform | --program-transfor \
330 | --program-transfo | --program-transf \
331 | --program-trans | --program-tran \
332 | --progr-tra | --program-tr | --program-t)
333 ac_prev=program_transform_name ;;
334 -program-transform-name=* | --program-transform-name=* \
335 | --program-transform-nam=* | --program-transform-na=* \
336 | --program-transform-n=* | --program-transform-=* \
337 | --program-transform=* | --program-transfor=* \
338 | --program-transfo=* | --program-transf=* \
339 | --program-trans=* | --program-tran=* \
340 | --progr-tra=* | --program-tr=* | --program-t=*)
341 program_transform_name="$ac_optarg" ;;
343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344 | -silent | --silent | --silen | --sile | --sil)
345 silent=yes ;;
347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
348 ac_prev=sbindir ;;
349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
350 | --sbi=* | --sb=*)
351 sbindir="$ac_optarg" ;;
353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
355 | --sharedst | --shareds | --shared | --share | --shar \
356 | --sha | --sh)
357 ac_prev=sharedstatedir ;;
358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
361 | --sha=* | --sh=*)
362 sharedstatedir="$ac_optarg" ;;
364 -site | --site | --sit)
365 ac_prev=site ;;
366 -site=* | --site=* | --sit=*)
367 site="$ac_optarg" ;;
369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
370 ac_prev=srcdir ;;
371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
372 srcdir="$ac_optarg" ;;
374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
375 | --syscon | --sysco | --sysc | --sys | --sy)
376 ac_prev=sysconfdir ;;
377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
379 sysconfdir="$ac_optarg" ;;
381 -target | --target | --targe | --targ | --tar | --ta | --t)
382 ac_prev=target ;;
383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
384 target="$ac_optarg" ;;
386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
387 verbose=yes ;;
389 -version | --version | --versio | --versi | --vers)
390 echo "configure generated by autoconf version 2.12.2"
391 exit 0 ;;
393 -with-* | --with-*)
394 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 case "$ac_option" in
401 *=*) ;;
402 *) ac_optarg=yes ;;
403 esac
404 eval "with_${ac_package}='$ac_optarg'" ;;
406 -without-* | --without-*)
407 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
415 --x)
416 # Obsolete; use --with-x.
417 with_x=yes ;;
419 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420 | --x-incl | --x-inc | --x-in | --x-i)
421 ac_prev=x_includes ;;
422 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
424 x_includes="$ac_optarg" ;;
426 -x-libraries | --x-libraries | --x-librarie | --x-librari \
427 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428 ac_prev=x_libraries ;;
429 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
431 x_libraries="$ac_optarg" ;;
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
440 if test "x$nonopt" != xNONE; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
443 nonopt="$ac_option"
446 esac
447 done
449 if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
455 # File descriptor usage:
456 # 0 standard input
457 # 1 file creation
458 # 2 errors and warnings
459 # 3 some systems may open it to /dev/tty
460 # 4 used on the Kubota Titan
461 # 6 checking for... messages and results
462 # 5 compiler messages saved in config.log
463 if test "$silent" = yes; then
464 exec 6>/dev/null
465 else
466 exec 6>&1
468 exec 5>./config.log
470 echo "\
471 This file contains any messages produced by compilers while
472 running configure, to aid debugging if configure makes a mistake.
473 " 1>&5
475 # Strip out --no-create and --no-recursion so they do not pile up.
476 # Also quote any args containing shell metacharacters.
477 ac_configure_args=
478 for ac_arg
480 case "$ac_arg" in
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c) ;;
483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
488 esac
489 done
491 # NLS nuisances.
492 # Only set these to C if already set. These must not be set unconditionally
493 # because not all systems understand e.g. LANG=C (notably SCO).
494 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495 # Non-C LC_CTYPE values break the ctype check.
496 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
497 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
498 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
499 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
502 rm -rf conftest* confdefs.h
503 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
504 echo > confdefs.h
506 # A filename unique to this package, relative to the directory that
507 # configure is in, which we can look for to find out if srcdir is correct.
508 ac_unique_file=include/features.h
510 # Find the source files, if location was not specified.
511 if test -z "$srcdir"; then
512 ac_srcdir_defaulted=yes
513 # Try the directory containing this script, then its parent.
514 ac_prog=$0
515 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
517 srcdir=$ac_confdir
518 if test ! -r $srcdir/$ac_unique_file; then
519 srcdir=..
521 else
522 ac_srcdir_defaulted=no
524 if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
527 else
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
533 # Prefer explicitly selected file to automatically selected ones.
534 if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE; then
536 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
537 else
538 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
541 for ac_site_file in $CONFIG_SITE; do
542 if test -r "$ac_site_file"; then
543 echo "loading site script $ac_site_file"
544 . "$ac_site_file"
546 done
548 if test -r "$cache_file"; then
549 echo "loading cache $cache_file"
550 . $cache_file
551 else
552 echo "creating cache $cache_file"
553 > $cache_file
556 ac_ext=c
557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558 ac_cpp='$CPP $CPPFLAGS'
559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
561 cross_compiling=$ac_cv_prog_cc_cross
563 ac_exeext=
564 ac_objext=o
565 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
566 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
568 ac_n= ac_c='
569 ' ac_t=' '
570 else
571 ac_n=-n ac_c= ac_t=
573 else
574 ac_n= ac_c='\c' ac_t=
577 if test -r /vmunix; then
578 kernel_id=`strings /vmunix | grep UNIX`
579 elif test -r /dynix; then
580 kernel_id=`strings /dynix | grep DYNIX`
581 else
582 kernel_id=
587 ac_aux_dir=
588 for ac_dir in scripts $srcdir/scripts; do
589 if test -f $ac_dir/install-sh; then
590 ac_aux_dir=$ac_dir
591 ac_install_sh="$ac_aux_dir/install-sh -c"
592 break
593 elif test -f $ac_dir/install.sh; then
594 ac_aux_dir=$ac_dir
595 ac_install_sh="$ac_aux_dir/install.sh -c"
596 break
598 done
599 if test -z "$ac_aux_dir"; then
600 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
602 ac_config_guess=$ac_aux_dir/config.guess
603 ac_config_sub=$ac_aux_dir/config.sub
604 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
607 # This will get text that should go into config.make.
608 config_vars=
610 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
611 # Check whether --with-gmp or --without-gmp was given.
612 if test "${with_gmp+set}" = set; then
613 withval="$with_gmp"
614 case "$with_gmp" in
615 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
616 ''|no) ;;
617 *) config_vars="$config_vars
618 gmp-srcdir = $withval" ;;
619 esac
623 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
624 # Check whether --with-gettext or --without-gettext was given.
625 if test "${with_gettext+set}" = set; then
626 withval="$with_gettext"
627 case "$with_gettext" in
628 yes)
629 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
630 ''|no) ;;
632 config_vars="$config_vars
633 gettext-srcdir = $withval" ;;
634 esac
639 # Check whether --with-fp or --without-fp was given.
640 if test "${with_fp+set}" = set; then
641 withval="$with_fp"
642 with_fp=$withval
643 else
644 with_fp=yes
647 # Check whether --with-binutils or --without-binutils was given.
648 if test "${with_binutils+set}" = set; then
649 withval="$with_binutils"
650 path_binutils=$withval
651 else
652 path_binutils=''
655 # Check whether --with-elf or --without-elf was given.
656 if test "${with_elf+set}" = set; then
657 withval="$with_elf"
658 elf=$withval
659 else
660 elf=no
663 # Check whether --with-cvs or --without-cvs was given.
664 if test "${with_cvs+set}" = set; then
665 withval="$with_cvs"
666 with_cvs=$withval
667 else
668 with_cvs=yes
673 # Check whether --with-headers or --without-headers was given.
674 if test "${with_headers+set}" = set; then
675 withval="$with_headers"
676 sysheaders=$withval
677 else
678 sysheaders=''
682 # Check whether --enable-libio or --disable-libio was given.
683 if test "${enable_libio+set}" = set; then
684 enableval="$enable_libio"
685 if test $enableval = yes; then
686 stdio=libio
687 else
688 stdio=stdio
690 else
691 stdio=default
695 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
696 if test "${enable_sanity_checks+set}" = set; then
697 enableval="$enable_sanity_checks"
698 enable_sanity=$enableval
699 else
700 enable_sanity=yes
704 # Check whether --enable-static or --disable-static was given.
705 if test "${enable_static+set}" = set; then
706 enableval="$enable_static"
707 static=$enableval
708 else
709 static=yes
712 # Check whether --enable-shared or --disable-shared was given.
713 if test "${enable_shared+set}" = set; then
714 enableval="$enable_shared"
715 shared=$enableval
716 else
717 shared=default
720 # Check whether --enable-profile or --disable-profile was given.
721 if test "${enable_profile+set}" = set; then
722 enableval="$enable_profile"
723 profile=$enableval
724 else
725 profile=yes
728 # Check whether --enable-omitfp or --disable-omitfp was given.
729 if test "${enable_omitfp+set}" = set; then
730 enableval="$enable_omitfp"
731 omitfp=$enableval
732 else
733 omitfp=no
736 # Check whether --enable-bounded or --disable-bounded was given.
737 if test "${enable_bounded+set}" = set; then
738 enableval="$enable_bounded"
739 bounded=$enableval
740 else
741 bounded=no
744 # Check whether --enable-versioning or --disable-versioning was given.
745 if test "${enable_versioning+set}" = set; then
746 enableval="$enable_versioning"
747 enable_versioning=$enableval
748 else
749 enable_versioning=yes
753 # Check whether --enable-add-ons or --disable-add-ons was given.
754 if test "${enable_add_ons+set}" = set; then
755 enableval="$enable_add_ons"
756 case "$enableval" in
757 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
758 test "$add_ons" = "*" && add_ons= ;;
759 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
760 esac
761 else
762 add_ons=
766 subdirs="$add_ons"
768 add_ons_pfx=
769 if test x"$add_ons" != x; then
770 for f in $add_ons; do
771 # Test whether such a subdir really exists.
772 if test -d $srcdir/$f; then
773 add_ons_pfx="$add_ons_pfx $f/"
774 else
775 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
777 done
780 # Check whether --enable-static-nss or --disable-static-nss was given.
781 if test "${enable_static_nss+set}" = set; then
782 enableval="$enable_static_nss"
783 static_nss=$enableval
784 else
785 static_nss=no
788 if test x"$static_nss" = xyes; then
789 cat >> confdefs.h <<\EOF
790 #define DO_STATIC_NSS 1
795 # Check whether --enable-force-install or --disable-force-install was given.
796 if test "${enable_force_install+set}" = set; then
797 enableval="$enable_force_install"
798 force_install=$enableval
799 else
800 force_install=yes
806 # Make sure we can run config.sub.
807 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
808 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
811 echo $ac_n "checking host system type""... $ac_c" 1>&6
812 echo "configure:813: checking host system type" >&5
814 host_alias=$host
815 case "$host_alias" in
816 NONE)
817 case $nonopt in
818 NONE)
819 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
820 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
821 fi ;;
822 *) host_alias=$nonopt ;;
823 esac ;;
824 esac
826 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
827 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
828 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
829 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
830 echo "$ac_t""$host" 1>&6
833 # The way shlib-versions is used to generate soversions.mk uses a
834 # fairly simplistic model for name recognition that can't distinguish
835 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
836 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
837 # tell. This doesn't get used much beyond that, so it's fairly safe.
838 case "$host_os" in
839 linux*)
841 gnu*)
842 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
844 esac
846 # We keep the original values in `$config_*' and never modify them, so we
847 # can write them unchanged into config.make. Everything else uses
848 # $machine, $vendor, and $os, and changes them whenever convenient.
849 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
851 # Some configurations imply other options.
852 case "$host_os" in
853 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
854 # These systems always use GNU tools.
855 gnu_ld=yes gnu_as=yes ;;
856 esac
857 case "$host_os" in
858 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
859 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
861 gnu* | linux* | sysv4* | solaris2* | irix6*)
862 # These systems (almost) always use the ELF format.
863 elf=yes
865 esac
867 machine=$config_machine
868 vendor=$config_vendor
869 os=$config_os
872 ### I put this here to prevent those annoying emails from people who cannot
873 ### read and try to compile glibc on unsupported platforms. --drepper
875 ### By using the undocumented --enable-hacker-mode option for configure
876 ### one can skip this test to make the configuration not fail for unsupported
877 ### platforms.
879 if test -z "$enable_hacker_mode"; then
880 case "$machine-$host_os" in
881 *-linux* | *-gnu* | arm*-none*)
884 echo "*** The GNU C library is currently not available for this platform."
885 echo "*** So far nobody cared to port it and if there is no volunteer it"
886 echo "*** might never happen. So, if you have interest to see glibc on"
887 echo "*** this platform visit"
888 echo "*** http://www.gnu.org/software/libc/porting.html"
889 echo "*** and join the group of porters"
890 exit 1
892 esac
895 # Expand the configuration machine name into a subdirectory by architecture
896 # type and particular chip.
897 case "$machine" in
898 a29k | am29000) base_machine=a29k machine=a29k ;;
899 alpha*) base_machine=alpha machine=alpha/$machine ;;
900 arm*) base_machine=arm machine=arm/$machine ;;
901 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
902 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
903 hppa*) base_machine=hppa machine=hppa/$machine ;;
904 i[3456]86) base_machine=i386 machine=i386/$machine ;;
905 m680?0) base_machine=m68k machine=m68k/$machine ;;
906 m68k) base_machine=m68k machine=m68k/m68020 ;;
907 m88???) base_machine=m88k machine=m88k/$machine ;;
908 m88k) base_machine=m88k machine=m88k/m88100 ;;
909 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
910 mips*) base_machine=mips
911 case "`uname -m`" in
912 IP22) machine=mips/mips3 ;;
913 *) machine=mips/$machine ,,
914 esac ;;
915 sparc | sparcv[67])
916 base_machine=sparc machine=sparc/sparc32 ;;
917 sparcv8 | supersparc | hypersparc)
918 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
919 sparc64 | ultrasparc)
920 base_machine=sparc machine=sparc/sparc64 ;;
921 esac
924 if test "$base_machine" = "i386"; then
925 cat >> confdefs.h <<\EOF
926 #define USE_REGPARMS 1
931 # Compute the list of sysdep directories for this configuration.
932 # This can take a while to compute.
933 sysdep_dir=$srcdir/sysdeps
934 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
935 echo "configure:936: checking sysdep dirs" >&5
936 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
937 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
939 case "$os" in
940 gnu*)
941 base_os=mach/hurd ;;
942 netbsd* | 386bsd* | freebsd* | bsdi*)
943 base_os=unix/bsd/bsd4.4 ;;
944 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
945 base_os=unix/bsd ;;
946 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
947 base_os=unix/sysv ;;
948 irix6*)
949 base_os=unix/sysv/irix6/$os ;;
950 solaris[2-9]*)
951 base_os=unix/sysv/sysv4 ;;
952 none)
953 base_os=standalone ;;
955 base_os='' ;;
956 esac
958 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
959 tail=$os
960 ostry=$os
961 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
962 ostry="$ostry /$o"
963 tail=$o
964 done
965 o=`echo $tail | sed 's/[0-9]*$//'`
966 if test $o != $tail; then
967 ostry="$ostry /$o"
969 # For linux-gnu, try linux-gnu, then linux.
970 o=`echo $tail | sed 's/-.*$//'`
971 if test $o != $tail; then
972 ostry="$ostry /$o"
975 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
976 base=
977 tail=$base_os
978 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
979 set $b
980 base="$base /$1"
981 tail="$2"
982 done
984 # For sparc/sparc9, try sparc/sparc9 and then sparc.
985 mach=
986 tail=$machine
987 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
988 set $m
989 # Prepend the machine's FPU directory unless --without-fp.
990 if test "$with_fp" = yes; then
991 mach="$mach /$1/fpu"
993 mach="$mach /$1"
994 tail="$2"
995 done
998 # Find what sysdep directories exist.
999 sysnames=
1000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1001 for d in $add_ons_pfx ''; do
1002 for b in $base ''; do
1003 for m0 in $mach ''; do
1004 for v in /$vendor ''; do
1005 test "$v" = / && continue
1006 for o in /$ostry ''; do
1007 test "$o" = / && continue
1008 for m in $mach ''; do
1009 if test "$m0$b$v$o$m"; then
1010 try="${d}sysdeps$m0$b$v$o$m"
1011 test -n "$enable_debug_configure" &&
1012 echo "$0 DEBUG: try $try" >&2
1013 if test -d $srcdir/$try; then
1014 sysnames="$sysnames $try"
1015 { test -n "$o" || test -n "$b"; } && os_used=t
1016 { test -n "$m" || test -n "$m0"; } && machine_used=t
1019 done
1020 done
1021 done
1022 done
1023 done
1024 done
1025 IFS="$ac_save_ifs"
1027 if test -z "$os_used" && test "$os" != none; then
1028 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1030 if test -z "$machine_used" && test "$machine" != none; then
1031 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1034 # We have now validated the configuration.
1037 # If using ELF, look for an `elf' subdirectory of each machine directory.
1038 # We prepend these rather than inserting them whereever the machine appears
1039 # because things specified by the machine's ELF ABI should override
1040 # OS-specific things, and should always be the same for any OS on the
1041 # machine (otherwise what's the point of an ABI?).
1042 if test "$elf" = yes; then
1043 elf_dirs=
1044 for d in $add_ons_pfx ''; do
1045 for m in $mach; do
1046 if test -d $srcdir/${d}sysdeps$m/elf; then
1047 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1049 done
1050 done
1051 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1055 # Expand the list of system names into a full list of directories
1056 # from each element's parent name and Implies file (if present).
1057 set $sysnames
1058 names=
1059 while test $# -gt 0; do
1060 name=$1
1061 shift
1063 case " $names " in *" $name "*)
1064 # Already in the list.
1065 continue
1066 esac
1068 # Report each name as we discover it, so there is no long pause in output.
1069 echo $ac_n "$name $ac_c" >&6
1071 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1073 case $name in
1074 /*) xsrcdir= ;;
1075 *) xsrcdir=$srcdir/ ;;
1076 esac
1077 test -n "$enable_debug_configure" &&
1078 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1080 if test -f $xsrcdir$name/Implies; then
1081 # Collect more names from the `Implies' file (removing comments).
1082 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1083 implied=
1084 for x in $implied_candidate; do
1085 if test -d $xsrcdir$name_base/$x; then
1086 implied="$implied $name_base/$x";
1087 else
1088 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1090 done
1091 else
1092 implied=
1095 # Add NAME to the list of names.
1096 names="$names $name"
1098 # Find the parent of NAME, using the empty string if it has none.
1099 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1101 # Add the names implied by NAME, and NAME's parent (if it has one), to
1102 # the list of names to be processed (the argument list). We prepend the
1103 # implied names to the list and append the parent. We want implied
1104 # directories to come before further directories inferred from the
1105 # configuration components; this ensures that for sysv4, unix/common
1106 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1107 # after sysv4).
1108 sysnames="`echo $implied $* $parent`"
1109 test -n "$sysnames" && set $sysnames
1110 done
1112 # Add the default directories.
1113 default_sysnames=sysdeps/generic
1114 if test "$elf" = yes; then
1115 default_sysnames="sysdeps/generic/elf $default_sysnames"
1117 sysnames="$names $default_sysnames"
1119 # The other names were emitted during the scan.
1120 echo "$ac_t""$default_sysnames" 1>&6
1123 ### Locate tools.
1125 # Find a good install program. We prefer a C program (faster),
1126 # so one script is as good as another. But avoid the broken or
1127 # incompatible versions:
1128 # SysV /etc/install, /usr/sbin/install
1129 # SunOS /usr/etc/install
1130 # IRIX /sbin/install
1131 # AIX /bin/install
1132 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1133 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1134 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1135 # ./install, which can be erroneously created by make from ./install.sh.
1136 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1137 echo "configure:1138: checking for a BSD compatible install" >&5
1138 if test -z "$INSTALL"; then
1139 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1140 echo $ac_n "(cached) $ac_c" 1>&6
1141 else
1142 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1143 for ac_dir in $PATH; do
1144 # Account for people who put trailing slashes in PATH elements.
1145 case "$ac_dir/" in
1146 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1148 # OSF1 and SCO ODT 3.0 have their own names for install.
1149 # Don't use installbsd from OSF since it installs stuff as root
1150 # by default.
1151 for ac_prog in ginstall scoinst install; do
1152 if test -f $ac_dir/$ac_prog; then
1153 if test $ac_prog = install &&
1154 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1155 # AIX install. It has an incompatible calling convention.
1157 else
1158 ac_cv_path_install="$ac_dir/$ac_prog -c"
1159 break 2
1162 done
1164 esac
1165 done
1166 IFS="$ac_save_IFS"
1169 if test "${ac_cv_path_install+set}" = set; then
1170 INSTALL="$ac_cv_path_install"
1171 else
1172 # As a last resort, use the slow shell script. We don't cache a
1173 # path for INSTALL within a source directory, because that will
1174 # break other packages using the cache if that directory is
1175 # removed, or if the path is relative.
1176 INSTALL="$ac_install_sh"
1179 echo "$ac_t""$INSTALL" 1>&6
1181 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1182 # It thinks the first close brace ends the variable substitution.
1183 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1185 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1187 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1188 # The makefiles need to use a different form to find it in $srcdir.
1189 INSTALL='\$(..)./install-sh -c'
1191 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1192 echo "configure:1193: checking whether ln -s works" >&5
1193 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1195 else
1196 rm -f conftestdata
1197 if ln -s X conftestdata 2>/dev/null
1198 then
1199 rm -f conftestdata
1200 ac_cv_prog_LN_S="ln -s"
1201 else
1202 ac_cv_prog_LN_S=ln
1205 LN_S="$ac_cv_prog_LN_S"
1206 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1207 echo "$ac_t""yes" 1>&6
1208 else
1209 echo "$ac_t""no" 1>&6
1213 # These programs are version sensitive.
1214 echo $ac_n "checking build system type""... $ac_c" 1>&6
1215 echo "configure:1216: checking build system type" >&5
1217 build_alias=$build
1218 case "$build_alias" in
1219 NONE)
1220 case $nonopt in
1221 NONE) build_alias=$host_alias ;;
1222 *) build_alias=$nonopt ;;
1223 esac ;;
1224 esac
1226 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1227 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1228 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1229 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1230 echo "$ac_t""$build" 1>&6
1232 if test $host != $build; then
1233 ac_tool_prefix=${host_alias}-
1234 else
1235 ac_tool_prefix=
1238 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
1240 # Extract the first word of "$ac_prog", so it can be a program name with args.
1241 set dummy $ac_prog; ac_word=$2
1242 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1243 echo "configure:1244: checking for $ac_word" >&5
1244 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1246 else
1247 if test -n "$CC"; then
1248 ac_cv_prog_CC="$CC" # Let the user override the test.
1249 else
1250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1251 for ac_dir in $PATH; do
1252 test -z "$ac_dir" && ac_dir=.
1253 if test -f $ac_dir/$ac_word; then
1254 ac_cv_prog_CC="$ac_prog"
1255 break
1257 done
1258 IFS="$ac_save_ifs"
1261 CC="$ac_cv_prog_CC"
1262 if test -n "$CC"; then
1263 echo "$ac_t""$CC" 1>&6
1264 else
1265 echo "$ac_t""no" 1>&6
1268 test -n "$CC" && break
1269 done
1271 if test -z "$CC"; then
1272 ac_verc_fail=yes
1273 else
1274 # Found it, now check the version.
1275 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1276 echo "configure:1277: checking version of $CC" >&5
1277 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcstp-]*[0-9.]*\).*$/\1/p'`
1278 case $ac_prog_version in
1279 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1280 egcs-2.9[1-9].*|egcs-2.90.2[789]|egcs-2.90.[3-9][0-9]|pgcc-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]*)
1281 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1282 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1284 esac
1285 echo "$ac_t""$ac_prog_version" 1>&6
1287 if test $ac_verc_fail = yes; then
1288 critic_missing=t
1291 for ac_prog in make gmake
1293 # Extract the first word of "$ac_prog", so it can be a program name with args.
1294 set dummy $ac_prog; ac_word=$2
1295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1296 echo "configure:1297: checking for $ac_word" >&5
1297 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1299 else
1300 if test -n "$MAKE"; then
1301 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1302 else
1303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1304 for ac_dir in $PATH; do
1305 test -z "$ac_dir" && ac_dir=.
1306 if test -f $ac_dir/$ac_word; then
1307 ac_cv_prog_MAKE="$ac_prog"
1308 break
1310 done
1311 IFS="$ac_save_ifs"
1314 MAKE="$ac_cv_prog_MAKE"
1315 if test -n "$MAKE"; then
1316 echo "$ac_t""$MAKE" 1>&6
1317 else
1318 echo "$ac_t""no" 1>&6
1321 test -n "$MAKE" && break
1322 done
1324 if test -z "$MAKE"; then
1325 ac_verc_fail=yes
1326 else
1327 # Found it, now check the version.
1328 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1329 echo "configure:1330: checking version of $MAKE" >&5
1330 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*version \([0-9][0-9.]*\), by.*$/\1/p'`
1331 case $ac_prog_version in
1332 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1333 3.75 | 3.76.[1-9]* | 3.7[789]* | 3.[89]*)
1334 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1335 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1337 esac
1338 echo "$ac_t""$ac_prog_version" 1>&6
1340 if test $ac_verc_fail = yes; then
1341 critic_missing=t
1345 for ac_prog in msgfmt gmsgfmt
1347 # Extract the first word of "$ac_prog", so it can be a program name with args.
1348 set dummy $ac_prog; ac_word=$2
1349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1350 echo "configure:1351: checking for $ac_word" >&5
1351 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1353 else
1354 if test -n "$MSGFMT"; then
1355 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1356 else
1357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1358 for ac_dir in $PATH; do
1359 test -z "$ac_dir" && ac_dir=.
1360 if test -f $ac_dir/$ac_word; then
1361 ac_cv_prog_MSGFMT="$ac_prog"
1362 break
1364 done
1365 IFS="$ac_save_ifs"
1368 MSGFMT="$ac_cv_prog_MSGFMT"
1369 if test -n "$MSGFMT"; then
1370 echo "$ac_t""$MSGFMT" 1>&6
1371 else
1372 echo "$ac_t""no" 1>&6
1375 test -n "$MSGFMT" && break
1376 done
1378 if test -z "$MSGFMT"; then
1379 ac_verc_fail=yes
1380 else
1381 # Found it, now check the version.
1382 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1383 echo "configure:1384: checking version of $MSGFMT" >&5
1384 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1385 case $ac_prog_version in
1386 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1387 0.[1-9][0-9].* | [1-9].*)
1388 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1389 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1391 esac
1392 echo "$ac_t""$ac_prog_version" 1>&6
1394 if test $ac_verc_fail = yes; then
1395 MSGFMT=: aux_missing=t
1398 for ac_prog in makeinfo
1400 # Extract the first word of "$ac_prog", so it can be a program name with args.
1401 set dummy $ac_prog; ac_word=$2
1402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1403 echo "configure:1404: checking for $ac_word" >&5
1404 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1406 else
1407 if test -n "$MAKEINFO"; then
1408 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1409 else
1410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1411 for ac_dir in $PATH; do
1412 test -z "$ac_dir" && ac_dir=.
1413 if test -f $ac_dir/$ac_word; then
1414 ac_cv_prog_MAKEINFO="$ac_prog"
1415 break
1417 done
1418 IFS="$ac_save_ifs"
1421 MAKEINFO="$ac_cv_prog_MAKEINFO"
1422 if test -n "$MAKEINFO"; then
1423 echo "$ac_t""$MAKEINFO" 1>&6
1424 else
1425 echo "$ac_t""no" 1>&6
1428 test -n "$MAKEINFO" && break
1429 done
1431 if test -z "$MAKEINFO"; then
1432 ac_verc_fail=yes
1433 else
1434 # Found it, now check the version.
1435 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1436 echo "configure:1437: checking version of $MAKEINFO" >&5
1437 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo \([0-9][0-9.]*\).*$/\1/p'`
1438 case $ac_prog_version in
1439 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1440 3.1[1-9] | 3.[2-9][0-9])
1441 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1442 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1444 esac
1445 echo "$ac_t""$ac_prog_version" 1>&6
1447 if test $ac_verc_fail = yes; then
1448 MAKEINFO=: aux_missing=t
1452 if test -n "$critic_missing"; then
1453 { echo "configure: error:
1454 *** Some critical program is missing or too old.
1455 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1458 test -n "$aux_missing" && echo "configure: warning:
1459 *** An auxiliary program is missing or too old;
1460 *** some features will be disabled.
1461 *** Check the INSTALL file for required versions." 1>&2
1464 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1465 echo "configure:1466: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1466 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1468 else
1470 ac_ext=c
1471 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1472 ac_cpp='$CPP $CPPFLAGS'
1473 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1474 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1475 cross_compiling=$ac_cv_prog_cc_cross
1477 cat > conftest.$ac_ext <<EOF
1478 #line 1479 "configure"
1479 #include "confdefs.h"
1480 main(){return(0);}
1482 if { (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1483 ac_cv_prog_cc_works=yes
1484 # If we can't run a trivial program, we are probably using a cross compiler.
1485 if (./conftest; exit) 2>/dev/null; then
1486 ac_cv_prog_cc_cross=no
1487 else
1488 ac_cv_prog_cc_cross=yes
1490 else
1491 echo "configure: failed program was:" >&5
1492 cat conftest.$ac_ext >&5
1493 ac_cv_prog_cc_works=no
1495 rm -fr conftest*
1499 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1500 if test $ac_cv_prog_cc_works = no; then
1501 cross_linkable=no
1502 ac_cv_prog_cc_cross=yes
1503 else
1504 cross_linkable=yes
1506 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1507 echo "configure:1508: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1508 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1510 else
1514 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1516 cross_compiling=$ac_cv_prog_cc_cross
1518 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1519 echo "configure:1520: checking whether we are using GNU C" >&5
1520 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1521 echo $ac_n "(cached) $ac_c" 1>&6
1522 else
1523 cat > conftest.c <<EOF
1524 #ifdef __GNUC__
1525 yes;
1526 #endif
1528 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1529 ac_cv_prog_gcc=yes
1530 else
1531 ac_cv_prog_gcc=no
1535 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1536 if test $ac_cv_prog_gcc != yes; then
1537 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1540 echo $ac_n "checking build system type""... $ac_c" 1>&6
1541 echo "configure:1542: checking build system type" >&5
1543 build_alias=$build
1544 case "$build_alias" in
1545 NONE)
1546 case $nonopt in
1547 NONE) build_alias=$host_alias ;;
1548 *) build_alias=$nonopt ;;
1549 esac ;;
1550 esac
1552 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1553 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556 echo "$ac_t""$build" 1>&6
1558 if test $host != $build; then
1559 for ac_prog in gcc cc
1561 # Extract the first word of "$ac_prog", so it can be a program name with args.
1562 set dummy $ac_prog; ac_word=$2
1563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1564 echo "configure:1565: checking for $ac_word" >&5
1565 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1567 else
1568 if test -n "$BUILD_CC"; then
1569 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1570 else
1571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1572 for ac_dir in $PATH; do
1573 test -z "$ac_dir" && ac_dir=.
1574 if test -f $ac_dir/$ac_word; then
1575 ac_cv_prog_BUILD_CC="$ac_prog"
1576 break
1578 done
1579 IFS="$ac_save_ifs"
1582 BUILD_CC="$ac_cv_prog_BUILD_CC"
1583 if test -n "$BUILD_CC"; then
1584 echo "$ac_t""$BUILD_CC" 1>&6
1585 else
1586 echo "$ac_t""no" 1>&6
1589 test -n "$BUILD_CC" && break
1590 done
1594 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1595 echo "configure:1596: checking how to run the C preprocessor" >&5
1596 # On Suns, sometimes $CPP names a directory.
1597 if test -n "$CPP" && test -d "$CPP"; then
1598 CPP=
1600 if test -z "$CPP"; then
1601 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1602 echo $ac_n "(cached) $ac_c" 1>&6
1603 else
1604 # This must be in double quotes, not single quotes, because CPP may get
1605 # substituted into the Makefile and "${CC-cc}" will confuse make.
1606 CPP="${CC-cc} -E"
1607 # On the NeXT, cc -E runs the code through the compiler's parser,
1608 # not just through cpp.
1609 cat > conftest.$ac_ext <<EOF
1610 #line 1611 "configure"
1611 #include "confdefs.h"
1612 #include <assert.h>
1613 Syntax Error
1615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1616 { (eval echo configure:1617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1617 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1618 if test -z "$ac_err"; then
1620 else
1621 echo "$ac_err" >&5
1622 echo "configure: failed program was:" >&5
1623 cat conftest.$ac_ext >&5
1624 rm -rf conftest*
1625 CPP="${CC-cc} -E -traditional-cpp"
1626 cat > conftest.$ac_ext <<EOF
1627 #line 1628 "configure"
1628 #include "confdefs.h"
1629 #include <assert.h>
1630 Syntax Error
1632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1633 { (eval echo configure:1634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1635 if test -z "$ac_err"; then
1637 else
1638 echo "$ac_err" >&5
1639 echo "configure: failed program was:" >&5
1640 cat conftest.$ac_ext >&5
1641 rm -rf conftest*
1642 CPP="${CC-cc} -nologo -E"
1643 cat > conftest.$ac_ext <<EOF
1644 #line 1645 "configure"
1645 #include "confdefs.h"
1646 #include <assert.h>
1647 Syntax Error
1649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1650 { (eval echo configure:1651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1652 if test -z "$ac_err"; then
1654 else
1655 echo "$ac_err" >&5
1656 echo "configure: failed program was:" >&5
1657 cat conftest.$ac_ext >&5
1658 rm -rf conftest*
1659 CPP=/lib/cpp
1661 rm -f conftest*
1663 rm -f conftest*
1665 rm -f conftest*
1666 ac_cv_prog_CPP="$CPP"
1668 CPP="$ac_cv_prog_CPP"
1669 else
1670 ac_cv_prog_CPP="$CPP"
1672 echo "$ac_t""$CPP" 1>&6
1674 # Was a --with-binutils option given?
1675 if test -n "$path_binutils"; then
1676 # Make absolute; ensure a single trailing slash.
1677 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1678 CC="$CC -B$path_binutils"
1680 AS=`$CC -print-prog-name=as`
1681 LD=`$CC -print-prog-name=ld`
1683 # Determine whether we are using GNU binutils.
1684 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1685 echo "configure:1686: checking whether $AS is GNU as" >&5
1686 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1688 else
1689 # Most GNU programs take a -v and spit out some text including
1690 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1691 if $AS -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1692 libc_cv_prog_as_gnu=yes
1693 else
1694 libc_cv_prog_as_gnu=no
1698 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1699 rm -f a.out
1700 gnu_as=$libc_cv_prog_as_gnu
1702 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1703 echo "configure:1704: checking whether $LD is GNU ld" >&5
1704 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
1705 echo $ac_n "(cached) $ac_c" 1>&6
1706 else
1707 # Most GNU programs take a -v and spit out some text including
1708 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1709 if $LD -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1710 libc_cv_prog_ld_gnu=yes
1711 else
1712 libc_cv_prog_ld_gnu=no
1716 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1717 gnu_ld=$libc_cv_prog_ld_gnu
1719 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1720 set dummy ${ac_tool_prefix}ar; ac_word=$2
1721 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1722 echo "configure:1723: checking for $ac_word" >&5
1723 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1724 echo $ac_n "(cached) $ac_c" 1>&6
1725 else
1726 if test -n "$AR"; then
1727 ac_cv_prog_AR="$AR" # Let the user override the test.
1728 else
1729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1730 for ac_dir in $PATH; do
1731 test -z "$ac_dir" && ac_dir=.
1732 if test -f $ac_dir/$ac_word; then
1733 ac_cv_prog_AR="${ac_tool_prefix}ar"
1734 break
1736 done
1737 IFS="$ac_save_ifs"
1738 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1741 AR="$ac_cv_prog_AR"
1742 if test -n "$AR"; then
1743 echo "$ac_t""$AR" 1>&6
1744 else
1745 echo "$ac_t""no" 1>&6
1750 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1751 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1753 echo "configure:1754: checking for $ac_word" >&5
1754 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1756 else
1757 if test -n "$RANLIB"; then
1758 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1759 else
1760 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1761 for ac_dir in $PATH; do
1762 test -z "$ac_dir" && ac_dir=.
1763 if test -f $ac_dir/$ac_word; then
1764 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1765 break
1767 done
1768 IFS="$ac_save_ifs"
1771 RANLIB="$ac_cv_prog_RANLIB"
1772 if test -n "$RANLIB"; then
1773 echo "$ac_t""$RANLIB" 1>&6
1774 else
1775 echo "$ac_t""no" 1>&6
1779 if test -z "$ac_cv_prog_RANLIB"; then
1780 if test -n "$ac_tool_prefix"; then
1781 # Extract the first word of "ranlib", so it can be a program name with args.
1782 set dummy ranlib; ac_word=$2
1783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1784 echo "configure:1785: checking for $ac_word" >&5
1785 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1786 echo $ac_n "(cached) $ac_c" 1>&6
1787 else
1788 if test -n "$RANLIB"; then
1789 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1790 else
1791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1792 for ac_dir in $PATH; do
1793 test -z "$ac_dir" && ac_dir=.
1794 if test -f $ac_dir/$ac_word; then
1795 ac_cv_prog_RANLIB="ranlib"
1796 break
1798 done
1799 IFS="$ac_save_ifs"
1800 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1803 RANLIB="$ac_cv_prog_RANLIB"
1804 if test -n "$RANLIB"; then
1805 echo "$ac_t""$RANLIB" 1>&6
1806 else
1807 echo "$ac_t""no" 1>&6
1810 else
1811 RANLIB=":"
1815 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
1816 set dummy ${ac_tool_prefix}mig; ac_word=$2
1817 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1818 echo "configure:1819: checking for $ac_word" >&5
1819 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1821 else
1822 if test -n "$MIG"; then
1823 ac_cv_prog_MIG="$MIG" # Let the user override the test.
1824 else
1825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1826 for ac_dir in $PATH; do
1827 test -z "$ac_dir" && ac_dir=.
1828 if test -f $ac_dir/$ac_word; then
1829 ac_cv_prog_MIG="${ac_tool_prefix}mig"
1830 break
1832 done
1833 IFS="$ac_save_ifs"
1834 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
1837 MIG="$ac_cv_prog_MIG"
1838 if test -n "$MIG"; then
1839 echo "$ac_t""$MIG" 1>&6
1840 else
1841 echo "$ac_t""no" 1>&6
1847 # if using special system headers, find out the compiler's sekrit
1848 # header directory and add that to the list. NOTE: Only does the right
1849 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
1850 if test -n "$sysheaders"; then
1851 ccheaders=`$CC -print-file-name=include`
1852 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
1856 # check if ranlib is necessary
1857 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
1858 echo "configure:1859: checking whether ranlib is necessary" >&5
1859 if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
1860 echo $ac_n "(cached) $ac_c" 1>&6
1861 else
1862 cat > conftest.c <<EOF
1863 int a;
1864 char b;
1865 void c(void) {}
1867 $CC $CFLAGS -c conftest.c
1868 $AR cr conftest.a conftest.c
1869 cp conftest.a conftest2.a
1870 $RANLIB conftest.a
1871 if cmp -s conftest.a conftest2.a; then
1872 libc_cv_ranlib_necessary=no
1873 else
1874 libc_cv_ranlib_necessary=yes
1876 rm -rf conftest*
1879 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
1880 if test "$libc_cv_ranlib_necessary" = no; then
1881 RANLIB=:
1884 # Test if LD_LIBRARY_PATH contains the notation for the current directory
1885 # since this would lead to problems installing/building glibc.
1886 # LD_LIBRARY_PATH contains the current directory if one of the following
1887 # is true:
1888 # - one of the terminals (":" and ";") is the first or last sign
1889 # - two terminals occur directly after each other
1890 # - the path contains an element with a dot in it
1891 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
1892 echo "configure:1893: checking LD_LIBRARY_PATH variable" >&5
1893 case ${LD_LIBRARY_PATH} in
1894 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1895 ld_library_path_setting="contains current directory"
1898 ld_library_path_setting="ok"
1900 esac
1901 echo "$ac_t""$ld_library_path_setting" 1>&6
1902 if test "$ld_library_path_setting" != "ok"; then
1903 { echo "configure: error:
1904 *** LD_LIBRARY_PATH shouldn't contain the current directory when
1905 *** building glibc. Please change the environment variable
1906 *** and run configure again." 1>&2; exit 1; }
1909 # Extract the first word of "bash", so it can be a program name with args.
1910 set dummy bash; ac_word=$2
1911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1912 echo "configure:1913: checking for $ac_word" >&5
1913 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1915 else
1916 case "$BASH" in
1918 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1920 ?:/*)
1921 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
1924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1925 for ac_dir in $PATH; do
1926 test -z "$ac_dir" && ac_dir=.
1927 if test -f $ac_dir/$ac_word; then
1928 ac_cv_path_BASH="$ac_dir/$ac_word"
1929 break
1931 done
1932 IFS="$ac_save_ifs"
1933 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
1935 esac
1937 BASH="$ac_cv_path_BASH"
1938 if test -n "$BASH"; then
1939 echo "$ac_t""$BASH" 1>&6
1940 else
1941 echo "$ac_t""no" 1>&6
1944 if test "$BASH" != no &&
1945 $BASH -c 'test "$BASH_VERSINFO" \
1946 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1947 libc_cv_have_bash2=yes
1948 else
1949 libc_cv_have_bash2=no
1953 if test "$BASH" = no; then
1954 # Extract the first word of "ksh", so it can be a program name with args.
1955 set dummy ksh; ac_word=$2
1956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1957 echo "configure:1958: checking for $ac_word" >&5
1958 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1959 echo $ac_n "(cached) $ac_c" 1>&6
1960 else
1961 case "$KSH" in
1963 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1965 ?:/*)
1966 ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path.
1969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1970 for ac_dir in $PATH; do
1971 test -z "$ac_dir" && ac_dir=.
1972 if test -f $ac_dir/$ac_word; then
1973 ac_cv_path_KSH="$ac_dir/$ac_word"
1974 break
1976 done
1977 IFS="$ac_save_ifs"
1978 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
1980 esac
1982 KSH="$ac_cv_path_KSH"
1983 if test -n "$KSH"; then
1984 echo "$ac_t""$KSH" 1>&6
1985 else
1986 echo "$ac_t""no" 1>&6
1989 if test "$KSH" = no; then
1990 libc_cv_have_ksh=no
1991 else
1992 libc_cv_have_ksh=yes
1994 else
1995 KSH="$BASH"
1997 libc_cv_have_ksh=yes
2001 for ac_prog in mawk gawk nawk awk
2003 # Extract the first word of "$ac_prog", so it can be a program name with args.
2004 set dummy $ac_prog; ac_word=$2
2005 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2006 echo "configure:2007: checking for $ac_word" >&5
2007 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2008 echo $ac_n "(cached) $ac_c" 1>&6
2009 else
2010 if test -n "$AWK"; then
2011 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2012 else
2013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2014 for ac_dir in $PATH; do
2015 test -z "$ac_dir" && ac_dir=.
2016 if test -f $ac_dir/$ac_word; then
2017 ac_cv_prog_AWK="$ac_prog"
2018 break
2020 done
2021 IFS="$ac_save_ifs"
2024 AWK="$ac_cv_prog_AWK"
2025 if test -n "$AWK"; then
2026 echo "$ac_t""$AWK" 1>&6
2027 else
2028 echo "$ac_t""no" 1>&6
2031 test -n "$AWK" && break
2032 done
2034 for ac_prog in perl
2036 # Extract the first word of "$ac_prog", so it can be a program name with args.
2037 set dummy $ac_prog; ac_word=$2
2038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2039 echo "configure:2040: checking for $ac_word" >&5
2040 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2041 echo $ac_n "(cached) $ac_c" 1>&6
2042 else
2043 case "$PERL" in
2045 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2047 ?:/*)
2048 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
2051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2052 for ac_dir in $PATH; do
2053 test -z "$ac_dir" && ac_dir=.
2054 if test -f $ac_dir/$ac_word; then
2055 ac_cv_path_PERL="$ac_dir/$ac_word"
2056 break
2058 done
2059 IFS="$ac_save_ifs"
2061 esac
2063 PERL="$ac_cv_path_PERL"
2064 if test -n "$PERL"; then
2065 echo "$ac_t""$PERL" 1>&6
2066 else
2067 echo "$ac_t""no" 1>&6
2070 test -n "$PERL" && break
2071 done
2072 test -n "$PERL" || PERL="no"
2076 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2077 echo "configure:2078: checking for signed size_t type" >&5
2078 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2080 else
2081 echo '#include <stddef.h>
2082 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2083 if eval "$ac_cpp conftest.c 2>/dev/null" \
2084 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
2085 libc_cv_signed_size_t=no
2086 else
2087 libc_cv_signed_size_t=yes
2089 rm -f conftest*
2092 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2093 if test $libc_cv_signed_size_t = yes; then
2094 cat >> confdefs.h <<\EOF
2095 #undef __SIZE_TYPE__
2096 #define __SIZE_TYPE__ unsigned
2100 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2101 echo "configure:2102: checking for libc-friendly stddef.h" >&5
2102 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2104 else
2105 cat > conftest.$ac_ext <<EOF
2106 #line 2107 "configure"
2107 #include "confdefs.h"
2108 #define __need_size_t
2109 #define __need_wchar_t
2110 #include <stddef.h>
2111 #define __need_NULL
2112 #include <stddef.h>
2113 int main() {
2114 size_t size; wchar_t wchar;
2115 #ifdef offsetof
2116 #error stddef.h ignored __need_*
2117 #endif
2118 if (&size == NULL || &wchar == NULL) abort ();
2119 ; return 0; }
2121 if { (eval echo configure:2122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2122 rm -rf conftest*
2123 libc_cv_friendly_stddef=yes
2124 else
2125 echo "configure: failed program was:" >&5
2126 cat conftest.$ac_ext >&5
2127 rm -rf conftest*
2128 libc_cv_friendly_stddef=no
2130 rm -f conftest*
2133 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2134 if test $libc_cv_friendly_stddef = yes; then
2135 config_vars="$config_vars
2136 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2139 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2140 echo "configure:2141: checking whether we need to use -P to assemble .S files" >&5
2141 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2143 else
2144 cat > conftest.S <<EOF
2145 #include "confdefs.h"
2146 /* Nothing whatsoever. */
2148 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
2149 libc_cv_need_minus_P=no
2150 else
2151 libc_cv_need_minus_P=yes
2153 rm -f conftest*
2156 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2157 if test $libc_cv_need_minus_P = yes; then
2158 config_vars="$config_vars
2159 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2162 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2163 echo "configure:2164: checking for assembler global-symbol directive" >&5
2164 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2165 echo $ac_n "(cached) $ac_c" 1>&6
2166 else
2167 libc_cv_asm_global_directive=UNKNOWN
2168 for ac_globl in .globl .global; do
2169 cat > conftest.s <<EOF
2170 .text
2171 ${ac_globl} foo
2172 foo:
2174 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2175 libc_cv_asm_global_directive=${ac_globl}
2177 rm -f conftest*
2178 test $libc_cv_asm_global_directive != UNKNOWN && break
2179 done
2182 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2183 if test $libc_cv_asm_global_directive = UNKNOWN; then
2184 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2185 else
2186 cat >> confdefs.h <<EOF
2187 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2192 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2193 echo "configure:2194: checking for .set assembler directive" >&5
2194 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2196 else
2197 cat > conftest.s <<EOF
2198 .text
2199 foo:
2200 .set glibc_conftest_frobozz,foo
2201 $libc_cv_asm_global_directive glibc_conftest_frobozz
2203 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2204 # (but it doesn't work), so we must do a linking check to be sure.
2205 cat > conftest1.c <<\EOF
2206 extern int glibc_conftest_frobozz;
2207 main () { printf ("%d\n", glibc_conftest_frobozz); }
2209 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2210 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2211 libc_cv_asm_set_directive=yes
2212 else
2213 libc_cv_asm_set_directive=no
2215 rm -f conftest*
2218 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2219 if test $libc_cv_asm_set_directive = yes; then
2220 cat >> confdefs.h <<\EOF
2221 #define HAVE_ASM_SET_DIRECTIVE 1
2226 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2227 echo "configure:2228: checking for .symver assembler directive" >&5
2228 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2229 echo $ac_n "(cached) $ac_c" 1>&6
2230 else
2231 cat > conftest.s <<EOF
2232 .text
2233 _sym:
2234 .symver _sym,sym@VERS
2236 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2237 libc_cv_asm_symver_directive=yes
2238 else
2239 libc_cv_asm_symver_directive=no
2241 rm -f conftest*
2244 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2245 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2246 echo "configure:2247: checking for ld --version-script" >&5
2247 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2249 else
2250 if test $libc_cv_asm_symver_directive = yes; then
2251 cat > conftest.s <<EOF
2252 .text
2253 _sym:
2254 .symver _sym,sym@VERS
2256 cat > conftest.map <<EOF
2257 VERS_1 {
2258 global: sym;
2261 VERS_2 {
2262 global: sym;
2263 } VERS_1;
2265 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2266 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2267 -nostartfiles -nostdlib
2268 -Wl,--version-script,conftest.map
2269 1>&5'; { (eval echo configure:2270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2270 then
2271 libc_cv_ld_version_script_option=yes
2272 else
2273 libc_cv_ld_version_script_option=no
2275 else
2276 libc_cv_ld_version_script_option=no
2278 else
2279 libc_cv_ld_version_script_option=no
2281 rm -f conftest*
2284 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2285 if test $libc_cv_asm_symver_directive = yes &&
2286 test $libc_cv_ld_version_script_option = yes &&
2287 test $enable_versioning = yes; then
2288 VERSIONING=yes
2289 cat >> confdefs.h <<\EOF
2290 #define DO_VERSIONING 1
2293 else
2294 VERSIONING=no
2298 if test $VERSIONING = no; then
2299 echo "\
2300 *** WARNING: You should not compile GNU libc without versioning. Not using
2301 *** versioning will introduce incompatibilities so that old binaries
2302 *** will not run anymore.
2303 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2305 if test $elf = yes; then
2306 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2307 echo "configure:2308: checking for .previous assembler directive" >&5
2308 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2309 echo $ac_n "(cached) $ac_c" 1>&6
2310 else
2311 cat > conftest.s <<EOF
2312 .section foo_section
2313 .previous
2315 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2316 libc_cv_asm_previous_directive=yes
2317 else
2318 libc_cv_asm_previous_directive=no
2320 rm -f conftest*
2323 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2324 if test $libc_cv_asm_previous_directive = yes; then
2325 cat >> confdefs.h <<\EOF
2326 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2329 else
2330 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2331 echo "configure:2332: checking for .popsection assembler directive" >&5
2332 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2334 else
2335 cat > conftest.s <<EOF
2336 .pushsection foo_section
2337 .popsection
2339 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2340 libc_cv_asm_popsection_directive=yes
2341 else
2342 libc_cv_asm_popsection_directive=no
2344 rm -f conftest*
2347 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2348 if test $libc_cv_asm_popsection_directive = yes; then
2349 cat >> confdefs.h <<\EOF
2350 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2357 if test $elf != yes; then
2358 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2359 echo "configure:2360: checking for .init and .fini sections" >&5
2360 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2362 else
2363 cat > conftest.$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2367 int main() {
2368 asm (".section .init");
2369 asm (".section .fini");
2370 asm (".text");
2371 ; return 0; }
2373 if { (eval echo configure:2374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2374 rm -rf conftest*
2375 libc_cv_have_initfini=yes
2376 else
2377 echo "configure: failed program was:" >&5
2378 cat conftest.$ac_ext >&5
2379 rm -rf conftest*
2380 libc_cv_have_initfini=no
2382 rm -f conftest*
2385 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2386 if test $libc_cv_have_initfini = yes; then
2387 cat >> confdefs.h <<\EOF
2388 #define HAVE_INITFINI 1
2396 if test $elf = yes; then
2397 libc_cv_asm_underscores=no
2398 else
2399 if test $ac_cv_prog_cc_works = yes; then
2400 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2401 echo "configure:2402: checking for _ prefix on C symbol names" >&5
2402 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
2404 else
2405 cat > conftest.$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2408 asm ("_glibc_foobar:");
2409 int main() {
2410 glibc_foobar ();
2411 ; return 0; }
2413 if { (eval echo configure:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2414 rm -rf conftest*
2415 libc_cv_asm_underscores=yes
2416 else
2417 echo "configure: failed program was:" >&5
2418 cat conftest.$ac_ext >&5
2419 rm -rf conftest*
2420 libc_cv_asm_underscores=no
2422 rm -f conftest*
2425 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2426 else
2427 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2428 echo "configure:2429: checking for _ prefix on C symbol names" >&5
2429 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2430 echo $ac_n "(cached) $ac_c" 1>&6
2431 else
2432 cat > conftest.$ac_ext <<EOF
2433 #line 2434 "configure"
2434 #include "confdefs.h"
2435 void underscore_test(void) {
2436 return; }
2438 if { (eval echo configure:2439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2439 if grep _underscore_test conftest* >/dev/null; then
2440 rm -f conftest*
2441 libc_cv_asm_underscores=yes
2442 else
2443 rm -f conftest*
2444 libc_cv_asm_underscores=no
2446 else
2447 echo "configure: failed program was:" >&5
2448 cat conftest.$ac_ext >&5
2449 rm -f conftest*
2450 libc_cv_asm_underscores=no
2452 rm -f conftest*
2455 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2458 if test $libc_cv_asm_underscores = no; then
2459 cat >> confdefs.h <<\EOF
2460 #define NO_UNDERSCORES 1
2465 if test $elf = yes; then
2466 libc_cv_weak_symbols=yes
2469 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2470 echo "configure:2471: checking for assembler .weak directive" >&5
2471 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2473 else
2474 cat > conftest.s <<EOF
2475 .text
2476 ${libc_cv_asm_global_directive} foo
2477 foo:
2478 .weak foo
2479 .weak bar; bar = foo
2481 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2482 libc_cv_asm_weak_directive=yes
2483 else
2484 libc_cv_asm_weak_directive=no
2486 rm -f conftest*
2489 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2491 if test $libc_cv_asm_weak_directive = no; then
2492 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2493 echo "configure:2494: checking for assembler .weakext directive" >&5
2494 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
2495 echo $ac_n "(cached) $ac_c" 1>&6
2496 else
2497 cat > conftest.s <<EOF
2498 .text
2499 ${libc_cv_asm_global_directive} foo
2500 foo:
2501 .weakext bar foo
2502 .weakext baz
2503 ${libc_cv_asm_global_directive} baz
2504 baz:
2506 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2507 libc_cv_asm_weakext_directive=yes
2508 else
2509 libc_cv_asm_weakext_directive=no
2511 rm -f conftest*
2514 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2516 fi # no .weak
2518 if test $libc_cv_asm_weak_directive = yes; then
2519 cat >> confdefs.h <<\EOF
2520 #define HAVE_ASM_WEAK_DIRECTIVE 1
2523 elif test $libc_cv_asm_weakext_directive = yes; then
2524 cat >> confdefs.h <<\EOF
2525 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2530 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2531 echo "configure:2532: checking for ld --no-whole-archive" >&5
2532 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2533 echo $ac_n "(cached) $ac_c" 1>&6
2534 else
2535 cat > conftest.c <<\EOF
2536 _start () {}
2537 int __eh_pc;
2538 __throw () {}
2540 if { ac_try='${CC-cc} $CFLAGS
2541 -nostdlib -nostartfiles -Wl,--no-whole-archive
2542 -o conftest conftest.c 1>&5'; { (eval echo configure:2543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2543 libc_cv_ld_no_whole_archive=yes
2544 else
2545 libc_cv_ld_no_whole_archive=no
2547 rm -f conftest*
2550 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2551 if test $libc_cv_ld_no_whole_archive = yes; then
2552 no_whole_archive=-Wl,--no-whole-archive
2555 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
2556 echo "configure:2557: checking for gcc -fexceptions" >&5
2557 if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2559 else
2560 cat > conftest.c <<\EOF
2561 _start () {}
2562 int __eh_pc;
2563 __throw () {}
2565 if { ac_try='${CC-cc} $CFLAGS
2566 -nostdlib -nostartfiles -fexceptions
2567 -o conftest conftest.c 1>&5'; { (eval echo configure:2568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2568 libc_cv_gcc_exceptions=yes
2569 else
2570 libc_cv_gcc_exceptions=no
2572 rm -f conftest*
2575 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
2576 if test $libc_cv_gcc_exceptions = yes; then
2577 exceptions=-fexceptions
2580 if test "$base_machine" = alpha ; then
2581 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2582 echo "configure:2583: checking for function ..ng prefix" >&5
2583 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
2584 echo $ac_n "(cached) $ac_c" 1>&6
2585 else
2586 cat > conftest.c <<\EOF
2587 foo () { }
2589 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:2590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2590 then
2591 libc_cv_gcc_alpha_ng_prefix=yes
2592 else
2593 libc_cv_gcc_alpha_ng_prefix=no
2595 rm -f conftest*
2598 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2599 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2600 cat >> confdefs.h <<\EOF
2601 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2604 else
2605 cat >> confdefs.h <<\EOF
2606 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2612 if test "$host_cpu" = powerpc ; then
2613 # Check for a bug present in at least versions 2.8.x of GCC
2614 # and versions 1.0.x of EGCS.
2615 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
2616 echo "configure:2617: checking whether clobbering cr0 causes problems" >&5
2617 if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
2618 echo $ac_n "(cached) $ac_c" 1>&6
2619 else
2620 cat > conftest.$ac_ext <<EOF
2621 #line 2622 "configure"
2622 #include "confdefs.h"
2623 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
2624 int main() {
2626 ; return 0; }
2628 if { (eval echo configure:2629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2629 rm -rf conftest*
2630 libc_cv_c_asmcr0_bug='no'
2631 else
2632 echo "configure: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2634 rm -rf conftest*
2635 libc_cv_c_asmcr0_bug='yes'
2637 rm -f conftest*
2640 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
2641 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
2642 cat >> confdefs.h <<\EOF
2643 #define BROKEN_PPC_ASM_CR0 1
2649 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2650 echo "configure:2651: checking for DWARF2 unwind info support" >&5
2651 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
2652 echo $ac_n "(cached) $ac_c" 1>&6
2653 else
2654 cat > conftest.c <<EOF
2655 #line 2656 "configure"
2656 static char __EH_FRAME_BEGIN__;
2657 _start ()
2659 #ifdef CHECK__register_frame
2660 __register_frame (__EH_FRAME_BEGIN__);
2661 __deregister_frame (__EH_FRAME_BEGIN__);
2662 #endif
2663 #ifdef CHECK__register_frame_info
2664 __register_frame_info (__EH_FRAME_BEGIN__);
2665 __deregister_frame_info (__EH_FRAME_BEGIN__);
2666 #endif
2668 int __eh_pc;
2669 __throw () {}
2670 /* FIXME: this is fragile. */
2671 malloc () {}
2672 strcmp () {}
2673 strlen () {}
2674 memcpy () {}
2675 memset () {}
2676 free () {}
2677 abort () {}
2678 __bzero () {}
2680 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
2681 -nostdlib -nostartfiles
2682 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2683 libc_cv_gcc_dwarf2_unwind_info=static
2684 else
2685 libc_cv_gcc_dwarf2_unwind_info=no
2687 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
2688 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
2689 -nostdlib -nostartfiles
2690 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2691 libc_cv_gcc_dwarf2_unwind_info=yes
2692 else
2693 libc_cv_gcc_dwarf2_unwind_info=no
2696 rm -f conftest*
2699 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
2700 case $libc_cv_gcc_dwarf2_unwind_info in
2701 yes)
2702 cat >> confdefs.h <<\EOF
2703 #define HAVE_DWARF2_UNWIND_INFO 1
2707 static)
2708 cat >> confdefs.h <<\EOF
2709 #define HAVE_DWARF2_UNWIND_INFO 1
2712 cat >> confdefs.h <<\EOF
2713 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
2717 esac
2719 ### End of automated tests.
2720 ### Now run sysdeps configure fragments.
2722 # sysdeps configure fragments may set these with files to be linked below.
2723 libc_link_dests=
2724 libc_link_sources=
2726 # They also can set these variables.
2727 ldd_rewrite_script=no
2729 # Iterate over all the sysdep directories we will use, running their
2730 # configure fragments, and looking for a uname implementation.
2731 uname=
2732 for dir in $sysnames; do
2733 case $dir in
2734 /*) dest=$dir ;;
2735 *) dest=$srcdir/$dir ;;
2736 esac
2737 if test -r $dest/configure; then
2738 echo "$ac_t""running configure fragment for $dest" 1>&6
2739 . $dest/configure
2742 if test -z "$uname"; then
2743 if test -r $dest/uname.c ||
2744 test -r $dest/uname.S ||
2745 { test -r $dest/syscalls.list &&
2746 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
2747 uname=$dir
2750 done
2754 # If we will use the generic uname implementation, we must figure out what
2755 # it will say by examining the system, and write the results in config-name.h.
2756 if test "$uname" = "sysdeps/generic"; then
2758 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
2759 if test $uname_sysname != $config_os; then
2760 config_release=`echo $config_os | sed s/$uname_sysname//`
2763 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2764 echo "configure:2765: checking OS release for uname" >&5
2765 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
2766 echo $ac_n "(cached) $ac_c" 1>&6
2767 else
2768 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2769 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
2770 != x$config_release; then
2771 # The configuration release is a substring of the kernel release.
2772 libc_cv_uname_release=$kernel_release
2773 elif test x$config_release != x; then
2774 libc_cv_uname_release=$config_release
2775 elif test x$kernel_release != x; then
2776 libc_cv_uname_release=$kernel_release
2777 else
2778 libc_cv_uname_release=unknown
2782 echo "$ac_t""$libc_cv_uname_release" 1>&6
2783 uname_release="$libc_cv_uname_release"
2785 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2786 echo "configure:2787: checking OS version for uname" >&5
2787 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
2788 echo $ac_n "(cached) $ac_c" 1>&6
2789 else
2790 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2791 if test -n "$kernel_version"; then
2792 libc_cv_uname_version="$kernel_version"
2793 else
2794 libc_cv_uname_version=unknown
2798 echo "$ac_t""$libc_cv_uname_version" 1>&6
2799 uname_version="$libc_cv_uname_version"
2801 config_uname=config-name.h:config-name.in
2802 else
2803 # For non-generic uname, we don't need to create config-name.h at all.
2804 config_uname=
2807 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
2808 echo "configure:2809: checking stdio selection" >&5
2810 case $stdio in
2811 libio) cat >> confdefs.h <<\EOF
2812 #define USE_IN_LIBIO 1
2815 default) stdio=stdio ;;
2816 esac
2817 echo "$ac_t""$stdio" 1>&6
2819 # Test for old glibc 2.0.x headers so that they can be removed properly
2820 # Search only in includedir.
2821 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
2822 echo "configure:2823: checking for old glibc 2.0.x headers" >&5
2823 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
2824 then
2825 old_glibc_headers=yes
2826 else
2827 old_glibc_headers=no
2829 echo "$ac_t""$old_glibc_headers" 1>&6
2830 if test ${old_glibc_headers} = yes; then
2831 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
2832 echo "configure: warning: *** be removed." 1>&2
2844 if test $gnu_ld = yes; then
2845 cat >> confdefs.h <<\EOF
2846 #define HAVE_GNU_LD 1
2850 if test $gnu_as = yes; then
2851 cat >> confdefs.h <<\EOF
2852 #define HAVE_GNU_AS 1
2856 if test $elf = yes; then
2857 cat >> confdefs.h <<\EOF
2858 #define HAVE_ELF 1
2865 if test $shared = default; then
2866 if test $gnu_ld = yes; then
2867 shared=$elf
2868 else
2869 # For now we do not assume shared libs are available. In future more
2870 # tests might become available.
2871 shared=no
2875 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
2876 echo "configure:2877: checking whether -fPIC is default" >&5
2877 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2879 else
2880 pic_default=yes
2881 cat > conftest.c <<EOF
2882 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
2883 # error PIC is default.
2884 #endif
2886 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
2887 pic_default=no
2889 rm -f conftest.*
2892 echo "$ac_t""$pic_default" 1>&6
2903 case "$add_ons" in
2904 *door*) linux_doors=yes ;;
2905 *) linux_doors=no ;;
2906 esac
2909 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
2910 config_makefile=
2911 else
2912 config_makefile=Makefile
2915 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
2916 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
2920 trap '' 1 2 15
2921 cat > confcache <<\EOF
2922 # This file is a shell script that caches the results of configure
2923 # tests run on this system so they can be shared between configure
2924 # scripts and configure runs. It is not useful on other systems.
2925 # If it contains results you don't want to keep, you may remove or edit it.
2927 # By default, configure uses ./config.cache as the cache file,
2928 # creating it if it does not exist already. You can give configure
2929 # the --cache-file=FILE option to use a different cache file; that is
2930 # what configure does when it calls configure scripts in
2931 # subdirectories, so they share the cache.
2932 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2933 # config.status only pays attention to the cache file if you give it the
2934 # --recheck option to rerun configure.
2937 # The following way of writing the cache mishandles newlines in values,
2938 # but we know of no workaround that is simple, portable, and efficient.
2939 # So, don't put newlines in cache variables' values.
2940 # Ultrix sh set writes to stderr and can't be redirected directly,
2941 # and sets the high bit in the cache file unless we assign to the vars.
2942 (set) 2>&1 |
2943 case `(ac_space=' '; set) 2>&1 | grep ac_space` in
2944 *ac_space=\ *)
2945 # `set' does not quote correctly, so add quotes (double-quote substitution
2946 # turns \\\\ into \\, and sed turns \\ into \).
2947 sed -n \
2948 -e "s/'/'\\\\''/g" \
2949 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2952 # `set' quotes correctly as required by POSIX, so do not add quotes.
2953 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2955 esac >> confcache
2956 if cmp -s $cache_file confcache; then
2958 else
2959 if test -w $cache_file; then
2960 echo "updating cache $cache_file"
2961 cat confcache > $cache_file
2962 else
2963 echo "not updating unwritable cache $cache_file"
2966 rm -f confcache
2968 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2970 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2971 # Let make expand exec_prefix.
2972 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2974 # Any assignment to VPATH causes Sun make to only execute
2975 # the first set of double-colon rules, so remove it if not needed.
2976 # If there is a colon in the path, we need to keep it.
2977 if test "x$srcdir" = x.; then
2978 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2981 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2983 DEFS=-DHAVE_CONFIG_H
2985 # Without the "./", some shells look in PATH for config.status.
2986 : ${CONFIG_STATUS=./config.status}
2988 echo creating $CONFIG_STATUS
2989 rm -f $CONFIG_STATUS
2990 cat > $CONFIG_STATUS <<EOF
2991 #! /bin/sh
2992 # Generated automatically by configure.
2993 # Run this file to recreate the current configuration.
2994 # This directory was configured as follows,
2995 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2997 # $0 $ac_configure_args
2999 # Compiler output produced by configure, useful for debugging
3000 # configure, is in ./config.log if it exists.
3002 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3003 for ac_option
3005 case "\$ac_option" in
3006 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3007 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3008 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3009 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3010 echo "$CONFIG_STATUS generated by autoconf version 2.12.2"
3011 exit 0 ;;
3012 -help | --help | --hel | --he | --h)
3013 echo "\$ac_cs_usage"; exit 0 ;;
3014 *) echo "\$ac_cs_usage"; exit 1 ;;
3015 esac
3016 done
3018 ac_given_srcdir=$srcdir
3019 ac_given_INSTALL="$INSTALL"
3021 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3023 cat >> $CONFIG_STATUS <<EOF
3025 # Protect against being on the right side of a sed subst in config.status.
3026 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3027 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3028 $ac_vpsub
3029 $extrasub
3030 s%@SHELL@%$SHELL%g
3031 s%@CFLAGS@%$CFLAGS%g
3032 s%@CPPFLAGS@%$CPPFLAGS%g
3033 s%@CXXFLAGS@%$CXXFLAGS%g
3034 s%@DEFS@%$DEFS%g
3035 s%@LDFLAGS@%$LDFLAGS%g
3036 s%@LIBS@%$LIBS%g
3037 s%@exec_prefix@%$exec_prefix%g
3038 s%@prefix@%$prefix%g
3039 s%@program_transform_name@%$program_transform_name%g
3040 s%@bindir@%$bindir%g
3041 s%@sbindir@%$sbindir%g
3042 s%@libexecdir@%$libexecdir%g
3043 s%@datadir@%$datadir%g
3044 s%@sysconfdir@%$sysconfdir%g
3045 s%@sharedstatedir@%$sharedstatedir%g
3046 s%@localstatedir@%$localstatedir%g
3047 s%@libdir@%$libdir%g
3048 s%@includedir@%$includedir%g
3049 s%@oldincludedir@%$oldincludedir%g
3050 s%@infodir@%$infodir%g
3051 s%@mandir@%$mandir%g
3052 s%@with_cvs@%$with_cvs%g
3053 s%@subdirs@%$subdirs%g
3054 s%@force_install@%$force_install%g
3055 s%@host@%$host%g
3056 s%@host_alias@%$host_alias%g
3057 s%@host_cpu@%$host_cpu%g
3058 s%@host_vendor@%$host_vendor%g
3059 s%@host_os@%$host_os%g
3060 s%@base_machine@%$base_machine%g
3061 s%@sysnames@%$sysnames%g
3062 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3063 s%@INSTALL_DATA@%$INSTALL_DATA%g
3064 s%@LN_S@%$LN_S%g
3065 s%@build@%$build%g
3066 s%@build_alias@%$build_alias%g
3067 s%@build_cpu@%$build_cpu%g
3068 s%@build_vendor@%$build_vendor%g
3069 s%@build_os@%$build_os%g
3070 s%@CC@%$CC%g
3071 s%@MAKE@%$MAKE%g
3072 s%@MSGFMT@%$MSGFMT%g
3073 s%@MAKEINFO@%$MAKEINFO%g
3074 s%@cross_linkable@%$cross_linkable%g
3075 s%@BUILD_CC@%$BUILD_CC%g
3076 s%@cross_compiling@%$cross_compiling%g
3077 s%@CPP@%$CPP%g
3078 s%@AR@%$AR%g
3079 s%@RANLIB@%$RANLIB%g
3080 s%@MIG@%$MIG%g
3081 s%@SYSINCLUDES@%$SYSINCLUDES%g
3082 s%@BASH@%$BASH%g
3083 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
3084 s%@KSH@%$KSH%g
3085 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
3086 s%@AWK@%$AWK%g
3087 s%@PERL@%$PERL%g
3088 s%@VERSIONING@%$VERSIONING%g
3089 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
3090 s%@no_whole_archive@%$no_whole_archive%g
3091 s%@exceptions@%$exceptions%g
3092 s%@uname_sysname@%$uname_sysname%g
3093 s%@uname_release@%$uname_release%g
3094 s%@uname_version@%$uname_version%g
3095 s%@stdio@%$stdio%g
3096 s%@old_glibc_headers@%$old_glibc_headers%g
3097 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
3098 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
3099 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
3100 s%@has_ldconfig@%$has_ldconfig%g
3101 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
3102 s%@gnu_ld@%$gnu_ld%g
3103 s%@gnu_as@%$gnu_as%g
3104 s%@elf@%$elf%g
3105 s%@static@%$static%g
3106 s%@shared@%$shared%g
3107 s%@pic_default@%$pic_default%g
3108 s%@profile@%$profile%g
3109 s%@omitfp@%$omitfp%g
3110 s%@bounded@%$bounded%g
3111 s%@static_nss@%$static_nss%g
3112 s%@nopic_initfini@%$nopic_initfini%g
3113 s%@DEFINES@%$DEFINES%g
3114 s%@linux_doors@%$linux_doors%g
3115 s%@VERSION@%$VERSION%g
3116 s%@RELEASE@%$RELEASE%g
3118 CEOF
3121 cat >> $CONFIG_STATUS <<\EOF
3123 # Split the substitutions into bite-sized pieces for seds with
3124 # small command number limits, like on Digital OSF/1 and HP-UX.
3125 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3126 ac_file=1 # Number of current file.
3127 ac_beg=1 # First line for current file.
3128 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3129 ac_more_lines=:
3130 ac_sed_cmds=""
3131 while $ac_more_lines; do
3132 if test $ac_beg -gt 1; then
3133 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3134 else
3135 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3137 if test ! -s conftest.s$ac_file; then
3138 ac_more_lines=false
3139 rm -f conftest.s$ac_file
3140 else
3141 if test -z "$ac_sed_cmds"; then
3142 ac_sed_cmds="sed -f conftest.s$ac_file"
3143 else
3144 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3146 ac_file=`expr $ac_file + 1`
3147 ac_beg=$ac_end
3148 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3150 done
3151 if test -z "$ac_sed_cmds"; then
3152 ac_sed_cmds=cat
3156 cat >> $CONFIG_STATUS <<EOF
3158 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3160 cat >> $CONFIG_STATUS <<\EOF
3161 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3162 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3163 case "$ac_file" in
3164 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3165 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3166 *) ac_file_in="${ac_file}.in" ;;
3167 esac
3169 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3171 # Remove last slash and all that follows it. Not all systems have dirname.
3172 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3173 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3174 # The file is in a subdirectory.
3175 test ! -d "$ac_dir" && mkdir "$ac_dir"
3176 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3177 # A "../" for each directory in $ac_dir_suffix.
3178 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3179 else
3180 ac_dir_suffix= ac_dots=
3183 case "$ac_given_srcdir" in
3184 .) srcdir=.
3185 if test -z "$ac_dots"; then top_srcdir=.
3186 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3187 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3188 *) # Relative path.
3189 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3190 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3191 esac
3193 case "$ac_given_INSTALL" in
3194 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3195 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3196 esac
3198 echo creating "$ac_file"
3199 rm -f "$ac_file"
3200 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3201 case "$ac_file" in
3202 *Makefile*) ac_comsub="1i\\
3203 # $configure_input" ;;
3204 *) ac_comsub= ;;
3205 esac
3207 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3208 sed -e "$ac_comsub
3209 s%@configure_input@%$configure_input%g
3210 s%@srcdir@%$srcdir%g
3211 s%@top_srcdir@%$top_srcdir%g
3212 s%@INSTALL@%$INSTALL%g
3213 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3214 fi; done
3215 rm -f conftest.s*
3217 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3218 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3220 # ac_d sets the value in "#define NAME VALUE" lines.
3221 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3222 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3223 ac_dC='\3'
3224 ac_dD='%g'
3225 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3226 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3227 ac_uB='\([ ]\)%\1#\2define\3'
3228 ac_uC=' '
3229 ac_uD='\4%g'
3230 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3231 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3232 ac_eB='$%\1#\2define\3'
3233 ac_eC=' '
3234 ac_eD='%g'
3236 if test "${CONFIG_HEADERS+set}" != set; then
3238 cat >> $CONFIG_STATUS <<EOF
3239 CONFIG_HEADERS="config.h"
3241 cat >> $CONFIG_STATUS <<\EOF
3243 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3244 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3245 case "$ac_file" in
3246 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3247 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3248 *) ac_file_in="${ac_file}.in" ;;
3249 esac
3251 echo creating $ac_file
3253 rm -f conftest.frag conftest.in conftest.out
3254 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3255 cat $ac_file_inputs > conftest.in
3259 # Transform confdefs.h into a sed script conftest.vals that substitutes
3260 # the proper values into config.h.in to produce config.h. And first:
3261 # Protect against being on the right side of a sed subst in config.status.
3262 # Protect against being in an unquoted here document in config.status.
3263 rm -f conftest.vals
3264 cat > conftest.hdr <<\EOF
3265 s/[\\&%]/\\&/g
3266 s%[\\$`]%\\&%g
3267 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3268 s%ac_d%ac_u%gp
3269 s%ac_u%ac_e%gp
3271 sed -n -f conftest.hdr confdefs.h > conftest.vals
3272 rm -f conftest.hdr
3274 # This sed command replaces #undef with comments. This is necessary, for
3275 # example, in the case of _POSIX_SOURCE, which is predefined and required
3276 # on some systems where configure will not decide to define it.
3277 cat >> conftest.vals <<\EOF
3278 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3281 # Break up conftest.vals because some shells have a limit on
3282 # the size of here documents, and old seds have small limits too.
3284 rm -f conftest.tail
3285 while :
3287 ac_lines=`grep -c . conftest.vals`
3288 # grep -c gives empty output for an empty file on some AIX systems.
3289 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3290 # Write a limited-size here document to conftest.frag.
3291 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3292 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3293 echo 'CEOF
3294 sed -f conftest.frag conftest.in > conftest.out
3295 rm -f conftest.in
3296 mv conftest.out conftest.in
3297 ' >> $CONFIG_STATUS
3298 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3299 rm -f conftest.vals
3300 mv conftest.tail conftest.vals
3301 done
3302 rm -f conftest.vals
3304 cat >> $CONFIG_STATUS <<\EOF
3305 rm -f conftest.frag conftest.h
3306 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3307 cat conftest.in >> conftest.h
3308 rm -f conftest.in
3309 if cmp -s $ac_file conftest.h 2>/dev/null; then
3310 echo "$ac_file is unchanged"
3311 rm -f conftest.h
3312 else
3313 # Remove last slash and all that follows it. Not all systems have dirname.
3314 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3315 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3316 # The file is in a subdirectory.
3317 test ! -d "$ac_dir" && mkdir "$ac_dir"
3319 rm -f $ac_file
3320 mv conftest.h $ac_file
3322 fi; done
3326 cat >> $CONFIG_STATUS <<EOF
3327 ac_sources="`echo $libc_link_sources`"
3328 ac_dests="`echo $libc_link_dests`"
3331 cat >> $CONFIG_STATUS <<\EOF
3332 srcdir=$ac_given_srcdir
3333 while test -n "$ac_sources"; do
3334 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3335 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3337 echo "linking $srcdir/$ac_source to $ac_dest"
3339 if test ! -r $srcdir/$ac_source; then
3340 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3342 rm -f $ac_dest
3344 # Make relative symlinks.
3345 # Remove last slash and all that follows it. Not all systems have dirname.
3346 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3347 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3348 # The dest file is in a subdirectory.
3349 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3350 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3351 # A "../" for each directory in $ac_dest_dir_suffix.
3352 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3353 else
3354 ac_dest_dir_suffix= ac_dots=
3357 case "$srcdir" in
3358 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3359 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3360 esac
3362 # Make a symlink if possible; otherwise try a hard link.
3363 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3364 ln $srcdir/$ac_source $ac_dest; then :
3365 else
3366 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3368 done
3370 cat >> $CONFIG_STATUS <<EOF
3371 config_vars='$config_vars'
3373 cat >> $CONFIG_STATUS <<\EOF
3375 case $CONFIG_FILES in *config.make*)
3376 echo "$config_vars" >> config.make;;
3377 esac
3378 test -d bits || mkdir bits
3379 exit 0
3381 chmod +x $CONFIG_STATUS
3382 rm -fr confdefs* $ac_clean_files
3383 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3385 if test "$no_recursion" != yes; then
3387 # Remove --cache-file and --srcdir arguments so they do not pile up.
3388 ac_sub_configure_args=
3389 ac_prev=
3390 for ac_arg in $ac_configure_args; do
3391 if test -n "$ac_prev"; then
3392 ac_prev=
3393 continue
3395 case "$ac_arg" in
3396 -cache-file | --cache-file | --cache-fil | --cache-fi \
3397 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3398 ac_prev=cache_file ;;
3399 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3400 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3402 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3403 ac_prev=srcdir ;;
3404 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3406 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3407 esac
3408 done
3410 for ac_config_dir in $add_ons; do
3412 # Do not complain, so a configure script can configure whichever
3413 # parts of a large source tree are present.
3414 if test ! -d $srcdir/$ac_config_dir; then
3415 continue
3418 echo configuring in $ac_config_dir
3420 case "$srcdir" in
3421 .) ;;
3423 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3424 else
3425 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3428 esac
3430 ac_popdir=`pwd`
3431 cd $ac_config_dir
3433 # A "../" for each directory in /$ac_config_dir.
3434 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3436 case "$srcdir" in
3437 .) # No --srcdir option. We are building in place.
3438 ac_sub_srcdir=$srcdir ;;
3439 /*) # Absolute path.
3440 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3441 *) # Relative path.
3442 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3443 esac
3445 # Check for guested configure; otherwise get Cygnus style configure.
3446 if test -f $ac_sub_srcdir/configure; then
3447 ac_sub_configure=$ac_sub_srcdir/configure
3448 elif test -f $ac_sub_srcdir/configure.in; then
3449 ac_sub_configure=$ac_configure
3450 else
3451 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3452 ac_sub_configure=
3455 # The recursion is here.
3456 if test -n "$ac_sub_configure"; then
3458 # Make the cache file name correct relative to the subdirectory.
3459 case "$cache_file" in
3460 /*) ac_sub_cache_file=$cache_file ;;
3461 *) # Relative path.
3462 ac_sub_cache_file="$ac_dots$cache_file" ;;
3463 esac
3464 case "$ac_given_INSTALL" in
3465 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3466 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3467 esac
3469 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3470 # The eval makes quoting arguments work.
3471 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3472 then :
3473 else
3474 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3478 cd $ac_popdir
3479 done