Update.
[glibc.git] / configure
blobccdb95ed97f75d05d19906537cf582deac41c288
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
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 # Maximum number of lines to put in a shell here document.
107 ac_max_here_lines=12
109 ac_prev=
110 for ac_option
113 # If the previous option needs an argument, assign it.
114 if test -n "$ac_prev"; then
115 eval "$ac_prev=\$ac_option"
116 ac_prev=
117 continue
120 case "$ac_option" in
121 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
122 *) ac_optarg= ;;
123 esac
125 # Accept the important Cygnus configure options, so we can diagnose typos.
127 case "$ac_option" in
129 -bindir | --bindir | --bindi | --bind | --bin | --bi)
130 ac_prev=bindir ;;
131 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
132 bindir="$ac_optarg" ;;
134 -build | --build | --buil | --bui | --bu)
135 ac_prev=build ;;
136 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
137 build="$ac_optarg" ;;
139 -cache-file | --cache-file | --cache-fil | --cache-fi \
140 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
141 ac_prev=cache_file ;;
142 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
143 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
144 cache_file="$ac_optarg" ;;
146 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
147 ac_prev=datadir ;;
148 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
149 | --da=*)
150 datadir="$ac_optarg" ;;
152 -disable-* | --disable-*)
153 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
154 # Reject names that are not valid shell variable names.
155 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
156 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
158 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159 eval "enable_${ac_feature}=no" ;;
161 -enable-* | --enable-*)
162 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
163 # Reject names that are not valid shell variable names.
164 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
165 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168 case "$ac_option" in
169 *=*) ;;
170 *) ac_optarg=yes ;;
171 esac
172 eval "enable_${ac_feature}='$ac_optarg'" ;;
174 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
175 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
176 | --exec | --exe | --ex)
177 ac_prev=exec_prefix ;;
178 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
179 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
180 | --exec=* | --exe=* | --ex=*)
181 exec_prefix="$ac_optarg" ;;
183 -gas | --gas | --ga | --g)
184 # Obsolete; use --with-gas.
185 with_gas=yes ;;
187 -help | --help | --hel | --he)
188 # Omit some internal or obsolete options to make the list less imposing.
189 # This message is too long to be a string in the A/UX 3.1 sh.
190 cat << EOF
191 Usage: configure [options] [host]
192 Options: [defaults in brackets after descriptions]
193 Configuration:
194 --cache-file=FILE cache test results in FILE
195 --help print this message
196 --no-create do not create output files
197 --quiet, --silent do not print \`checking...' messages
198 --version print the version of autoconf that created configure
199 Directory and file names:
200 --prefix=PREFIX install architecture-independent files in PREFIX
201 [$ac_default_prefix]
202 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
203 [same as prefix]
204 --bindir=DIR user executables in DIR [EPREFIX/bin]
205 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
206 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
207 --datadir=DIR read-only architecture-independent data in DIR
208 [PREFIX/share]
209 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
210 --sharedstatedir=DIR modifiable architecture-independent data in DIR
211 [PREFIX/com]
212 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
213 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
214 --includedir=DIR C header files in DIR [PREFIX/include]
215 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
216 --infodir=DIR info documentation in DIR [PREFIX/info]
217 --mandir=DIR man documentation in DIR [PREFIX/man]
218 --srcdir=DIR find the sources in DIR [configure dir or ..]
219 --program-prefix=PREFIX prepend PREFIX to installed program names
220 --program-suffix=SUFFIX append SUFFIX to installed program names
221 --program-transform-name=PROGRAM
222 run sed PROGRAM on installed program names
224 cat << EOF
225 Host type:
226 --build=BUILD configure for building on BUILD [BUILD=HOST]
227 --host=HOST configure for HOST [guessed]
228 --target=TARGET configure for TARGET [TARGET=HOST]
229 Features and packages:
230 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
231 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
232 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
233 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
234 --x-includes=DIR X include files are in DIR
235 --x-libraries=DIR X library files are in DIR
237 if test -n "$ac_help"; then
238 echo "--enable and --with options recognized:$ac_help"
240 exit 0 ;;
242 -host | --host | --hos | --ho)
243 ac_prev=host ;;
244 -host=* | --host=* | --hos=* | --ho=*)
245 host="$ac_optarg" ;;
247 -includedir | --includedir | --includedi | --included | --include \
248 | --includ | --inclu | --incl | --inc)
249 ac_prev=includedir ;;
250 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
251 | --includ=* | --inclu=* | --incl=* | --inc=*)
252 includedir="$ac_optarg" ;;
254 -infodir | --infodir | --infodi | --infod | --info | --inf)
255 ac_prev=infodir ;;
256 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
257 infodir="$ac_optarg" ;;
259 -libdir | --libdir | --libdi | --libd)
260 ac_prev=libdir ;;
261 -libdir=* | --libdir=* | --libdi=* | --libd=*)
262 libdir="$ac_optarg" ;;
264 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
265 | --libexe | --libex | --libe)
266 ac_prev=libexecdir ;;
267 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
268 | --libexe=* | --libex=* | --libe=*)
269 libexecdir="$ac_optarg" ;;
271 -localstatedir | --localstatedir | --localstatedi | --localstated \
272 | --localstate | --localstat | --localsta | --localst \
273 | --locals | --local | --loca | --loc | --lo)
274 ac_prev=localstatedir ;;
275 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
276 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
277 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
278 localstatedir="$ac_optarg" ;;
280 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
281 ac_prev=mandir ;;
282 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283 mandir="$ac_optarg" ;;
285 -nfp | --nfp | --nf)
286 # Obsolete; use --without-fp.
287 with_fp=no ;;
289 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290 | --no-cr | --no-c)
291 no_create=yes ;;
293 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
294 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
295 no_recursion=yes ;;
297 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
298 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
299 | --oldin | --oldi | --old | --ol | --o)
300 ac_prev=oldincludedir ;;
301 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
302 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
303 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
304 oldincludedir="$ac_optarg" ;;
306 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
307 ac_prev=prefix ;;
308 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
309 prefix="$ac_optarg" ;;
311 -program-prefix | --program-prefix | --program-prefi | --program-pref \
312 | --program-pre | --program-pr | --program-p)
313 ac_prev=program_prefix ;;
314 -program-prefix=* | --program-prefix=* | --program-prefi=* \
315 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
316 program_prefix="$ac_optarg" ;;
318 -program-suffix | --program-suffix | --program-suffi | --program-suff \
319 | --program-suf | --program-su | --program-s)
320 ac_prev=program_suffix ;;
321 -program-suffix=* | --program-suffix=* | --program-suffi=* \
322 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
323 program_suffix="$ac_optarg" ;;
325 -program-transform-name | --program-transform-name \
326 | --program-transform-nam | --program-transform-na \
327 | --program-transform-n | --program-transform- \
328 | --program-transform | --program-transfor \
329 | --program-transfo | --program-transf \
330 | --program-trans | --program-tran \
331 | --progr-tra | --program-tr | --program-t)
332 ac_prev=program_transform_name ;;
333 -program-transform-name=* | --program-transform-name=* \
334 | --program-transform-nam=* | --program-transform-na=* \
335 | --program-transform-n=* | --program-transform-=* \
336 | --program-transform=* | --program-transfor=* \
337 | --program-transfo=* | --program-transf=* \
338 | --program-trans=* | --program-tran=* \
339 | --progr-tra=* | --program-tr=* | --program-t=*)
340 program_transform_name="$ac_optarg" ;;
342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
343 | -silent | --silent | --silen | --sile | --sil)
344 silent=yes ;;
346 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
347 ac_prev=sbindir ;;
348 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
349 | --sbi=* | --sb=*)
350 sbindir="$ac_optarg" ;;
352 -sharedstatedir | --sharedstatedir | --sharedstatedi \
353 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
354 | --sharedst | --shareds | --shared | --share | --shar \
355 | --sha | --sh)
356 ac_prev=sharedstatedir ;;
357 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
358 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
359 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
360 | --sha=* | --sh=*)
361 sharedstatedir="$ac_optarg" ;;
363 -site | --site | --sit)
364 ac_prev=site ;;
365 -site=* | --site=* | --sit=*)
366 site="$ac_optarg" ;;
368 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
369 ac_prev=srcdir ;;
370 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
371 srcdir="$ac_optarg" ;;
373 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
374 | --syscon | --sysco | --sysc | --sys | --sy)
375 ac_prev=sysconfdir ;;
376 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
377 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
378 sysconfdir="$ac_optarg" ;;
380 -target | --target | --targe | --targ | --tar | --ta | --t)
381 ac_prev=target ;;
382 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
383 target="$ac_optarg" ;;
385 -v | -verbose | --verbose | --verbos | --verbo | --verb)
386 verbose=yes ;;
388 -version | --version | --versio | --versi | --vers)
389 echo "configure generated by autoconf version 2.12"
390 exit 0 ;;
392 -with-* | --with-*)
393 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
394 # Reject names that are not valid shell variable names.
395 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
396 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398 ac_package=`echo $ac_package| sed 's/-/_/g'`
399 case "$ac_option" in
400 *=*) ;;
401 *) ac_optarg=yes ;;
402 esac
403 eval "with_${ac_package}='$ac_optarg'" ;;
405 -without-* | --without-*)
406 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
407 # Reject names that are not valid shell variable names.
408 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
409 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 ac_package=`echo $ac_package| sed 's/-/_/g'`
412 eval "with_${ac_package}=no" ;;
414 --x)
415 # Obsolete; use --with-x.
416 with_x=yes ;;
418 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
419 | --x-incl | --x-inc | --x-in | --x-i)
420 ac_prev=x_includes ;;
421 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
422 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
423 x_includes="$ac_optarg" ;;
425 -x-libraries | --x-libraries | --x-librarie | --x-librari \
426 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
427 ac_prev=x_libraries ;;
428 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
429 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
430 x_libraries="$ac_optarg" ;;
432 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
436 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
437 echo "configure: warning: $ac_option: invalid host type" 1>&2
439 if test "x$nonopt" != xNONE; then
440 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
442 nonopt="$ac_option"
445 esac
446 done
448 if test -n "$ac_prev"; then
449 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
452 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
454 # File descriptor usage:
455 # 0 standard input
456 # 1 file creation
457 # 2 errors and warnings
458 # 3 some systems may open it to /dev/tty
459 # 4 used on the Kubota Titan
460 # 6 checking for... messages and results
461 # 5 compiler messages saved in config.log
462 if test "$silent" = yes; then
463 exec 6>/dev/null
464 else
465 exec 6>&1
467 exec 5>./config.log
469 echo "\
470 This file contains any messages produced by compilers while
471 running configure, to aid debugging if configure makes a mistake.
472 " 1>&5
474 # Strip out --no-create and --no-recursion so they do not pile up.
475 # Also quote any args containing shell metacharacters.
476 ac_configure_args=
477 for ac_arg
479 case "$ac_arg" in
480 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481 | --no-cr | --no-c) ;;
482 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
483 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
484 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
485 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
486 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
487 esac
488 done
490 # NLS nuisances.
491 # Only set these to C if already set. These must not be set unconditionally
492 # because not all systems understand e.g. LANG=C (notably SCO).
493 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
494 # Non-C LC_CTYPE values break the ctype check.
495 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
496 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
497 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
498 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
500 # confdefs.h avoids OS command line length limits that DEFS can exceed.
501 rm -rf conftest* confdefs.h
502 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
503 echo > confdefs.h
505 # A filename unique to this package, relative to the directory that
506 # configure is in, which we can look for to find out if srcdir is correct.
507 ac_unique_file=include/features.h
509 # Find the source files, if location was not specified.
510 if test -z "$srcdir"; then
511 ac_srcdir_defaulted=yes
512 # Try the directory containing this script, then its parent.
513 ac_prog=$0
514 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
515 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
516 srcdir=$ac_confdir
517 if test ! -r $srcdir/$ac_unique_file; then
518 srcdir=..
520 else
521 ac_srcdir_defaulted=no
523 if test ! -r $srcdir/$ac_unique_file; then
524 if test "$ac_srcdir_defaulted" = yes; then
525 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
526 else
527 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
530 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
532 # Prefer explicitly selected file to automatically selected ones.
533 if test -z "$CONFIG_SITE"; then
534 if test "x$prefix" != xNONE; then
535 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
536 else
537 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
540 for ac_site_file in $CONFIG_SITE; do
541 if test -r "$ac_site_file"; then
542 echo "loading site script $ac_site_file"
543 . "$ac_site_file"
545 done
547 if test -r "$cache_file"; then
548 echo "loading cache $cache_file"
549 . $cache_file
550 else
551 echo "creating cache $cache_file"
552 > $cache_file
555 ac_ext=c
556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
557 ac_cpp='$CPP $CPPFLAGS'
558 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
559 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
560 cross_compiling=$ac_cv_prog_cc_cross
562 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
563 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
564 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
565 ac_n= ac_c='
566 ' ac_t=' '
567 else
568 ac_n=-n ac_c= ac_t=
570 else
571 ac_n= ac_c='\c' ac_t=
574 if test -r /vmunix; then
575 kernel_id=`strings /vmunix | grep UNIX`
576 elif test -r /dynix; then
577 kernel_id=`strings /dynix | grep DYNIX`
578 else
579 kernel_id=
584 ac_aux_dir=
585 for ac_dir in scripts $srcdir/scripts; do
586 if test -f $ac_dir/install-sh; then
587 ac_aux_dir=$ac_dir
588 ac_install_sh="$ac_aux_dir/install-sh -c"
589 break
590 elif test -f $ac_dir/install.sh; then
591 ac_aux_dir=$ac_dir
592 ac_install_sh="$ac_aux_dir/install.sh -c"
593 break
595 done
596 if test -z "$ac_aux_dir"; then
597 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
599 ac_config_guess=$ac_aux_dir/config.guess
600 ac_config_sub=$ac_aux_dir/config.sub
601 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
604 # This will get text that should go into config.make.
605 config_vars=
607 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
608 # Check whether --with-gmp or --without-gmp was given.
609 if test "${with_gmp+set}" = set; then
610 withval="$with_gmp"
611 case "$with_gmp" in
612 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
613 ''|no) ;;
614 *) config_vars="$config_vars
615 gmp-srcdir = $withval" ;;
616 esac
620 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
621 # Check whether --with-gettext or --without-gettext was given.
622 if test "${with_gettext+set}" = set; then
623 withval="$with_gettext"
624 case "$with_gettext" in
625 yes)
626 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
627 ''|no) ;;
629 config_vars="$config_vars
630 gettext-srcdir = $withval" ;;
631 esac
636 # Check whether --with-fp or --without-fp was given.
637 if test "${with_fp+set}" = set; then
638 withval="$with_fp"
639 with_fp=$withval
640 else
641 with_fp=yes
644 # Check whether --with-binutils or --without-binutils was given.
645 if test "${with_binutils+set}" = set; then
646 withval="$with_binutils"
647 path_binutils=$withval
648 else
649 path_binutils=''
652 # Check whether --with-elf or --without-elf was given.
653 if test "${with_elf+set}" = set; then
654 withval="$with_elf"
655 elf=$withval
656 else
657 elf=no
660 # Check whether --with-cvs or --without-cvs was given.
661 if test "${with_cvs+set}" = set; then
662 withval="$with_cvs"
663 with_cvs=$withval
664 else
665 with_cvs=yes
670 # Check whether --with-headers or --without-headers was given.
671 if test "${with_headers+set}" = set; then
672 withval="$with_headers"
673 sysheaders=$withval
674 else
675 sysheaders=''
679 # Check whether --enable-libio or --disable-libio was given.
680 if test "${enable_libio+set}" = set; then
681 enableval="$enable_libio"
682 if test $enableval = yes; then
683 stdio=libio
684 else
685 stdio=stdio
687 else
688 stdio=default
692 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
693 if test "${enable_sanity_checks+set}" = set; then
694 enableval="$enable_sanity_checks"
695 enable_sanity=$enableval
696 else
697 enable_sanity=yes
701 # Check whether --enable-static or --disable-static was given.
702 if test "${enable_static+set}" = set; then
703 enableval="$enable_static"
704 static=$enableval
705 else
706 static=yes
709 # Check whether --enable-shared or --disable-shared was given.
710 if test "${enable_shared+set}" = set; then
711 enableval="$enable_shared"
712 shared=$enableval
713 else
714 shared=default
717 # Check whether --enable-profile or --disable-profile was given.
718 if test "${enable_profile+set}" = set; then
719 enableval="$enable_profile"
720 profile=$enableval
721 else
722 profile=yes
725 # Check whether --enable-omitfp or --disable-omitfp was given.
726 if test "${enable_omitfp+set}" = set; then
727 enableval="$enable_omitfp"
728 omitfp=$enableval
729 else
730 omitfp=no
733 # Check whether --enable-bounded or --disable-bounded was given.
734 if test "${enable_bounded+set}" = set; then
735 enableval="$enable_bounded"
736 bounded=$enableval
737 else
738 bounded=no
741 # Check whether --enable-versioning or --disable-versioning was given.
742 if test "${enable_versioning+set}" = set; then
743 enableval="$enable_versioning"
744 enable_versioning=$enableval
745 else
746 enable_versioning=yes
750 # Check whether --enable-add-ons or --disable-add-ons was given.
751 if test "${enable_add_ons+set}" = set; then
752 enableval="$enable_add_ons"
753 case "$enableval" in
754 yes) if test "$srcdir" = "."; then
755 add_ons=`echo */configure | sed -e 's!/configure!!g'`
756 else
757 add_ons=`echo $srcdir/*/configure | \
758 sed -e 's!/configure!!g' -e "s!$srcdir/!!g"`
759 fi;;
760 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
761 esac
762 else
763 add_ons=
767 subdirs="$add_ons"
769 add_ons_pfx=
770 if test x"$add_ons" != x; then
771 for f in $add_ons; do
772 # Test whether such a subdir really exists.
773 if test -d $srcdir/$f; then
774 add_ons_pfx="$add_ons_pfx $f/"
775 else
776 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
778 done
781 # Check whether --enable-static-nss or --disable-static-nss was given.
782 if test "${enable_static_nss+set}" = set; then
783 enableval="$enable_static_nss"
784 static_nss=$enableval
785 else
786 static_nss=no
789 if test x"$static_nss" = xyes; then
790 cat >> confdefs.h <<\EOF
791 #define DO_STATIC_NSS 1
796 # Check whether --enable-force-install or --disable-force-install was given.
797 if test "${enable_force_install+set}" = set; then
798 enableval="$enable_force_install"
799 force_install=$enableval
800 else
801 force_install=yes
807 # Make sure we can run config.sub.
808 if $ac_config_sub sun4 >/dev/null 2>&1; then :
809 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
812 echo $ac_n "checking host system type""... $ac_c" 1>&6
813 echo "configure:814: checking host system type" >&5
815 host_alias=$host
816 case "$host_alias" in
817 NONE)
818 case $nonopt in
819 NONE)
820 if host_alias=`$ac_config_guess`; then :
821 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
822 fi ;;
823 *) host_alias=$nonopt ;;
824 esac ;;
825 esac
827 host=`$ac_config_sub $host_alias`
828 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
829 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
830 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
831 echo "$ac_t""$host" 1>&6
834 # The way shlib-versions is used to generate soversions.mk uses a
835 # fairly simplistic model for name recognition that can't distinguish
836 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
837 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
838 # tell. This doesn't get used much beyond that, so it's fairly safe.
839 case "$host_os" in
840 linux*)
842 gnu*)
843 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
845 esac
847 # We keep the original values in `$config_*' and never modify them, so we
848 # can write them unchanged into config.make. Everything else uses
849 # $machine, $vendor, and $os, and changes them whenever convenient.
850 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
852 # Some configurations imply other options.
853 case "$host_os" in
854 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
855 # These systems always use GNU tools.
856 gnu_ld=yes gnu_as=yes ;;
857 esac
858 case "$host_os" in
859 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
860 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
862 gnu* | linux* | sysv4* | solaris2* | irix6*)
863 # These systems (almost) always use the ELF format.
864 elf=yes
866 esac
868 machine=$config_machine
869 vendor=$config_vendor
870 os=$config_os
873 ### I put this here to prevent those annoying emails from people who cannot
874 ### read and try to compile glibc on unsupported platforms. --drepper
876 ### By using the undocumented --enable-hacker-mode option for configure
877 ### one can skip this test to make the configuration not fail for unsupported
878 ### platforms.
880 if test -z "$enable_hacker_mode"; then
881 case "$machine-$host_os" in
882 *-linux* | *-gnu* | arm*-none*)
885 echo "*** The GNU C library is currently not available for this platform."
886 echo "*** So far nobody cared to port it and if there is no volunteer it"
887 echo "*** might never happen. So, if you have interest to see glibc on"
888 echo "*** this platform visit"
889 echo "*** http://www.gnu.org/software/libc/porting.html"
890 echo "*** and join the group of porters"
891 exit 1
893 esac
896 # Expand the configuration machine name into a subdirectory by architecture
897 # type and particular chip.
898 case "$machine" in
899 a29k | am29000) base_machine=a29k machine=a29k ;;
900 alpha*) base_machine=alpha machine=alpha/$machine ;;
901 arm*) base_machine=arm machine=arm/$machine ;;
902 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
903 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
904 hppa*) base_machine=hppa machine=hppa/$machine ;;
905 i[3456]86) base_machine=i386 machine=i386/$machine ;;
906 m680?0) base_machine=m68k machine=m68k/$machine ;;
907 m68k) base_machine=m68k machine=m68k/m68020 ;;
908 m88???) base_machine=m88k machine=m88k/$machine ;;
909 m88k) base_machine=m88k machine=m88k/m88100 ;;
910 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
911 mips*) base_machine=mips
912 case "`uname -m`" in
913 IP22) machine=mips/mips3 ;;
914 *) machine=mips/$machine ,,
915 esac ;;
916 sparc | sparcv[67])
917 base_machine=sparc machine=sparc/sparc32 ;;
918 sparcv8 | supersparc | hypersparc)
919 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
920 sparc64 | ultrasparc)
921 base_machine=sparc machine=sparc/sparc64 ;;
922 esac
925 if test "$base_machine" = "i386"; then
926 cat >> confdefs.h <<\EOF
927 #define USE_REGPARMS 1
932 # Compute the list of sysdep directories for this configuration.
933 # This can take a while to compute.
934 sysdep_dir=$srcdir/sysdeps
935 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
936 echo "configure:937: checking sysdep dirs" >&5
937 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
938 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
940 case "$os" in
941 gnu*)
942 base_os=mach/hurd ;;
943 netbsd* | 386bsd* | freebsd* | bsdi*)
944 base_os=unix/bsd/bsd4.4 ;;
945 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
946 base_os=unix/bsd ;;
947 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
948 base_os=unix/sysv ;;
949 irix6*)
950 base_os=unix/sysv/irix6/$os ;;
951 solaris[2-9]*)
952 base_os=unix/sysv/sysv4 ;;
953 none)
954 base_os=standalone ;;
956 base_os='' ;;
957 esac
959 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
960 tail=$os
961 ostry=$os
962 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
963 ostry="$ostry /$o"
964 tail=$o
965 done
966 o=`echo $tail | sed 's/[0-9]*$//'`
967 if test $o != $tail; then
968 ostry="$ostry /$o"
970 # For linux-gnu, try linux-gnu, then linux.
971 o=`echo $tail | sed 's/-.*$//'`
972 if test $o != $tail; then
973 ostry="$ostry /$o"
976 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
977 base=
978 tail=$base_os
979 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
980 set $b
981 base="$base /$1"
982 tail="$2"
983 done
985 # For sparc/sparc9, try sparc/sparc9 and then sparc.
986 mach=
987 tail=$machine
988 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
989 set $m
990 # Prepend the machine's FPU directory unless --without-fp.
991 if test "$with_fp" = yes; then
992 mach="$mach /$1/fpu"
994 mach="$mach /$1"
995 tail="$2"
996 done
999 # Find what sysdep directories exist.
1000 sysnames=
1001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1002 for d in $add_ons_pfx ''; do
1003 for b in $base ''; do
1004 for m0 in $mach ''; do
1005 for v in /$vendor ''; do
1006 test "$v" = / && continue
1007 for o in /$ostry ''; do
1008 test "$o" = / && continue
1009 for m in $mach ''; do
1010 if test "$m0$b$v$o$m"; then
1011 try="${d}sysdeps$m0$b$v$o$m"
1012 test -n "$enable_debug_configure" &&
1013 echo "$0 DEBUG: try $try" >&2
1014 case $try in
1015 /*) dest=$try ;;
1016 *) dest=$srcdir/$try ;;
1017 esac
1018 if test -d $dest; then
1019 sysnames="$sysnames $try"
1020 { test -n "$o" || test -n "$b"; } && os_used=t
1021 { test -n "$m" || test -n "$m0"; } && machine_used=t
1024 done
1025 done
1026 done
1027 done
1028 done
1029 done
1030 IFS="$ac_save_ifs"
1032 if test -z "$os_used" && test "$os" != none; then
1033 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1035 if test -z "$machine_used" && test "$machine" != none; then
1036 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1039 # We have now validated the configuration.
1042 # If using ELF, look for an `elf' subdirectory of each machine directory.
1043 # We prepend these rather than inserting them whereever the machine appears
1044 # because things specified by the machine's ELF ABI should override
1045 # OS-specific things, and should always be the same for any OS on the
1046 # machine (otherwise what's the point of an ABI?).
1047 if test "$elf" = yes; then
1048 elf_dirs=
1049 for d in $add_ons_pfx ''; do
1050 case $d in
1051 /*) xsrcdir= ;;
1052 *) xsrcdir=$srcdir/ ;;
1053 esac
1054 for m in $mach; do
1055 if test -d $xsrcdir${d}sysdeps$m/elf; then
1056 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1058 done
1059 done
1060 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1064 # Expand the list of system names into a full list of directories
1065 # from each element's parent name and Implies file (if present).
1066 set $sysnames
1067 names=
1068 while test $# -gt 0; do
1069 name=$1
1070 shift
1072 case " $names " in *" $name "*)
1073 # Already in the list.
1074 continue
1075 esac
1077 # Report each name as we discover it, so there is no long pause in output.
1078 echo $ac_n "$name $ac_c" >&6
1080 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1082 case $name in
1083 /*) xsrcdir= ;;
1084 *) xsrcdir=$srcdir/ ;;
1085 esac
1086 test -n "$enable_debug_configure" &&
1087 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1089 if test -f $xsrcdir$name/Implies; then
1090 # Collect more names from the `Implies' file (removing comments).
1091 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1092 implied=
1093 for x in $implied_candidate; do
1094 if test -d $xsrcdir$name_base/$x; then
1095 implied="$implied $name_base/$x";
1096 else
1097 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1099 done
1100 else
1101 implied=
1104 # Add NAME to the list of names.
1105 names="$names $name"
1107 # Find the parent of NAME, using the empty string if it has none.
1108 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1110 # Add the names implied by NAME, and NAME's parent (if it has one), to
1111 # the list of names to be processed (the argument list). We prepend the
1112 # implied names to the list and append the parent. We want implied
1113 # directories to come before further directories inferred from the
1114 # configuration components; this ensures that for sysv4, unix/common
1115 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1116 # after sysv4).
1117 sysnames="`echo $implied $* $parent`"
1118 test -n "$sysnames" && set $sysnames
1119 done
1121 # Add the default directories.
1122 default_sysnames=sysdeps/generic
1123 if test "$elf" = yes; then
1124 default_sysnames="sysdeps/generic/elf $default_sysnames"
1126 sysnames="$names $default_sysnames"
1128 # The other names were emitted during the scan.
1129 echo "$ac_t""$default_sysnames" 1>&6
1132 ### Locate tools.
1134 # Find a good install program. We prefer a C program (faster),
1135 # so one script is as good as another. But avoid the broken or
1136 # incompatible versions:
1137 # SysV /etc/install, /usr/sbin/install
1138 # SunOS /usr/etc/install
1139 # IRIX /sbin/install
1140 # AIX /bin/install
1141 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1142 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1143 # ./install, which can be erroneously created by make from ./install.sh.
1144 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1145 echo "configure:1146: checking for a BSD compatible install" >&5
1146 if test -z "$INSTALL"; then
1147 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1149 else
1150 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1151 for ac_dir in $PATH; do
1152 # Account for people who put trailing slashes in PATH elements.
1153 case "$ac_dir/" in
1154 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1156 # OSF1 and SCO ODT 3.0 have their own names for install.
1157 for ac_prog in ginstall installbsd scoinst install; do
1158 if test -f $ac_dir/$ac_prog; then
1159 if test $ac_prog = install &&
1160 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1161 # AIX install. It has an incompatible calling convention.
1162 # OSF/1 installbsd also uses dspmsg, but is usable.
1164 else
1165 ac_cv_path_install="$ac_dir/$ac_prog -c"
1166 break 2
1169 done
1171 esac
1172 done
1173 IFS="$ac_save_IFS"
1176 if test "${ac_cv_path_install+set}" = set; then
1177 INSTALL="$ac_cv_path_install"
1178 else
1179 # As a last resort, use the slow shell script. We don't cache a
1180 # path for INSTALL within a source directory, because that will
1181 # break other packages using the cache if that directory is
1182 # removed, or if the path is relative.
1183 INSTALL="$ac_install_sh"
1186 echo "$ac_t""$INSTALL" 1>&6
1188 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1189 # It thinks the first close brace ends the variable substitution.
1190 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1192 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1194 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1195 # The makefiles need to use a different form to find it in $srcdir.
1196 INSTALL='\$(..)./install-sh -c'
1198 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1199 echo "configure:1200: checking whether ln -s works" >&5
1200 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1202 else
1203 rm -f conftestdata
1204 if ln -s X conftestdata 2>/dev/null
1205 then
1206 rm -f conftestdata
1207 ac_cv_prog_LN_S="ln -s"
1208 else
1209 ac_cv_prog_LN_S=ln
1212 LN_S="$ac_cv_prog_LN_S"
1213 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1214 echo "$ac_t""yes" 1>&6
1215 else
1216 echo "$ac_t""no" 1>&6
1220 # These programs are version sensitive.
1221 echo $ac_n "checking build system type""... $ac_c" 1>&6
1222 echo "configure:1223: checking build system type" >&5
1224 build_alias=$build
1225 case "$build_alias" in
1226 NONE)
1227 case $nonopt in
1228 NONE) build_alias=$host_alias ;;
1229 *) build_alias=$nonopt ;;
1230 esac ;;
1231 esac
1233 build=`$ac_config_sub $build_alias`
1234 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1235 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1236 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1237 echo "$ac_t""$build" 1>&6
1239 if test $host != $build; then
1240 ac_tool_prefix=${host_alias}-
1241 else
1242 ac_tool_prefix=
1245 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
1247 # Extract the first word of "$ac_prog", so it can be a program name with args.
1248 set dummy $ac_prog; ac_word=$2
1249 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1250 echo "configure:1251: checking for $ac_word" >&5
1251 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1253 else
1254 if test -n "$CC"; then
1255 ac_cv_prog_CC="$CC" # Let the user override the test.
1256 else
1257 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1258 for ac_dir in $PATH; do
1259 test -z "$ac_dir" && ac_dir=.
1260 if test -f $ac_dir/$ac_word; then
1261 ac_cv_prog_CC="$ac_prog"
1262 break
1264 done
1265 IFS="$ac_save_ifs"
1268 CC="$ac_cv_prog_CC"
1269 if test -n "$CC"; then
1270 echo "$ac_t""$CC" 1>&6
1271 else
1272 echo "$ac_t""no" 1>&6
1275 test -n "$CC" && break
1276 done
1278 if test -z "$CC"; then
1279 ac_verc_fail=yes
1280 else
1281 # Found it, now check the version.
1282 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1283 echo "configure:1284: checking version of $CC" >&5
1284 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcstp-]*[0-9.]*\).*$/\1/p'`
1285 case $ac_prog_version in
1286 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1287 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]*)
1288 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1289 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1291 esac
1292 echo "$ac_t""$ac_prog_version" 1>&6
1294 if test $ac_verc_fail = yes; then
1295 critic_missing=t
1298 for ac_prog in make gmake
1300 # Extract the first word of "$ac_prog", so it can be a program name with args.
1301 set dummy $ac_prog; ac_word=$2
1302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1303 echo "configure:1304: checking for $ac_word" >&5
1304 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1306 else
1307 if test -n "$MAKE"; then
1308 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1309 else
1310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1311 for ac_dir in $PATH; do
1312 test -z "$ac_dir" && ac_dir=.
1313 if test -f $ac_dir/$ac_word; then
1314 ac_cv_prog_MAKE="$ac_prog"
1315 break
1317 done
1318 IFS="$ac_save_ifs"
1321 MAKE="$ac_cv_prog_MAKE"
1322 if test -n "$MAKE"; then
1323 echo "$ac_t""$MAKE" 1>&6
1324 else
1325 echo "$ac_t""no" 1>&6
1328 test -n "$MAKE" && break
1329 done
1331 if test -z "$MAKE"; then
1332 ac_verc_fail=yes
1333 else
1334 # Found it, now check the version.
1335 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1336 echo "configure:1337: checking version of $MAKE" >&5
1337 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*version \([0-9][0-9.]*\), by.*$/\1/p'`
1338 case $ac_prog_version in
1339 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1340 3.75 | 3.76.[1-9]* | 3.7[789]* | 3.[89]*)
1341 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1342 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1344 esac
1345 echo "$ac_t""$ac_prog_version" 1>&6
1347 if test $ac_verc_fail = yes; then
1348 critic_missing=t
1352 for ac_prog in msgfmt gmsgfmt
1354 # Extract the first word of "$ac_prog", so it can be a program name with args.
1355 set dummy $ac_prog; ac_word=$2
1356 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1357 echo "configure:1358: checking for $ac_word" >&5
1358 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1360 else
1361 if test -n "$MSGFMT"; then
1362 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1363 else
1364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1365 for ac_dir in $PATH; do
1366 test -z "$ac_dir" && ac_dir=.
1367 if test -f $ac_dir/$ac_word; then
1368 ac_cv_prog_MSGFMT="$ac_prog"
1369 break
1371 done
1372 IFS="$ac_save_ifs"
1375 MSGFMT="$ac_cv_prog_MSGFMT"
1376 if test -n "$MSGFMT"; then
1377 echo "$ac_t""$MSGFMT" 1>&6
1378 else
1379 echo "$ac_t""no" 1>&6
1382 test -n "$MSGFMT" && break
1383 done
1385 if test -z "$MSGFMT"; then
1386 ac_verc_fail=yes
1387 else
1388 # Found it, now check the version.
1389 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1390 echo "configure:1391: checking version of $MSGFMT" >&5
1391 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.*\([0-9][0-9]*\.[0-9]*\).*$/\1/p'`
1392 case $ac_prog_version in
1393 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1394 0.[1-9][0-9] | [1-9].*)
1395 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1396 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1398 esac
1399 echo "$ac_t""$ac_prog_version" 1>&6
1401 if test $ac_verc_fail = yes; then
1402 MSGFMT=: aux_missing=t
1405 for ac_prog in makeinfo
1407 # Extract the first word of "$ac_prog", so it can be a program name with args.
1408 set dummy $ac_prog; ac_word=$2
1409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1410 echo "configure:1411: checking for $ac_word" >&5
1411 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1413 else
1414 if test -n "$MAKEINFO"; then
1415 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1416 else
1417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1418 for ac_dir in $PATH; do
1419 test -z "$ac_dir" && ac_dir=.
1420 if test -f $ac_dir/$ac_word; then
1421 ac_cv_prog_MAKEINFO="$ac_prog"
1422 break
1424 done
1425 IFS="$ac_save_ifs"
1428 MAKEINFO="$ac_cv_prog_MAKEINFO"
1429 if test -n "$MAKEINFO"; then
1430 echo "$ac_t""$MAKEINFO" 1>&6
1431 else
1432 echo "$ac_t""no" 1>&6
1435 test -n "$MAKEINFO" && break
1436 done
1438 if test -z "$MAKEINFO"; then
1439 ac_verc_fail=yes
1440 else
1441 # Found it, now check the version.
1442 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1443 echo "configure:1444: checking version of $MAKEINFO" >&5
1444 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo \([0-9][0-9.]*\).*$/\1/p'`
1445 case $ac_prog_version in
1446 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1447 3.1[1-9] | 3.[2-9][0-9])
1448 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1449 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1451 esac
1452 echo "$ac_t""$ac_prog_version" 1>&6
1454 if test $ac_verc_fail = yes; then
1455 MAKEINFO=: aux_missing=t
1459 if test -n "$critic_missing"; then
1460 { echo "configure: error:
1461 *** Some critical program is missing or too old.
1462 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1465 test -n "$aux_missing" && echo "configure: warning:
1466 *** An auxiliary program is missing or too old;
1467 *** some features will be disabled.
1468 *** Check the INSTALL file for required versions." 1>&2
1471 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1472 echo "configure:1473: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1473 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1475 else
1477 ac_ext=c
1478 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1479 ac_cpp='$CPP $CPPFLAGS'
1480 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1481 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1482 cross_compiling=$ac_cv_prog_cc_cross
1484 cat > conftest.$ac_ext <<EOF
1485 #line 1486 "configure"
1486 #include "confdefs.h"
1487 main(){return(0);}
1489 if { (eval echo configure:1490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1490 ac_cv_prog_cc_works=yes
1491 # If we can't run a trivial program, we are probably using a cross compiler.
1492 if (./conftest; exit) 2>/dev/null; then
1493 ac_cv_prog_cc_cross=no
1494 else
1495 ac_cv_prog_cc_cross=yes
1497 else
1498 echo "configure: failed program was:" >&5
1499 cat conftest.$ac_ext >&5
1500 ac_cv_prog_cc_works=no
1502 rm -fr conftest*
1506 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1507 if test $ac_cv_prog_cc_works = no; then
1508 cross_linkable=no
1509 ac_cv_prog_cc_cross=yes
1510 else
1511 cross_linkable=yes
1513 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1514 echo "configure:1515: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1515 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1516 echo $ac_n "(cached) $ac_c" 1>&6
1517 else
1521 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1523 cross_compiling=$ac_cv_prog_cc_cross
1525 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1526 echo "configure:1527: checking whether we are using GNU C" >&5
1527 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1528 echo $ac_n "(cached) $ac_c" 1>&6
1529 else
1530 cat > conftest.c <<EOF
1531 #ifdef __GNUC__
1532 yes;
1533 #endif
1535 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1536 ac_cv_prog_gcc=yes
1537 else
1538 ac_cv_prog_gcc=no
1542 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1543 if test $ac_cv_prog_gcc != yes; then
1544 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1547 echo $ac_n "checking build system type""... $ac_c" 1>&6
1548 echo "configure:1549: checking build system type" >&5
1550 build_alias=$build
1551 case "$build_alias" in
1552 NONE)
1553 case $nonopt in
1554 NONE) build_alias=$host_alias ;;
1555 *) build_alias=$nonopt ;;
1556 esac ;;
1557 esac
1559 build=`$ac_config_sub $build_alias`
1560 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1561 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1562 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1563 echo "$ac_t""$build" 1>&6
1565 if test $host != $build; then
1566 for ac_prog in gcc cc
1568 # Extract the first word of "$ac_prog", so it can be a program name with args.
1569 set dummy $ac_prog; ac_word=$2
1570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1571 echo "configure:1572: checking for $ac_word" >&5
1572 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1573 echo $ac_n "(cached) $ac_c" 1>&6
1574 else
1575 if test -n "$BUILD_CC"; then
1576 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1577 else
1578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1579 for ac_dir in $PATH; do
1580 test -z "$ac_dir" && ac_dir=.
1581 if test -f $ac_dir/$ac_word; then
1582 ac_cv_prog_BUILD_CC="$ac_prog"
1583 break
1585 done
1586 IFS="$ac_save_ifs"
1589 BUILD_CC="$ac_cv_prog_BUILD_CC"
1590 if test -n "$BUILD_CC"; then
1591 echo "$ac_t""$BUILD_CC" 1>&6
1592 else
1593 echo "$ac_t""no" 1>&6
1596 test -n "$BUILD_CC" && break
1597 done
1601 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1602 echo "configure:1603: checking how to run the C preprocessor" >&5
1603 # On Suns, sometimes $CPP names a directory.
1604 if test -n "$CPP" && test -d "$CPP"; then
1605 CPP=
1607 if test -z "$CPP"; then
1608 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1610 else
1611 # This must be in double quotes, not single quotes, because CPP may get
1612 # substituted into the Makefile and "${CC-cc}" will confuse make.
1613 CPP="${CC-cc} -E"
1614 # On the NeXT, cc -E runs the code through the compiler's parser,
1615 # not just through cpp.
1616 cat > conftest.$ac_ext <<EOF
1617 #line 1618 "configure"
1618 #include "confdefs.h"
1619 #include <assert.h>
1620 Syntax Error
1622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1623 { (eval echo configure:1624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1624 ac_err=`grep -v '^ *+' conftest.out`
1625 if test -z "$ac_err"; then
1627 else
1628 echo "$ac_err" >&5
1629 echo "configure: failed program was:" >&5
1630 cat conftest.$ac_ext >&5
1631 rm -rf conftest*
1632 CPP="${CC-cc} -E -traditional-cpp"
1633 cat > conftest.$ac_ext <<EOF
1634 #line 1635 "configure"
1635 #include "confdefs.h"
1636 #include <assert.h>
1637 Syntax Error
1639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1640 { (eval echo configure:1641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1641 ac_err=`grep -v '^ *+' conftest.out`
1642 if test -z "$ac_err"; then
1644 else
1645 echo "$ac_err" >&5
1646 echo "configure: failed program was:" >&5
1647 cat conftest.$ac_ext >&5
1648 rm -rf conftest*
1649 CPP=/lib/cpp
1651 rm -f conftest*
1653 rm -f conftest*
1654 ac_cv_prog_CPP="$CPP"
1656 CPP="$ac_cv_prog_CPP"
1657 else
1658 ac_cv_prog_CPP="$CPP"
1660 echo "$ac_t""$CPP" 1>&6
1662 # Was a --with-binutils option given?
1663 if test -n "$path_binutils"; then
1664 # Make absolute; ensure a single trailing slash.
1665 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1666 CC="$CC -B$path_binutils"
1668 AS=`$CC -print-prog-name=as`
1669 LD=`$CC -print-prog-name=ld`
1671 # Determine whether we are using GNU binutils.
1672 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1673 echo "configure:1674: checking whether $AS is GNU as" >&5
1674 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1676 else
1677 # Most GNU programs take a -v and spit out some text including
1678 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1679 if $AS -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1680 libc_cv_prog_as_gnu=yes
1681 else
1682 libc_cv_prog_as_gnu=no
1686 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1687 rm -f a.out
1688 gnu_as=$libc_cv_prog_as_gnu
1690 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1691 echo "configure:1692: checking whether $LD is GNU ld" >&5
1692 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
1693 echo $ac_n "(cached) $ac_c" 1>&6
1694 else
1695 # Most GNU programs take a -v and spit out some text including
1696 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1697 if $LD -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1698 libc_cv_prog_ld_gnu=yes
1699 else
1700 libc_cv_prog_ld_gnu=no
1704 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1705 gnu_ld=$libc_cv_prog_ld_gnu
1707 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1708 set dummy ${ac_tool_prefix}ar; ac_word=$2
1709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1710 echo "configure:1711: checking for $ac_word" >&5
1711 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1712 echo $ac_n "(cached) $ac_c" 1>&6
1713 else
1714 if test -n "$AR"; then
1715 ac_cv_prog_AR="$AR" # Let the user override the test.
1716 else
1717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1718 for ac_dir in $PATH; do
1719 test -z "$ac_dir" && ac_dir=.
1720 if test -f $ac_dir/$ac_word; then
1721 ac_cv_prog_AR="${ac_tool_prefix}ar"
1722 break
1724 done
1725 IFS="$ac_save_ifs"
1726 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1729 AR="$ac_cv_prog_AR"
1730 if test -n "$AR"; then
1731 echo "$ac_t""$AR" 1>&6
1732 else
1733 echo "$ac_t""no" 1>&6
1738 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1739 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1740 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1741 echo "configure:1742: checking for $ac_word" >&5
1742 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1743 echo $ac_n "(cached) $ac_c" 1>&6
1744 else
1745 if test -n "$RANLIB"; then
1746 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1747 else
1748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1749 for ac_dir in $PATH; do
1750 test -z "$ac_dir" && ac_dir=.
1751 if test -f $ac_dir/$ac_word; then
1752 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1753 break
1755 done
1756 IFS="$ac_save_ifs"
1759 RANLIB="$ac_cv_prog_RANLIB"
1760 if test -n "$RANLIB"; then
1761 echo "$ac_t""$RANLIB" 1>&6
1762 else
1763 echo "$ac_t""no" 1>&6
1767 if test -z "$ac_cv_prog_RANLIB"; then
1768 if test -n "$ac_tool_prefix"; then
1769 # Extract the first word of "ranlib", so it can be a program name with args.
1770 set dummy ranlib; ac_word=$2
1771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1772 echo "configure:1773: checking for $ac_word" >&5
1773 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1775 else
1776 if test -n "$RANLIB"; then
1777 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1778 else
1779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1780 for ac_dir in $PATH; do
1781 test -z "$ac_dir" && ac_dir=.
1782 if test -f $ac_dir/$ac_word; then
1783 ac_cv_prog_RANLIB="ranlib"
1784 break
1786 done
1787 IFS="$ac_save_ifs"
1788 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1791 RANLIB="$ac_cv_prog_RANLIB"
1792 if test -n "$RANLIB"; then
1793 echo "$ac_t""$RANLIB" 1>&6
1794 else
1795 echo "$ac_t""no" 1>&6
1798 else
1799 RANLIB=":"
1803 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
1804 set dummy ${ac_tool_prefix}mig; ac_word=$2
1805 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1806 echo "configure:1807: checking for $ac_word" >&5
1807 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1809 else
1810 if test -n "$MIG"; then
1811 ac_cv_prog_MIG="$MIG" # Let the user override the test.
1812 else
1813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1814 for ac_dir in $PATH; do
1815 test -z "$ac_dir" && ac_dir=.
1816 if test -f $ac_dir/$ac_word; then
1817 ac_cv_prog_MIG="${ac_tool_prefix}mig"
1818 break
1820 done
1821 IFS="$ac_save_ifs"
1822 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
1825 MIG="$ac_cv_prog_MIG"
1826 if test -n "$MIG"; then
1827 echo "$ac_t""$MIG" 1>&6
1828 else
1829 echo "$ac_t""no" 1>&6
1835 # if using special system headers, find out the compiler's sekrit
1836 # header directory and add that to the list. NOTE: Only does the right
1837 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
1838 if test -n "$sysheaders"; then
1839 ccheaders=`$CC -print-file-name=include`
1840 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
1844 # check if ranlib is necessary
1845 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
1846 echo "configure:1847: checking whether ranlib is necessary" >&5
1847 if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1849 else
1850 cat > conftest.c <<EOF
1851 int a;
1852 char b;
1853 void c(void) {}
1855 $CC $CFLAGS -c conftest.c
1856 $AR cr conftest.a conftest.c
1857 cp conftest.a conftest2.a
1858 $RANLIB conftest.a
1859 if cmp -s conftest.a conftest2.a; then
1860 libc_cv_ranlib_necessary=no
1861 else
1862 libc_cv_ranlib_necessary=yes
1864 rm -rf conftest*
1867 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
1868 if test "$libc_cv_ranlib_necessary" = no; then
1869 RANLIB=:
1872 # Test if LD_LIBRARY_PATH contains the notation for the current directory
1873 # since this would lead to problems installing/building glibc.
1874 # LD_LIBRARY_PATH contains the current directory if one of the following
1875 # is true:
1876 # - one of the terminals (":" and ";") is the first or last sign
1877 # - two terminals occur directly after each other
1878 # - the path contains an element with a dot in it
1879 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
1880 echo "configure:1881: checking LD_LIBRARY_PATH variable" >&5
1881 case ${LD_LIBRARY_PATH} in
1882 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1883 ld_library_path_setting="contains current directory"
1886 ld_library_path_setting="ok"
1888 esac
1889 echo "$ac_t""$ld_library_path_setting" 1>&6
1890 if test "$ld_library_path_setting" != "ok"; then
1891 { echo "configure: error:
1892 *** LD_LIBRARY_PATH shouldn't contain the current directory when
1893 *** building glibc. Please change the environment variable
1894 *** and run configure again." 1>&2; exit 1; }
1897 # Extract the first word of "bash", so it can be a program name with args.
1898 set dummy bash; ac_word=$2
1899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1900 echo "configure:1901: checking for $ac_word" >&5
1901 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1903 else
1904 case "$BASH" in
1906 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1910 for ac_dir in $PATH; do
1911 test -z "$ac_dir" && ac_dir=.
1912 if test -f $ac_dir/$ac_word; then
1913 ac_cv_path_BASH="$ac_dir/$ac_word"
1914 break
1916 done
1917 IFS="$ac_save_ifs"
1918 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
1920 esac
1922 BASH="$ac_cv_path_BASH"
1923 if test -n "$BASH"; then
1924 echo "$ac_t""$BASH" 1>&6
1925 else
1926 echo "$ac_t""no" 1>&6
1929 if test "$BASH" != no &&
1930 $BASH -c 'test "$BASH_VERSINFO" \
1931 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1932 libc_cv_have_bash2=yes
1933 else
1934 libc_cv_have_bash2=no
1938 if test "$BASH" = no; then
1939 # Extract the first word of "ksh", so it can be a program name with args.
1940 set dummy ksh; ac_word=$2
1941 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1942 echo "configure:1943: checking for $ac_word" >&5
1943 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1944 echo $ac_n "(cached) $ac_c" 1>&6
1945 else
1946 case "$KSH" in
1948 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1952 for ac_dir in $PATH; do
1953 test -z "$ac_dir" && ac_dir=.
1954 if test -f $ac_dir/$ac_word; then
1955 ac_cv_path_KSH="$ac_dir/$ac_word"
1956 break
1958 done
1959 IFS="$ac_save_ifs"
1960 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
1962 esac
1964 KSH="$ac_cv_path_KSH"
1965 if test -n "$KSH"; then
1966 echo "$ac_t""$KSH" 1>&6
1967 else
1968 echo "$ac_t""no" 1>&6
1971 if test "$KSH" = no; then
1972 libc_cv_have_ksh=no
1973 else
1974 libc_cv_have_ksh=yes
1976 else
1977 KSH="$BASH"
1979 libc_cv_have_ksh=yes
1983 for ac_prog in mawk gawk nawk awk
1985 # Extract the first word of "$ac_prog", so it can be a program name with args.
1986 set dummy $ac_prog; ac_word=$2
1987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1988 echo "configure:1989: checking for $ac_word" >&5
1989 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1990 echo $ac_n "(cached) $ac_c" 1>&6
1991 else
1992 if test -n "$AWK"; then
1993 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1994 else
1995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1996 for ac_dir in $PATH; do
1997 test -z "$ac_dir" && ac_dir=.
1998 if test -f $ac_dir/$ac_word; then
1999 ac_cv_prog_AWK="$ac_prog"
2000 break
2002 done
2003 IFS="$ac_save_ifs"
2006 AWK="$ac_cv_prog_AWK"
2007 if test -n "$AWK"; then
2008 echo "$ac_t""$AWK" 1>&6
2009 else
2010 echo "$ac_t""no" 1>&6
2013 test -n "$AWK" && break
2014 done
2016 for ac_prog in perl
2018 # Extract the first word of "$ac_prog", so it can be a program name with args.
2019 set dummy $ac_prog; ac_word=$2
2020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2021 echo "configure:2022: checking for $ac_word" >&5
2022 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2023 echo $ac_n "(cached) $ac_c" 1>&6
2024 else
2025 case "$PERL" in
2027 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2031 for ac_dir in $PATH; do
2032 test -z "$ac_dir" && ac_dir=.
2033 if test -f $ac_dir/$ac_word; then
2034 ac_cv_path_PERL="$ac_dir/$ac_word"
2035 break
2037 done
2038 IFS="$ac_save_ifs"
2040 esac
2042 PERL="$ac_cv_path_PERL"
2043 if test -n "$PERL"; then
2044 echo "$ac_t""$PERL" 1>&6
2045 else
2046 echo "$ac_t""no" 1>&6
2049 test -n "$PERL" && break
2050 done
2051 test -n "$PERL" || PERL="no"
2055 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2056 echo "configure:2057: checking for signed size_t type" >&5
2057 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2059 else
2060 echo '#include <stddef.h>
2061 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2062 if eval "$ac_cpp conftest.c 2>/dev/null" \
2063 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
2064 libc_cv_signed_size_t=no
2065 else
2066 libc_cv_signed_size_t=yes
2068 rm -f conftest*
2071 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2072 if test $libc_cv_signed_size_t = yes; then
2073 cat >> confdefs.h <<\EOF
2074 #undef __SIZE_TYPE__
2075 #define __SIZE_TYPE__ unsigned
2079 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2080 echo "configure:2081: checking for libc-friendly stddef.h" >&5
2081 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2082 echo $ac_n "(cached) $ac_c" 1>&6
2083 else
2084 cat > conftest.$ac_ext <<EOF
2085 #line 2086 "configure"
2086 #include "confdefs.h"
2087 #define __need_size_t
2088 #define __need_wchar_t
2089 #include <stddef.h>
2090 #define __need_NULL
2091 #include <stddef.h>
2092 int main() {
2093 size_t size; wchar_t wchar;
2094 #ifdef offsetof
2095 #error stddef.h ignored __need_*
2096 #endif
2097 if (&size == NULL || &wchar == NULL) abort ();
2098 ; return 0; }
2100 if { (eval echo configure:2101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2101 rm -rf conftest*
2102 libc_cv_friendly_stddef=yes
2103 else
2104 echo "configure: failed program was:" >&5
2105 cat conftest.$ac_ext >&5
2106 rm -rf conftest*
2107 libc_cv_friendly_stddef=no
2109 rm -f conftest*
2112 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2113 if test $libc_cv_friendly_stddef = yes; then
2114 config_vars="$config_vars
2115 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2118 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2119 echo "configure:2120: checking whether we need to use -P to assemble .S files" >&5
2120 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2121 echo $ac_n "(cached) $ac_c" 1>&6
2122 else
2123 cat > conftest.S <<EOF
2124 #include "confdefs.h"
2125 /* Nothing whatsoever. */
2127 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
2128 libc_cv_need_minus_P=no
2129 else
2130 libc_cv_need_minus_P=yes
2132 rm -f conftest*
2135 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2136 if test $libc_cv_need_minus_P = yes; then
2137 config_vars="$config_vars
2138 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2141 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2142 echo "configure:2143: checking for assembler global-symbol directive" >&5
2143 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2145 else
2146 libc_cv_asm_global_directive=UNKNOWN
2147 for ac_globl in .globl .global; do
2148 cat > conftest.s <<EOF
2149 .text
2150 ${ac_globl} foo
2151 foo:
2153 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2154 libc_cv_asm_global_directive=${ac_globl}
2156 rm -f conftest*
2157 test $libc_cv_asm_global_directive != UNKNOWN && break
2158 done
2161 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2162 if test $libc_cv_asm_global_directive = UNKNOWN; then
2163 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2164 else
2165 cat >> confdefs.h <<EOF
2166 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2171 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2172 echo "configure:2173: checking for .set assembler directive" >&5
2173 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2175 else
2176 cat > conftest.s <<EOF
2177 .text
2178 foo:
2179 .set glibc_conftest_frobozz,foo
2180 $libc_cv_asm_global_directive glibc_conftest_frobozz
2182 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2183 # (but it doesn't work), so we must do a linking check to be sure.
2184 cat > conftest1.c <<\EOF
2185 extern int glibc_conftest_frobozz;
2186 main () { printf ("%d\n", glibc_conftest_frobozz); }
2188 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2189 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2190 libc_cv_asm_set_directive=yes
2191 else
2192 libc_cv_asm_set_directive=no
2194 rm -f conftest*
2197 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2198 if test $libc_cv_asm_set_directive = yes; then
2199 cat >> confdefs.h <<\EOF
2200 #define HAVE_ASM_SET_DIRECTIVE 1
2205 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2206 echo "configure:2207: checking for .symver assembler directive" >&5
2207 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2209 else
2210 cat > conftest.s <<EOF
2211 .text
2212 _sym:
2213 .symver _sym,sym@VERS
2215 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2216 libc_cv_asm_symver_directive=yes
2217 else
2218 libc_cv_asm_symver_directive=no
2220 rm -f conftest*
2223 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2224 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2225 echo "configure:2226: checking for ld --version-script" >&5
2226 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2227 echo $ac_n "(cached) $ac_c" 1>&6
2228 else
2229 if test $libc_cv_asm_symver_directive = yes; then
2230 cat > conftest.s <<EOF
2231 .text
2232 _sym:
2233 .symver _sym,sym@VERS
2235 cat > conftest.map <<EOF
2236 VERS_1 {
2237 global: sym;
2240 VERS_2 {
2241 global: sym;
2242 } VERS_1;
2244 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2245 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2246 -nostartfiles -nostdlib
2247 -Wl,--version-script,conftest.map
2248 1>&5'; { (eval echo configure:2249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2249 then
2250 libc_cv_ld_version_script_option=yes
2251 else
2252 libc_cv_ld_version_script_option=no
2254 else
2255 libc_cv_ld_version_script_option=no
2257 else
2258 libc_cv_ld_version_script_option=no
2260 rm -f conftest*
2263 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2264 if test $libc_cv_asm_symver_directive = yes &&
2265 test $libc_cv_ld_version_script_option = yes &&
2266 test $enable_versioning = yes; then
2267 VERSIONING=yes
2268 cat >> confdefs.h <<\EOF
2269 #define DO_VERSIONING 1
2272 else
2273 VERSIONING=no
2277 if test $VERSIONING = no; then
2278 echo "\
2279 *** WARNING: You should not compile GNU libc without versioning. Not using
2280 *** versioning will introduce incompatibilities so that old binaries
2281 *** will not run anymore.
2282 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2284 if test $elf = yes; then
2285 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2286 echo "configure:2287: checking for .previous assembler directive" >&5
2287 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2289 else
2290 cat > conftest.s <<EOF
2291 .section foo_section
2292 .previous
2294 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2295 libc_cv_asm_previous_directive=yes
2296 else
2297 libc_cv_asm_previous_directive=no
2299 rm -f conftest*
2302 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2303 if test $libc_cv_asm_previous_directive = yes; then
2304 cat >> confdefs.h <<\EOF
2305 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2308 else
2309 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2310 echo "configure:2311: checking for .popsection assembler directive" >&5
2311 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2312 echo $ac_n "(cached) $ac_c" 1>&6
2313 else
2314 cat > conftest.s <<EOF
2315 .pushsection foo_section
2316 .popsection
2318 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2319 libc_cv_asm_popsection_directive=yes
2320 else
2321 libc_cv_asm_popsection_directive=no
2323 rm -f conftest*
2326 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2327 if test $libc_cv_asm_popsection_directive = yes; then
2328 cat >> confdefs.h <<\EOF
2329 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2336 if test $elf != yes; then
2337 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2338 echo "configure:2339: checking for .init and .fini sections" >&5
2339 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2341 else
2342 cat > conftest.$ac_ext <<EOF
2343 #line 2344 "configure"
2344 #include "confdefs.h"
2346 int main() {
2347 asm (".section .init");
2348 asm (".section .fini");
2349 asm (".text");
2350 ; return 0; }
2352 if { (eval echo configure:2353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2353 rm -rf conftest*
2354 libc_cv_have_initfini=yes
2355 else
2356 echo "configure: failed program was:" >&5
2357 cat conftest.$ac_ext >&5
2358 rm -rf conftest*
2359 libc_cv_have_initfini=no
2361 rm -f conftest*
2364 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2365 if test $libc_cv_have_initfini = yes; then
2366 cat >> confdefs.h <<\EOF
2367 #define HAVE_INITFINI 1
2375 if test $elf = yes; then
2376 libc_cv_asm_underscores=no
2377 else
2378 if test $ac_cv_prog_cc_works = yes; then
2379 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2380 echo "configure:2381: checking for _ prefix on C symbol names" >&5
2381 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2382 echo $ac_n "(cached) $ac_c" 1>&6
2383 else
2384 cat > conftest.$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2387 asm ("_glibc_foobar:");
2388 int main() {
2389 glibc_foobar ();
2390 ; return 0; }
2392 if { (eval echo configure:2393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2393 rm -rf conftest*
2394 libc_cv_asm_underscores=yes
2395 else
2396 echo "configure: failed program was:" >&5
2397 cat conftest.$ac_ext >&5
2398 rm -rf conftest*
2399 libc_cv_asm_underscores=no
2401 rm -f conftest*
2404 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2405 else
2406 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2407 echo "configure:2408: checking for _ prefix on C symbol names" >&5
2408 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2410 else
2411 cat > conftest.$ac_ext <<EOF
2412 #line 2413 "configure"
2413 #include "confdefs.h"
2414 void underscore_test(void) {
2415 return; }
2417 if { (eval echo configure:2418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2418 if grep _underscore_test conftest* >/dev/null; then
2419 rm -f conftest*
2420 libc_cv_asm_underscores=yes
2421 else
2422 rm -f conftest*
2423 libc_cv_asm_underscores=no
2425 else
2426 echo "configure: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
2428 rm -f conftest*
2429 libc_cv_asm_underscores=no
2431 rm -f conftest*
2434 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2437 if test $libc_cv_asm_underscores = no; then
2438 cat >> confdefs.h <<\EOF
2439 #define NO_UNDERSCORES 1
2444 if test $elf = yes; then
2445 libc_cv_weak_symbols=yes
2448 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2449 echo "configure:2450: checking for assembler .weak directive" >&5
2450 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2452 else
2453 cat > conftest.s <<EOF
2454 .text
2455 ${libc_cv_asm_global_directive} foo
2456 foo:
2457 .weak foo
2458 .weak bar; bar = foo
2460 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2461 libc_cv_asm_weak_directive=yes
2462 else
2463 libc_cv_asm_weak_directive=no
2465 rm -f conftest*
2468 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2470 if test $libc_cv_asm_weak_directive = no; then
2471 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2472 echo "configure:2473: checking for assembler .weakext directive" >&5
2473 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2475 else
2476 cat > conftest.s <<EOF
2477 .text
2478 ${libc_cv_asm_global_directive} foo
2479 foo:
2480 .weakext bar foo
2481 .weakext baz
2482 ${libc_cv_asm_global_directive} baz
2483 baz:
2485 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2486 libc_cv_asm_weakext_directive=yes
2487 else
2488 libc_cv_asm_weakext_directive=no
2490 rm -f conftest*
2493 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2495 fi # no .weak
2497 if test $libc_cv_asm_weak_directive = yes; then
2498 cat >> confdefs.h <<\EOF
2499 #define HAVE_ASM_WEAK_DIRECTIVE 1
2502 elif test $libc_cv_asm_weakext_directive = yes; then
2503 cat >> confdefs.h <<\EOF
2504 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2509 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2510 echo "configure:2511: checking for ld --no-whole-archive" >&5
2511 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2513 else
2514 cat > conftest.c <<\EOF
2515 _start () {}
2516 int __eh_pc;
2517 __throw () {}
2519 if { ac_try='${CC-cc} $CFLAGS
2520 -nostdlib -nostartfiles -Wl,--no-whole-archive
2521 -o conftest conftest.c 1>&5'; { (eval echo configure:2522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2522 libc_cv_ld_no_whole_archive=yes
2523 else
2524 libc_cv_ld_no_whole_archive=no
2526 rm -f conftest*
2529 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2530 if test $libc_cv_ld_no_whole_archive = yes; then
2531 no_whole_archive=-Wl,--no-whole-archive
2534 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
2535 echo "configure:2536: checking for gcc -fexceptions" >&5
2536 if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
2537 echo $ac_n "(cached) $ac_c" 1>&6
2538 else
2539 cat > conftest.c <<\EOF
2540 _start () {}
2541 int __eh_pc;
2542 __throw () {}
2544 if { ac_try='${CC-cc} $CFLAGS
2545 -nostdlib -nostartfiles -fexceptions
2546 -o conftest conftest.c 1>&5'; { (eval echo configure:2547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2547 libc_cv_gcc_exceptions=yes
2548 else
2549 libc_cv_gcc_exceptions=no
2551 rm -f conftest*
2554 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
2555 if test $libc_cv_gcc_exceptions = yes; then
2556 exceptions=-fexceptions
2559 if test "$base_machine" = alpha ; then
2560 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2561 echo "configure:2562: checking for function ..ng prefix" >&5
2562 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2564 else
2565 cat > conftest.c <<\EOF
2566 foo () { }
2568 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:2569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2569 then
2570 libc_cv_gcc_alpha_ng_prefix=yes
2571 else
2572 libc_cv_gcc_alpha_ng_prefix=no
2574 rm -f conftest*
2577 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2578 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2579 cat >> confdefs.h <<\EOF
2580 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2583 else
2584 cat >> confdefs.h <<\EOF
2585 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2591 if test "$host_cpu" = powerpc ; then
2592 # Check for a bug present in at least versions 2.8.x of GCC
2593 # and versions 1.0.x of EGCS.
2594 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
2595 echo "configure:2596: checking whether clobbering cr0 causes problems" >&5
2596 if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
2597 echo $ac_n "(cached) $ac_c" 1>&6
2598 else
2599 cat > conftest.$ac_ext <<EOF
2600 #line 2601 "configure"
2601 #include "confdefs.h"
2602 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
2603 int main() {
2605 ; return 0; }
2607 if { (eval echo configure:2608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2608 rm -rf conftest*
2609 libc_cv_c_asmcr0_bug='no'
2610 else
2611 echo "configure: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2613 rm -rf conftest*
2614 libc_cv_c_asmcr0_bug='yes'
2616 rm -f conftest*
2619 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
2620 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
2621 cat >> confdefs.h <<\EOF
2622 #define BROKEN_PPC_ASM_CR0 1
2628 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2629 echo "configure:2630: checking for DWARF2 unwind info support" >&5
2630 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
2631 echo $ac_n "(cached) $ac_c" 1>&6
2632 else
2633 cat > conftest.c <<EOF
2634 #line 2635 "configure"
2635 static char __EH_FRAME_BEGIN__;
2636 _start ()
2638 #ifdef CHECK__register_frame
2639 __register_frame (__EH_FRAME_BEGIN__);
2640 __deregister_frame (__EH_FRAME_BEGIN__);
2641 #endif
2642 #ifdef CHECK__register_frame_info
2643 __register_frame_info (__EH_FRAME_BEGIN__);
2644 __deregister_frame_info (__EH_FRAME_BEGIN__);
2645 #endif
2647 int __eh_pc;
2648 __throw () {}
2649 /* FIXME: this is fragile. */
2650 malloc () {}
2651 strcmp () {}
2652 strlen () {}
2653 memcpy () {}
2654 memset () {}
2655 free () {}
2656 abort () {}
2657 __bzero () {}
2659 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
2660 -nostdlib -nostartfiles
2661 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2662 libc_cv_gcc_dwarf2_unwind_info=static
2663 else
2664 libc_cv_gcc_dwarf2_unwind_info=no
2666 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
2667 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
2668 -nostdlib -nostartfiles
2669 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2670 libc_cv_gcc_dwarf2_unwind_info=yes
2671 else
2672 libc_cv_gcc_dwarf2_unwind_info=no
2675 rm -f conftest*
2678 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
2679 case $libc_cv_gcc_dwarf2_unwind_info in
2680 yes)
2681 cat >> confdefs.h <<\EOF
2682 #define HAVE_DWARF2_UNWIND_INFO 1
2686 static)
2687 cat >> confdefs.h <<\EOF
2688 #define HAVE_DWARF2_UNWIND_INFO 1
2691 cat >> confdefs.h <<\EOF
2692 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
2696 esac
2698 ### End of automated tests.
2699 ### Now run sysdeps configure fragments.
2701 # sysdeps configure fragments may set these with files to be linked below.
2702 libc_link_dests=
2703 libc_link_sources=
2705 # They also can set these variables.
2706 ldd_rewrite_script=no
2708 # Iterate over all the sysdep directories we will use, running their
2709 # configure fragments, and looking for a uname implementation.
2710 uname=
2711 for dir in $sysnames; do
2712 case $dir in
2713 /*) dest=$dir ;;
2714 *) dest=$srcdir/$dir ;;
2715 esac
2716 if test -r $dest/configure; then
2717 echo "$ac_t""running configure fragment for $dest" 1>&6
2718 . $dest/configure
2721 if test -z "$uname"; then
2722 if test -r $dest/uname.c ||
2723 test -r $dest/uname.S ||
2724 { test -r $dest/syscalls.list &&
2725 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
2726 uname=$dir
2729 done
2733 # If we will use the generic uname implementation, we must figure out what
2734 # it will say by examining the system, and write the results in config-name.h.
2735 if test "$uname" = "sysdeps/generic"; then
2737 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
2738 if test $uname_sysname != $config_os; then
2739 config_release=`echo $config_os | sed s/$uname_sysname//`
2742 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2743 echo "configure:2744: checking OS release for uname" >&5
2744 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6
2746 else
2747 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2748 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
2749 != x$config_release; then
2750 # The configuration release is a substring of the kernel release.
2751 libc_cv_uname_release=$kernel_release
2752 elif test x$config_release != x; then
2753 libc_cv_uname_release=$config_release
2754 elif test x$kernel_release != x; then
2755 libc_cv_uname_release=$kernel_release
2756 else
2757 libc_cv_uname_release=unknown
2761 echo "$ac_t""$libc_cv_uname_release" 1>&6
2762 uname_release="$libc_cv_uname_release"
2764 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2765 echo "configure:2766: checking OS version for uname" >&5
2766 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
2767 echo $ac_n "(cached) $ac_c" 1>&6
2768 else
2769 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2770 if test -n "$kernel_version"; then
2771 libc_cv_uname_version="$kernel_version"
2772 else
2773 libc_cv_uname_version=unknown
2777 echo "$ac_t""$libc_cv_uname_version" 1>&6
2778 uname_version="$libc_cv_uname_version"
2780 config_uname=config-name.h:config-name.in
2781 else
2782 # For non-generic uname, we don't need to create config-name.h at all.
2783 config_uname=
2786 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
2787 echo "configure:2788: checking stdio selection" >&5
2789 case $stdio in
2790 libio) cat >> confdefs.h <<\EOF
2791 #define USE_IN_LIBIO 1
2794 default) stdio=stdio ;;
2795 esac
2796 echo "$ac_t""$stdio" 1>&6
2798 # Test for old glibc 2.0.x headers so that they can be removed properly
2799 # Search only in includedir.
2800 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
2801 echo "configure:2802: checking for old glibc 2.0.x headers" >&5
2802 if eval test -e "${includedir}/elfclass.h" -a -e "${includedir}/fcntlbits.h"
2803 then
2804 old_glibc_headers=yes
2805 else
2806 old_glibc_headers=no
2808 echo "$ac_t""$old_glibc_headers" 1>&6
2809 if test ${old_glibc_headers} = yes; then
2810 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
2811 echo "configure: warning: *** be removed." 1>&2
2823 if test $gnu_ld = yes; then
2824 cat >> confdefs.h <<\EOF
2825 #define HAVE_GNU_LD 1
2829 if test $gnu_as = yes; then
2830 cat >> confdefs.h <<\EOF
2831 #define HAVE_GNU_AS 1
2835 if test $elf = yes; then
2836 cat >> confdefs.h <<\EOF
2837 #define HAVE_ELF 1
2844 if test $shared = default; then
2845 if test $gnu_ld = yes; then
2846 shared=$elf
2847 else
2848 # For now we do not assume shared libs are available. In future more
2849 # tests might become available.
2850 shared=no
2854 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
2855 echo "configure:2856: checking whether -fPIC is default" >&5
2856 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2858 else
2859 pic_default=yes
2860 cat > conftest.c <<EOF
2861 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
2862 # error PIC is default.
2863 #endif
2865 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
2866 pic_default=no
2868 rm -f conftest.*
2871 echo "$ac_t""$pic_default" 1>&6
2882 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
2883 config_makefile=
2884 else
2885 config_makefile=Makefile
2888 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
2889 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
2893 trap '' 1 2 15
2894 cat > confcache <<\EOF
2895 # This file is a shell script that caches the results of configure
2896 # tests run on this system so they can be shared between configure
2897 # scripts and configure runs. It is not useful on other systems.
2898 # If it contains results you don't want to keep, you may remove or edit it.
2900 # By default, configure uses ./config.cache as the cache file,
2901 # creating it if it does not exist already. You can give configure
2902 # the --cache-file=FILE option to use a different cache file; that is
2903 # what configure does when it calls configure scripts in
2904 # subdirectories, so they share the cache.
2905 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2906 # config.status only pays attention to the cache file if you give it the
2907 # --recheck option to rerun configure.
2910 # The following way of writing the cache mishandles newlines in values,
2911 # but we know of no workaround that is simple, portable, and efficient.
2912 # So, don't put newlines in cache variables' values.
2913 # Ultrix sh set writes to stderr and can't be redirected directly,
2914 # and sets the high bit in the cache file unless we assign to the vars.
2915 (set) 2>&1 |
2916 case `(ac_space=' '; set) 2>&1` in
2917 *ac_space=\ *)
2918 # `set' does not quote correctly, so add quotes (double-quote substitution
2919 # turns \\\\ into \\, and sed turns \\ into \).
2920 sed -n \
2921 -e "s/'/'\\\\''/g" \
2922 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2925 # `set' quotes correctly as required by POSIX, so do not add quotes.
2926 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2928 esac >> confcache
2929 if cmp -s $cache_file confcache; then
2931 else
2932 if test -w $cache_file; then
2933 echo "updating cache $cache_file"
2934 cat confcache > $cache_file
2935 else
2936 echo "not updating unwritable cache $cache_file"
2939 rm -f confcache
2941 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2943 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2944 # Let make expand exec_prefix.
2945 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2947 # Any assignment to VPATH causes Sun make to only execute
2948 # the first set of double-colon rules, so remove it if not needed.
2949 # If there is a colon in the path, we need to keep it.
2950 if test "x$srcdir" = x.; then
2951 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2954 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2956 DEFS=-DHAVE_CONFIG_H
2958 # Without the "./", some shells look in PATH for config.status.
2959 : ${CONFIG_STATUS=./config.status}
2961 echo creating $CONFIG_STATUS
2962 rm -f $CONFIG_STATUS
2963 cat > $CONFIG_STATUS <<EOF
2964 #! /bin/sh
2965 # Generated automatically by configure.
2966 # Run this file to recreate the current configuration.
2967 # This directory was configured as follows,
2968 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2970 # $0 $ac_configure_args
2972 # Compiler output produced by configure, useful for debugging
2973 # configure, is in ./config.log if it exists.
2975 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2976 for ac_option
2978 case "\$ac_option" in
2979 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2980 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2981 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2982 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2983 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2984 exit 0 ;;
2985 -help | --help | --hel | --he | --h)
2986 echo "\$ac_cs_usage"; exit 0 ;;
2987 *) echo "\$ac_cs_usage"; exit 1 ;;
2988 esac
2989 done
2991 ac_given_srcdir=$srcdir
2992 ac_given_INSTALL="$INSTALL"
2994 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2996 cat >> $CONFIG_STATUS <<EOF
2998 # Protect against being on the right side of a sed subst in config.status.
2999 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3000 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3001 $ac_vpsub
3002 $extrasub
3003 s%@CFLAGS@%$CFLAGS%g
3004 s%@CPPFLAGS@%$CPPFLAGS%g
3005 s%@CXXFLAGS@%$CXXFLAGS%g
3006 s%@DEFS@%$DEFS%g
3007 s%@LDFLAGS@%$LDFLAGS%g
3008 s%@LIBS@%$LIBS%g
3009 s%@exec_prefix@%$exec_prefix%g
3010 s%@prefix@%$prefix%g
3011 s%@program_transform_name@%$program_transform_name%g
3012 s%@bindir@%$bindir%g
3013 s%@sbindir@%$sbindir%g
3014 s%@libexecdir@%$libexecdir%g
3015 s%@datadir@%$datadir%g
3016 s%@sysconfdir@%$sysconfdir%g
3017 s%@sharedstatedir@%$sharedstatedir%g
3018 s%@localstatedir@%$localstatedir%g
3019 s%@libdir@%$libdir%g
3020 s%@includedir@%$includedir%g
3021 s%@oldincludedir@%$oldincludedir%g
3022 s%@infodir@%$infodir%g
3023 s%@mandir@%$mandir%g
3024 s%@with_cvs@%$with_cvs%g
3025 s%@subdirs@%$subdirs%g
3026 s%@force_install@%$force_install%g
3027 s%@host@%$host%g
3028 s%@host_alias@%$host_alias%g
3029 s%@host_cpu@%$host_cpu%g
3030 s%@host_vendor@%$host_vendor%g
3031 s%@host_os@%$host_os%g
3032 s%@base_machine@%$base_machine%g
3033 s%@sysnames@%$sysnames%g
3034 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3035 s%@INSTALL_DATA@%$INSTALL_DATA%g
3036 s%@LN_S@%$LN_S%g
3037 s%@build@%$build%g
3038 s%@build_alias@%$build_alias%g
3039 s%@build_cpu@%$build_cpu%g
3040 s%@build_vendor@%$build_vendor%g
3041 s%@build_os@%$build_os%g
3042 s%@CC@%$CC%g
3043 s%@MAKE@%$MAKE%g
3044 s%@MSGFMT@%$MSGFMT%g
3045 s%@MAKEINFO@%$MAKEINFO%g
3046 s%@cross_linkable@%$cross_linkable%g
3047 s%@BUILD_CC@%$BUILD_CC%g
3048 s%@cross_compiling@%$cross_compiling%g
3049 s%@CPP@%$CPP%g
3050 s%@AR@%$AR%g
3051 s%@RANLIB@%$RANLIB%g
3052 s%@MIG@%$MIG%g
3053 s%@SYSINCLUDES@%$SYSINCLUDES%g
3054 s%@BASH@%$BASH%g
3055 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
3056 s%@KSH@%$KSH%g
3057 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
3058 s%@AWK@%$AWK%g
3059 s%@PERL@%$PERL%g
3060 s%@VERSIONING@%$VERSIONING%g
3061 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
3062 s%@no_whole_archive@%$no_whole_archive%g
3063 s%@exceptions@%$exceptions%g
3064 s%@uname_sysname@%$uname_sysname%g
3065 s%@uname_release@%$uname_release%g
3066 s%@uname_version@%$uname_version%g
3067 s%@stdio@%$stdio%g
3068 s%@old_glibc_headers@%$old_glibc_headers%g
3069 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
3070 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
3071 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
3072 s%@has_ldconfig@%$has_ldconfig%g
3073 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
3074 s%@gnu_ld@%$gnu_ld%g
3075 s%@gnu_as@%$gnu_as%g
3076 s%@elf@%$elf%g
3077 s%@static@%$static%g
3078 s%@shared@%$shared%g
3079 s%@pic_default@%$pic_default%g
3080 s%@profile@%$profile%g
3081 s%@omitfp@%$omitfp%g
3082 s%@bounded@%$bounded%g
3083 s%@static_nss@%$static_nss%g
3084 s%@nopic_initfini@%$nopic_initfini%g
3085 s%@DEFINES@%$DEFINES%g
3086 s%@VERSION@%$VERSION%g
3087 s%@RELEASE@%$RELEASE%g
3089 CEOF
3092 cat >> $CONFIG_STATUS <<\EOF
3094 # Split the substitutions into bite-sized pieces for seds with
3095 # small command number limits, like on Digital OSF/1 and HP-UX.
3096 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3097 ac_file=1 # Number of current file.
3098 ac_beg=1 # First line for current file.
3099 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3100 ac_more_lines=:
3101 ac_sed_cmds=""
3102 while $ac_more_lines; do
3103 if test $ac_beg -gt 1; then
3104 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3105 else
3106 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3108 if test ! -s conftest.s$ac_file; then
3109 ac_more_lines=false
3110 rm -f conftest.s$ac_file
3111 else
3112 if test -z "$ac_sed_cmds"; then
3113 ac_sed_cmds="sed -f conftest.s$ac_file"
3114 else
3115 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3117 ac_file=`expr $ac_file + 1`
3118 ac_beg=$ac_end
3119 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3121 done
3122 if test -z "$ac_sed_cmds"; then
3123 ac_sed_cmds=cat
3127 cat >> $CONFIG_STATUS <<EOF
3129 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3131 cat >> $CONFIG_STATUS <<\EOF
3132 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3133 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3134 case "$ac_file" in
3135 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3136 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3137 *) ac_file_in="${ac_file}.in" ;;
3138 esac
3140 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3142 # Remove last slash and all that follows it. Not all systems have dirname.
3143 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3144 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3145 # The file is in a subdirectory.
3146 test ! -d "$ac_dir" && mkdir "$ac_dir"
3147 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3148 # A "../" for each directory in $ac_dir_suffix.
3149 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3150 else
3151 ac_dir_suffix= ac_dots=
3154 case "$ac_given_srcdir" in
3155 .) srcdir=.
3156 if test -z "$ac_dots"; then top_srcdir=.
3157 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3158 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3159 *) # Relative path.
3160 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3161 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3162 esac
3164 case "$ac_given_INSTALL" in
3165 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3166 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3167 esac
3169 echo creating "$ac_file"
3170 rm -f "$ac_file"
3171 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3172 case "$ac_file" in
3173 *Makefile*) ac_comsub="1i\\
3174 # $configure_input" ;;
3175 *) ac_comsub= ;;
3176 esac
3178 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3179 sed -e "$ac_comsub
3180 s%@configure_input@%$configure_input%g
3181 s%@srcdir@%$srcdir%g
3182 s%@top_srcdir@%$top_srcdir%g
3183 s%@INSTALL@%$INSTALL%g
3184 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3185 fi; done
3186 rm -f conftest.s*
3188 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3189 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3191 # ac_d sets the value in "#define NAME VALUE" lines.
3192 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3193 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3194 ac_dC='\3'
3195 ac_dD='%g'
3196 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3197 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3198 ac_uB='\([ ]\)%\1#\2define\3'
3199 ac_uC=' '
3200 ac_uD='\4%g'
3201 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3202 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3203 ac_eB='$%\1#\2define\3'
3204 ac_eC=' '
3205 ac_eD='%g'
3207 if test "${CONFIG_HEADERS+set}" != set; then
3209 cat >> $CONFIG_STATUS <<EOF
3210 CONFIG_HEADERS="config.h"
3212 cat >> $CONFIG_STATUS <<\EOF
3214 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3215 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3216 case "$ac_file" in
3217 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3218 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3219 *) ac_file_in="${ac_file}.in" ;;
3220 esac
3222 echo creating $ac_file
3224 rm -f conftest.frag conftest.in conftest.out
3225 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3226 cat $ac_file_inputs > conftest.in
3230 # Transform confdefs.h into a sed script conftest.vals that substitutes
3231 # the proper values into config.h.in to produce config.h. And first:
3232 # Protect against being on the right side of a sed subst in config.status.
3233 # Protect against being in an unquoted here document in config.status.
3234 rm -f conftest.vals
3235 cat > conftest.hdr <<\EOF
3236 s/[\\&%]/\\&/g
3237 s%[\\$`]%\\&%g
3238 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3239 s%ac_d%ac_u%gp
3240 s%ac_u%ac_e%gp
3242 sed -n -f conftest.hdr confdefs.h > conftest.vals
3243 rm -f conftest.hdr
3245 # This sed command replaces #undef with comments. This is necessary, for
3246 # example, in the case of _POSIX_SOURCE, which is predefined and required
3247 # on some systems where configure will not decide to define it.
3248 cat >> conftest.vals <<\EOF
3249 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3252 # Break up conftest.vals because some shells have a limit on
3253 # the size of here documents, and old seds have small limits too.
3255 rm -f conftest.tail
3256 while :
3258 ac_lines=`grep -c . conftest.vals`
3259 # grep -c gives empty output for an empty file on some AIX systems.
3260 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3261 # Write a limited-size here document to conftest.frag.
3262 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3263 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3264 echo 'CEOF
3265 sed -f conftest.frag conftest.in > conftest.out
3266 rm -f conftest.in
3267 mv conftest.out conftest.in
3268 ' >> $CONFIG_STATUS
3269 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3270 rm -f conftest.vals
3271 mv conftest.tail conftest.vals
3272 done
3273 rm -f conftest.vals
3275 cat >> $CONFIG_STATUS <<\EOF
3276 rm -f conftest.frag conftest.h
3277 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3278 cat conftest.in >> conftest.h
3279 rm -f conftest.in
3280 if cmp -s $ac_file conftest.h 2>/dev/null; then
3281 echo "$ac_file is unchanged"
3282 rm -f conftest.h
3283 else
3284 # Remove last slash and all that follows it. Not all systems have dirname.
3285 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3286 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3287 # The file is in a subdirectory.
3288 test ! -d "$ac_dir" && mkdir "$ac_dir"
3290 rm -f $ac_file
3291 mv conftest.h $ac_file
3293 fi; done
3297 cat >> $CONFIG_STATUS <<EOF
3298 ac_sources="`echo $libc_link_sources`"
3299 ac_dests="`echo $libc_link_dests`"
3302 cat >> $CONFIG_STATUS <<\EOF
3303 srcdir=$ac_given_srcdir
3304 while test -n "$ac_sources"; do
3305 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3306 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3308 echo "linking $srcdir/$ac_source to $ac_dest"
3310 if test ! -r $srcdir/$ac_source; then
3311 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3313 rm -f $ac_dest
3315 # Make relative symlinks.
3316 # Remove last slash and all that follows it. Not all systems have dirname.
3317 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3318 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3319 # The dest file is in a subdirectory.
3320 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3321 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3322 # A "../" for each directory in $ac_dest_dir_suffix.
3323 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3324 else
3325 ac_dest_dir_suffix= ac_dots=
3328 case "$srcdir" in
3329 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3330 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3331 esac
3333 # Make a symlink if possible; otherwise try a hard link.
3334 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3335 ln $srcdir/$ac_source $ac_dest; then :
3336 else
3337 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3339 done
3341 cat >> $CONFIG_STATUS <<EOF
3342 config_vars='$config_vars'
3344 cat >> $CONFIG_STATUS <<\EOF
3346 case $CONFIG_FILES in *config.make*)
3347 echo "$config_vars" >> config.make;;
3348 esac
3349 test -d bits || mkdir bits
3350 exit 0
3352 chmod +x $CONFIG_STATUS
3353 rm -fr confdefs* $ac_clean_files
3354 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3356 if test "$no_recursion" != yes; then
3358 # Remove --cache-file and --srcdir arguments so they do not pile up.
3359 ac_sub_configure_args=
3360 ac_prev=
3361 for ac_arg in $ac_configure_args; do
3362 if test -n "$ac_prev"; then
3363 ac_prev=
3364 continue
3366 case "$ac_arg" in
3367 -cache-file | --cache-file | --cache-fil | --cache-fi \
3368 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3369 ac_prev=cache_file ;;
3370 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3371 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3373 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3374 ac_prev=srcdir ;;
3375 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3377 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3378 esac
3379 done
3381 for ac_config_dir in $add_ons; do
3383 # Do not complain, so a configure script can configure whichever
3384 # parts of a large source tree are present.
3385 if test ! -d $srcdir/$ac_config_dir; then
3386 continue
3389 echo configuring in $ac_config_dir
3391 case "$srcdir" in
3392 .) ;;
3394 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3395 else
3396 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3399 esac
3401 ac_popdir=`pwd`
3402 cd $ac_config_dir
3404 # A "../" for each directory in /$ac_config_dir.
3405 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3407 case "$srcdir" in
3408 .) # No --srcdir option. We are building in place.
3409 ac_sub_srcdir=$srcdir ;;
3410 /*) # Absolute path.
3411 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3412 *) # Relative path.
3413 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3414 esac
3416 # Check for guested configure; otherwise get Cygnus style configure.
3417 if test -f $ac_sub_srcdir/configure; then
3418 ac_sub_configure=$ac_sub_srcdir/configure
3419 elif test -f $ac_sub_srcdir/configure.in; then
3420 ac_sub_configure=$ac_configure
3421 else
3422 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3423 ac_sub_configure=
3426 # The recursion is here.
3427 if test -n "$ac_sub_configure"; then
3429 # Make the cache file name correct relative to the subdirectory.
3430 case "$cache_file" in
3431 /*) ac_sub_cache_file=$cache_file ;;
3432 *) # Relative path.
3433 ac_sub_cache_file="$ac_dots$cache_file" ;;
3434 esac
3435 case "$ac_given_INSTALL" in
3436 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3437 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3438 esac
3440 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3441 # The eval makes quoting arguments work.
3442 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3443 then :
3444 else
3445 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3449 cd $ac_popdir
3450 done