Don't read TLS header if TLS is not needed.
[glibc.git] / configure
blob70ae9ebbe06dbc9be89278cadff8cf2f229765d0
1 #! /bin/sh
3 # From configure.in CVSid
14 # Guess values for system-dependent variables and create Makefiles.
15 # Generated automatically using autoconf version 2.13
16 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
18 # This configure script is free software; the Free Software Foundation
19 # gives unlimited permission to copy, distribute and modify it.
21 # Defaults:
22 ac_help=
23 ac_default_prefix=/usr/local
24 # Any additions from configure.in:
25 ac_help="$ac_help
26 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
27 ac_help="$ac_help
28 --with-gd=DIR find libgd include dir and library with prefix DIR"
29 ac_help="$ac_help
30 --with-gd-include=DIR find libgd include files in DIR"
31 ac_help="$ac_help
32 --with-gd-lib=DIR find libgd library files in DIR"
33 ac_help="$ac_help
34 --with-fp if using floating-point hardware [default=yes]"
35 ac_help="$ac_help
36 --with-binutils=PATH specify location of binutils (as and ld)"
37 ac_help="$ac_help
38 --with-elf if using the ELF object format"
39 ac_help="$ac_help
40 --with-xcoff if using the XCOFF object format"
41 ac_help="$ac_help
42 --without-cvs if CVS should not be used"
43 ac_help="$ac_help
44 --with-headers=PATH location of system headers to use
45 [e.g. /usr/src/linux/include]
46 [default=compiler default]"
47 ac_help="$ac_help
48 --enable-libio build in GNU libio instead of GNU stdio"
49 ac_help="$ac_help
50 --disable-sanity-checks really do not use threads (should not be used
51 except in special situations) [default=yes]"
52 ac_help="$ac_help
53 --enable-shared build shared library [default=yes if GNU ld & ELF]"
54 ac_help="$ac_help
55 --enable-profile build profiled library [default=yes]"
56 ac_help="$ac_help
57 --enable-omitfp build undebuggable optimized library [default=no]"
58 ac_help="$ac_help
59 --enable-bounded build with runtime bounds checking [default=no]"
60 ac_help="$ac_help
61 --disable-versioning do not include versioning information in the
62 library objects [default=yes if supported]"
63 ac_help="$ac_help
64 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
65 [default=glibc default]"
66 ac_help="$ac_help
67 --enable-add-ons[=DIR1,DIR2]...
68 configure and build add-ons in DIR1,DIR2,...
69 search for add-ons if no parameter given"
70 ac_help="$ac_help
71 --without-tls prevent support for TLS"
72 ac_help="$ac_help
73 --enable-static-nss build static NSS modules [default=no]"
74 ac_help="$ac_help
75 --disable-force-install don't force installation of files from this package,
76 even if they are older than the installed files"
77 ac_help="$ac_help
78 --enable-kernel=VERSION compile for compatibility with kernel not older
79 than VERSION"
80 ac_help="$ac_help
81 --enable-all-warnings enable all useful warnings gcc can issue"
83 # Initialize some variables set by options.
84 # The variables have the same names as the options, with
85 # dashes changed to underlines.
86 build=NONE
87 cache_file=./config.cache
88 exec_prefix=NONE
89 host=NONE
90 no_create=
91 nonopt=NONE
92 no_recursion=
93 prefix=NONE
94 program_prefix=NONE
95 program_suffix=NONE
96 program_transform_name=s,x,x,
97 silent=
98 site=
99 srcdir=
100 target=NONE
101 verbose=
102 x_includes=NONE
103 x_libraries=NONE
104 bindir='${exec_prefix}/bin'
105 sbindir='${exec_prefix}/sbin'
106 libexecdir='${exec_prefix}/libexec'
107 datadir='${prefix}/share'
108 sysconfdir='${prefix}/etc'
109 sharedstatedir='${prefix}/com'
110 localstatedir='${prefix}/var'
111 libdir='${exec_prefix}/lib'
112 includedir='${prefix}/include'
113 oldincludedir='/usr/include'
114 infodir='${prefix}/info'
115 mandir='${prefix}/man'
117 # Initialize some other variables.
118 subdirs=
119 MFLAGS= MAKEFLAGS=
120 SHELL=${CONFIG_SHELL-/bin/sh}
121 # Maximum number of lines to put in a shell here document.
122 ac_max_here_lines=12
124 ac_prev=
125 for ac_option
128 # If the previous option needs an argument, assign it.
129 if test -n "$ac_prev"; then
130 eval "$ac_prev=\$ac_option"
131 ac_prev=
132 continue
135 case "$ac_option" in
136 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
137 *) ac_optarg= ;;
138 esac
140 # Accept the important Cygnus configure options, so we can diagnose typos.
142 case "$ac_option" in
144 -bindir | --bindir | --bindi | --bind | --bin | --bi)
145 ac_prev=bindir ;;
146 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
147 bindir="$ac_optarg" ;;
149 -build | --build | --buil | --bui | --bu)
150 ac_prev=build ;;
151 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
152 build="$ac_optarg" ;;
154 -cache-file | --cache-file | --cache-fil | --cache-fi \
155 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
156 ac_prev=cache_file ;;
157 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
158 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
159 cache_file="$ac_optarg" ;;
161 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
162 ac_prev=datadir ;;
163 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
164 | --da=*)
165 datadir="$ac_optarg" ;;
167 -disable-* | --disable-*)
168 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
169 # Reject names that are not valid shell variable names.
170 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
171 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
173 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
174 eval "enable_${ac_feature}=no" ;;
176 -enable-* | --enable-*)
177 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
178 # Reject names that are not valid shell variable names.
179 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
182 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
183 case "$ac_option" in
184 *=*) ;;
185 *) ac_optarg=yes ;;
186 esac
187 eval "enable_${ac_feature}='$ac_optarg'" ;;
189 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
190 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
191 | --exec | --exe | --ex)
192 ac_prev=exec_prefix ;;
193 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
194 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
195 | --exec=* | --exe=* | --ex=*)
196 exec_prefix="$ac_optarg" ;;
198 -gas | --gas | --ga | --g)
199 # Obsolete; use --with-gas.
200 with_gas=yes ;;
202 -help | --help | --hel | --he)
203 # Omit some internal or obsolete options to make the list less imposing.
204 # This message is too long to be a string in the A/UX 3.1 sh.
205 cat << EOF
206 Usage: configure [options] [host]
207 Options: [defaults in brackets after descriptions]
208 Configuration:
209 --cache-file=FILE cache test results in FILE
210 --help print this message
211 --no-create do not create output files
212 --quiet, --silent do not print \`checking...' messages
213 --version print the version of autoconf that created configure
214 Directory and file names:
215 --prefix=PREFIX install architecture-independent files in PREFIX
216 [$ac_default_prefix]
217 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
218 [same as prefix]
219 --bindir=DIR user executables in DIR [EPREFIX/bin]
220 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
221 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
222 --datadir=DIR read-only architecture-independent data in DIR
223 [PREFIX/share]
224 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
225 --sharedstatedir=DIR modifiable architecture-independent data in DIR
226 [PREFIX/com]
227 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
228 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
229 --includedir=DIR C header files in DIR [PREFIX/include]
230 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
231 --infodir=DIR info documentation in DIR [PREFIX/info]
232 --mandir=DIR man documentation in DIR [PREFIX/man]
233 --srcdir=DIR find the sources in DIR [configure dir or ..]
234 --program-prefix=PREFIX prepend PREFIX to installed program names
235 --program-suffix=SUFFIX append SUFFIX to installed program names
236 --program-transform-name=PROGRAM
237 run sed PROGRAM on installed program names
239 cat << EOF
240 Host type:
241 --build=BUILD configure for building on BUILD [BUILD=HOST]
242 --host=HOST configure for HOST [guessed]
243 --target=TARGET configure for TARGET [TARGET=HOST]
244 Features and packages:
245 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
246 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
247 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
248 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
249 --x-includes=DIR X include files are in DIR
250 --x-libraries=DIR X library files are in DIR
252 if test -n "$ac_help"; then
253 echo "--enable and --with options recognized:$ac_help"
255 exit 0 ;;
257 -host | --host | --hos | --ho)
258 ac_prev=host ;;
259 -host=* | --host=* | --hos=* | --ho=*)
260 host="$ac_optarg" ;;
262 -includedir | --includedir | --includedi | --included | --include \
263 | --includ | --inclu | --incl | --inc)
264 ac_prev=includedir ;;
265 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
266 | --includ=* | --inclu=* | --incl=* | --inc=*)
267 includedir="$ac_optarg" ;;
269 -infodir | --infodir | --infodi | --infod | --info | --inf)
270 ac_prev=infodir ;;
271 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
272 infodir="$ac_optarg" ;;
274 -libdir | --libdir | --libdi | --libd)
275 ac_prev=libdir ;;
276 -libdir=* | --libdir=* | --libdi=* | --libd=*)
277 libdir="$ac_optarg" ;;
279 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
280 | --libexe | --libex | --libe)
281 ac_prev=libexecdir ;;
282 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
283 | --libexe=* | --libex=* | --libe=*)
284 libexecdir="$ac_optarg" ;;
286 -localstatedir | --localstatedir | --localstatedi | --localstated \
287 | --localstate | --localstat | --localsta | --localst \
288 | --locals | --local | --loca | --loc | --lo)
289 ac_prev=localstatedir ;;
290 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
291 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
292 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
293 localstatedir="$ac_optarg" ;;
295 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
296 ac_prev=mandir ;;
297 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
298 mandir="$ac_optarg" ;;
300 -nfp | --nfp | --nf)
301 # Obsolete; use --without-fp.
302 with_fp=no ;;
304 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
305 | --no-cr | --no-c)
306 no_create=yes ;;
308 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
309 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
310 no_recursion=yes ;;
312 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
313 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
314 | --oldin | --oldi | --old | --ol | --o)
315 ac_prev=oldincludedir ;;
316 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
317 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
318 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
319 oldincludedir="$ac_optarg" ;;
321 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
322 ac_prev=prefix ;;
323 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
324 prefix="$ac_optarg" ;;
326 -program-prefix | --program-prefix | --program-prefi | --program-pref \
327 | --program-pre | --program-pr | --program-p)
328 ac_prev=program_prefix ;;
329 -program-prefix=* | --program-prefix=* | --program-prefi=* \
330 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
331 program_prefix="$ac_optarg" ;;
333 -program-suffix | --program-suffix | --program-suffi | --program-suff \
334 | --program-suf | --program-su | --program-s)
335 ac_prev=program_suffix ;;
336 -program-suffix=* | --program-suffix=* | --program-suffi=* \
337 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
338 program_suffix="$ac_optarg" ;;
340 -program-transform-name | --program-transform-name \
341 | --program-transform-nam | --program-transform-na \
342 | --program-transform-n | --program-transform- \
343 | --program-transform | --program-transfor \
344 | --program-transfo | --program-transf \
345 | --program-trans | --program-tran \
346 | --progr-tra | --program-tr | --program-t)
347 ac_prev=program_transform_name ;;
348 -program-transform-name=* | --program-transform-name=* \
349 | --program-transform-nam=* | --program-transform-na=* \
350 | --program-transform-n=* | --program-transform-=* \
351 | --program-transform=* | --program-transfor=* \
352 | --program-transfo=* | --program-transf=* \
353 | --program-trans=* | --program-tran=* \
354 | --progr-tra=* | --program-tr=* | --program-t=*)
355 program_transform_name="$ac_optarg" ;;
357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
358 | -silent | --silent | --silen | --sile | --sil)
359 silent=yes ;;
361 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
362 ac_prev=sbindir ;;
363 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
364 | --sbi=* | --sb=*)
365 sbindir="$ac_optarg" ;;
367 -sharedstatedir | --sharedstatedir | --sharedstatedi \
368 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
369 | --sharedst | --shareds | --shared | --share | --shar \
370 | --sha | --sh)
371 ac_prev=sharedstatedir ;;
372 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
373 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
374 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
375 | --sha=* | --sh=*)
376 sharedstatedir="$ac_optarg" ;;
378 -site | --site | --sit)
379 ac_prev=site ;;
380 -site=* | --site=* | --sit=*)
381 site="$ac_optarg" ;;
383 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
384 ac_prev=srcdir ;;
385 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
386 srcdir="$ac_optarg" ;;
388 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
389 | --syscon | --sysco | --sysc | --sys | --sy)
390 ac_prev=sysconfdir ;;
391 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
392 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
393 sysconfdir="$ac_optarg" ;;
395 -target | --target | --targe | --targ | --tar | --ta | --t)
396 ac_prev=target ;;
397 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
398 target="$ac_optarg" ;;
400 -v | -verbose | --verbose | --verbos | --verbo | --verb)
401 verbose=yes ;;
403 -version | --version | --versio | --versi | --vers)
404 echo "configure generated by autoconf version 2.13"
405 exit 0 ;;
407 -with-* | --with-*)
408 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
409 # Reject names that are not valid shell variable names.
410 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
411 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
413 ac_package=`echo $ac_package| sed 's/-/_/g'`
414 case "$ac_option" in
415 *=*) ;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "with_${ac_package}='$ac_optarg'" ;;
420 -without-* | --without-*)
421 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
422 # Reject names that are not valid shell variable names.
423 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
426 ac_package=`echo $ac_package| sed 's/-/_/g'`
427 eval "with_${ac_package}=no" ;;
429 --x)
430 # Obsolete; use --with-x.
431 with_x=yes ;;
433 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
434 | --x-incl | --x-inc | --x-in | --x-i)
435 ac_prev=x_includes ;;
436 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
437 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
438 x_includes="$ac_optarg" ;;
440 -x-libraries | --x-libraries | --x-librarie | --x-librari \
441 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
442 ac_prev=x_libraries ;;
443 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
444 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
445 x_libraries="$ac_optarg" ;;
447 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
451 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
452 echo "configure: warning: $ac_option: invalid host type" 1>&2
454 if test "x$nonopt" != xNONE; then
455 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
457 nonopt="$ac_option"
460 esac
461 done
463 if test -n "$ac_prev"; then
464 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
467 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
469 # File descriptor usage:
470 # 0 standard input
471 # 1 file creation
472 # 2 errors and warnings
473 # 3 some systems may open it to /dev/tty
474 # 4 used on the Kubota Titan
475 # 6 checking for... messages and results
476 # 5 compiler messages saved in config.log
477 if test "$silent" = yes; then
478 exec 6>/dev/null
479 else
480 exec 6>&1
482 exec 5>./config.log
484 echo "\
485 This file contains any messages produced by compilers while
486 running configure, to aid debugging if configure makes a mistake.
487 " 1>&5
489 # Strip out --no-create and --no-recursion so they do not pile up.
490 # Also quote any args containing shell metacharacters.
491 ac_configure_args=
492 for ac_arg
494 case "$ac_arg" in
495 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
496 | --no-cr | --no-c) ;;
497 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
498 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
499 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
500 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
501 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
502 esac
503 done
505 # NLS nuisances.
506 # Only set these to C if already set. These must not be set unconditionally
507 # because not all systems understand e.g. LANG=C (notably SCO).
508 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
509 # Non-C LC_CTYPE values break the ctype check.
510 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
511 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
512 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
513 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
515 # confdefs.h avoids OS command line length limits that DEFS can exceed.
516 rm -rf conftest* confdefs.h
517 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
518 echo > confdefs.h
520 # A filename unique to this package, relative to the directory that
521 # configure is in, which we can look for to find out if srcdir is correct.
522 ac_unique_file=include/features.h
524 # Find the source files, if location was not specified.
525 if test -z "$srcdir"; then
526 ac_srcdir_defaulted=yes
527 # Try the directory containing this script, then its parent.
528 ac_prog=$0
529 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
530 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
531 srcdir=$ac_confdir
532 if test ! -r $srcdir/$ac_unique_file; then
533 srcdir=..
535 else
536 ac_srcdir_defaulted=no
538 if test ! -r $srcdir/$ac_unique_file; then
539 if test "$ac_srcdir_defaulted" = yes; then
540 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
541 else
542 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
545 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
547 # Prefer explicitly selected file to automatically selected ones.
548 if test -z "$CONFIG_SITE"; then
549 if test "x$prefix" != xNONE; then
550 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
551 else
552 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
555 for ac_site_file in $CONFIG_SITE; do
556 if test -r "$ac_site_file"; then
557 echo "loading site script $ac_site_file"
558 . "$ac_site_file"
560 done
562 if test -r "$cache_file"; then
563 echo "loading cache $cache_file"
564 . $cache_file
565 else
566 echo "creating cache $cache_file"
567 > $cache_file
570 ac_ext=c
571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
572 ac_cpp='$CPP $CPPFLAGS'
573 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
574 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
575 cross_compiling=$ac_cv_prog_cc_cross
577 ac_exeext=
578 ac_objext=o
579 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
580 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
582 ac_n= ac_c='
583 ' ac_t=' '
584 else
585 ac_n=-n ac_c= ac_t=
587 else
588 ac_n= ac_c='\c' ac_t=
591 if test -r /vmunix; then
592 kernel_id=`strings /vmunix | grep UNIX`
593 elif test -r /dynix; then
594 kernel_id=`strings /dynix | grep DYNIX`
595 else
596 kernel_id=
601 ac_aux_dir=
602 for ac_dir in scripts $srcdir/scripts; do
603 if test -f $ac_dir/install-sh; then
604 ac_aux_dir=$ac_dir
605 ac_install_sh="$ac_aux_dir/install-sh -c"
606 break
607 elif test -f $ac_dir/install.sh; then
608 ac_aux_dir=$ac_dir
609 ac_install_sh="$ac_aux_dir/install.sh -c"
610 break
612 done
613 if test -z "$ac_aux_dir"; then
614 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
616 ac_config_guess=$ac_aux_dir/config.guess
617 ac_config_sub=$ac_aux_dir/config.sub
618 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
621 # This will get text that should go into config.make.
622 config_vars=
624 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
625 # Check whether --with-gmp or --without-gmp was given.
626 if test "${with_gmp+set}" = set; then
627 withval="$with_gmp"
628 case "$with_gmp" in
629 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
630 ''|no) ;;
631 *) config_vars="$config_vars
632 gmp-srcdir = $withval" ;;
633 esac
637 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
638 # Check whether --with-gd or --without-gd was given.
639 if test "${with_gd+set}" = set; then
640 withval="$with_gd"
641 case "$with_gd" in
642 yes|''|no) ;;
643 *) libgd_include="-I$withval/include"
644 libgd_ldflags="-L$withval/lib" ;;
645 esac
649 # Check whether --with-gd-include or --without-gd-include was given.
650 if test "${with_gd_include+set}" = set; then
651 withval="$with_gd_include"
652 case "$with_gd_include" in
653 ''|no) ;;
654 *) libgd_include="-I$withval" ;;
655 esac
659 # Check whether --with-gd-lib or --without-gd-lib was given.
660 if test "${with_gd_lib+set}" = set; then
661 withval="$with_gd_lib"
662 case "$with_gd_lib" in
663 ''|no) ;;
664 *) libgd_ldflags="-L$withval" ;;
665 esac
670 if test -n "$libgd_include"; then
671 config_vars="$config_vars
672 CFLAGS-memusagestat.c = $libgd_include"
674 if test -n "$libgd_ldflags"; then
675 config_vars="$config_vars
676 libgd-LDFLAGS = $libgd_ldflags"
679 # Check whether --with-fp or --without-fp was given.
680 if test "${with_fp+set}" = set; then
681 withval="$with_fp"
682 with_fp=$withval
683 else
684 with_fp=yes
688 # Check whether --with-binutils or --without-binutils was given.
689 if test "${with_binutils+set}" = set; then
690 withval="$with_binutils"
691 path_binutils=$withval
692 else
693 path_binutils=''
696 # Check whether --with-elf or --without-elf was given.
697 if test "${with_elf+set}" = set; then
698 withval="$with_elf"
699 elf=$withval
700 else
701 elf=no
704 # Check whether --with-xcoff or --without-xcoff was given.
705 if test "${with_xcoff+set}" = set; then
706 withval="$with_xcoff"
707 xcoff=$withval
708 else
709 xcoff=no
712 # Check whether --with-cvs or --without-cvs was given.
713 if test "${with_cvs+set}" = set; then
714 withval="$with_cvs"
715 with_cvs=$withval
716 else
717 with_cvs=yes
720 if test "$with_cvs" = yes; then
721 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
722 then
723 with_cvs=no
728 # Check whether --with-headers or --without-headers was given.
729 if test "${with_headers+set}" = set; then
730 withval="$with_headers"
731 sysheaders=$withval
732 else
733 sysheaders=''
737 # Check whether --enable-libio or --disable-libio was given.
738 if test "${enable_libio+set}" = set; then
739 enableval="$enable_libio"
740 if test $enableval = yes; then
741 stdio=libio
742 else
743 stdio=stdio
745 else
746 stdio=default
750 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
751 if test "${enable_sanity_checks+set}" = set; then
752 enableval="$enable_sanity_checks"
753 enable_sanity=$enableval
754 else
755 enable_sanity=yes
759 static=yes
760 # Check whether --enable-shared or --disable-shared was given.
761 if test "${enable_shared+set}" = set; then
762 enableval="$enable_shared"
763 shared=$enableval
764 else
765 shared=default
768 # Check whether --enable-profile or --disable-profile was given.
769 if test "${enable_profile+set}" = set; then
770 enableval="$enable_profile"
771 profile=$enableval
772 else
773 profile=yes
776 # Check whether --enable-omitfp or --disable-omitfp was given.
777 if test "${enable_omitfp+set}" = set; then
778 enableval="$enable_omitfp"
779 omitfp=$enableval
780 else
781 omitfp=no
784 # Check whether --enable-bounded or --disable-bounded was given.
785 if test "${enable_bounded+set}" = set; then
786 enableval="$enable_bounded"
787 bounded=$enableval
788 else
789 bounded=no
792 # Check whether --enable-versioning or --disable-versioning was given.
793 if test "${enable_versioning+set}" = set; then
794 enableval="$enable_versioning"
795 enable_versioning=$enableval
796 else
797 enable_versioning=yes
801 # Check whether --enable-oldest-abi or --disable-oldest-abi was given.
802 if test "${enable_oldest_abi+set}" = set; then
803 enableval="$enable_oldest_abi"
804 oldest_abi=$enableval
805 else
806 oldest_abi=no
809 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
810 oldest_abi=default
811 else
812 cat >> confdefs.h <<EOF
813 #define GLIBC_OLDEST_ABI "$oldest_abi"
819 # Check whether --enable-add-ons or --disable-add-ons was given.
820 if test "${enable_add_ons+set}" = set; then
821 enableval="$enable_add_ons"
822 case "$enableval" in
823 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
824 test "$add_ons" = "*" && add_ons= ;;
825 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
826 esac
827 else
828 add_ons=
832 # Check whether --with-tls or --without-tls was given.
833 if test "${with_tls+set}" = set; then
834 withval="$with_tls"
835 usetls=$withval
836 else
837 usetls=yes
841 subdirs="$add_ons"
843 add_ons_pfx=
844 if test x"$add_ons" != x; then
845 for f in $add_ons; do
846 # Some sanity checks
847 if test "$f" = "crypt"; then
848 { echo "configure: error:
849 *** It seems that you're using an old \`crypt' add-on. crypt is now
850 *** part of glibc and using the old add-on will not work with this
851 *** release. Start again with fresh sources and without the old
852 *** \`crypt' add-on." 1>&2; exit 1; }
854 if test "$f" = "localedata"; then
855 { echo "configure: error:
856 *** It seems that you're using an old \`localedata' add-on. localedata
857 *** is now part of glibc and using the old add-on will not work with
858 *** this release. Start again with fresh sources and without the old
859 *** \`localedata' add-on." 1>&2; exit 1; }
861 # Test whether such a subdir really exists.
862 if test -d $srcdir/$f; then
863 add_ons_pfx="$add_ons_pfx $f/"
864 else
865 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
867 done
870 # Check whether --enable-static-nss or --disable-static-nss was given.
871 if test "${enable_static_nss+set}" = set; then
872 enableval="$enable_static_nss"
873 static_nss=$enableval
874 else
875 static_nss=no
878 if test x"$static_nss" = xyes; then
879 cat >> confdefs.h <<\EOF
880 #define DO_STATIC_NSS 1
885 # Check whether --enable-force-install or --disable-force-install was given.
886 if test "${enable_force_install+set}" = set; then
887 enableval="$enable_force_install"
888 force_install=$enableval
889 else
890 force_install=yes
895 # Check whether --enable-kernel or --disable-kernel was given.
896 if test "${enable_kernel+set}" = set; then
897 enableval="$enable_kernel"
898 minimum_kernel=$enableval
901 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
902 # Better nothing than this.
903 minimum_kernel=""
904 else
905 if test "$minimum_kernel" = current; then
906 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
910 # Check whether --enable-all-warnings or --disable-all-warnings was given.
911 if test "${enable_all_warnings+set}" = set; then
912 enableval="$enable_all_warnings"
913 all_warnings=$enableval
919 # Make sure we can run config.sub.
920 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
921 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
924 echo $ac_n "checking host system type""... $ac_c" 1>&6
925 echo "configure:926: checking host system type" >&5
927 host_alias=$host
928 case "$host_alias" in
929 NONE)
930 case $nonopt in
931 NONE)
932 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
933 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
934 fi ;;
935 *) host_alias=$nonopt ;;
936 esac ;;
937 esac
939 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
940 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
941 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
942 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
943 echo "$ac_t""$host" 1>&6
946 # The way shlib-versions is used to generate soversions.mk uses a
947 # fairly simplistic model for name recognition that can't distinguish
948 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
949 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
950 # tell. This doesn't get used much beyond that, so it's fairly safe.
951 case "$host_os" in
952 linux*)
954 gnu*)
955 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
957 esac
959 # We keep the original values in `$config_*' and never modify them, so we
960 # can write them unchanged into config.make. Everything else uses
961 # $machine, $vendor, and $os, and changes them whenever convenient.
962 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
964 # Don't allow vendor == "unknown"
965 test "$config_vendor" = unknown && config_vendor=
966 config_os="`echo $config_os | sed 's/^unknown-//'`"
968 # Some configurations imply other options.
969 case "$host_os" in
970 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
971 # These systems always use GNU tools.
972 gnu_ld=yes gnu_as=yes ;;
973 esac
974 case "$host_os" in
975 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
976 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
978 gnu* | linux* | sysv4* | solaris2* | irix6*)
979 # These systems (almost) always use the ELF format.
980 elf=yes
982 aix*)
983 # These systems are always xcoff
984 xcoff=yes
985 elf=no
987 esac
989 machine=$config_machine
990 vendor=$config_vendor
991 os=$config_os
993 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
994 # Unify this here.
995 if test "$machine" = rs6000; then
996 machine="powerpc"
1000 ### I put this here to prevent those annoying emails from people who cannot
1001 ### read and try to compile glibc on unsupported platforms. --drepper
1003 ### By using the undocumented --enable-hacker-mode option for configure
1004 ### one can skip this test to make the configuration not fail for unsupported
1005 ### platforms.
1007 if test -z "$enable_hacker_mode"; then
1008 case "$machine-$host_os" in
1009 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
1012 echo "*** The GNU C library is currently not available for this platform."
1013 echo "*** So far nobody cared to port it and if there is no volunteer it"
1014 echo "*** might never happen. So, if you have interest to see glibc on"
1015 echo "*** this platform visit"
1016 echo "*** http://www.gnu.org/software/libc/porting.html"
1017 echo "*** and join the group of porters"
1018 exit 1
1020 esac
1023 # Expand the configuration machine name into a subdirectory by architecture
1024 # type and particular chip.
1025 case "$machine" in
1026 a29k | am29000) base_machine=a29k machine=a29k ;;
1027 alpha*) base_machine=alpha machine=alpha/$machine ;;
1028 arm*) base_machine=arm machine=arm/arm32/$machine ;;
1029 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
1030 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
1031 hppa*64*) base_machine=hppa machine=hppa/hppa64 ;;
1032 hppa*) base_machine=hppa machine=hppa/hppa1.1 ;;
1033 i[3456]86) base_machine=i386 machine=i386/$machine ;;
1034 ia64) base_machine=ia64 machine=ia64 ;;
1035 m680?0) base_machine=m68k machine=m68k/$machine ;;
1036 m68k) base_machine=m68k machine=m68k/m68020 ;;
1037 m88???) base_machine=m88k machine=m88k/$machine ;;
1038 m88k) base_machine=m88k machine=m88k/m88100 ;;
1039 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
1040 mips*) base_machine=mips
1041 case "`uname -m`" in
1042 IP22) machine=mips/mips3 ;;
1043 *) machine=mips/$machine ;;
1044 esac ;;
1045 s390) base_machine=s390 machine=s390/s390-32 ;;
1046 s390x) base_machine=s390 machine=s390/s390-64 ;;
1047 sh3*) base_machine=sh machine=sh/sh3 ;;
1048 sh4*) base_machine=sh machine=sh/sh4 ;;
1049 sparc | sparcv[67])
1050 base_machine=sparc machine=sparc/sparc32 ;;
1051 sparcv8 | supersparc | hypersparc)
1052 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
1053 sparcv8plus | sparcv8plusa | sparcv9)
1054 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
1055 sparcv8plusb | sparcv9b)
1056 base_machine=sparc machine=sparc/sparc32/sparcv9b ;;
1057 sparc64 | ultrasparc)
1058 base_machine=sparc machine=sparc/sparc64 ;;
1059 sparc64b | ultrasparc3)
1060 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
1061 thumb*) base_machine=thumb machine=arm/thumb/$machine ;;
1062 esac
1065 if test "$base_machine" = "i386"; then
1066 cat >> confdefs.h <<\EOF
1067 #define USE_REGPARMS 1
1072 # Compute the list of sysdep directories for this configuration.
1073 # This can take a while to compute.
1074 sysdep_dir=$srcdir/sysdeps
1075 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
1076 echo "configure:1077: checking sysdep dirs" >&5
1077 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1078 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1080 case "$os" in
1081 gnu*)
1082 base_os=mach/hurd ;;
1083 netbsd* | 386bsd* | freebsd* | bsdi*)
1084 base_os=unix/bsd/bsd4.4 ;;
1085 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1086 base_os=unix/bsd ;;
1087 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1088 base_os=unix/sysv ;;
1089 irix6*)
1090 base_os=unix/sysv/irix6/$os ;;
1091 solaris[2-9]*)
1092 base_os=unix/sysv/sysv4 ;;
1093 hpux*)
1094 base_os=unix/sysv/hpux/$os ;;
1095 aix4.3*)
1096 base_os=unix/sysv/aix/aix4.3 ;;
1097 none)
1098 base_os=standalone ;;
1100 base_os='' ;;
1101 esac
1103 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1104 tail=$os
1105 ostry=$os
1106 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1107 ostry="$ostry /$o"
1108 tail=$o
1109 done
1110 o=`echo $tail | sed 's/[0-9]*$//'`
1111 if test $o != $tail; then
1112 ostry="$ostry /$o"
1114 # For linux-gnu, try linux-gnu, then linux.
1115 o=`echo $tail | sed 's/-.*$//'`
1116 if test $o != $tail; then
1117 ostry="$ostry /$o"
1120 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1121 base=
1122 tail=$base_os
1123 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1124 set $b
1125 base="$base /$1"
1126 tail="$2"
1127 done
1129 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1130 mach=
1131 tail=$machine
1132 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1133 set $m
1134 # Prepend the machine's FPU directory unless --without-fp.
1135 if test "$with_fp" = yes; then
1136 mach="$mach /$1/fpu"
1138 mach="$mach /$1"
1139 tail="$2"
1140 done
1143 # Find what sysdep directories exist.
1144 sysnames=
1145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1146 for d in $add_ons_pfx ''; do
1147 for b in $base ''; do
1148 for m0 in $mach ''; do
1149 for v in /$vendor ''; do
1150 test "$v" = / && continue
1151 for o in /$ostry ''; do
1152 test "$o" = / && continue
1153 for m in $mach ''; do
1154 if test "$m0$b$v$o$m"; then
1155 try="${d}sysdeps$m0$b$v$o$m"
1156 test -n "$enable_debug_configure" &&
1157 echo "$0 DEBUG: try $try" >&2
1158 if test -d $srcdir/$try; then
1159 sysnames="$sysnames $try"
1160 { test -n "$o" || test -n "$b"; } && os_used=t
1161 { test -n "$m" || test -n "$m0"; } && machine_used=t
1164 done
1165 done
1166 done
1167 done
1168 done
1169 done
1170 IFS="$ac_save_ifs"
1172 if test -z "$os_used" && test "$os" != none; then
1173 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1175 if test -z "$machine_used" && test "$machine" != none; then
1176 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1179 # We have now validated the configuration.
1182 # If using ELF, look for an `elf' subdirectory of each machine directory.
1183 # We prepend these rather than inserting them whereever the machine appears
1184 # because things specified by the machine's ELF ABI should override
1185 # OS-specific things, and should always be the same for any OS on the
1186 # machine (otherwise what's the point of an ABI?).
1187 if test "$elf" = yes; then
1188 elf_dirs=
1189 for d in $add_ons_pfx ''; do
1190 for m in $mach; do
1191 if test -d $srcdir/${d}sysdeps$m/elf; then
1192 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1194 done
1195 done
1196 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1200 # Expand the list of system names into a full list of directories
1201 # from each element's parent name and Implies file (if present).
1202 set $sysnames
1203 names=
1204 while test $# -gt 0; do
1205 name=$1
1206 shift
1208 case " $names " in *" $name "*)
1209 # Already in the list.
1210 continue
1211 esac
1213 # Report each name as we discover it, so there is no long pause in output.
1214 echo $ac_n "$name $ac_c" >&6
1216 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1218 case $name in
1219 /*) xsrcdir= ;;
1220 *) xsrcdir=$srcdir/ ;;
1221 esac
1222 test -n "$enable_debug_configure" &&
1223 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1225 if test -f $xsrcdir$name/Implies; then
1226 # Collect more names from the `Implies' file (removing comments).
1227 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1228 implied=
1229 for x in $implied_candidate; do
1230 found=no
1231 if test -d $xsrcdir$name_base/$x; then
1232 implied="$implied $name_base/$x";
1233 found=yes
1235 for d in $add_ons_pfx ''; do
1236 try="${d}sysdeps/$x"
1237 case $d in
1238 /*) try_srcdir= ;;
1239 *) try_srcdir=$srcdir/ ;;
1240 esac
1241 test -n "$enable_debug_configure" &&
1242 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
1243 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
1244 then
1245 implied="$implied $try"
1246 found=yes
1248 done
1249 if test $found = no; then
1250 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1252 done
1253 else
1254 implied=
1257 # Add NAME to the list of names.
1258 names="$names $name"
1260 # Find the parent of NAME, using the empty string if it has none.
1261 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1263 # Add the names implied by NAME, and NAME's parent (if it has one), to
1264 # the list of names to be processed (the argument list). We prepend the
1265 # implied names to the list and append the parent. We want implied
1266 # directories to come before further directories inferred from the
1267 # configuration components; this ensures that for sysv4, unix/common
1268 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1269 # after sysv4).
1270 sysnames="`echo $implied $* $parent`"
1271 test -n "$sysnames" && set $sysnames
1272 done
1274 # Add the default directories.
1275 default_sysnames=sysdeps/generic
1276 if test "$elf" = yes; then
1277 default_sysnames="sysdeps/generic/elf $default_sysnames"
1279 sysnames="$names $default_sysnames"
1281 # The other names were emitted during the scan.
1282 echo "$ac_t""$default_sysnames" 1>&6
1285 ### Locate tools.
1287 # Find a good install program. We prefer a C program (faster),
1288 # so one script is as good as another. But avoid the broken or
1289 # incompatible versions:
1290 # SysV /etc/install, /usr/sbin/install
1291 # SunOS /usr/etc/install
1292 # IRIX /sbin/install
1293 # AIX /bin/install
1294 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1295 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1296 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1297 # ./install, which can be erroneously created by make from ./install.sh.
1298 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1299 echo "configure:1300: checking for a BSD compatible install" >&5
1300 if test -z "$INSTALL"; then
1301 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1303 else
1304 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1305 for ac_dir in $PATH; do
1306 # Account for people who put trailing slashes in PATH elements.
1307 case "$ac_dir/" in
1308 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1310 # OSF1 and SCO ODT 3.0 have their own names for install.
1311 # Don't use installbsd from OSF since it installs stuff as root
1312 # by default.
1313 for ac_prog in ginstall scoinst install; do
1314 if test -f $ac_dir/$ac_prog; then
1315 if test $ac_prog = install &&
1316 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1317 # AIX install. It has an incompatible calling convention.
1319 else
1320 ac_cv_path_install="$ac_dir/$ac_prog -c"
1321 break 2
1324 done
1326 esac
1327 done
1328 IFS="$ac_save_IFS"
1331 if test "${ac_cv_path_install+set}" = set; then
1332 INSTALL="$ac_cv_path_install"
1333 else
1334 # As a last resort, use the slow shell script. We don't cache a
1335 # path for INSTALL within a source directory, because that will
1336 # break other packages using the cache if that directory is
1337 # removed, or if the path is relative.
1338 INSTALL="$ac_install_sh"
1341 echo "$ac_t""$INSTALL" 1>&6
1343 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1344 # It thinks the first close brace ends the variable substitution.
1345 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1347 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1349 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1351 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
1352 # The makefiles need to use a different form to find it in $srcdir.
1353 INSTALL='\$(..)./scripts/install-sh -c'
1355 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1356 echo "configure:1357: checking whether ln -s works" >&5
1357 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1359 else
1360 rm -f conftestdata
1361 if ln -s X conftestdata 2>/dev/null
1362 then
1363 rm -f conftestdata
1364 ac_cv_prog_LN_S="ln -s"
1365 else
1366 ac_cv_prog_LN_S=ln
1369 LN_S="$ac_cv_prog_LN_S"
1370 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1371 echo "$ac_t""yes" 1>&6
1372 else
1373 echo "$ac_t""no" 1>&6
1377 # We need the physical current working directory. We cannot use the
1378 # "pwd -P" shell builtin since that's not portable. Instead we try to
1379 # find a pwd binary. Note that assigning to the PWD environment
1380 # variable might have some interesting side effects, so we don't do
1381 # that.
1382 # Extract the first word of "pwd", so it can be a program name with args.
1383 set dummy pwd; ac_word=$2
1384 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1385 echo "configure:1386: checking for $ac_word" >&5
1386 if eval "test \"`echo '$''{'ac_cv_path_PWD_P'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1388 else
1389 case "$PWD_P" in
1391 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
1393 ?:/*)
1394 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a dos path.
1397 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1398 ac_dummy="$PATH"
1399 for ac_dir in $ac_dummy; do
1400 test -z "$ac_dir" && ac_dir=.
1401 if test -f $ac_dir/$ac_word; then
1402 ac_cv_path_PWD_P="$ac_dir/$ac_word"
1403 break
1405 done
1406 IFS="$ac_save_ifs"
1407 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
1409 esac
1411 PWD_P="$ac_cv_path_PWD_P"
1412 if test -n "$PWD_P"; then
1413 echo "$ac_t""$PWD_P" 1>&6
1414 else
1415 echo "$ac_t""no" 1>&6
1418 if test "$PWD_P" = no; then
1419 { echo "configure: error: *** A pwd binary could not be found." 1>&2; exit 1; }
1422 # These programs are version sensitive.
1423 echo $ac_n "checking build system type""... $ac_c" 1>&6
1424 echo "configure:1425: checking build system type" >&5
1426 build_alias=$build
1427 case "$build_alias" in
1428 NONE)
1429 case $nonopt in
1430 NONE) build_alias=$host_alias ;;
1431 *) build_alias=$nonopt ;;
1432 esac ;;
1433 esac
1435 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1436 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1437 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1438 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1439 echo "$ac_t""$build" 1>&6
1441 if test $host != $build; then
1442 ac_tool_prefix=${host_alias}-
1443 else
1444 ac_tool_prefix=
1447 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
1449 # Extract the first word of "$ac_prog", so it can be a program name with args.
1450 set dummy $ac_prog; ac_word=$2
1451 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1452 echo "configure:1453: checking for $ac_word" >&5
1453 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1455 else
1456 if test -n "$CC"; then
1457 ac_cv_prog_CC="$CC" # Let the user override the test.
1458 else
1459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1460 ac_dummy="$PATH"
1461 for ac_dir in $ac_dummy; do
1462 test -z "$ac_dir" && ac_dir=.
1463 if test -f $ac_dir/$ac_word; then
1464 ac_cv_prog_CC="$ac_prog"
1465 break
1467 done
1468 IFS="$ac_save_ifs"
1471 CC="$ac_cv_prog_CC"
1472 if test -n "$CC"; then
1473 echo "$ac_t""$CC" 1>&6
1474 else
1475 echo "$ac_t""no" 1>&6
1478 test -n "$CC" && break
1479 done
1481 if test -z "$CC"; then
1482 ac_verc_fail=yes
1483 else
1484 # Found it, now check the version.
1485 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1486 echo "configure:1487: checking version of $CC" >&5
1487 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
1488 case $ac_prog_version in
1489 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1490 *gcc-2.9[5-9].*|*2.8.[1-9]*|*2.9|*2.9.[0-9]*|2.9[5-9]*|3.[0-9]*|cygnus-2.9[1-9]*|gcc-2.9[5-9]|gcc-2.1[0-9][0-9]|sgicc-*)
1491 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1492 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1494 esac
1495 echo "$ac_t""$ac_prog_version" 1>&6
1497 if test $ac_verc_fail = yes; then
1498 critic_missing=gcc
1501 for ac_prog in gnumake gmake make
1503 # Extract the first word of "$ac_prog", so it can be a program name with args.
1504 set dummy $ac_prog; ac_word=$2
1505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1506 echo "configure:1507: checking for $ac_word" >&5
1507 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1509 else
1510 if test -n "$MAKE"; then
1511 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1512 else
1513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1514 ac_dummy="$PATH"
1515 for ac_dir in $ac_dummy; do
1516 test -z "$ac_dir" && ac_dir=.
1517 if test -f $ac_dir/$ac_word; then
1518 ac_cv_prog_MAKE="$ac_prog"
1519 break
1521 done
1522 IFS="$ac_save_ifs"
1525 MAKE="$ac_cv_prog_MAKE"
1526 if test -n "$MAKE"; then
1527 echo "$ac_t""$MAKE" 1>&6
1528 else
1529 echo "$ac_t""no" 1>&6
1532 test -n "$MAKE" && break
1533 done
1535 if test -z "$MAKE"; then
1536 ac_verc_fail=yes
1537 else
1538 # Found it, now check the version.
1539 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1540 echo "configure:1541: checking version of $MAKE" >&5
1541 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
1542 case $ac_prog_version in
1543 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1544 3.79* | 3.[89]*)
1545 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1546 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1548 esac
1549 echo "$ac_t""$ac_prog_version" 1>&6
1551 if test $ac_verc_fail = yes; then
1552 critic_missing="$critic_missing make"
1557 if test -n "$critic_missing"; then
1558 { echo "configure: error:
1559 *** These critical programs are missing or too old:$critic_missing
1560 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1564 for ac_prog in gnumsgfmt gmsgfmt msgfmt
1566 # Extract the first word of "$ac_prog", so it can be a program name with args.
1567 set dummy $ac_prog; ac_word=$2
1568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1569 echo "configure:1570: checking for $ac_word" >&5
1570 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1572 else
1573 if test -n "$MSGFMT"; then
1574 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1575 else
1576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1577 ac_dummy="$PATH"
1578 for ac_dir in $ac_dummy; do
1579 test -z "$ac_dir" && ac_dir=.
1580 if test -f $ac_dir/$ac_word; then
1581 ac_cv_prog_MSGFMT="$ac_prog"
1582 break
1584 done
1585 IFS="$ac_save_ifs"
1588 MSGFMT="$ac_cv_prog_MSGFMT"
1589 if test -n "$MSGFMT"; then
1590 echo "$ac_t""$MSGFMT" 1>&6
1591 else
1592 echo "$ac_t""no" 1>&6
1595 test -n "$MSGFMT" && break
1596 done
1598 if test -z "$MSGFMT"; then
1599 ac_verc_fail=yes
1600 else
1601 # Found it, now check the version.
1602 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1603 echo "configure:1604: checking version of $MSGFMT" >&5
1604 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1605 case $ac_prog_version in
1606 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1607 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
1608 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1609 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1611 esac
1612 echo "$ac_t""$ac_prog_version" 1>&6
1614 if test $ac_verc_fail = yes; then
1615 MSGFMT=: aux_missing="$aux_missing msgfmt"
1618 for ac_prog in makeinfo
1620 # Extract the first word of "$ac_prog", so it can be a program name with args.
1621 set dummy $ac_prog; ac_word=$2
1622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1623 echo "configure:1624: checking for $ac_word" >&5
1624 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1626 else
1627 if test -n "$MAKEINFO"; then
1628 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1629 else
1630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1631 ac_dummy="$PATH"
1632 for ac_dir in $ac_dummy; do
1633 test -z "$ac_dir" && ac_dir=.
1634 if test -f $ac_dir/$ac_word; then
1635 ac_cv_prog_MAKEINFO="$ac_prog"
1636 break
1638 done
1639 IFS="$ac_save_ifs"
1642 MAKEINFO="$ac_cv_prog_MAKEINFO"
1643 if test -n "$MAKEINFO"; then
1644 echo "$ac_t""$MAKEINFO" 1>&6
1645 else
1646 echo "$ac_t""no" 1>&6
1649 test -n "$MAKEINFO" && break
1650 done
1652 if test -z "$MAKEINFO"; then
1653 ac_verc_fail=yes
1654 else
1655 # Found it, now check the version.
1656 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1657 echo "configure:1658: checking version of $MAKEINFO" >&5
1658 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
1659 case $ac_prog_version in
1660 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1661 4.*)
1662 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1663 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1665 esac
1666 echo "$ac_t""$ac_prog_version" 1>&6
1668 if test $ac_verc_fail = yes; then
1669 MAKEINFO=: aux_missing="$aux_missing makeinfo"
1672 for ac_prog in sed
1674 # Extract the first word of "$ac_prog", so it can be a program name with args.
1675 set dummy $ac_prog; ac_word=$2
1676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1677 echo "configure:1678: checking for $ac_word" >&5
1678 if eval "test \"`echo '$''{'ac_cv_prog_SED'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
1680 else
1681 if test -n "$SED"; then
1682 ac_cv_prog_SED="$SED" # Let the user override the test.
1683 else
1684 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1685 ac_dummy="$PATH"
1686 for ac_dir in $ac_dummy; do
1687 test -z "$ac_dir" && ac_dir=.
1688 if test -f $ac_dir/$ac_word; then
1689 ac_cv_prog_SED="$ac_prog"
1690 break
1692 done
1693 IFS="$ac_save_ifs"
1696 SED="$ac_cv_prog_SED"
1697 if test -n "$SED"; then
1698 echo "$ac_t""$SED" 1>&6
1699 else
1700 echo "$ac_t""no" 1>&6
1703 test -n "$SED" && break
1704 done
1706 if test -z "$SED"; then
1707 ac_verc_fail=yes
1708 else
1709 # Found it, now check the version.
1710 echo $ac_n "checking version of $SED""... $ac_c" 1>&6
1711 echo "configure:1712: checking version of $SED" >&5
1712 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
1713 case $ac_prog_version in
1714 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1715 3.0[2-9]*|3.[1-9]*|[4-9]*)
1716 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1717 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1719 esac
1720 echo "$ac_t""$ac_prog_version" 1>&6
1722 if test $ac_verc_fail = yes; then
1723 SED=: aux_missing="$aux_missing sed"
1728 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1729 echo "configure:1730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1730 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1732 else
1734 ac_ext=c
1735 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1736 ac_cpp='$CPP $CPPFLAGS'
1737 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1738 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1739 cross_compiling=$ac_cv_prog_cc_cross
1741 cat > conftest.$ac_ext << EOF
1743 #line 1744 "configure"
1744 #include "confdefs.h"
1746 main(){return(0);}
1748 if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1749 ac_cv_prog_cc_works=yes
1750 # If we can't run a trivial program, we are probably using a cross compiler.
1751 if (./conftest; exit) 2>/dev/null; then
1752 ac_cv_prog_cc_cross=no
1753 else
1754 ac_cv_prog_cc_cross=yes
1756 else
1757 echo "configure: failed program was:" >&5
1758 cat conftest.$ac_ext >&5
1759 ac_cv_prog_cc_works=no
1761 rm -fr conftest*
1762 ac_ext=c
1763 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1764 ac_cpp='$CPP $CPPFLAGS'
1765 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1766 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1767 cross_compiling=$ac_cv_prog_cc_cross
1771 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1772 if test $ac_cv_prog_cc_works = no; then
1773 cross_linkable=no
1774 ac_cv_prog_cc_cross=yes
1775 else
1776 cross_linkable=yes
1778 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1779 echo "configure:1780: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1780 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1781 echo $ac_n "(cached) $ac_c" 1>&6
1782 else
1786 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1788 cross_compiling=$ac_cv_prog_cc_cross
1790 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1791 echo "configure:1792: checking whether we are using GNU C" >&5
1792 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1794 else
1795 cat > conftest.c <<EOF
1796 #ifdef __GNUC__
1797 yes;
1798 #endif
1800 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1801 ac_cv_prog_gcc=yes
1802 else
1803 ac_cv_prog_gcc=no
1807 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1808 if test $ac_cv_prog_gcc != yes; then
1809 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1812 echo $ac_n "checking build system type""... $ac_c" 1>&6
1813 echo "configure:1814: checking build system type" >&5
1815 build_alias=$build
1816 case "$build_alias" in
1817 NONE)
1818 case $nonopt in
1819 NONE) build_alias=$host_alias ;;
1820 *) build_alias=$nonopt ;;
1821 esac ;;
1822 esac
1824 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1825 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1826 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1827 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1828 echo "$ac_t""$build" 1>&6
1830 if test $host != $build; then
1831 for ac_prog in gcc cc
1833 # Extract the first word of "$ac_prog", so it can be a program name with args.
1834 set dummy $ac_prog; ac_word=$2
1835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1836 echo "configure:1837: checking for $ac_word" >&5
1837 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1839 else
1840 if test -n "$BUILD_CC"; then
1841 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1842 else
1843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1844 ac_dummy="$PATH"
1845 for ac_dir in $ac_dummy; do
1846 test -z "$ac_dir" && ac_dir=.
1847 if test -f $ac_dir/$ac_word; then
1848 ac_cv_prog_BUILD_CC="$ac_prog"
1849 break
1851 done
1852 IFS="$ac_save_ifs"
1855 BUILD_CC="$ac_cv_prog_BUILD_CC"
1856 if test -n "$BUILD_CC"; then
1857 echo "$ac_t""$BUILD_CC" 1>&6
1858 else
1859 echo "$ac_t""no" 1>&6
1862 test -n "$BUILD_CC" && break
1863 done
1867 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1868 echo "configure:1869: checking how to run the C preprocessor" >&5
1869 # On Suns, sometimes $CPP names a directory.
1870 if test -n "$CPP" && test -d "$CPP"; then
1871 CPP=
1873 if test -z "$CPP"; then
1874 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1876 else
1877 # This must be in double quotes, not single quotes, because CPP may get
1878 # substituted into the Makefile and "${CC-cc}" will confuse make.
1879 CPP="${CC-cc} -E"
1880 # On the NeXT, cc -E runs the code through the compiler's parser,
1881 # not just through cpp.
1882 cat > conftest.$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1885 #include <assert.h>
1886 Syntax Error
1888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1889 { (eval echo configure:1890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1891 if test -z "$ac_err"; then
1893 else
1894 echo "$ac_err" >&5
1895 echo "configure: failed program was:" >&5
1896 cat conftest.$ac_ext >&5
1897 rm -rf conftest*
1898 CPP="${CC-cc} -E -traditional-cpp"
1899 cat > conftest.$ac_ext <<EOF
1900 #line 1901 "configure"
1901 #include "confdefs.h"
1902 #include <assert.h>
1903 Syntax Error
1905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1906 { (eval echo configure:1907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1908 if test -z "$ac_err"; then
1910 else
1911 echo "$ac_err" >&5
1912 echo "configure: failed program was:" >&5
1913 cat conftest.$ac_ext >&5
1914 rm -rf conftest*
1915 CPP="${CC-cc} -nologo -E"
1916 cat > conftest.$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1919 #include <assert.h>
1920 Syntax Error
1922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1923 { (eval echo configure:1924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1925 if test -z "$ac_err"; then
1927 else
1928 echo "$ac_err" >&5
1929 echo "configure: failed program was:" >&5
1930 cat conftest.$ac_ext >&5
1931 rm -rf conftest*
1932 CPP=/lib/cpp
1934 rm -f conftest*
1936 rm -f conftest*
1938 rm -f conftest*
1939 ac_cv_prog_CPP="$CPP"
1941 CPP="$ac_cv_prog_CPP"
1942 else
1943 ac_cv_prog_CPP="$CPP"
1945 echo "$ac_t""$CPP" 1>&6
1947 # Was a --with-binutils option given?
1948 if test -n "$path_binutils"; then
1949 # Make absolute; ensure a single trailing slash.
1950 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1951 CC="$CC -B$path_binutils"
1953 AS=`$CC -print-prog-name=as`
1954 LD=`$CC -print-prog-name=ld`
1955 AR=`$CC -print-prog-name=ar`
1958 # ranlib has to be treated a bit differently since it might not exist at all.
1959 RANLIB=`$CC -print-prog-name=ranlib`
1960 if test $RANLIB = ranlib; then
1961 # This extra check has to happen since gcc simply echos the parameter in
1962 # case it cannot find the value in its own directories.
1963 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1964 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1966 echo "configure:1967: checking for $ac_word" >&5
1967 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1968 echo $ac_n "(cached) $ac_c" 1>&6
1969 else
1970 if test -n "$RANLIB"; then
1971 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1972 else
1973 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1974 ac_dummy="$PATH"
1975 for ac_dir in $ac_dummy; do
1976 test -z "$ac_dir" && ac_dir=.
1977 if test -f $ac_dir/$ac_word; then
1978 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1979 break
1981 done
1982 IFS="$ac_save_ifs"
1985 RANLIB="$ac_cv_prog_RANLIB"
1986 if test -n "$RANLIB"; then
1987 echo "$ac_t""$RANLIB" 1>&6
1988 else
1989 echo "$ac_t""no" 1>&6
1993 if test -z "$ac_cv_prog_RANLIB"; then
1994 if test -n "$ac_tool_prefix"; then
1995 # Extract the first word of "ranlib", so it can be a program name with args.
1996 set dummy ranlib; ac_word=$2
1997 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1998 echo "configure:1999: checking for $ac_word" >&5
1999 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2001 else
2002 if test -n "$RANLIB"; then
2003 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2004 else
2005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2006 ac_dummy="$PATH"
2007 for ac_dir in $ac_dummy; do
2008 test -z "$ac_dir" && ac_dir=.
2009 if test -f $ac_dir/$ac_word; then
2010 ac_cv_prog_RANLIB="ranlib"
2011 break
2013 done
2014 IFS="$ac_save_ifs"
2015 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2018 RANLIB="$ac_cv_prog_RANLIB"
2019 if test -n "$RANLIB"; then
2020 echo "$ac_t""$RANLIB" 1>&6
2021 else
2022 echo "$ac_t""no" 1>&6
2025 else
2026 RANLIB=":"
2033 # Determine whether we are using GNU binutils.
2034 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
2035 echo "configure:2036: checking whether $AS is GNU as" >&5
2036 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2038 else
2039 # Most GNU programs take a -v and spit out some text including
2040 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
2041 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
2042 libc_cv_prog_as_gnu=yes
2043 else
2044 libc_cv_prog_as_gnu=no
2046 rm -fr contest*
2049 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
2050 rm -f a.out
2051 gnu_as=$libc_cv_prog_as_gnu
2053 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
2054 echo "configure:2055: checking whether $LD is GNU ld" >&5
2055 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2057 else
2058 # Most GNU programs take a -v and spit out some text including
2059 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
2060 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
2061 libc_cv_prog_ld_gnu=yes
2062 else
2063 libc_cv_prog_ld_gnu=no
2065 rm -fr contest*
2068 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
2069 gnu_ld=$libc_cv_prog_ld_gnu
2071 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
2072 set dummy ${ac_tool_prefix}mig; ac_word=$2
2073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2074 echo "configure:2075: checking for $ac_word" >&5
2075 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2077 else
2078 if test -n "$MIG"; then
2079 ac_cv_prog_MIG="$MIG" # Let the user override the test.
2080 else
2081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2082 ac_dummy="$PATH"
2083 for ac_dir in $ac_dummy; do
2084 test -z "$ac_dir" && ac_dir=.
2085 if test -f $ac_dir/$ac_word; then
2086 ac_cv_prog_MIG="${ac_tool_prefix}mig"
2087 break
2089 done
2090 IFS="$ac_save_ifs"
2091 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
2094 MIG="$ac_cv_prog_MIG"
2095 if test -n "$MIG"; then
2096 echo "$ac_t""$MIG" 1>&6
2097 else
2098 echo "$ac_t""no" 1>&6
2104 # Accept binutils 2.10.1 or newer (and also any ia64 2.9 version)
2105 # XXX Commented out because it filters out too many good versions.
2106 # XXX --drepper
2107 # AC_CHECK_PROG_VER(AS, $AS, --version,
2108 # [GNU assembler.* \([0-9]*\.[0-9.]*\(-ia64-[0-9]*\)*\)],
2109 # [2.10.[1-9]* | 2.1[1-9]* | 2.9-ia64-*], AS=: critic_missing=t)
2111 test -n "$aux_missing" && echo "configure: warning:
2112 *** These auxiliary programs are missing or too old:$aux_missing
2113 *** some features will be disabled.
2114 *** Check the INSTALL file for required versions." 1>&2
2116 # glibcbug.in wants to know the compiler version.
2117 CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
2120 # if using special system headers, find out the compiler's sekrit
2121 # header directory and add that to the list. NOTE: Only does the right
2122 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
2123 if test -n "$sysheaders"; then
2124 ccheaders=`$CC -print-file-name=include`
2125 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
2129 # check if ranlib is necessary
2130 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
2131 echo "configure:2132: checking whether ranlib is necessary" >&5
2132 if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
2133 echo $ac_n "(cached) $ac_c" 1>&6
2134 else
2135 cat > conftest.c <<EOF
2136 int a;
2137 char b;
2138 void c(void) {}
2140 $CC $CFLAGS -c conftest.c
2141 $AR cr conftest.a conftest.c
2142 cp conftest.a conftest2.a
2143 $RANLIB conftest.a
2144 if cmp -s conftest.a conftest2.a; then
2145 libc_cv_ranlib_necessary=no
2146 else
2147 libc_cv_ranlib_necessary=yes
2149 rm -rf conftest*
2152 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
2153 if test "$libc_cv_ranlib_necessary" = no; then
2154 RANLIB=:
2157 # Test if LD_LIBRARY_PATH contains the notation for the current directory
2158 # since this would lead to problems installing/building glibc.
2159 # LD_LIBRARY_PATH contains the current directory if one of the following
2160 # is true:
2161 # - one of the terminals (":" and ";") is the first or last sign
2162 # - two terminals occur directly after each other
2163 # - the path contains an element with a dot in it
2164 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
2165 echo "configure:2166: checking LD_LIBRARY_PATH variable" >&5
2166 case ${LD_LIBRARY_PATH} in
2167 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2168 ld_library_path_setting="contains current directory"
2171 ld_library_path_setting="ok"
2173 esac
2174 echo "$ac_t""$ld_library_path_setting" 1>&6
2175 if test "$ld_library_path_setting" != "ok"; then
2176 { echo "configure: error:
2177 *** LD_LIBRARY_PATH shouldn't contain the current directory when
2178 *** building glibc. Please change the environment variable
2179 *** and run configure again." 1>&2; exit 1; }
2182 echo $ac_n "checking whether GCC supports -static-libgcc""... $ac_c" 1>&6
2183 echo "configure:2184: checking whether GCC supports -static-libgcc" >&5
2184 if eval "test \"`echo '$''{'libc_cv_gcc_static_libgcc'+set}'`\" = set"; then
2185 echo $ac_n "(cached) $ac_c" 1>&6
2186 else
2187 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
2188 libc_cv_gcc_static_libgcc=
2189 else
2190 libc_cv_gcc_static_libgcc=-static-libgcc
2194 echo "$ac_t""$libc_cv_gcc_static_libgcc" 1>&6
2197 # Extract the first word of "bash", so it can be a program name with args.
2198 set dummy bash; ac_word=$2
2199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2200 echo "configure:2201: checking for $ac_word" >&5
2201 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2203 else
2204 case "$BASH" in
2206 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2208 ?:/*)
2209 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
2212 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2213 ac_dummy="$PATH"
2214 for ac_dir in $ac_dummy; do
2215 test -z "$ac_dir" && ac_dir=.
2216 if test -f $ac_dir/$ac_word; then
2217 ac_cv_path_BASH="$ac_dir/$ac_word"
2218 break
2220 done
2221 IFS="$ac_save_ifs"
2222 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
2224 esac
2226 BASH="$ac_cv_path_BASH"
2227 if test -n "$BASH"; then
2228 echo "$ac_t""$BASH" 1>&6
2229 else
2230 echo "$ac_t""no" 1>&6
2233 if test "$BASH" != no &&
2234 $BASH -c 'test "$BASH_VERSINFO" \
2235 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
2236 libc_cv_have_bash2=yes
2237 else
2238 libc_cv_have_bash2=no
2242 if test "$BASH" = no; then
2243 # Extract the first word of "ksh", so it can be a program name with args.
2244 set dummy ksh; ac_word=$2
2245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2246 echo "configure:2247: checking for $ac_word" >&5
2247 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2249 else
2250 case "$KSH" in
2252 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2254 ?:/*)
2255 ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path.
2258 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2259 ac_dummy="$PATH"
2260 for ac_dir in $ac_dummy; do
2261 test -z "$ac_dir" && ac_dir=.
2262 if test -f $ac_dir/$ac_word; then
2263 ac_cv_path_KSH="$ac_dir/$ac_word"
2264 break
2266 done
2267 IFS="$ac_save_ifs"
2268 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
2270 esac
2272 KSH="$ac_cv_path_KSH"
2273 if test -n "$KSH"; then
2274 echo "$ac_t""$KSH" 1>&6
2275 else
2276 echo "$ac_t""no" 1>&6
2279 if test "$KSH" = no; then
2280 libc_cv_have_ksh=no
2281 else
2282 libc_cv_have_ksh=yes
2284 else
2285 KSH="$BASH"
2287 libc_cv_have_ksh=yes
2291 for ac_prog in gawk mawk nawk awk
2293 # Extract the first word of "$ac_prog", so it can be a program name with args.
2294 set dummy $ac_prog; ac_word=$2
2295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2296 echo "configure:2297: checking for $ac_word" >&5
2297 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2299 else
2300 if test -n "$AWK"; then
2301 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2302 else
2303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2304 ac_dummy="$PATH"
2305 for ac_dir in $ac_dummy; do
2306 test -z "$ac_dir" && ac_dir=.
2307 if test -f $ac_dir/$ac_word; then
2308 ac_cv_prog_AWK="$ac_prog"
2309 break
2311 done
2312 IFS="$ac_save_ifs"
2315 AWK="$ac_cv_prog_AWK"
2316 if test -n "$AWK"; then
2317 echo "$ac_t""$AWK" 1>&6
2318 else
2319 echo "$ac_t""no" 1>&6
2322 test -n "$AWK" && break
2323 done
2325 # Extract the first word of "perl", so it can be a program name with args.
2326 set dummy perl; ac_word=$2
2327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2328 echo "configure:2329: checking for $ac_word" >&5
2329 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2330 echo $ac_n "(cached) $ac_c" 1>&6
2331 else
2332 case "$PERL" in
2334 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2336 ?:/*)
2337 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
2340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2341 ac_dummy="$PATH"
2342 for ac_dir in $ac_dummy; do
2343 test -z "$ac_dir" && ac_dir=.
2344 if test -f $ac_dir/$ac_word; then
2345 ac_cv_path_PERL="$ac_dir/$ac_word"
2346 break
2348 done
2349 IFS="$ac_save_ifs"
2350 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
2352 esac
2354 PERL="$ac_cv_path_PERL"
2355 if test -n "$PERL"; then
2356 echo "$ac_t""$PERL" 1>&6
2357 else
2358 echo "$ac_t""no" 1>&6
2361 if test "$PERL" != no &&
2362 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
2363 PERL=no
2365 # Extract the first word of "install-info", so it can be a program name with args.
2366 set dummy install-info; ac_word=$2
2367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2368 echo "configure:2369: checking for $ac_word" >&5
2369 if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2371 else
2372 case "$INSTALL_INFO" in
2374 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
2376 ?:/*)
2377 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a dos path.
2380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2381 ac_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
2382 for ac_dir in $ac_dummy; do
2383 test -z "$ac_dir" && ac_dir=.
2384 if test -f $ac_dir/$ac_word; then
2385 ac_cv_path_INSTALL_INFO="$ac_dir/$ac_word"
2386 break
2388 done
2389 IFS="$ac_save_ifs"
2390 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
2392 esac
2394 INSTALL_INFO="$ac_cv_path_INSTALL_INFO"
2395 if test -n "$INSTALL_INFO"; then
2396 echo "$ac_t""$INSTALL_INFO" 1>&6
2397 else
2398 echo "$ac_t""no" 1>&6
2401 if test "$INSTALL_INFO" != "no"; then
2402 echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
2403 echo "configure:2404: checking for old Debian install-info" >&5
2404 if eval "test \"`echo '$''{'libc_cv_old_debian_install_info'+set}'`\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6
2406 else
2407 mkdir conftest.d
2408 # There is a hard ^_ on the next line. I am open to better ideas.
2409 (echo '\x1f'
2410 echo 'File: dir Node: Top This is the top of the INFO tree'
2411 echo '* Menu:') >conftest.d/dir
2412 (echo 'INFO-DIR-SECTION i-d-s works'
2413 echo 'START-INFO-DIR-ENTRY'
2414 echo '* Prog: (prog). Program.'
2415 echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
2416 if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
2417 then
2418 if grep -s 'i-d-s works' conftest.d/dir >/dev/null
2419 then libc_cv_old_debian_install_info=no
2420 else libc_cv_old_debian_install_info=yes
2422 else libc_cv_old_debian_install_info=no testfailed=t
2424 rm -fr conftest.d
2427 echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2428 if test -n "$testfailed"
2429 then echo "configure: warning: install-info errored out, check config.log" 1>&2
2431 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
2435 # Extract the first word of "bison", so it can be a program name with args.
2436 set dummy bison; ac_word=$2
2437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2438 echo "configure:2439: checking for $ac_word" >&5
2439 if eval "test \"`echo '$''{'ac_cv_path_BISON'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2441 else
2442 case "$BISON" in
2444 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
2446 ?:/*)
2447 ac_cv_path_BISON="$BISON" # Let the user override the test with a dos path.
2450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2451 ac_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
2452 for ac_dir in $ac_dummy; do
2453 test -z "$ac_dir" && ac_dir=.
2454 if test -f $ac_dir/$ac_word; then
2455 ac_cv_path_BISON="$ac_dir/$ac_word"
2456 break
2458 done
2459 IFS="$ac_save_ifs"
2460 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
2462 esac
2464 BISON="$ac_cv_path_BISON"
2465 if test -n "$BISON"; then
2466 echo "$ac_t""$BISON" 1>&6
2467 else
2468 echo "$ac_t""no" 1>&6
2472 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2473 echo "configure:2474: checking for signed size_t type" >&5
2474 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2476 else
2477 echo '#include <stddef.h>
2478 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2479 if eval "$ac_cpp conftest.c 2>/dev/null" \
2480 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
2481 libc_cv_signed_size_t=no
2482 else
2483 libc_cv_signed_size_t=yes
2485 rm -f conftest*
2488 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2489 if test $libc_cv_signed_size_t = yes; then
2490 cat >> confdefs.h <<\EOF
2491 #undef __SIZE_TYPE__
2492 #define __SIZE_TYPE__ unsigned
2496 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2497 echo "configure:2498: checking for libc-friendly stddef.h" >&5
2498 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2500 else
2501 cat > conftest.$ac_ext <<EOF
2502 #line 2503 "configure"
2503 #include "confdefs.h"
2504 #define __need_size_t
2505 #define __need_wchar_t
2506 #include <stddef.h>
2507 #define __need_NULL
2508 #include <stddef.h>
2509 int main() {
2510 size_t size; wchar_t wchar;
2511 #ifdef offsetof
2512 #error stddef.h ignored __need_*
2513 #endif
2514 if (&size == NULL || &wchar == NULL) abort ();
2515 ; return 0; }
2517 if { (eval echo configure:2518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2518 rm -rf conftest*
2519 libc_cv_friendly_stddef=yes
2520 else
2521 echo "configure: failed program was:" >&5
2522 cat conftest.$ac_ext >&5
2523 rm -rf conftest*
2524 libc_cv_friendly_stddef=no
2526 rm -f conftest*
2529 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2530 if test $libc_cv_friendly_stddef = yes; then
2531 config_vars="$config_vars
2532 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2535 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2536 echo "configure:2537: checking whether we need to use -P to assemble .S files" >&5
2537 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2539 else
2540 cat > conftest.S <<EOF
2541 #include "confdefs.h"
2542 /* Nothing whatsoever. */
2544 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
2545 libc_cv_need_minus_P=no
2546 else
2547 libc_cv_need_minus_P=yes
2549 rm -f conftest*
2552 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2553 if test $libc_cv_need_minus_P = yes; then
2554 config_vars="$config_vars
2555 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2558 echo $ac_n "checking whether .text pseudo-op must be used""... $ac_c" 1>&6
2559 echo "configure:2560: checking whether .text pseudo-op must be used" >&5
2560 if eval "test \"`echo '$''{'libc_cv_dot_text'+set}'`\" = set"; then
2561 echo $ac_n "(cached) $ac_c" 1>&6
2562 else
2563 cat > conftest.s <<EOF
2564 .text
2566 libc_cv_dot_text=
2567 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2568 libc_cv_dot_text=.text
2570 rm -f conftest*
2573 if test -z "$libc_cv_dot_text"; then
2574 echo "$ac_t""no" 1>&6
2575 else
2576 echo "$ac_t""yes" 1>&6
2579 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2580 echo "configure:2581: checking for assembler global-symbol directive" >&5
2581 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2583 else
2584 libc_cv_asm_global_directive=UNKNOWN
2585 for ac_globl in .globl .global .EXPORT; do
2586 cat > conftest.s <<EOF
2587 ${libc_cv_dot_text}
2588 ${ac_globl} foo
2589 foo:
2591 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2592 libc_cv_asm_global_directive=${ac_globl}
2594 rm -f conftest*
2595 test $libc_cv_asm_global_directive != UNKNOWN && break
2596 done
2599 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2600 if test $libc_cv_asm_global_directive = UNKNOWN; then
2601 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2602 else
2603 cat >> confdefs.h <<EOF
2604 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2609 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2610 echo "configure:2611: checking for .set assembler directive" >&5
2611 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2613 else
2614 cat > conftest.s <<EOF
2615 ${libc_cv_dot_text}
2616 foo:
2617 .set glibc_conftest_frobozz,foo
2618 $libc_cv_asm_global_directive glibc_conftest_frobozz
2620 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2621 # (but it doesn't work), so we must do a linking check to be sure.
2622 cat > conftest1.c <<\EOF
2623 extern int glibc_conftest_frobozz;
2624 main () { printf ("%d\n", glibc_conftest_frobozz); }
2626 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2627 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2628 libc_cv_asm_set_directive=yes
2629 else
2630 libc_cv_asm_set_directive=no
2632 rm -f conftest*
2635 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2636 if test $libc_cv_asm_set_directive = yes; then
2637 cat >> confdefs.h <<\EOF
2638 #define HAVE_ASM_SET_DIRECTIVE 1
2643 # The Aix ld uses global .symbol_names instead of symbol_names.
2644 case "$os" in
2645 aix4.3*)
2646 cat >> confdefs.h <<\EOF
2647 #define HAVE_ASM_GLOBAL_DOT_NAME 1
2650 esac
2652 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2653 echo "configure:2654: checking for .symver assembler directive" >&5
2654 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2656 else
2657 cat > conftest.s <<EOF
2658 ${libc_cv_dot_text}
2659 _sym:
2660 .symver _sym,sym@VERS
2662 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2663 libc_cv_asm_symver_directive=yes
2664 else
2665 libc_cv_asm_symver_directive=no
2667 rm -f conftest*
2670 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2671 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2672 echo "configure:2673: checking for ld --version-script" >&5
2673 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2675 else
2676 if test $libc_cv_asm_symver_directive = yes; then
2677 cat > conftest.s <<EOF
2678 ${libc_cv_dot_text}
2679 _sym:
2680 .symver _sym,sym@VERS
2682 cat > conftest.map <<EOF
2683 VERS_1 {
2684 global: sym;
2687 VERS_2 {
2688 global: sym;
2689 } VERS_1;
2691 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2692 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2693 -nostartfiles -nostdlib
2694 -Wl,--version-script,conftest.map
2695 1>&5'; { (eval echo configure:2696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2696 then
2697 libc_cv_ld_version_script_option=yes
2698 else
2699 libc_cv_ld_version_script_option=no
2701 else
2702 libc_cv_ld_version_script_option=no
2704 else
2705 libc_cv_ld_version_script_option=no
2707 rm -f conftest*
2710 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2711 if test $shared != no &&
2712 test $libc_cv_asm_symver_directive = yes &&
2713 test $libc_cv_ld_version_script_option = yes &&
2714 test $enable_versioning = yes; then
2715 VERSIONING=yes
2716 cat >> confdefs.h <<\EOF
2717 #define DO_VERSIONING 1
2720 else
2721 VERSIONING=no
2725 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
2726 echo "\
2727 *** WARNING: You should not compile GNU libc without versioning. Not using
2728 *** versioning will introduce incompatibilities so that old binaries
2729 *** will not run anymore.
2730 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2732 if test $elf = yes; then
2733 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2734 echo "configure:2735: checking for .previous assembler directive" >&5
2735 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2736 echo $ac_n "(cached) $ac_c" 1>&6
2737 else
2738 cat > conftest.s <<EOF
2739 .section foo_section
2740 .previous
2742 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2743 libc_cv_asm_previous_directive=yes
2744 else
2745 libc_cv_asm_previous_directive=no
2747 rm -f conftest*
2750 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2751 if test $libc_cv_asm_previous_directive = yes; then
2752 cat >> confdefs.h <<\EOF
2753 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2756 else
2757 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2758 echo "configure:2759: checking for .popsection assembler directive" >&5
2759 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2760 echo $ac_n "(cached) $ac_c" 1>&6
2761 else
2762 cat > conftest.s <<EOF
2763 .pushsection foo_section
2764 .popsection
2766 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2767 libc_cv_asm_popsection_directive=yes
2768 else
2769 libc_cv_asm_popsection_directive=no
2771 rm -f conftest*
2774 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2775 if test $libc_cv_asm_popsection_directive = yes; then
2776 cat >> confdefs.h <<\EOF
2777 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2782 echo $ac_n "checking for .protected and .hidden assembler directive""... $ac_c" 1>&6
2783 echo "configure:2784: checking for .protected and .hidden assembler directive" >&5
2784 if eval "test \"`echo '$''{'libc_cv_asm_protected_directive'+set}'`\" = set"; then
2785 echo $ac_n "(cached) $ac_c" 1>&6
2786 else
2787 cat > conftest.s <<EOF
2788 .protected foo
2789 foo:
2790 .hidden bar
2791 bar:
2793 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2794 libc_cv_asm_protected_directive=yes
2795 else
2796 libc_cv_asm_protected_directive=no
2798 rm -f conftest*
2801 echo "$ac_t""$libc_cv_asm_protected_directive" 1>&6
2803 cat >> confdefs.h <<\EOF
2804 #define HAVE_PROTECTED 1
2808 echo $ac_n "checking for -z nodelete option""... $ac_c" 1>&6
2809 echo "configure:2810: checking for -z nodelete option" >&5
2810 if eval "test \"`echo '$''{'libc_cv_z_nodelete'+set}'`\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2812 else
2813 cat > conftest.c <<EOF
2814 int _start (void) { return 42; }
2816 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
2817 -nostartfiles -nostdlib
2818 -Wl,--enable-new-dtags,-z,nodelete 1>&5'; { (eval echo configure:2819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2819 then
2820 libc_cv_z_nodelete=yes
2821 else
2822 libc_cv_z_nodelete=no
2824 rm -f conftest*
2827 echo "$ac_t""$libc_cv_z_nodelete" 1>&6
2830 echo $ac_n "checking for -z nodlopen option""... $ac_c" 1>&6
2831 echo "configure:2832: checking for -z nodlopen option" >&5
2832 if eval "test \"`echo '$''{'libc_cv_z_nodlopen'+set}'`\" = set"; then
2833 echo $ac_n "(cached) $ac_c" 1>&6
2834 else
2835 cat > conftest.c <<EOF
2836 int _start (void) { return 42; }
2838 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
2839 -nostartfiles -nostdlib
2840 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'; { (eval echo configure:2841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2841 then
2842 libc_cv_z_nodlopen=yes
2843 else
2844 libc_cv_z_nodlopen=no
2846 rm -f conftest*
2849 echo "$ac_t""$libc_cv_z_nodlopen" 1>&6
2852 echo $ac_n "checking for -z initfirst option""... $ac_c" 1>&6
2853 echo "configure:2854: checking for -z initfirst option" >&5
2854 if eval "test \"`echo '$''{'libc_cv_z_initfirst'+set}'`\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2856 else
2857 cat > conftest.c <<EOF
2858 int _start (void) { return 42; }
2860 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
2861 -nostartfiles -nostdlib
2862 -Wl,--enable-new-dtags,-z,initfirst 1>&5'; { (eval echo configure:2863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2863 then
2864 libc_cv_z_initfirst=yes
2865 else
2866 libc_cv_z_initfirst=no
2868 rm -f conftest*
2871 echo "$ac_t""$libc_cv_z_initfirst" 1>&6
2874 echo $ac_n "checking for -Bgroup option""... $ac_c" 1>&6
2875 echo "configure:2876: checking for -Bgroup option" >&5
2876 if eval "test \"`echo '$''{'libc_cv_Bgroup'+set}'`\" = set"; then
2877 echo $ac_n "(cached) $ac_c" 1>&6
2878 else
2879 cat > conftest.c <<EOF
2880 int _start (void) { return 42; }
2882 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,-Bgroup -nostdlib 1>&5'; { (eval echo configure:2883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2883 then
2884 libc_cv_Bgroup=yes
2885 else
2886 libc_cv_Bgroup=no
2888 rm -f conftest*
2891 echo "$ac_t""$libc_cv_Bgroup" 1>&6
2894 echo $ac_n "checking for -z combreloc""... $ac_c" 1>&6
2895 echo "configure:2896: checking for -z combreloc" >&5
2896 if eval "test \"`echo '$''{'libc_cv_z_combreloc'+set}'`\" = set"; then
2897 echo $ac_n "(cached) $ac_c" 1>&6
2898 else
2899 cat > conftest.c <<EOF
2900 extern int bar (void);
2901 int foo (void) { return bar (); }
2903 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
2904 -nostdlib -nostartfiles
2905 -Wl,-z,combreloc 1>&5'; { (eval echo configure:2906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2906 then
2907 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
2908 libc_cv_z_combreloc=yes
2909 else
2910 libc_cv_z_combreloc=no
2912 else
2913 libc_cv_z_combreloc=no
2915 rm -f conftest*
2918 echo "$ac_t""$libc_cv_z_combreloc" 1>&6
2919 if test "$libc_cv_z_combreloc" = yes; then
2920 cat >> confdefs.h <<\EOF
2921 #define HAVE_Z_COMBRELOC 1
2928 if test $elf != yes; then
2929 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2930 echo "configure:2931: checking for .init and .fini sections" >&5
2931 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2933 else
2934 cat > conftest.$ac_ext <<EOF
2935 #line 2936 "configure"
2936 #include "confdefs.h"
2938 int main() {
2939 asm (".section .init");
2940 asm (".section .fini");
2941 asm ("${libc_cv_dot_text}");
2942 ; return 0; }
2944 if { (eval echo configure:2945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2945 rm -rf conftest*
2946 libc_cv_have_initfini=yes
2947 else
2948 echo "configure: failed program was:" >&5
2949 cat conftest.$ac_ext >&5
2950 rm -rf conftest*
2951 libc_cv_have_initfini=no
2953 rm -f conftest*
2956 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2957 if test $libc_cv_have_initfini = yes; then
2958 cat >> confdefs.h <<\EOF
2959 #define HAVE_INITFINI 1
2965 if test $elf = yes -a $gnu_ld = yes; then
2966 echo $ac_n "checking whether cc puts quotes around section names""... $ac_c" 1>&6
2967 echo "configure:2968: checking whether cc puts quotes around section names" >&5
2968 if eval "test \"`echo '$''{'libc_cv_have_section_quotes'+set}'`\" = set"; then
2969 echo $ac_n "(cached) $ac_c" 1>&6
2970 else
2971 cat > conftest.c <<EOF
2972 static const int foo
2973 __attribute__ ((section ("bar"))) = 1;
2975 if ${CC-cc} -S conftest.c -o conftest.s; then
2976 if grep '\.section.*"bar"' conftest.s >/dev/null; then
2977 libc_cv_have_section_quotes=yes
2978 else
2979 libc_cv_have_section_quotes=no
2981 else
2982 libc_cv_have_section_quotes=unknown
2984 rm -f conftest.cs
2988 echo "$ac_t""$libc_cv_have_section_quotes" 1>&6
2989 if test $libc_cv_have_section_quotes = yes; then
2990 cat >> confdefs.h <<\EOF
2991 #define HAVE_SECTION_QUOTES 1
2999 if test $elf = yes; then
3000 libc_cv_asm_underscores=no
3001 else
3002 if test $ac_cv_prog_cc_works = yes; then
3003 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
3004 echo "configure:3005: checking for _ prefix on C symbol names" >&5
3005 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
3006 echo $ac_n "(cached) $ac_c" 1>&6
3007 else
3008 cat > conftest.$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3011 asm ("_glibc_foobar:");
3012 int main() {
3013 glibc_foobar ();
3014 ; return 0; }
3016 if { (eval echo configure:3017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3017 rm -rf conftest*
3018 libc_cv_asm_underscores=yes
3019 else
3020 echo "configure: failed program was:" >&5
3021 cat conftest.$ac_ext >&5
3022 rm -rf conftest*
3023 libc_cv_asm_underscores=no
3025 rm -f conftest*
3028 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
3029 else
3030 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
3031 echo "configure:3032: checking for _ prefix on C symbol names" >&5
3032 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
3033 echo $ac_n "(cached) $ac_c" 1>&6
3034 else
3035 cat > conftest.$ac_ext <<EOF
3036 #line 3037 "configure"
3037 #include "confdefs.h"
3038 void underscore_test(void) {
3039 return; }
3041 if { (eval echo configure:3042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3042 if grep _underscore_test conftest* >/dev/null; then
3043 rm -f conftest*
3044 libc_cv_asm_underscores=yes
3045 else
3046 rm -f conftest*
3047 libc_cv_asm_underscores=no
3049 else
3050 echo "configure: failed program was:" >&5
3051 cat conftest.$ac_ext >&5
3052 rm -f conftest*
3053 libc_cv_asm_underscores=no
3055 rm -f conftest*
3058 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
3061 if test $libc_cv_asm_underscores = no; then
3062 cat >> confdefs.h <<\EOF
3063 #define NO_UNDERSCORES 1
3068 if test $elf = yes; then
3069 libc_cv_weak_symbols=yes
3072 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
3073 echo "configure:3074: checking for assembler .weak directive" >&5
3074 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
3075 echo $ac_n "(cached) $ac_c" 1>&6
3076 else
3077 cat > conftest.s <<EOF
3078 ${libc_cv_dot_text}
3079 ${libc_cv_asm_global_directive} foo
3080 foo:
3081 .weak foo
3082 .weak bar; bar = foo
3084 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
3085 libc_cv_asm_weak_directive=yes
3086 else
3087 libc_cv_asm_weak_directive=no
3089 rm -f conftest*
3092 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
3094 if test $libc_cv_asm_weak_directive = no; then
3095 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
3096 echo "configure:3097: checking for assembler .weakext directive" >&5
3097 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3099 else
3100 cat > conftest.s <<EOF
3101 ${libc_cv_dot_text}
3102 ${libc_cv_asm_global_directive} foo
3103 foo:
3104 .weakext bar foo
3105 .weakext baz
3106 ${libc_cv_asm_global_directive} baz
3107 baz:
3109 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
3110 libc_cv_asm_weakext_directive=yes
3111 else
3112 libc_cv_asm_weakext_directive=no
3114 rm -f conftest*
3117 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
3119 fi # no .weak
3121 if test $libc_cv_asm_weak_directive = yes; then
3122 cat >> confdefs.h <<\EOF
3123 #define HAVE_ASM_WEAK_DIRECTIVE 1
3126 elif test $libc_cv_asm_weakext_directive = yes; then
3127 cat >> confdefs.h <<\EOF
3128 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
3133 case "${host_cpu}-${host_os}" in
3134 cris*)
3135 libc_cv_asm_line_sep='@'
3136 cat >> confdefs.h <<EOF
3137 #define ASM_LINE_SEP $libc_cv_asm_line_sep
3141 hppa*linux*)
3142 echo $ac_n "checking for assembler line separator""... $ac_c" 1>&6
3143 echo "configure:3144: checking for assembler line separator" >&5
3144 if eval "test \"`echo '$''{'libc_cv_asm_line_sep'+set}'`\" = set"; then
3145 echo $ac_n "(cached) $ac_c" 1>&6
3146 else
3147 cat > conftest.s <<EOF
3148 nop ; is_old_puffin
3150 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:3151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3151 libc_cv_asm_line_sep='!'
3152 else
3153 if test -z "$enable_hacker_mode"; then
3154 echo "*** You need a newer assembler to compile glibc"
3155 rm -f conftest*
3156 exit 1
3158 libc_cv_asm_line_sep=';'
3160 rm -f conftest*
3163 echo "$ac_t""$libc_cv_asm_line_sep" 1>&6
3164 cat >> confdefs.h <<EOF
3165 #define ASM_LINE_SEP $libc_cv_asm_line_sep
3169 esac
3171 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
3172 echo "configure:3173: checking for ld --no-whole-archive" >&5
3173 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3175 else
3176 cat > conftest.c <<\EOF
3177 _start () {}
3178 int __eh_pc;
3179 __throw () {}
3181 if { ac_try='${CC-cc} $CFLAGS
3182 -nostdlib -nostartfiles -Wl,--no-whole-archive
3183 -o conftest conftest.c 1>&5'; { (eval echo configure:3184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3184 libc_cv_ld_no_whole_archive=yes
3185 else
3186 libc_cv_ld_no_whole_archive=no
3188 rm -f conftest*
3191 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
3192 if test $libc_cv_ld_no_whole_archive = yes; then
3193 no_whole_archive=-Wl,--no-whole-archive
3196 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
3197 echo "configure:3198: checking for gcc -fexceptions" >&5
3198 if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
3199 echo $ac_n "(cached) $ac_c" 1>&6
3200 else
3201 cat > conftest.c <<\EOF
3202 _start () {}
3203 int __eh_pc;
3204 __throw () {}
3206 if { ac_try='${CC-cc} $CFLAGS
3207 -nostdlib -nostartfiles -fexceptions
3208 -o conftest conftest.c 1>&5'; { (eval echo configure:3209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3209 libc_cv_gcc_exceptions=yes
3210 else
3211 libc_cv_gcc_exceptions=no
3213 rm -f conftest*
3216 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
3217 if test $libc_cv_gcc_exceptions = yes; then
3218 exceptions=-fexceptions
3221 if test "$base_machine" = alpha ; then
3222 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
3223 echo "configure:3224: checking for function ..ng prefix" >&5
3224 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
3225 echo $ac_n "(cached) $ac_c" 1>&6
3226 else
3227 cat > conftest.c <<\EOF
3228 foo () { }
3230 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:3231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
3231 then
3232 libc_cv_gcc_alpha_ng_prefix=yes
3233 else
3234 libc_cv_gcc_alpha_ng_prefix=no
3236 rm -f conftest*
3239 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
3240 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
3241 cat >> confdefs.h <<\EOF
3242 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
3245 else
3246 cat >> confdefs.h <<\EOF
3247 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
3253 if test "$host_cpu" = powerpc ; then
3254 # Check for a bug present in at least versions 2.8.x of GCC
3255 # and versions 1.0.x of EGCS.
3256 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
3257 echo "configure:3258: checking whether clobbering cr0 causes problems" >&5
3258 if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3260 else
3261 cat > conftest.$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3264 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
3265 int main() {
3267 ; return 0; }
3269 if { (eval echo configure:3270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3270 rm -rf conftest*
3271 libc_cv_c_asmcr0_bug='no'
3272 else
3273 echo "configure: failed program was:" >&5
3274 cat conftest.$ac_ext >&5
3275 rm -rf conftest*
3276 libc_cv_c_asmcr0_bug='yes'
3278 rm -f conftest*
3281 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
3282 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
3283 cat >> confdefs.h <<\EOF
3284 #define BROKEN_PPC_ASM_CR0 1
3290 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
3291 echo "configure:3292: checking for DWARF2 unwind info support" >&5
3292 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
3293 echo $ac_n "(cached) $ac_c" 1>&6
3294 else
3295 cat > conftest.c <<EOF
3296 #line 3297 "configure"
3297 static char __EH_FRAME_BEGIN__;
3298 _start ()
3300 #ifdef CHECK__register_frame
3301 __register_frame (__EH_FRAME_BEGIN__);
3302 __deregister_frame (__EH_FRAME_BEGIN__);
3303 #endif
3304 #ifdef CHECK__register_frame_info
3305 __register_frame_info (__EH_FRAME_BEGIN__);
3306 __deregister_frame_info (__EH_FRAME_BEGIN__);
3307 #endif
3309 int __eh_pc;
3310 __throw () {}
3311 /* FIXME: this is fragile. */
3312 malloc () {}
3313 strcmp () {}
3314 strlen () {}
3315 memcpy () {}
3316 memset () {}
3317 free () {}
3318 abort () {}
3319 __bzero () {}
3321 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
3322 -nostdlib -nostartfiles
3323 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3324 libc_cv_gcc_dwarf2_unwind_info=static
3325 else
3326 libc_cv_gcc_dwarf2_unwind_info=no
3328 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
3329 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
3330 -nostdlib -nostartfiles
3331 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3332 libc_cv_gcc_dwarf2_unwind_info=yes
3333 else
3334 libc_cv_gcc_dwarf2_unwind_info=no
3337 rm -f conftest*
3340 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
3341 case $libc_cv_gcc_dwarf2_unwind_info in
3342 yes)
3343 cat >> confdefs.h <<\EOF
3344 #define HAVE_DWARF2_UNWIND_INFO 1
3348 static)
3349 cat >> confdefs.h <<\EOF
3350 #define HAVE_DWARF2_UNWIND_INFO 1
3353 cat >> confdefs.h <<\EOF
3354 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
3358 esac
3360 echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
3361 echo "configure:3362: checking for __builtin_expect" >&5
3362 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_expect'+set}'`\" = set"; then
3363 echo $ac_n "(cached) $ac_c" 1>&6
3364 else
3365 cat > conftest.c <<EOF
3366 #line 3367 "configure"
3367 int foo (int a)
3369 a = __builtin_expect (a, 10);
3370 return a == 10 ? 0 : 1;
3373 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3374 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3375 libc_cv_gcc_builtin_expect=yes
3376 else
3377 libc_cv_gcc_builtin_expect=no
3379 rm -f conftest*
3382 echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
3383 if test "$libc_cv_gcc_builtin_expect" = yes; then
3384 cat >> confdefs.h <<\EOF
3385 #define HAVE_BUILTIN_EXPECT 1
3390 echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6
3391 echo "configure:3392: checking for local label subtraction" >&5
3392 if eval "test \"`echo '$''{'libc_cv_gcc_subtract_local_labels'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3394 else
3395 cat > conftest.c <<EOF
3396 #line 3397 "configure"
3397 int foo (int a)
3399 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
3400 void *p = &&l1 + ar[a];
3401 goto *p;
3403 return 1;
3405 return 2;
3408 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3409 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3410 libc_cv_gcc_subtract_local_labels=yes
3411 else
3412 libc_cv_gcc_subtract_local_labels=no
3414 rm -f conftest*
3417 echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6
3418 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
3419 cat >> confdefs.h <<\EOF
3420 #define HAVE_SUBTRACT_LOCAL_LABELS 1
3425 echo $ac_n "checking for libgd""... $ac_c" 1>&6
3426 echo "configure:3427: checking for libgd" >&5
3427 if test "$with_gd" != "no"; then
3428 old_CFLAGS="$CFLAGS"
3429 CFLAGS="$CFLAGS $libgd_include"
3430 old_LDFLAGS="$LDFLAGS"
3431 LDFLAGS="$LDFLAGS $libgd_ldflags"
3432 old_LIBS="$LIBS"
3433 LIBS="$LIBS -lgd -lpng -lz -lm"
3434 cat > conftest.$ac_ext <<EOF
3435 #line 3436 "configure"
3436 #include "confdefs.h"
3437 #include <gd.h>
3438 int main() {
3439 gdImagePng (0, 0)
3440 ; return 0; }
3442 if { (eval echo configure:3443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3443 rm -rf conftest*
3444 LIBGD=yes
3445 else
3446 echo "configure: failed program was:" >&5
3447 cat conftest.$ac_ext >&5
3448 rm -rf conftest*
3449 LIBGD=no
3451 rm -f conftest*
3452 CFLAGS="$old_CFLAGS"
3453 LDFLAGS="$old_LDFLAGS"
3454 LIBS="$old_LIBS"
3455 else
3456 LIBGD=no
3458 echo "$ac_t""$LIBGD" 1>&6
3461 echo $ac_n "checking size of long double""... $ac_c" 1>&6
3462 echo "configure:3463: checking size of long double" >&5
3463 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3464 echo $ac_n "(cached) $ac_c" 1>&6
3465 else
3466 if test "$cross_compiling" = yes; then
3467 ac_cv_sizeof_long_double=0
3468 else
3469 cat > conftest.$ac_ext <<EOF
3470 #line 3471 "configure"
3471 #include "confdefs.h"
3472 #include <stdio.h>
3473 int main()
3475 FILE *f=fopen("conftestval", "w");
3476 if (!f) return(1);
3477 fprintf(f, "%d\n", sizeof(long double));
3478 return(0);
3481 if { (eval echo configure:3482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3482 then
3483 ac_cv_sizeof_long_double=`cat conftestval`
3484 else
3485 echo "configure: failed program was:" >&5
3486 cat conftest.$ac_ext >&5
3487 rm -fr conftest*
3488 ac_cv_sizeof_long_double=0
3490 rm -fr conftest*
3494 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3495 cat >> confdefs.h <<EOF
3496 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3500 sizeof_long_double=$ac_cv_sizeof_long_double
3503 ### End of automated tests.
3504 ### Now run sysdeps configure fragments.
3506 # sysdeps configure fragments may set these with files to be linked below.
3507 libc_link_dests=
3508 libc_link_sources=
3510 # They also can set these variables.
3511 use_ldconfig=no
3512 ldd_rewrite_script=no
3513 libc_cv_sysconfdir=$sysconfdir
3514 libc_cv_gcc_unwind_find_fde=no
3516 # Iterate over all the sysdep directories we will use, running their
3517 # configure fragments, and looking for a uname implementation.
3518 uname=
3519 for dir in $sysnames; do
3520 case $dir in
3521 /*) dest=$dir ;;
3522 *) dest=$srcdir/$dir ;;
3523 esac
3524 if test -r $dest/configure; then
3525 echo "$ac_t""running configure fragment for $dest" 1>&6
3526 . $dest/configure
3529 if test -z "$uname"; then
3530 if test -r $dest/uname.c ||
3531 test -r $dest/uname.S ||
3532 { test -r $dest/syscalls.list &&
3533 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
3534 uname=$dir
3537 done
3539 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
3540 cat >> confdefs.h <<\EOF
3541 #define EXPORT_UNWIND_FIND_FDE 1
3549 # If we will use the generic uname implementation, we must figure out what
3550 # it will say by examining the system, and write the results in config-name.h.
3551 if test "$uname" = "sysdeps/generic"; then
3553 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
3554 if test $uname_sysname != $config_os; then
3555 config_release=`echo $config_os | sed s/$uname_sysname//`
3558 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
3559 echo "configure:3560: checking OS release for uname" >&5
3560 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
3561 echo $ac_n "(cached) $ac_c" 1>&6
3562 else
3563 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
3564 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
3565 != x$config_release; then
3566 # The configuration release is a substring of the kernel release.
3567 libc_cv_uname_release=$kernel_release
3568 elif test x$config_release != x; then
3569 libc_cv_uname_release=$config_release
3570 elif test x$kernel_release != x; then
3571 libc_cv_uname_release=$kernel_release
3572 else
3573 libc_cv_uname_release=unknown
3577 echo "$ac_t""$libc_cv_uname_release" 1>&6
3578 uname_release="$libc_cv_uname_release"
3580 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
3581 echo "configure:3582: checking OS version for uname" >&5
3582 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
3583 echo $ac_n "(cached) $ac_c" 1>&6
3584 else
3585 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
3586 if test -n "$kernel_version"; then
3587 libc_cv_uname_version="$kernel_version"
3588 else
3589 libc_cv_uname_version=unknown
3593 echo "$ac_t""$libc_cv_uname_version" 1>&6
3594 uname_version="$libc_cv_uname_version"
3596 config_uname=config-name.h:config-name.in
3597 else
3598 # For non-generic uname, we don't need to create config-name.h at all.
3599 config_uname=
3602 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
3603 echo "configure:3604: checking stdio selection" >&5
3605 case $stdio in
3606 libio) cat >> confdefs.h <<\EOF
3607 #define USE_IN_LIBIO 1
3610 default) stdio=stdio ;;
3611 esac
3612 echo "$ac_t""$stdio" 1>&6
3614 # Test for old glibc 2.0.x headers so that they can be removed properly
3615 # Search only in includedir.
3616 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
3617 echo "configure:3618: checking for old glibc 2.0.x headers" >&5
3618 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
3619 then
3620 old_glibc_headers=yes
3621 else
3622 old_glibc_headers=no
3624 echo "$ac_t""$old_glibc_headers" 1>&6
3625 if test ${old_glibc_headers} = yes; then
3626 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
3627 echo "configure: warning: *** be removed." 1>&2
3640 if test $gnu_ld = yes; then
3641 cat >> confdefs.h <<\EOF
3642 #define HAVE_GNU_LD 1
3646 if test $gnu_as = yes; then
3647 cat >> confdefs.h <<\EOF
3648 #define HAVE_GNU_AS 1
3652 if test $elf = yes; then
3653 cat >> confdefs.h <<\EOF
3654 #define HAVE_ELF 1
3658 if test $xcoff = yes; then
3659 cat >> confdefs.h <<\EOF
3660 #define HAVE_XCOFF 1
3667 if test $shared = default; then
3668 if test $gnu_ld = yes; then
3669 shared=$elf
3670 else
3671 # For now we do not assume shared libs are available. In future more
3672 # tests might become available.
3673 shared=no
3677 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
3678 echo "configure:3679: checking whether -fPIC is default" >&5
3679 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
3680 echo $ac_n "(cached) $ac_c" 1>&6
3681 else
3682 pic_default=yes
3683 cat > conftest.c <<EOF
3684 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
3685 # error PIC is default.
3686 #endif
3688 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
3689 pic_default=no
3691 rm -f conftest.*
3694 echo "$ac_t""$pic_default" 1>&6
3705 case "$add_ons" in
3706 *door*) linux_doors=yes ;;
3707 *) linux_doors=no ;;
3708 esac
3711 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
3712 config_makefile=
3713 else
3714 config_makefile=Makefile
3717 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
3718 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
3722 trap '' 1 2 15
3723 cat > confcache <<\EOF
3724 # This file is a shell script that caches the results of configure
3725 # tests run on this system so they can be shared between configure
3726 # scripts and configure runs. It is not useful on other systems.
3727 # If it contains results you don't want to keep, you may remove or edit it.
3729 # By default, configure uses ./config.cache as the cache file,
3730 # creating it if it does not exist already. You can give configure
3731 # the --cache-file=FILE option to use a different cache file; that is
3732 # what configure does when it calls configure scripts in
3733 # subdirectories, so they share the cache.
3734 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3735 # config.status only pays attention to the cache file if you give it the
3736 # --recheck option to rerun configure.
3739 # The following way of writing the cache mishandles newlines in values,
3740 # but we know of no workaround that is simple, portable, and efficient.
3741 # So, don't put newlines in cache variables' values.
3742 # Ultrix sh set writes to stderr and can't be redirected directly,
3743 # and sets the high bit in the cache file unless we assign to the vars.
3744 (set) 2>&1 |
3745 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3746 *ac_space=\ *)
3747 # `set' does not quote correctly, so add quotes (double-quote substitution
3748 # turns \\\\ into \\, and sed turns \\ into \).
3749 sed -n \
3750 -e "s/'/'\\\\''/g" \
3751 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3754 # `set' quotes correctly as required by POSIX, so do not add quotes.
3755 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3757 esac >> confcache
3758 if cmp -s $cache_file confcache; then
3760 else
3761 if test -w $cache_file; then
3762 echo "updating cache $cache_file"
3763 cat confcache > $cache_file
3764 else
3765 echo "not updating unwritable cache $cache_file"
3768 rm -f confcache
3770 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3772 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3773 # Let make expand exec_prefix.
3774 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3776 # Any assignment to VPATH causes Sun make to only execute
3777 # the first set of double-colon rules, so remove it if not needed.
3778 # If there is a colon in the path, we need to keep it.
3779 if test "x$srcdir" = x.; then
3780 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3783 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3785 DEFS=-DHAVE_CONFIG_H
3787 # Without the "./", some shells look in PATH for config.status.
3788 : ${CONFIG_STATUS=./config.status}
3790 echo creating $CONFIG_STATUS
3791 rm -f $CONFIG_STATUS
3792 cat > $CONFIG_STATUS <<EOF
3793 #! /bin/sh
3794 # Generated automatically by configure.
3795 # Run this file to recreate the current configuration.
3796 # This directory was configured as follows,
3797 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3799 # $0 $ac_configure_args
3801 # Compiler output produced by configure, useful for debugging
3802 # configure, is in ./config.log if it exists.
3804 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3805 for ac_option
3807 case "\$ac_option" in
3808 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3809 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3810 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3811 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3812 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3813 exit 0 ;;
3814 -help | --help | --hel | --he | --h)
3815 echo "\$ac_cs_usage"; exit 0 ;;
3816 *) echo "\$ac_cs_usage"; exit 1 ;;
3817 esac
3818 done
3820 ac_given_srcdir=$srcdir
3821 ac_given_INSTALL="$INSTALL"
3823 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3825 cat >> $CONFIG_STATUS <<EOF
3827 # Protect against being on the right side of a sed subst in config.status.
3828 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3829 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3830 $ac_vpsub
3831 $extrasub
3832 s%@SHELL@%$SHELL%g
3833 s%@CFLAGS@%$CFLAGS%g
3834 s%@CPPFLAGS@%$CPPFLAGS%g
3835 s%@CXXFLAGS@%$CXXFLAGS%g
3836 s%@FFLAGS@%$FFLAGS%g
3837 s%@DEFS@%$DEFS%g
3838 s%@LDFLAGS@%$LDFLAGS%g
3839 s%@LIBS@%$LIBS%g
3840 s%@exec_prefix@%$exec_prefix%g
3841 s%@prefix@%$prefix%g
3842 s%@program_transform_name@%$program_transform_name%g
3843 s%@bindir@%$bindir%g
3844 s%@sbindir@%$sbindir%g
3845 s%@libexecdir@%$libexecdir%g
3846 s%@datadir@%$datadir%g
3847 s%@sysconfdir@%$sysconfdir%g
3848 s%@sharedstatedir@%$sharedstatedir%g
3849 s%@localstatedir@%$localstatedir%g
3850 s%@libdir@%$libdir%g
3851 s%@includedir@%$includedir%g
3852 s%@oldincludedir@%$oldincludedir%g
3853 s%@infodir@%$infodir%g
3854 s%@mandir@%$mandir%g
3855 s%@with_fp@%$with_fp%g
3856 s%@with_cvs@%$with_cvs%g
3857 s%@oldest_abi@%$oldest_abi%g
3858 s%@subdirs@%$subdirs%g
3859 s%@force_install@%$force_install%g
3860 s%@all_warnings@%$all_warnings%g
3861 s%@host@%$host%g
3862 s%@host_alias@%$host_alias%g
3863 s%@host_cpu@%$host_cpu%g
3864 s%@host_vendor@%$host_vendor%g
3865 s%@host_os@%$host_os%g
3866 s%@base_machine@%$base_machine%g
3867 s%@sysnames@%$sysnames%g
3868 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3869 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3870 s%@INSTALL_DATA@%$INSTALL_DATA%g
3871 s%@LN_S@%$LN_S%g
3872 s%@PWD_P@%$PWD_P%g
3873 s%@build@%$build%g
3874 s%@build_alias@%$build_alias%g
3875 s%@build_cpu@%$build_cpu%g
3876 s%@build_vendor@%$build_vendor%g
3877 s%@build_os@%$build_os%g
3878 s%@CC@%$CC%g
3879 s%@MAKE@%$MAKE%g
3880 s%@MSGFMT@%$MSGFMT%g
3881 s%@MAKEINFO@%$MAKEINFO%g
3882 s%@SED@%$SED%g
3883 s%@cross_linkable@%$cross_linkable%g
3884 s%@BUILD_CC@%$BUILD_CC%g
3885 s%@cross_compiling@%$cross_compiling%g
3886 s%@CPP@%$CPP%g
3887 s%@AR@%$AR%g
3888 s%@RANLIB@%$RANLIB%g
3889 s%@MIG@%$MIG%g
3890 s%@CCVERSION@%$CCVERSION%g
3891 s%@SYSINCLUDES@%$SYSINCLUDES%g
3892 s%@libc_cv_gcc_static_libgcc@%$libc_cv_gcc_static_libgcc%g
3893 s%@BASH@%$BASH%g
3894 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
3895 s%@KSH@%$KSH%g
3896 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
3897 s%@AWK@%$AWK%g
3898 s%@PERL@%$PERL%g
3899 s%@INSTALL_INFO@%$INSTALL_INFO%g
3900 s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
3901 s%@BISON@%$BISON%g
3902 s%@VERSIONING@%$VERSIONING%g
3903 s%@libc_cv_asm_protected_directive@%$libc_cv_asm_protected_directive%g
3904 s%@libc_cv_z_nodelete@%$libc_cv_z_nodelete%g
3905 s%@libc_cv_z_nodlopen@%$libc_cv_z_nodlopen%g
3906 s%@libc_cv_z_initfirst@%$libc_cv_z_initfirst%g
3907 s%@libc_cv_Bgroup@%$libc_cv_Bgroup%g
3908 s%@libc_cv_z_combreloc@%$libc_cv_z_combreloc%g
3909 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
3910 s%@no_whole_archive@%$no_whole_archive%g
3911 s%@exceptions@%$exceptions%g
3912 s%@LIBGD@%$LIBGD%g
3913 s%@sizeof_long_double@%$sizeof_long_double%g
3914 s%@libc_cv_gcc_unwind_find_fde@%$libc_cv_gcc_unwind_find_fde%g
3915 s%@uname_sysname@%$uname_sysname%g
3916 s%@uname_release@%$uname_release%g
3917 s%@uname_version@%$uname_version%g
3918 s%@stdio@%$stdio%g
3919 s%@old_glibc_headers@%$old_glibc_headers%g
3920 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
3921 s%@libc_cv_localedir@%$libc_cv_localedir%g
3922 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
3923 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
3924 s%@use_ldconfig@%$use_ldconfig%g
3925 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
3926 s%@gnu_ld@%$gnu_ld%g
3927 s%@gnu_as@%$gnu_as%g
3928 s%@elf@%$elf%g
3929 s%@xcoff@%$xcoff%g
3930 s%@static@%$static%g
3931 s%@shared@%$shared%g
3932 s%@pic_default@%$pic_default%g
3933 s%@profile@%$profile%g
3934 s%@omitfp@%$omitfp%g
3935 s%@bounded@%$bounded%g
3936 s%@static_nss@%$static_nss%g
3937 s%@nopic_initfini@%$nopic_initfini%g
3938 s%@DEFINES@%$DEFINES%g
3939 s%@linux_doors@%$linux_doors%g
3940 s%@VERSION@%$VERSION%g
3941 s%@RELEASE@%$RELEASE%g
3943 CEOF
3946 cat >> $CONFIG_STATUS <<\EOF
3948 # Split the substitutions into bite-sized pieces for seds with
3949 # small command number limits, like on Digital OSF/1 and HP-UX.
3950 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3951 ac_file=1 # Number of current file.
3952 ac_beg=1 # First line for current file.
3953 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3954 ac_more_lines=:
3955 ac_sed_cmds=""
3956 while $ac_more_lines; do
3957 if test $ac_beg -gt 1; then
3958 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3959 else
3960 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3962 if test ! -s conftest.s$ac_file; then
3963 ac_more_lines=false
3964 rm -f conftest.s$ac_file
3965 else
3966 if test -z "$ac_sed_cmds"; then
3967 ac_sed_cmds="sed -f conftest.s$ac_file"
3968 else
3969 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3971 ac_file=`expr $ac_file + 1`
3972 ac_beg=$ac_end
3973 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3975 done
3976 if test -z "$ac_sed_cmds"; then
3977 ac_sed_cmds=cat
3981 cat >> $CONFIG_STATUS <<EOF
3983 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3985 cat >> $CONFIG_STATUS <<\EOF
3986 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3987 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3988 case "$ac_file" in
3989 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3990 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3991 *) ac_file_in="${ac_file}.in" ;;
3992 esac
3994 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3996 # Remove last slash and all that follows it. Not all systems have dirname.
3997 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3998 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3999 # The file is in a subdirectory.
4000 test ! -d "$ac_dir" && mkdir "$ac_dir"
4001 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4002 # A "../" for each directory in $ac_dir_suffix.
4003 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4004 else
4005 ac_dir_suffix= ac_dots=
4008 case "$ac_given_srcdir" in
4009 .) srcdir=.
4010 if test -z "$ac_dots"; then top_srcdir=.
4011 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4012 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4013 *) # Relative path.
4014 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4015 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4016 esac
4018 case "$ac_given_INSTALL" in
4019 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4020 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4021 esac
4023 echo creating "$ac_file"
4024 rm -f "$ac_file"
4025 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4026 case "$ac_file" in
4027 *Makefile*) ac_comsub="1i\\
4028 # $configure_input" ;;
4029 *) ac_comsub= ;;
4030 esac
4032 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4033 sed -e "$ac_comsub
4034 s%@configure_input@%$configure_input%g
4035 s%@srcdir@%$srcdir%g
4036 s%@top_srcdir@%$top_srcdir%g
4037 s%@INSTALL@%$INSTALL%g
4038 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4039 fi; done
4040 rm -f conftest.s*
4042 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4043 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4045 # ac_d sets the value in "#define NAME VALUE" lines.
4046 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4047 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4048 ac_dC='\3'
4049 ac_dD='%g'
4050 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4051 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4052 ac_uB='\([ ]\)%\1#\2define\3'
4053 ac_uC=' '
4054 ac_uD='\4%g'
4055 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4056 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4057 ac_eB='$%\1#\2define\3'
4058 ac_eC=' '
4059 ac_eD='%g'
4061 if test "${CONFIG_HEADERS+set}" != set; then
4063 cat >> $CONFIG_STATUS <<EOF
4064 CONFIG_HEADERS="config.h"
4066 cat >> $CONFIG_STATUS <<\EOF
4068 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4069 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4070 case "$ac_file" in
4071 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4072 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4073 *) ac_file_in="${ac_file}.in" ;;
4074 esac
4076 echo creating $ac_file
4078 rm -f conftest.frag conftest.in conftest.out
4079 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4080 cat $ac_file_inputs > conftest.in
4084 # Transform confdefs.h into a sed script conftest.vals that substitutes
4085 # the proper values into config.h.in to produce config.h. And first:
4086 # Protect against being on the right side of a sed subst in config.status.
4087 # Protect against being in an unquoted here document in config.status.
4088 rm -f conftest.vals
4089 cat > conftest.hdr <<\EOF
4090 s/[\\&%]/\\&/g
4091 s%[\\$`]%\\&%g
4092 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4093 s%ac_d%ac_u%gp
4094 s%ac_u%ac_e%gp
4096 sed -n -f conftest.hdr confdefs.h > conftest.vals
4097 rm -f conftest.hdr
4099 # This sed command replaces #undef with comments. This is necessary, for
4100 # example, in the case of _POSIX_SOURCE, which is predefined and required
4101 # on some systems where configure will not decide to define it.
4102 cat >> conftest.vals <<\EOF
4103 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4106 # Break up conftest.vals because some shells have a limit on
4107 # the size of here documents, and old seds have small limits too.
4109 rm -f conftest.tail
4110 while :
4112 ac_lines=`grep -c . conftest.vals`
4113 # grep -c gives empty output for an empty file on some AIX systems.
4114 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4115 # Write a limited-size here document to conftest.frag.
4116 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4117 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4118 echo 'CEOF
4119 sed -f conftest.frag conftest.in > conftest.out
4120 rm -f conftest.in
4121 mv conftest.out conftest.in
4122 ' >> $CONFIG_STATUS
4123 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4124 rm -f conftest.vals
4125 mv conftest.tail conftest.vals
4126 done
4127 rm -f conftest.vals
4129 cat >> $CONFIG_STATUS <<\EOF
4130 rm -f conftest.frag conftest.h
4131 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4132 cat conftest.in >> conftest.h
4133 rm -f conftest.in
4134 if cmp -s $ac_file conftest.h 2>/dev/null; then
4135 echo "$ac_file is unchanged"
4136 rm -f conftest.h
4137 else
4138 # Remove last slash and all that follows it. Not all systems have dirname.
4139 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4140 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4141 # The file is in a subdirectory.
4142 test ! -d "$ac_dir" && mkdir "$ac_dir"
4144 rm -f $ac_file
4145 mv conftest.h $ac_file
4147 fi; done
4151 cat >> $CONFIG_STATUS <<EOF
4152 ac_sources="`echo $libc_link_sources`"
4153 ac_dests="`echo $libc_link_dests`"
4156 cat >> $CONFIG_STATUS <<\EOF
4157 srcdir=$ac_given_srcdir
4158 while test -n "$ac_sources"; do
4159 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4160 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4162 echo "linking $srcdir/$ac_source to $ac_dest"
4164 if test ! -r $srcdir/$ac_source; then
4165 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4167 rm -f $ac_dest
4169 # Make relative symlinks.
4170 # Remove last slash and all that follows it. Not all systems have dirname.
4171 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4172 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4173 # The dest file is in a subdirectory.
4174 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4175 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4176 # A "../" for each directory in $ac_dest_dir_suffix.
4177 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4178 else
4179 ac_dest_dir_suffix= ac_dots=
4182 case "$srcdir" in
4183 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4184 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4185 esac
4187 # Make a symlink if possible; otherwise try a hard link.
4188 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4189 ln $srcdir/$ac_source $ac_dest; then :
4190 else
4191 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4193 done
4195 cat >> $CONFIG_STATUS <<EOF
4196 config_vars='$config_vars'
4198 cat >> $CONFIG_STATUS <<\EOF
4200 case $CONFIG_FILES in *config.make*)
4201 echo "$config_vars" >> config.make;;
4202 esac
4203 test -d bits || mkdir bits
4204 exit 0
4206 chmod +x $CONFIG_STATUS
4207 rm -fr confdefs* $ac_clean_files
4208 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4210 if test "$no_recursion" != yes; then
4212 # Remove --cache-file and --srcdir arguments so they do not pile up.
4213 ac_sub_configure_args=
4214 ac_prev=
4215 for ac_arg in $ac_configure_args; do
4216 if test -n "$ac_prev"; then
4217 ac_prev=
4218 continue
4220 case "$ac_arg" in
4221 -cache-file | --cache-file | --cache-fil | --cache-fi \
4222 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4223 ac_prev=cache_file ;;
4224 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4225 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4228 ac_prev=srcdir ;;
4229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4231 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4232 esac
4233 done
4235 for ac_config_dir in $add_ons; do
4237 # Do not complain, so a configure script can configure whichever
4238 # parts of a large source tree are present.
4239 if test ! -d $srcdir/$ac_config_dir; then
4240 continue
4243 echo configuring in $ac_config_dir
4245 case "$srcdir" in
4246 .) ;;
4248 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4249 else
4250 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4253 esac
4255 ac_popdir=`pwd`
4256 cd $ac_config_dir
4258 # A "../" for each directory in /$ac_config_dir.
4259 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4261 case "$srcdir" in
4262 .) # No --srcdir option. We are building in place.
4263 ac_sub_srcdir=$srcdir ;;
4264 /*) # Absolute path.
4265 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4266 *) # Relative path.
4267 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4268 esac
4270 # Check for guested configure; otherwise get Cygnus style configure.
4271 if test -f $ac_sub_srcdir/configure; then
4272 ac_sub_configure=$ac_sub_srcdir/configure
4273 elif test -f $ac_sub_srcdir/configure.in; then
4274 ac_sub_configure=$ac_configure
4275 else
4276 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4277 ac_sub_configure=
4280 # The recursion is here.
4281 if test -n "$ac_sub_configure"; then
4283 # Make the cache file name correct relative to the subdirectory.
4284 case "$cache_file" in
4285 /*) ac_sub_cache_file=$cache_file ;;
4286 *) # Relative path.
4287 ac_sub_cache_file="$ac_dots$cache_file" ;;
4288 esac
4289 case "$ac_given_INSTALL" in
4290 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4291 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4292 esac
4294 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4295 # The eval makes quoting arguments work.
4296 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4297 then :
4298 else
4299 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
4303 cd $ac_popdir
4304 done