1999-11-29 Andreas Schwab <schwab@suse.de>
[glibc/pb-stable.git] / configure
blobbd39b88498a2ec98ea811ada21286eaad4af13dc
1 #! /bin/sh
3 # From configure.in CVSid
14 # Guess values for system-dependent variables and create Makefiles.
15 # Generated automatically using autoconf version 2.13
16 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
18 # This configure script is free software; the Free Software Foundation
19 # gives unlimited permission to copy, distribute and modify it.
21 # Defaults:
22 ac_help=
23 ac_default_prefix=/usr/local
24 # Any additions from configure.in:
25 ac_help="$ac_help
26 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
27 ac_help="$ac_help
28 --with-gettext=DIR find GNU gettext source code in DIR (not needed)"
29 ac_help="$ac_help
30 --with-gd=DIR find libgd include dir and library with prefix DIR"
31 ac_help="$ac_help
32 --with-gd-include=DIR find libgd include files in DIR"
33 ac_help="$ac_help
34 --with-gd-lib=DIR find libgd library files in DIR"
35 ac_help="$ac_help
36 --with-fp if using floating-point hardware [default=yes]"
37 ac_help="$ac_help
38 --with-binutils=PATH specify location of binutils (as and ld)"
39 ac_help="$ac_help
40 --with-elf if using the ELF 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-add-ons[=DIR1,DIR2]...
65 configure and build add-ons in DIR1,DIR2,...
66 search for add-ons if no parameter given"
67 ac_help="$ac_help
68 --enable-static-nss build static NSS modules [default=no]"
69 ac_help="$ac_help
70 --disable-force-install don't force installation of files from this package,
71 even if they are older than the installed files"
72 ac_help="$ac_help
73 --enable-kernel=VERSION compile for compatibility with kernel not older
74 than VERSION"
76 # Initialize some variables set by options.
77 # The variables have the same names as the options, with
78 # dashes changed to underlines.
79 build=NONE
80 cache_file=./config.cache
81 exec_prefix=NONE
82 host=NONE
83 no_create=
84 nonopt=NONE
85 no_recursion=
86 prefix=NONE
87 program_prefix=NONE
88 program_suffix=NONE
89 program_transform_name=s,x,x,
90 silent=
91 site=
92 srcdir=
93 target=NONE
94 verbose=
95 x_includes=NONE
96 x_libraries=NONE
97 bindir='${exec_prefix}/bin'
98 sbindir='${exec_prefix}/sbin'
99 libexecdir='${exec_prefix}/libexec'
100 datadir='${prefix}/share'
101 sysconfdir='${prefix}/etc'
102 sharedstatedir='${prefix}/com'
103 localstatedir='${prefix}/var'
104 libdir='${exec_prefix}/lib'
105 includedir='${prefix}/include'
106 oldincludedir='/usr/include'
107 infodir='${prefix}/info'
108 mandir='${prefix}/man'
110 # Initialize some other variables.
111 subdirs=
112 MFLAGS= MAKEFLAGS=
113 SHELL=${CONFIG_SHELL-/bin/sh}
114 # Maximum number of lines to put in a shell here document.
115 ac_max_here_lines=12
117 ac_prev=
118 for ac_option
121 # If the previous option needs an argument, assign it.
122 if test -n "$ac_prev"; then
123 eval "$ac_prev=\$ac_option"
124 ac_prev=
125 continue
128 case "$ac_option" in
129 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
130 *) ac_optarg= ;;
131 esac
133 # Accept the important Cygnus configure options, so we can diagnose typos.
135 case "$ac_option" in
137 -bindir | --bindir | --bindi | --bind | --bin | --bi)
138 ac_prev=bindir ;;
139 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
140 bindir="$ac_optarg" ;;
142 -build | --build | --buil | --bui | --bu)
143 ac_prev=build ;;
144 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
145 build="$ac_optarg" ;;
147 -cache-file | --cache-file | --cache-fil | --cache-fi \
148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
149 ac_prev=cache_file ;;
150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
152 cache_file="$ac_optarg" ;;
154 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
155 ac_prev=datadir ;;
156 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
157 | --da=*)
158 datadir="$ac_optarg" ;;
160 -disable-* | --disable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}=no" ;;
169 -enable-* | --enable-*)
170 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
171 # Reject names that are not valid shell variable names.
172 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
173 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
176 case "$ac_option" in
177 *=*) ;;
178 *) ac_optarg=yes ;;
179 esac
180 eval "enable_${ac_feature}='$ac_optarg'" ;;
182 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
183 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
184 | --exec | --exe | --ex)
185 ac_prev=exec_prefix ;;
186 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
187 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
188 | --exec=* | --exe=* | --ex=*)
189 exec_prefix="$ac_optarg" ;;
191 -gas | --gas | --ga | --g)
192 # Obsolete; use --with-gas.
193 with_gas=yes ;;
195 -help | --help | --hel | --he)
196 # Omit some internal or obsolete options to make the list less imposing.
197 # This message is too long to be a string in the A/UX 3.1 sh.
198 cat << EOF
199 Usage: configure [options] [host]
200 Options: [defaults in brackets after descriptions]
201 Configuration:
202 --cache-file=FILE cache test results in FILE
203 --help print this message
204 --no-create do not create output files
205 --quiet, --silent do not print \`checking...' messages
206 --version print the version of autoconf that created configure
207 Directory and file names:
208 --prefix=PREFIX install architecture-independent files in PREFIX
209 [$ac_default_prefix]
210 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
211 [same as prefix]
212 --bindir=DIR user executables in DIR [EPREFIX/bin]
213 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
214 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
215 --datadir=DIR read-only architecture-independent data in DIR
216 [PREFIX/share]
217 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
218 --sharedstatedir=DIR modifiable architecture-independent data in DIR
219 [PREFIX/com]
220 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
221 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
222 --includedir=DIR C header files in DIR [PREFIX/include]
223 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
224 --infodir=DIR info documentation in DIR [PREFIX/info]
225 --mandir=DIR man documentation in DIR [PREFIX/man]
226 --srcdir=DIR find the sources in DIR [configure dir or ..]
227 --program-prefix=PREFIX prepend PREFIX to installed program names
228 --program-suffix=SUFFIX append SUFFIX to installed program names
229 --program-transform-name=PROGRAM
230 run sed PROGRAM on installed program names
232 cat << EOF
233 Host type:
234 --build=BUILD configure for building on BUILD [BUILD=HOST]
235 --host=HOST configure for HOST [guessed]
236 --target=TARGET configure for TARGET [TARGET=HOST]
237 Features and packages:
238 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
239 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
240 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
241 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
242 --x-includes=DIR X include files are in DIR
243 --x-libraries=DIR X library files are in DIR
245 if test -n "$ac_help"; then
246 echo "--enable and --with options recognized:$ac_help"
248 exit 0 ;;
250 -host | --host | --hos | --ho)
251 ac_prev=host ;;
252 -host=* | --host=* | --hos=* | --ho=*)
253 host="$ac_optarg" ;;
255 -includedir | --includedir | --includedi | --included | --include \
256 | --includ | --inclu | --incl | --inc)
257 ac_prev=includedir ;;
258 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
259 | --includ=* | --inclu=* | --incl=* | --inc=*)
260 includedir="$ac_optarg" ;;
262 -infodir | --infodir | --infodi | --infod | --info | --inf)
263 ac_prev=infodir ;;
264 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
265 infodir="$ac_optarg" ;;
267 -libdir | --libdir | --libdi | --libd)
268 ac_prev=libdir ;;
269 -libdir=* | --libdir=* | --libdi=* | --libd=*)
270 libdir="$ac_optarg" ;;
272 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
273 | --libexe | --libex | --libe)
274 ac_prev=libexecdir ;;
275 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
276 | --libexe=* | --libex=* | --libe=*)
277 libexecdir="$ac_optarg" ;;
279 -localstatedir | --localstatedir | --localstatedi | --localstated \
280 | --localstate | --localstat | --localsta | --localst \
281 | --locals | --local | --loca | --loc | --lo)
282 ac_prev=localstatedir ;;
283 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
284 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
285 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
286 localstatedir="$ac_optarg" ;;
288 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
289 ac_prev=mandir ;;
290 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
291 mandir="$ac_optarg" ;;
293 -nfp | --nfp | --nf)
294 # Obsolete; use --without-fp.
295 with_fp=no ;;
297 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
298 | --no-cr | --no-c)
299 no_create=yes ;;
301 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
302 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
303 no_recursion=yes ;;
305 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
306 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
307 | --oldin | --oldi | --old | --ol | --o)
308 ac_prev=oldincludedir ;;
309 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
310 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
311 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
312 oldincludedir="$ac_optarg" ;;
314 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
315 ac_prev=prefix ;;
316 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
317 prefix="$ac_optarg" ;;
319 -program-prefix | --program-prefix | --program-prefi | --program-pref \
320 | --program-pre | --program-pr | --program-p)
321 ac_prev=program_prefix ;;
322 -program-prefix=* | --program-prefix=* | --program-prefi=* \
323 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
324 program_prefix="$ac_optarg" ;;
326 -program-suffix | --program-suffix | --program-suffi | --program-suff \
327 | --program-suf | --program-su | --program-s)
328 ac_prev=program_suffix ;;
329 -program-suffix=* | --program-suffix=* | --program-suffi=* \
330 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
331 program_suffix="$ac_optarg" ;;
333 -program-transform-name | --program-transform-name \
334 | --program-transform-nam | --program-transform-na \
335 | --program-transform-n | --program-transform- \
336 | --program-transform | --program-transfor \
337 | --program-transfo | --program-transf \
338 | --program-trans | --program-tran \
339 | --progr-tra | --program-tr | --program-t)
340 ac_prev=program_transform_name ;;
341 -program-transform-name=* | --program-transform-name=* \
342 | --program-transform-nam=* | --program-transform-na=* \
343 | --program-transform-n=* | --program-transform-=* \
344 | --program-transform=* | --program-transfor=* \
345 | --program-transfo=* | --program-transf=* \
346 | --program-trans=* | --program-tran=* \
347 | --progr-tra=* | --program-tr=* | --program-t=*)
348 program_transform_name="$ac_optarg" ;;
350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
351 | -silent | --silent | --silen | --sile | --sil)
352 silent=yes ;;
354 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
355 ac_prev=sbindir ;;
356 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
357 | --sbi=* | --sb=*)
358 sbindir="$ac_optarg" ;;
360 -sharedstatedir | --sharedstatedir | --sharedstatedi \
361 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
362 | --sharedst | --shareds | --shared | --share | --shar \
363 | --sha | --sh)
364 ac_prev=sharedstatedir ;;
365 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
366 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
367 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
368 | --sha=* | --sh=*)
369 sharedstatedir="$ac_optarg" ;;
371 -site | --site | --sit)
372 ac_prev=site ;;
373 -site=* | --site=* | --sit=*)
374 site="$ac_optarg" ;;
376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
377 ac_prev=srcdir ;;
378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
379 srcdir="$ac_optarg" ;;
381 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
382 | --syscon | --sysco | --sysc | --sys | --sy)
383 ac_prev=sysconfdir ;;
384 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
385 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
386 sysconfdir="$ac_optarg" ;;
388 -target | --target | --targe | --targ | --tar | --ta | --t)
389 ac_prev=target ;;
390 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
391 target="$ac_optarg" ;;
393 -v | -verbose | --verbose | --verbos | --verbo | --verb)
394 verbose=yes ;;
396 -version | --version | --versio | --versi | --vers)
397 echo "configure generated by autoconf version 2.13"
398 exit 0 ;;
400 -with-* | --with-*)
401 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package=`echo $ac_package| sed 's/-/_/g'`
407 case "$ac_option" in
408 *=*) ;;
409 *) ac_optarg=yes ;;
410 esac
411 eval "with_${ac_package}='$ac_optarg'" ;;
413 -without-* | --without-*)
414 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}=no" ;;
422 --x)
423 # Obsolete; use --with-x.
424 with_x=yes ;;
426 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
427 | --x-incl | --x-inc | --x-in | --x-i)
428 ac_prev=x_includes ;;
429 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
430 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
431 x_includes="$ac_optarg" ;;
433 -x-libraries | --x-libraries | --x-librarie | --x-librari \
434 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
435 ac_prev=x_libraries ;;
436 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
437 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
438 x_libraries="$ac_optarg" ;;
440 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
445 echo "configure: warning: $ac_option: invalid host type" 1>&2
447 if test "x$nonopt" != xNONE; then
448 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
450 nonopt="$ac_option"
453 esac
454 done
456 if test -n "$ac_prev"; then
457 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
460 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462 # File descriptor usage:
463 # 0 standard input
464 # 1 file creation
465 # 2 errors and warnings
466 # 3 some systems may open it to /dev/tty
467 # 4 used on the Kubota Titan
468 # 6 checking for... messages and results
469 # 5 compiler messages saved in config.log
470 if test "$silent" = yes; then
471 exec 6>/dev/null
472 else
473 exec 6>&1
475 exec 5>./config.log
477 echo "\
478 This file contains any messages produced by compilers while
479 running configure, to aid debugging if configure makes a mistake.
480 " 1>&5
482 # Strip out --no-create and --no-recursion so they do not pile up.
483 # Also quote any args containing shell metacharacters.
484 ac_configure_args=
485 for ac_arg
487 case "$ac_arg" in
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c) ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
493 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
494 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
495 esac
496 done
498 # NLS nuisances.
499 # Only set these to C if already set. These must not be set unconditionally
500 # because not all systems understand e.g. LANG=C (notably SCO).
501 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
502 # Non-C LC_CTYPE values break the ctype check.
503 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
504 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
505 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
506 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
508 # confdefs.h avoids OS command line length limits that DEFS can exceed.
509 rm -rf conftest* confdefs.h
510 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
511 echo > confdefs.h
513 # A filename unique to this package, relative to the directory that
514 # configure is in, which we can look for to find out if srcdir is correct.
515 ac_unique_file=include/features.h
517 # Find the source files, if location was not specified.
518 if test -z "$srcdir"; then
519 ac_srcdir_defaulted=yes
520 # Try the directory containing this script, then its parent.
521 ac_prog=$0
522 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
523 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
524 srcdir=$ac_confdir
525 if test ! -r $srcdir/$ac_unique_file; then
526 srcdir=..
528 else
529 ac_srcdir_defaulted=no
531 if test ! -r $srcdir/$ac_unique_file; then
532 if test "$ac_srcdir_defaulted" = yes; then
533 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
534 else
535 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
538 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540 # Prefer explicitly selected file to automatically selected ones.
541 if test -z "$CONFIG_SITE"; then
542 if test "x$prefix" != xNONE; then
543 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
544 else
545 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
548 for ac_site_file in $CONFIG_SITE; do
549 if test -r "$ac_site_file"; then
550 echo "loading site script $ac_site_file"
551 . "$ac_site_file"
553 done
555 if test -r "$cache_file"; then
556 echo "loading cache $cache_file"
557 . $cache_file
558 else
559 echo "creating cache $cache_file"
560 > $cache_file
563 ac_ext=c
564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
565 ac_cpp='$CPP $CPPFLAGS'
566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
568 cross_compiling=$ac_cv_prog_cc_cross
570 ac_exeext=
571 ac_objext=o
572 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
573 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
574 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
575 ac_n= ac_c='
576 ' ac_t=' '
577 else
578 ac_n=-n ac_c= ac_t=
580 else
581 ac_n= ac_c='\c' ac_t=
584 if test -r /vmunix; then
585 kernel_id=`strings /vmunix | grep UNIX`
586 elif test -r /dynix; then
587 kernel_id=`strings /dynix | grep DYNIX`
588 else
589 kernel_id=
594 ac_aux_dir=
595 for ac_dir in scripts $srcdir/scripts; do
596 if test -f $ac_dir/install-sh; then
597 ac_aux_dir=$ac_dir
598 ac_install_sh="$ac_aux_dir/install-sh -c"
599 break
600 elif test -f $ac_dir/install.sh; then
601 ac_aux_dir=$ac_dir
602 ac_install_sh="$ac_aux_dir/install.sh -c"
603 break
605 done
606 if test -z "$ac_aux_dir"; then
607 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
609 ac_config_guess=$ac_aux_dir/config.guess
610 ac_config_sub=$ac_aux_dir/config.sub
611 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
614 # This will get text that should go into config.make.
615 config_vars=
617 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
618 # Check whether --with-gmp or --without-gmp was given.
619 if test "${with_gmp+set}" = set; then
620 withval="$with_gmp"
621 case "$with_gmp" in
622 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
623 ''|no) ;;
624 *) config_vars="$config_vars
625 gmp-srcdir = $withval" ;;
626 esac
630 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
631 # Check whether --with-gettext or --without-gettext was given.
632 if test "${with_gettext+set}" = set; then
633 withval="$with_gettext"
634 case "$with_gettext" in
635 yes)
636 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
637 ''|no) ;;
639 config_vars="$config_vars
640 gettext-srcdir = $withval" ;;
641 esac
645 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
646 # Check whether --with-gd or --without-gd was given.
647 if test "${with_gd+set}" = set; then
648 withval="$with_gd"
649 case "$with_gd" in
650 yes|''|no) ;;
651 *) libgd_include="-I$withval/include"
652 libgd_ldflags="-L$withval/lib" ;;
653 esac
657 # Check whether --with-gd-include or --without-gd-include was given.
658 if test "${with_gd_include+set}" = set; then
659 withval="$with_gd_include"
660 case "$with_gd_include" in
661 ''|no) ;;
662 *) libgd_include="-I$withval" ;;
663 esac
667 # Check whether --with-gd-lib or --without-gd-lib was given.
668 if test "${with_gd_lib+set}" = set; then
669 withval="$with_gd_lib"
670 case "$with_gd_lib" in
671 ''|no) ;;
672 *) libgd_ldflags="-L$withval" ;;
673 esac
678 if test -n "$libgd_include"; then
679 config_vars="$config_vars
680 CFLAGS-memprofstat.c = $libgd_include"
682 if test -n "$libgd_ldflags"; then
683 config_vars="$config_vars
684 libgd-LDFLAGS = $libgd_ldflags"
687 # Check whether --with-fp or --without-fp was given.
688 if test "${with_fp+set}" = set; then
689 withval="$with_fp"
690 with_fp=$withval
691 else
692 with_fp=yes
695 # Check whether --with-binutils or --without-binutils was given.
696 if test "${with_binutils+set}" = set; then
697 withval="$with_binutils"
698 path_binutils=$withval
699 else
700 path_binutils=''
703 # Check whether --with-elf or --without-elf was given.
704 if test "${with_elf+set}" = set; then
705 withval="$with_elf"
706 elf=$withval
707 else
708 elf=no
711 # Check whether --with-cvs or --without-cvs was given.
712 if test "${with_cvs+set}" = set; then
713 withval="$with_cvs"
714 with_cvs=$withval
715 else
716 with_cvs=yes
721 # Check whether --with-headers or --without-headers was given.
722 if test "${with_headers+set}" = set; then
723 withval="$with_headers"
724 sysheaders=$withval
725 else
726 sysheaders=''
730 # Check whether --enable-libio or --disable-libio was given.
731 if test "${enable_libio+set}" = set; then
732 enableval="$enable_libio"
733 if test $enableval = yes; then
734 stdio=libio
735 else
736 stdio=stdio
738 else
739 stdio=default
743 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
744 if test "${enable_sanity_checks+set}" = set; then
745 enableval="$enable_sanity_checks"
746 enable_sanity=$enableval
747 else
748 enable_sanity=yes
752 static=yes
753 # Check whether --enable-shared or --disable-shared was given.
754 if test "${enable_shared+set}" = set; then
755 enableval="$enable_shared"
756 shared=$enableval
757 else
758 shared=default
761 # Check whether --enable-profile or --disable-profile was given.
762 if test "${enable_profile+set}" = set; then
763 enableval="$enable_profile"
764 profile=$enableval
765 else
766 profile=yes
769 # Check whether --enable-omitfp or --disable-omitfp was given.
770 if test "${enable_omitfp+set}" = set; then
771 enableval="$enable_omitfp"
772 omitfp=$enableval
773 else
774 omitfp=no
777 # Check whether --enable-bounded or --disable-bounded was given.
778 if test "${enable_bounded+set}" = set; then
779 enableval="$enable_bounded"
780 bounded=$enableval
781 else
782 bounded=no
785 # Check whether --enable-versioning or --disable-versioning was given.
786 if test "${enable_versioning+set}" = set; then
787 enableval="$enable_versioning"
788 enable_versioning=$enableval
789 else
790 enable_versioning=yes
794 # Check whether --enable-add-ons or --disable-add-ons was given.
795 if test "${enable_add_ons+set}" = set; then
796 enableval="$enable_add_ons"
797 case "$enableval" in
798 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
799 test "$add_ons" = "*" && add_ons= ;;
800 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
801 esac
802 else
803 add_ons=
807 subdirs="$add_ons"
809 add_ons_pfx=
810 if test x"$add_ons" != x; then
811 for f in $add_ons; do
812 # Test whether such a subdir really exists.
813 if test -d $srcdir/$f; then
814 add_ons_pfx="$add_ons_pfx $f/"
815 else
816 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
818 done
821 # Check whether --enable-static-nss or --disable-static-nss was given.
822 if test "${enable_static_nss+set}" = set; then
823 enableval="$enable_static_nss"
824 static_nss=$enableval
825 else
826 static_nss=no
829 if test x"$static_nss" = xyes; then
830 cat >> confdefs.h <<\EOF
831 #define DO_STATIC_NSS 1
836 # Check whether --enable-force-install or --disable-force-install was given.
837 if test "${enable_force_install+set}" = set; then
838 enableval="$enable_force_install"
839 force_install=$enableval
840 else
841 force_install=yes
846 # Check whether --enable-kernel or --disable-kernel was given.
847 if test "${enable_kernel+set}" = set; then
848 enableval="$enable_kernel"
849 minimum_kernel=$enableval
852 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
853 # Better nothing than this.
854 minimum_kernel=""
855 else
856 if test "$minimum_kernel" = current; then
857 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
862 # Make sure we can run config.sub.
863 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
864 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
867 echo $ac_n "checking host system type""... $ac_c" 1>&6
868 echo "configure:869: checking host system type" >&5
870 host_alias=$host
871 case "$host_alias" in
872 NONE)
873 case $nonopt in
874 NONE)
875 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
876 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
877 fi ;;
878 *) host_alias=$nonopt ;;
879 esac ;;
880 esac
882 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
883 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
884 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
885 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
886 echo "$ac_t""$host" 1>&6
889 # The way shlib-versions is used to generate soversions.mk uses a
890 # fairly simplistic model for name recognition that can't distinguish
891 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
892 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
893 # tell. This doesn't get used much beyond that, so it's fairly safe.
894 case "$host_os" in
895 linux*)
897 gnu*)
898 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
900 esac
902 # We keep the original values in `$config_*' and never modify them, so we
903 # can write them unchanged into config.make. Everything else uses
904 # $machine, $vendor, and $os, and changes them whenever convenient.
905 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
907 # Some configurations imply other options.
908 case "$host_os" in
909 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
910 # These systems always use GNU tools.
911 gnu_ld=yes gnu_as=yes ;;
912 esac
913 case "$host_os" in
914 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
915 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
917 gnu* | linux* | sysv4* | solaris2* | irix6*)
918 # These systems (almost) always use the ELF format.
919 elf=yes
921 esac
923 machine=$config_machine
924 vendor=$config_vendor
925 os=$config_os
928 ### I put this here to prevent those annoying emails from people who cannot
929 ### read and try to compile glibc on unsupported platforms. --drepper
931 ### By using the undocumented --enable-hacker-mode option for configure
932 ### one can skip this test to make the configuration not fail for unsupported
933 ### platforms.
935 if test -z "$enable_hacker_mode"; then
936 case "$machine-$host_os" in
937 *-linux* | *-gnu* | arm*-none*)
940 echo "*** The GNU C library is currently not available for this platform."
941 echo "*** So far nobody cared to port it and if there is no volunteer it"
942 echo "*** might never happen. So, if you have interest to see glibc on"
943 echo "*** this platform visit"
944 echo "*** http://www.gnu.org/software/libc/porting.html"
945 echo "*** and join the group of porters"
946 exit 1
948 esac
951 # Expand the configuration machine name into a subdirectory by architecture
952 # type and particular chip.
953 case "$machine" in
954 a29k | am29000) base_machine=a29k machine=a29k ;;
955 alpha*) base_machine=alpha machine=alpha/$machine ;;
956 arm*) base_machine=arm machine=arm/$machine ;;
957 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
958 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
959 hppa*) base_machine=hppa machine=hppa/$machine ;;
960 i[3456]86) base_machine=i386 machine=i386/$machine ;;
961 m680?0) base_machine=m68k machine=m68k/$machine ;;
962 m68k) base_machine=m68k machine=m68k/m68020 ;;
963 m88???) base_machine=m88k machine=m88k/$machine ;;
964 m88k) base_machine=m88k machine=m88k/m88100 ;;
965 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
966 mips*) base_machine=mips
967 case "`uname -m`" in
968 IP22) machine=mips/mips3 ;;
969 *) machine=mips/$machine ;;
970 esac ;;
971 sparc | sparcv[67])
972 base_machine=sparc machine=sparc/sparc32 ;;
973 sparcv8 | supersparc | hypersparc)
974 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
975 sparcv8plus | sparcv8plusa | sparcv9)
976 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
977 sparc64 | ultrasparc)
978 base_machine=sparc machine=sparc/sparc64 ;;
979 esac
982 if test "$base_machine" = "i386"; then
983 cat >> confdefs.h <<\EOF
984 #define USE_REGPARMS 1
989 # Compute the list of sysdep directories for this configuration.
990 # This can take a while to compute.
991 sysdep_dir=$srcdir/sysdeps
992 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
993 echo "configure:994: checking sysdep dirs" >&5
994 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
995 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
997 case "$os" in
998 gnu*)
999 base_os=mach/hurd ;;
1000 netbsd* | 386bsd* | freebsd* | bsdi*)
1001 base_os=unix/bsd/bsd4.4 ;;
1002 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1003 base_os=unix/bsd ;;
1004 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1005 base_os=unix/sysv ;;
1006 irix6*)
1007 base_os=unix/sysv/irix6/$os ;;
1008 solaris[2-9]*)
1009 base_os=unix/sysv/sysv4 ;;
1010 hpux*)
1011 base_os=unix/sysv/hpux/$os ;;
1012 none)
1013 base_os=standalone ;;
1015 base_os='' ;;
1016 esac
1018 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1019 tail=$os
1020 ostry=$os
1021 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1022 ostry="$ostry /$o"
1023 tail=$o
1024 done
1025 o=`echo $tail | sed 's/[0-9]*$//'`
1026 if test $o != $tail; then
1027 ostry="$ostry /$o"
1029 # For linux-gnu, try linux-gnu, then linux.
1030 o=`echo $tail | sed 's/-.*$//'`
1031 if test $o != $tail; then
1032 ostry="$ostry /$o"
1035 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1036 base=
1037 tail=$base_os
1038 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1039 set $b
1040 base="$base /$1"
1041 tail="$2"
1042 done
1044 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1045 mach=
1046 tail=$machine
1047 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1048 set $m
1049 # Prepend the machine's FPU directory unless --without-fp.
1050 if test "$with_fp" = yes; then
1051 mach="$mach /$1/fpu"
1053 mach="$mach /$1"
1054 tail="$2"
1055 done
1058 # Find what sysdep directories exist.
1059 sysnames=
1060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1061 for d in $add_ons_pfx ''; do
1062 for b in $base ''; do
1063 for m0 in $mach ''; do
1064 for v in /$vendor ''; do
1065 test "$v" = / && continue
1066 for o in /$ostry ''; do
1067 test "$o" = / && continue
1068 for m in $mach ''; do
1069 if test "$m0$b$v$o$m"; then
1070 try="${d}sysdeps$m0$b$v$o$m"
1071 test -n "$enable_debug_configure" &&
1072 echo "$0 DEBUG: try $try" >&2
1073 if test -d $srcdir/$try; then
1074 sysnames="$sysnames $try"
1075 { test -n "$o" || test -n "$b"; } && os_used=t
1076 { test -n "$m" || test -n "$m0"; } && machine_used=t
1079 done
1080 done
1081 done
1082 done
1083 done
1084 done
1085 IFS="$ac_save_ifs"
1087 if test -z "$os_used" && test "$os" != none; then
1088 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1090 if test -z "$machine_used" && test "$machine" != none; then
1091 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1094 # We have now validated the configuration.
1097 # If using ELF, look for an `elf' subdirectory of each machine directory.
1098 # We prepend these rather than inserting them whereever the machine appears
1099 # because things specified by the machine's ELF ABI should override
1100 # OS-specific things, and should always be the same for any OS on the
1101 # machine (otherwise what's the point of an ABI?).
1102 if test "$elf" = yes; then
1103 elf_dirs=
1104 for d in $add_ons_pfx ''; do
1105 for m in $mach; do
1106 if test -d $srcdir/${d}sysdeps$m/elf; then
1107 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1109 done
1110 done
1111 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1115 # Expand the list of system names into a full list of directories
1116 # from each element's parent name and Implies file (if present).
1117 set $sysnames
1118 names=
1119 while test $# -gt 0; do
1120 name=$1
1121 shift
1123 case " $names " in *" $name "*)
1124 # Already in the list.
1125 continue
1126 esac
1128 # Report each name as we discover it, so there is no long pause in output.
1129 echo $ac_n "$name $ac_c" >&6
1131 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1133 case $name in
1134 /*) xsrcdir= ;;
1135 *) xsrcdir=$srcdir/ ;;
1136 esac
1137 test -n "$enable_debug_configure" &&
1138 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1140 if test -f $xsrcdir$name/Implies; then
1141 # Collect more names from the `Implies' file (removing comments).
1142 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1143 implied=
1144 for x in $implied_candidate; do
1145 if test -d $xsrcdir$name_base/$x; then
1146 implied="$implied $name_base/$x";
1147 else
1148 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1150 done
1151 else
1152 implied=
1155 # Add NAME to the list of names.
1156 names="$names $name"
1158 # Find the parent of NAME, using the empty string if it has none.
1159 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1161 # Add the names implied by NAME, and NAME's parent (if it has one), to
1162 # the list of names to be processed (the argument list). We prepend the
1163 # implied names to the list and append the parent. We want implied
1164 # directories to come before further directories inferred from the
1165 # configuration components; this ensures that for sysv4, unix/common
1166 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1167 # after sysv4).
1168 sysnames="`echo $implied $* $parent`"
1169 test -n "$sysnames" && set $sysnames
1170 done
1172 # Add the default directories.
1173 default_sysnames=sysdeps/generic
1174 if test "$elf" = yes; then
1175 default_sysnames="sysdeps/generic/elf $default_sysnames"
1177 sysnames="$names $default_sysnames"
1179 # The other names were emitted during the scan.
1180 echo "$ac_t""$default_sysnames" 1>&6
1183 ### Locate tools.
1185 # Find a good install program. We prefer a C program (faster),
1186 # so one script is as good as another. But avoid the broken or
1187 # incompatible versions:
1188 # SysV /etc/install, /usr/sbin/install
1189 # SunOS /usr/etc/install
1190 # IRIX /sbin/install
1191 # AIX /bin/install
1192 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1193 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1194 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1195 # ./install, which can be erroneously created by make from ./install.sh.
1196 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1197 echo "configure:1198: checking for a BSD compatible install" >&5
1198 if test -z "$INSTALL"; then
1199 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1201 else
1202 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1203 for ac_dir in $PATH; do
1204 # Account for people who put trailing slashes in PATH elements.
1205 case "$ac_dir/" in
1206 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1208 # OSF1 and SCO ODT 3.0 have their own names for install.
1209 # Don't use installbsd from OSF since it installs stuff as root
1210 # by default.
1211 for ac_prog in ginstall scoinst install; do
1212 if test -f $ac_dir/$ac_prog; then
1213 if test $ac_prog = install &&
1214 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1215 # AIX install. It has an incompatible calling convention.
1217 else
1218 ac_cv_path_install="$ac_dir/$ac_prog -c"
1219 break 2
1222 done
1224 esac
1225 done
1226 IFS="$ac_save_IFS"
1229 if test "${ac_cv_path_install+set}" = set; then
1230 INSTALL="$ac_cv_path_install"
1231 else
1232 # As a last resort, use the slow shell script. We don't cache a
1233 # path for INSTALL within a source directory, because that will
1234 # break other packages using the cache if that directory is
1235 # removed, or if the path is relative.
1236 INSTALL="$ac_install_sh"
1239 echo "$ac_t""$INSTALL" 1>&6
1241 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1242 # It thinks the first close brace ends the variable substitution.
1243 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1245 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1247 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1249 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
1250 # The makefiles need to use a different form to find it in $srcdir.
1251 INSTALL='\$(..)./scripts/install-sh -c'
1253 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1254 echo "configure:1255: checking whether ln -s works" >&5
1255 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1257 else
1258 rm -f conftestdata
1259 if ln -s X conftestdata 2>/dev/null
1260 then
1261 rm -f conftestdata
1262 ac_cv_prog_LN_S="ln -s"
1263 else
1264 ac_cv_prog_LN_S=ln
1267 LN_S="$ac_cv_prog_LN_S"
1268 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1269 echo "$ac_t""yes" 1>&6
1270 else
1271 echo "$ac_t""no" 1>&6
1275 # These programs are version sensitive.
1276 echo $ac_n "checking build system type""... $ac_c" 1>&6
1277 echo "configure:1278: checking build system type" >&5
1279 build_alias=$build
1280 case "$build_alias" in
1281 NONE)
1282 case $nonopt in
1283 NONE) build_alias=$host_alias ;;
1284 *) build_alias=$nonopt ;;
1285 esac ;;
1286 esac
1288 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1289 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1290 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1291 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1292 echo "$ac_t""$build" 1>&6
1294 if test $host != $build; then
1295 ac_tool_prefix=${host_alias}-
1296 else
1297 ac_tool_prefix=
1300 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
1302 # Extract the first word of "$ac_prog", so it can be a program name with args.
1303 set dummy $ac_prog; ac_word=$2
1304 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1305 echo "configure:1306: checking for $ac_word" >&5
1306 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&6
1308 else
1309 if test -n "$CC"; then
1310 ac_cv_prog_CC="$CC" # Let the user override the test.
1311 else
1312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1313 ac_dummy="$PATH"
1314 for ac_dir in $ac_dummy; do
1315 test -z "$ac_dir" && ac_dir=.
1316 if test -f $ac_dir/$ac_word; then
1317 ac_cv_prog_CC="$ac_prog"
1318 break
1320 done
1321 IFS="$ac_save_ifs"
1324 CC="$ac_cv_prog_CC"
1325 if test -n "$CC"; then
1326 echo "$ac_t""$CC" 1>&6
1327 else
1328 echo "$ac_t""no" 1>&6
1331 test -n "$CC" && break
1332 done
1334 if test -z "$CC"; then
1335 ac_verc_fail=yes
1336 else
1337 # Found it, now check the version.
1338 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1339 echo "configure:1340: checking version of $CC" >&5
1340 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustp-]*[0-9.]*\).*$/\1/p'`
1341 case $ac_prog_version in
1342 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1343 egcs-2.9[1-9].*|egcs-2.90.2[789]|egcs-2.90.[3-9][0-9]|*gcc-2.9[1-9].*|pgcc-2.90.2[789]|pgcc-2.90.[3-9][0-9]|*2.8.[1-9]*|*2.9|*2.9.[0-9]*|2.9[5-9]*|cygnus-2.9[1-9]*|gcc-2.9[5-9]|gcc-2.1[0-9][0-9])
1344 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1345 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1347 esac
1348 echo "$ac_t""$ac_prog_version" 1>&6
1350 if test $ac_verc_fail = yes; then
1351 critic_missing=t
1354 for ac_prog in gnumake gmake make
1356 # Extract the first word of "$ac_prog", so it can be a program name with args.
1357 set dummy $ac_prog; ac_word=$2
1358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1359 echo "configure:1360: checking for $ac_word" >&5
1360 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1361 echo $ac_n "(cached) $ac_c" 1>&6
1362 else
1363 if test -n "$MAKE"; then
1364 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1365 else
1366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1367 ac_dummy="$PATH"
1368 for ac_dir in $ac_dummy; do
1369 test -z "$ac_dir" && ac_dir=.
1370 if test -f $ac_dir/$ac_word; then
1371 ac_cv_prog_MAKE="$ac_prog"
1372 break
1374 done
1375 IFS="$ac_save_ifs"
1378 MAKE="$ac_cv_prog_MAKE"
1379 if test -n "$MAKE"; then
1380 echo "$ac_t""$MAKE" 1>&6
1381 else
1382 echo "$ac_t""no" 1>&6
1385 test -n "$MAKE" && break
1386 done
1388 if test -z "$MAKE"; then
1389 ac_verc_fail=yes
1390 else
1391 # Found it, now check the version.
1392 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1393 echo "configure:1394: checking version of $MAKE" >&5
1394 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
1395 case $ac_prog_version in
1396 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1397 3.75 | 3.76.[1-9]* | 3.7[789]* | 3.[89]*)
1398 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1399 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1401 esac
1402 echo "$ac_t""$ac_prog_version" 1>&6
1404 if test $ac_verc_fail = yes; then
1405 critic_missing=t
1409 for ac_prog in gnumsgfmt gmsgfmt msgfmt
1411 # Extract the first word of "$ac_prog", so it can be a program name with args.
1412 set dummy $ac_prog; ac_word=$2
1413 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1414 echo "configure:1415: checking for $ac_word" >&5
1415 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1416 echo $ac_n "(cached) $ac_c" 1>&6
1417 else
1418 if test -n "$MSGFMT"; then
1419 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1420 else
1421 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1422 ac_dummy="$PATH"
1423 for ac_dir in $ac_dummy; do
1424 test -z "$ac_dir" && ac_dir=.
1425 if test -f $ac_dir/$ac_word; then
1426 ac_cv_prog_MSGFMT="$ac_prog"
1427 break
1429 done
1430 IFS="$ac_save_ifs"
1433 MSGFMT="$ac_cv_prog_MSGFMT"
1434 if test -n "$MSGFMT"; then
1435 echo "$ac_t""$MSGFMT" 1>&6
1436 else
1437 echo "$ac_t""no" 1>&6
1440 test -n "$MSGFMT" && break
1441 done
1443 if test -z "$MSGFMT"; then
1444 ac_verc_fail=yes
1445 else
1446 # Found it, now check the version.
1447 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1448 echo "configure:1449: checking version of $MSGFMT" >&5
1449 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1450 case $ac_prog_version in
1451 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1452 0.[1-9][0-9].* | [1-9].*)
1453 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1454 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1456 esac
1457 echo "$ac_t""$ac_prog_version" 1>&6
1459 if test $ac_verc_fail = yes; then
1460 MSGFMT=: aux_missing=t
1463 for ac_prog in makeinfo
1465 # Extract the first word of "$ac_prog", so it can be a program name with args.
1466 set dummy $ac_prog; ac_word=$2
1467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1468 echo "configure:1469: checking for $ac_word" >&5
1469 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1471 else
1472 if test -n "$MAKEINFO"; then
1473 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1474 else
1475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1476 ac_dummy="$PATH"
1477 for ac_dir in $ac_dummy; do
1478 test -z "$ac_dir" && ac_dir=.
1479 if test -f $ac_dir/$ac_word; then
1480 ac_cv_prog_MAKEINFO="$ac_prog"
1481 break
1483 done
1484 IFS="$ac_save_ifs"
1487 MAKEINFO="$ac_cv_prog_MAKEINFO"
1488 if test -n "$MAKEINFO"; then
1489 echo "$ac_t""$MAKEINFO" 1>&6
1490 else
1491 echo "$ac_t""no" 1>&6
1494 test -n "$MAKEINFO" && break
1495 done
1497 if test -z "$MAKEINFO"; then
1498 ac_verc_fail=yes
1499 else
1500 # Found it, now check the version.
1501 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1502 echo "configure:1503: checking version of $MAKEINFO" >&5
1503 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
1504 case $ac_prog_version in
1505 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1506 3.1[1-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9])
1507 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1508 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1510 esac
1511 echo "$ac_t""$ac_prog_version" 1>&6
1513 if test $ac_verc_fail = yes; then
1514 MAKEINFO=: aux_missing=t
1518 if test -n "$critic_missing"; then
1519 { echo "configure: error:
1520 *** Some critical program is missing or too old.
1521 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1524 test -n "$aux_missing" && echo "configure: warning:
1525 *** An auxiliary program is missing or too old;
1526 *** some features will be disabled.
1527 *** Check the INSTALL file for required versions." 1>&2
1529 # glibcbug.in wants to know the compiler version.
1530 CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
1534 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1535 echo "configure:1536: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1536 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1538 else
1540 ac_ext=c
1541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1542 ac_cpp='$CPP $CPPFLAGS'
1543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1545 cross_compiling=$ac_cv_prog_cc_cross
1547 cat > conftest.$ac_ext << EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1552 main(){return(0);}
1554 if { (eval echo configure:1555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1555 ac_cv_prog_cc_works=yes
1556 # If we can't run a trivial program, we are probably using a cross compiler.
1557 if (./conftest; exit) 2>/dev/null; then
1558 ac_cv_prog_cc_cross=no
1559 else
1560 ac_cv_prog_cc_cross=yes
1562 else
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1565 ac_cv_prog_cc_works=no
1567 rm -fr conftest*
1568 ac_ext=c
1569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1570 ac_cpp='$CPP $CPPFLAGS'
1571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1573 cross_compiling=$ac_cv_prog_cc_cross
1577 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1578 if test $ac_cv_prog_cc_works = no; then
1579 cross_linkable=no
1580 ac_cv_prog_cc_cross=yes
1581 else
1582 cross_linkable=yes
1584 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1585 echo "configure:1586: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1586 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1588 else
1592 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1594 cross_compiling=$ac_cv_prog_cc_cross
1596 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1597 echo "configure:1598: checking whether we are using GNU C" >&5
1598 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1599 echo $ac_n "(cached) $ac_c" 1>&6
1600 else
1601 cat > conftest.c <<EOF
1602 #ifdef __GNUC__
1603 yes;
1604 #endif
1606 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1607 ac_cv_prog_gcc=yes
1608 else
1609 ac_cv_prog_gcc=no
1613 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1614 if test $ac_cv_prog_gcc != yes; then
1615 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1618 echo $ac_n "checking build system type""... $ac_c" 1>&6
1619 echo "configure:1620: checking build system type" >&5
1621 build_alias=$build
1622 case "$build_alias" in
1623 NONE)
1624 case $nonopt in
1625 NONE) build_alias=$host_alias ;;
1626 *) build_alias=$nonopt ;;
1627 esac ;;
1628 esac
1630 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1631 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1632 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1633 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1634 echo "$ac_t""$build" 1>&6
1636 if test $host != $build; then
1637 for ac_prog in gcc cc
1639 # Extract the first word of "$ac_prog", so it can be a program name with args.
1640 set dummy $ac_prog; ac_word=$2
1641 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1642 echo "configure:1643: checking for $ac_word" >&5
1643 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1645 else
1646 if test -n "$BUILD_CC"; then
1647 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1648 else
1649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1650 ac_dummy="$PATH"
1651 for ac_dir in $ac_dummy; do
1652 test -z "$ac_dir" && ac_dir=.
1653 if test -f $ac_dir/$ac_word; then
1654 ac_cv_prog_BUILD_CC="$ac_prog"
1655 break
1657 done
1658 IFS="$ac_save_ifs"
1661 BUILD_CC="$ac_cv_prog_BUILD_CC"
1662 if test -n "$BUILD_CC"; then
1663 echo "$ac_t""$BUILD_CC" 1>&6
1664 else
1665 echo "$ac_t""no" 1>&6
1668 test -n "$BUILD_CC" && break
1669 done
1673 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1674 echo "configure:1675: checking how to run the C preprocessor" >&5
1675 # On Suns, sometimes $CPP names a directory.
1676 if test -n "$CPP" && test -d "$CPP"; then
1677 CPP=
1679 if test -z "$CPP"; then
1680 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1681 echo $ac_n "(cached) $ac_c" 1>&6
1682 else
1683 # This must be in double quotes, not single quotes, because CPP may get
1684 # substituted into the Makefile and "${CC-cc}" will confuse make.
1685 CPP="${CC-cc} -E"
1686 # On the NeXT, cc -E runs the code through the compiler's parser,
1687 # not just through cpp.
1688 cat > conftest.$ac_ext <<EOF
1689 #line 1690 "configure"
1690 #include "confdefs.h"
1691 #include <assert.h>
1692 Syntax Error
1694 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1695 { (eval echo configure:1696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1696 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1697 if test -z "$ac_err"; then
1699 else
1700 echo "$ac_err" >&5
1701 echo "configure: failed program was:" >&5
1702 cat conftest.$ac_ext >&5
1703 rm -rf conftest*
1704 CPP="${CC-cc} -E -traditional-cpp"
1705 cat > conftest.$ac_ext <<EOF
1706 #line 1707 "configure"
1707 #include "confdefs.h"
1708 #include <assert.h>
1709 Syntax Error
1711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1712 { (eval echo configure:1713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1714 if test -z "$ac_err"; then
1716 else
1717 echo "$ac_err" >&5
1718 echo "configure: failed program was:" >&5
1719 cat conftest.$ac_ext >&5
1720 rm -rf conftest*
1721 CPP="${CC-cc} -nologo -E"
1722 cat > conftest.$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1725 #include <assert.h>
1726 Syntax Error
1728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1729 { (eval echo configure:1730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1730 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1731 if test -z "$ac_err"; then
1733 else
1734 echo "$ac_err" >&5
1735 echo "configure: failed program was:" >&5
1736 cat conftest.$ac_ext >&5
1737 rm -rf conftest*
1738 CPP=/lib/cpp
1740 rm -f conftest*
1742 rm -f conftest*
1744 rm -f conftest*
1745 ac_cv_prog_CPP="$CPP"
1747 CPP="$ac_cv_prog_CPP"
1748 else
1749 ac_cv_prog_CPP="$CPP"
1751 echo "$ac_t""$CPP" 1>&6
1753 # Was a --with-binutils option given?
1754 if test -n "$path_binutils"; then
1755 # Make absolute; ensure a single trailing slash.
1756 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1757 CC="$CC -B$path_binutils"
1759 AS=`$CC -print-prog-name=as`
1760 LD=`$CC -print-prog-name=ld`
1761 AR=`$CC -print-prog-name=ar`
1764 # ranlib has to be treated a bit differently since it might not exist at all.
1765 RANLIB=`$CC -print-prog-name=ranlib`
1766 if test $RANLIB = ranlib; then
1767 # This extra check has to happen since gcc simply echos the parameter in
1768 # case it cannot find the value in its own directories.
1769 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1770 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1772 echo "configure:1773: checking for $ac_word" >&5
1773 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1775 else
1776 if test -n "$RANLIB"; then
1777 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1778 else
1779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1780 ac_dummy="$PATH"
1781 for ac_dir in $ac_dummy; do
1782 test -z "$ac_dir" && ac_dir=.
1783 if test -f $ac_dir/$ac_word; then
1784 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1785 break
1787 done
1788 IFS="$ac_save_ifs"
1791 RANLIB="$ac_cv_prog_RANLIB"
1792 if test -n "$RANLIB"; then
1793 echo "$ac_t""$RANLIB" 1>&6
1794 else
1795 echo "$ac_t""no" 1>&6
1799 if test -z "$ac_cv_prog_RANLIB"; then
1800 if test -n "$ac_tool_prefix"; then
1801 # Extract the first word of "ranlib", so it can be a program name with args.
1802 set dummy ranlib; ac_word=$2
1803 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1804 echo "configure:1805: checking for $ac_word" >&5
1805 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1807 else
1808 if test -n "$RANLIB"; then
1809 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1810 else
1811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1812 ac_dummy="$PATH"
1813 for ac_dir in $ac_dummy; do
1814 test -z "$ac_dir" && ac_dir=.
1815 if test -f $ac_dir/$ac_word; then
1816 ac_cv_prog_RANLIB="ranlib"
1817 break
1819 done
1820 IFS="$ac_save_ifs"
1821 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1824 RANLIB="$ac_cv_prog_RANLIB"
1825 if test -n "$RANLIB"; then
1826 echo "$ac_t""$RANLIB" 1>&6
1827 else
1828 echo "$ac_t""no" 1>&6
1831 else
1832 RANLIB=":"
1839 # Determine whether we are using GNU binutils.
1840 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1841 echo "configure:1842: checking whether $AS is GNU as" >&5
1842 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6
1844 else
1845 # Most GNU programs take a -v and spit out some text including
1846 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1847 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1848 libc_cv_prog_as_gnu=yes
1849 else
1850 libc_cv_prog_as_gnu=no
1852 rm -fr contest*
1855 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1856 rm -f a.out
1857 gnu_as=$libc_cv_prog_as_gnu
1859 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1860 echo "configure:1861: checking whether $LD is GNU ld" >&5
1861 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
1862 echo $ac_n "(cached) $ac_c" 1>&6
1863 else
1864 # Most GNU programs take a -v and spit out some text including
1865 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1866 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
1867 libc_cv_prog_ld_gnu=yes
1868 else
1869 libc_cv_prog_ld_gnu=no
1871 rm -fr contest*
1874 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1875 gnu_ld=$libc_cv_prog_ld_gnu
1877 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
1878 set dummy ${ac_tool_prefix}mig; ac_word=$2
1879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1880 echo "configure:1881: checking for $ac_word" >&5
1881 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1883 else
1884 if test -n "$MIG"; then
1885 ac_cv_prog_MIG="$MIG" # Let the user override the test.
1886 else
1887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1888 ac_dummy="$PATH"
1889 for ac_dir in $ac_dummy; do
1890 test -z "$ac_dir" && ac_dir=.
1891 if test -f $ac_dir/$ac_word; then
1892 ac_cv_prog_MIG="${ac_tool_prefix}mig"
1893 break
1895 done
1896 IFS="$ac_save_ifs"
1897 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="mig"
1900 MIG="$ac_cv_prog_MIG"
1901 if test -n "$MIG"; then
1902 echo "$ac_t""$MIG" 1>&6
1903 else
1904 echo "$ac_t""no" 1>&6
1910 # if using special system headers, find out the compiler's sekrit
1911 # header directory and add that to the list. NOTE: Only does the right
1912 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
1913 if test -n "$sysheaders"; then
1914 ccheaders=`$CC -print-file-name=include`
1915 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
1919 # check if ranlib is necessary
1920 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
1921 echo "configure:1922: checking whether ranlib is necessary" >&5
1922 if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1924 else
1925 cat > conftest.c <<EOF
1926 int a;
1927 char b;
1928 void c(void) {}
1930 $CC $CFLAGS -c conftest.c
1931 $AR cr conftest.a conftest.c
1932 cp conftest.a conftest2.a
1933 $RANLIB conftest.a
1934 if cmp -s conftest.a conftest2.a; then
1935 libc_cv_ranlib_necessary=no
1936 else
1937 libc_cv_ranlib_necessary=yes
1939 rm -rf conftest*
1942 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
1943 if test "$libc_cv_ranlib_necessary" = no; then
1944 RANLIB=:
1947 # Test if LD_LIBRARY_PATH contains the notation for the current directory
1948 # since this would lead to problems installing/building glibc.
1949 # LD_LIBRARY_PATH contains the current directory if one of the following
1950 # is true:
1951 # - one of the terminals (":" and ";") is the first or last sign
1952 # - two terminals occur directly after each other
1953 # - the path contains an element with a dot in it
1954 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
1955 echo "configure:1956: checking LD_LIBRARY_PATH variable" >&5
1956 case ${LD_LIBRARY_PATH} in
1957 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1958 ld_library_path_setting="contains current directory"
1961 ld_library_path_setting="ok"
1963 esac
1964 echo "$ac_t""$ld_library_path_setting" 1>&6
1965 if test "$ld_library_path_setting" != "ok"; then
1966 { echo "configure: error:
1967 *** LD_LIBRARY_PATH shouldn't contain the current directory when
1968 *** building glibc. Please change the environment variable
1969 *** and run configure again." 1>&2; exit 1; }
1972 # Extract the first word of "bash", so it can be a program name with args.
1973 set dummy bash; ac_word=$2
1974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1975 echo "configure:1976: checking for $ac_word" >&5
1976 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1977 echo $ac_n "(cached) $ac_c" 1>&6
1978 else
1979 case "$BASH" in
1981 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1983 ?:/*)
1984 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
1987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1988 ac_dummy="$PATH"
1989 for ac_dir in $ac_dummy; do
1990 test -z "$ac_dir" && ac_dir=.
1991 if test -f $ac_dir/$ac_word; then
1992 ac_cv_path_BASH="$ac_dir/$ac_word"
1993 break
1995 done
1996 IFS="$ac_save_ifs"
1997 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
1999 esac
2001 BASH="$ac_cv_path_BASH"
2002 if test -n "$BASH"; then
2003 echo "$ac_t""$BASH" 1>&6
2004 else
2005 echo "$ac_t""no" 1>&6
2008 if test "$BASH" != no &&
2009 $BASH -c 'test "$BASH_VERSINFO" \
2010 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
2011 libc_cv_have_bash2=yes
2012 else
2013 libc_cv_have_bash2=no
2017 if test "$BASH" = no; then
2018 # Extract the first word of "ksh", so it can be a program name with args.
2019 set dummy ksh; ac_word=$2
2020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2021 echo "configure:2022: checking for $ac_word" >&5
2022 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
2023 echo $ac_n "(cached) $ac_c" 1>&6
2024 else
2025 case "$KSH" in
2027 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2029 ?:/*)
2030 ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path.
2033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2034 ac_dummy="$PATH"
2035 for ac_dir in $ac_dummy; do
2036 test -z "$ac_dir" && ac_dir=.
2037 if test -f $ac_dir/$ac_word; then
2038 ac_cv_path_KSH="$ac_dir/$ac_word"
2039 break
2041 done
2042 IFS="$ac_save_ifs"
2043 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
2045 esac
2047 KSH="$ac_cv_path_KSH"
2048 if test -n "$KSH"; then
2049 echo "$ac_t""$KSH" 1>&6
2050 else
2051 echo "$ac_t""no" 1>&6
2054 if test "$KSH" = no; then
2055 libc_cv_have_ksh=no
2056 else
2057 libc_cv_have_ksh=yes
2059 else
2060 KSH="$BASH"
2062 libc_cv_have_ksh=yes
2066 for ac_prog in gawk mawk nawk awk
2068 # Extract the first word of "$ac_prog", so it can be a program name with args.
2069 set dummy $ac_prog; ac_word=$2
2070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2071 echo "configure:2072: checking for $ac_word" >&5
2072 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2074 else
2075 if test -n "$AWK"; then
2076 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2077 else
2078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2079 ac_dummy="$PATH"
2080 for ac_dir in $ac_dummy; do
2081 test -z "$ac_dir" && ac_dir=.
2082 if test -f $ac_dir/$ac_word; then
2083 ac_cv_prog_AWK="$ac_prog"
2084 break
2086 done
2087 IFS="$ac_save_ifs"
2090 AWK="$ac_cv_prog_AWK"
2091 if test -n "$AWK"; then
2092 echo "$ac_t""$AWK" 1>&6
2093 else
2094 echo "$ac_t""no" 1>&6
2097 test -n "$AWK" && break
2098 done
2100 # Extract the first word of "perl", so it can be a program name with args.
2101 set dummy perl; ac_word=$2
2102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2103 echo "configure:2104: checking for $ac_word" >&5
2104 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2106 else
2107 case "$PERL" in
2109 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2111 ?:/*)
2112 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
2115 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2116 ac_dummy="$PATH"
2117 for ac_dir in $ac_dummy; do
2118 test -z "$ac_dir" && ac_dir=.
2119 if test -f $ac_dir/$ac_word; then
2120 ac_cv_path_PERL="$ac_dir/$ac_word"
2121 break
2123 done
2124 IFS="$ac_save_ifs"
2125 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
2127 esac
2129 PERL="$ac_cv_path_PERL"
2130 if test -n "$PERL"; then
2131 echo "$ac_t""$PERL" 1>&6
2132 else
2133 echo "$ac_t""no" 1>&6
2137 # Extract the first word of "install-info", so it can be a program name with args.
2138 set dummy install-info; ac_word=$2
2139 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2140 echo "configure:2141: checking for $ac_word" >&5
2141 if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2143 else
2144 case "$INSTALL_INFO" in
2146 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
2148 ?:/*)
2149 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a dos path.
2152 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2153 ac_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
2154 for ac_dir in $ac_dummy; do
2155 test -z "$ac_dir" && ac_dir=.
2156 if test -f $ac_dir/$ac_word; then
2157 ac_cv_path_INSTALL_INFO="$ac_dir/$ac_word"
2158 break
2160 done
2161 IFS="$ac_save_ifs"
2162 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
2164 esac
2166 INSTALL_INFO="$ac_cv_path_INSTALL_INFO"
2167 if test -n "$INSTALL_INFO"; then
2168 echo "$ac_t""$INSTALL_INFO" 1>&6
2169 else
2170 echo "$ac_t""no" 1>&6
2174 if test "$INSTALL_INFO" != "no"; then
2175 echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
2176 echo "configure:2177: checking for old Debian install-info" >&5
2177 if eval "test \"`echo '$''{'libc_cv_old_debian_install_info'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2179 else
2180 mkdir conftest.d
2181 # There is a hard ^_ on the next line. I am open to better ideas.
2182 (echo '\x1f'
2183 echo 'File: dir Node: Top This is the top of the INFO tree'
2184 echo '* Menu:') >conftest.d/dir
2185 (echo 'INFO-DIR-SECTION i-d-s works'
2186 echo 'START-INFO-DIR-ENTRY'
2187 echo '* Prog: (prog). Program.'
2188 echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
2189 if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
2190 then
2191 if grep -s 'i-d-s works' conftest.d/dir >/dev/null
2192 then libc_cv_old_debian_install_info=no
2193 else libc_cv_old_debian_install_info=yes
2195 else libc_cv_old_debian_install_info=no testfailed=t
2197 rm -fr conftest.d
2200 echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2201 if test -n "$testfailed"
2202 then echo "configure: warning: install-info errored out, check config.log" 1>&2
2204 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
2208 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2209 echo "configure:2210: checking for signed size_t type" >&5
2210 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2211 echo $ac_n "(cached) $ac_c" 1>&6
2212 else
2213 echo '#include <stddef.h>
2214 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2215 if eval "$ac_cpp conftest.c 2>/dev/null" \
2216 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
2217 libc_cv_signed_size_t=no
2218 else
2219 libc_cv_signed_size_t=yes
2221 rm -f conftest*
2224 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2225 if test $libc_cv_signed_size_t = yes; then
2226 cat >> confdefs.h <<\EOF
2227 #undef __SIZE_TYPE__
2228 #define __SIZE_TYPE__ unsigned
2232 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2233 echo "configure:2234: checking for libc-friendly stddef.h" >&5
2234 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2236 else
2237 cat > conftest.$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2240 #define __need_size_t
2241 #define __need_wchar_t
2242 #include <stddef.h>
2243 #define __need_NULL
2244 #include <stddef.h>
2245 int main() {
2246 size_t size; wchar_t wchar;
2247 #ifdef offsetof
2248 #error stddef.h ignored __need_*
2249 #endif
2250 if (&size == NULL || &wchar == NULL) abort ();
2251 ; return 0; }
2253 if { (eval echo configure:2254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2254 rm -rf conftest*
2255 libc_cv_friendly_stddef=yes
2256 else
2257 echo "configure: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2259 rm -rf conftest*
2260 libc_cv_friendly_stddef=no
2262 rm -f conftest*
2265 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2266 if test $libc_cv_friendly_stddef = yes; then
2267 config_vars="$config_vars
2268 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2271 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2272 echo "configure:2273: checking whether we need to use -P to assemble .S files" >&5
2273 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2274 echo $ac_n "(cached) $ac_c" 1>&6
2275 else
2276 cat > conftest.S <<EOF
2277 #include "confdefs.h"
2278 /* Nothing whatsoever. */
2280 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
2281 libc_cv_need_minus_P=no
2282 else
2283 libc_cv_need_minus_P=yes
2285 rm -f conftest*
2288 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2289 if test $libc_cv_need_minus_P = yes; then
2290 config_vars="$config_vars
2291 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2294 echo $ac_n "checking whether .text pseudo-op must be used""... $ac_c" 1>&6
2295 echo "configure:2296: checking whether .text pseudo-op must be used" >&5
2296 if eval "test \"`echo '$''{'libc_cv_dot_text'+set}'`\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2298 else
2299 cat > conftest.s <<EOF
2300 .text
2302 libc_cv_dot_text=
2303 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2304 libc_cv_dot_text=.text
2306 rm -f conftest*
2309 if test -z "$libc_cv_dot_text"; then
2310 echo "$ac_t""no" 1>&6
2311 else
2312 echo "$ac_t""yes" 1>&6
2315 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2316 echo "configure:2317: checking for assembler global-symbol directive" >&5
2317 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2319 else
2320 libc_cv_asm_global_directive=UNKNOWN
2321 for ac_globl in .globl .global .EXPORT; do
2322 cat > conftest.s <<EOF
2323 ${libc_cv_dot_text}
2324 ${ac_globl} foo
2325 foo:
2327 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2328 libc_cv_asm_global_directive=${ac_globl}
2330 rm -f conftest*
2331 test $libc_cv_asm_global_directive != UNKNOWN && break
2332 done
2335 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2336 if test $libc_cv_asm_global_directive = UNKNOWN; then
2337 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2338 else
2339 cat >> confdefs.h <<EOF
2340 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2345 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2346 echo "configure:2347: checking for .set assembler directive" >&5
2347 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2349 else
2350 cat > conftest.s <<EOF
2351 ${libc_cv_dot_text}
2352 foo:
2353 .set glibc_conftest_frobozz,foo
2354 $libc_cv_asm_global_directive glibc_conftest_frobozz
2356 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2357 # (but it doesn't work), so we must do a linking check to be sure.
2358 cat > conftest1.c <<\EOF
2359 extern int glibc_conftest_frobozz;
2360 main () { printf ("%d\n", glibc_conftest_frobozz); }
2362 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2363 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2364 libc_cv_asm_set_directive=yes
2365 else
2366 libc_cv_asm_set_directive=no
2368 rm -f conftest*
2371 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2372 if test $libc_cv_asm_set_directive = yes; then
2373 cat >> confdefs.h <<\EOF
2374 #define HAVE_ASM_SET_DIRECTIVE 1
2379 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2380 echo "configure:2381: checking for .symver assembler directive" >&5
2381 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2382 echo $ac_n "(cached) $ac_c" 1>&6
2383 else
2384 cat > conftest.s <<EOF
2385 ${libc_cv_dot_text}
2386 _sym:
2387 .symver _sym,sym@VERS
2389 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2390 libc_cv_asm_symver_directive=yes
2391 else
2392 libc_cv_asm_symver_directive=no
2394 rm -f conftest*
2397 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2398 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2399 echo "configure:2400: checking for ld --version-script" >&5
2400 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2401 echo $ac_n "(cached) $ac_c" 1>&6
2402 else
2403 if test $libc_cv_asm_symver_directive = yes; then
2404 cat > conftest.s <<EOF
2405 ${libc_cv_dot_text}
2406 _sym:
2407 .symver _sym,sym@VERS
2409 cat > conftest.map <<EOF
2410 VERS_1 {
2411 global: sym;
2414 VERS_2 {
2415 global: sym;
2416 } VERS_1;
2418 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2419 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2420 -nostartfiles -nostdlib
2421 -Wl,--version-script,conftest.map
2422 1>&5'; { (eval echo configure:2423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2423 then
2424 libc_cv_ld_version_script_option=yes
2425 else
2426 libc_cv_ld_version_script_option=no
2428 else
2429 libc_cv_ld_version_script_option=no
2431 else
2432 libc_cv_ld_version_script_option=no
2434 rm -f conftest*
2437 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2438 if test $libc_cv_asm_symver_directive = yes &&
2439 test $libc_cv_ld_version_script_option = yes &&
2440 test $enable_versioning = yes; then
2441 VERSIONING=yes
2442 cat >> confdefs.h <<\EOF
2443 #define DO_VERSIONING 1
2446 else
2447 VERSIONING=no
2451 if test $VERSIONING = no; then
2452 echo "\
2453 *** WARNING: You should not compile GNU libc without versioning. Not using
2454 *** versioning will introduce incompatibilities so that old binaries
2455 *** will not run anymore.
2456 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2458 if test $elf = yes; then
2459 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2460 echo "configure:2461: checking for .previous assembler directive" >&5
2461 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2463 else
2464 cat > conftest.s <<EOF
2465 .section foo_section
2466 .previous
2468 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2469 libc_cv_asm_previous_directive=yes
2470 else
2471 libc_cv_asm_previous_directive=no
2473 rm -f conftest*
2476 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2477 if test $libc_cv_asm_previous_directive = yes; then
2478 cat >> confdefs.h <<\EOF
2479 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2482 else
2483 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2484 echo "configure:2485: checking for .popsection assembler directive" >&5
2485 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2487 else
2488 cat > conftest.s <<EOF
2489 .pushsection foo_section
2490 .popsection
2492 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2493 libc_cv_asm_popsection_directive=yes
2494 else
2495 libc_cv_asm_popsection_directive=no
2497 rm -f conftest*
2500 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2501 if test $libc_cv_asm_popsection_directive = yes; then
2502 cat >> confdefs.h <<\EOF
2503 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2510 if test $elf != yes; then
2511 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2512 echo "configure:2513: checking for .init and .fini sections" >&5
2513 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2515 else
2516 cat > conftest.$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2520 int main() {
2521 asm (".section .init");
2522 asm (".section .fini");
2523 asm ("${libc_cv_dot_text}");
2524 ; return 0; }
2526 if { (eval echo configure:2527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2527 rm -rf conftest*
2528 libc_cv_have_initfini=yes
2529 else
2530 echo "configure: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2532 rm -rf conftest*
2533 libc_cv_have_initfini=no
2535 rm -f conftest*
2538 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2539 if test $libc_cv_have_initfini = yes; then
2540 cat >> confdefs.h <<\EOF
2541 #define HAVE_INITFINI 1
2549 if test $elf = yes; then
2550 libc_cv_asm_underscores=no
2551 else
2552 if test $ac_cv_prog_cc_works = yes; then
2553 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2554 echo "configure:2555: checking for _ prefix on C symbol names" >&5
2555 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2556 echo $ac_n "(cached) $ac_c" 1>&6
2557 else
2558 cat > conftest.$ac_ext <<EOF
2559 #line 2560 "configure"
2560 #include "confdefs.h"
2561 asm ("_glibc_foobar:");
2562 int main() {
2563 glibc_foobar ();
2564 ; return 0; }
2566 if { (eval echo configure:2567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2567 rm -rf conftest*
2568 libc_cv_asm_underscores=yes
2569 else
2570 echo "configure: failed program was:" >&5
2571 cat conftest.$ac_ext >&5
2572 rm -rf conftest*
2573 libc_cv_asm_underscores=no
2575 rm -f conftest*
2578 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2579 else
2580 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2581 echo "configure:2582: checking for _ prefix on C symbol names" >&5
2582 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2584 else
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2588 void underscore_test(void) {
2589 return; }
2591 if { (eval echo configure:2592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2592 if grep _underscore_test conftest* >/dev/null; then
2593 rm -f conftest*
2594 libc_cv_asm_underscores=yes
2595 else
2596 rm -f conftest*
2597 libc_cv_asm_underscores=no
2599 else
2600 echo "configure: failed program was:" >&5
2601 cat conftest.$ac_ext >&5
2602 rm -f conftest*
2603 libc_cv_asm_underscores=no
2605 rm -f conftest*
2608 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2611 if test $libc_cv_asm_underscores = no; then
2612 cat >> confdefs.h <<\EOF
2613 #define NO_UNDERSCORES 1
2618 if test $elf = yes; then
2619 libc_cv_weak_symbols=yes
2622 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2623 echo "configure:2624: checking for assembler .weak directive" >&5
2624 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2626 else
2627 cat > conftest.s <<EOF
2628 ${libc_cv_dot_text}
2629 ${libc_cv_asm_global_directive} foo
2630 foo:
2631 .weak foo
2632 .weak bar; bar = foo
2634 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2635 libc_cv_asm_weak_directive=yes
2636 else
2637 libc_cv_asm_weak_directive=no
2639 rm -f conftest*
2642 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2644 if test $libc_cv_asm_weak_directive = no; then
2645 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2646 echo "configure:2647: checking for assembler .weakext directive" >&5
2647 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
2648 echo $ac_n "(cached) $ac_c" 1>&6
2649 else
2650 cat > conftest.s <<EOF
2651 ${libc_cv_dot_text}
2652 ${libc_cv_asm_global_directive} foo
2653 foo:
2654 .weakext bar foo
2655 .weakext baz
2656 ${libc_cv_asm_global_directive} baz
2657 baz:
2659 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2660 libc_cv_asm_weakext_directive=yes
2661 else
2662 libc_cv_asm_weakext_directive=no
2664 rm -f conftest*
2667 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2669 fi # no .weak
2671 if test $libc_cv_asm_weak_directive = yes; then
2672 cat >> confdefs.h <<\EOF
2673 #define HAVE_ASM_WEAK_DIRECTIVE 1
2676 elif test $libc_cv_asm_weakext_directive = yes; then
2677 cat >> confdefs.h <<\EOF
2678 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2683 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2684 echo "configure:2685: checking for ld --no-whole-archive" >&5
2685 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2686 echo $ac_n "(cached) $ac_c" 1>&6
2687 else
2688 cat > conftest.c <<\EOF
2689 _start () {}
2690 int __eh_pc;
2691 __throw () {}
2693 if { ac_try='${CC-cc} $CFLAGS
2694 -nostdlib -nostartfiles -Wl,--no-whole-archive
2695 -o conftest conftest.c 1>&5'; { (eval echo configure:2696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2696 libc_cv_ld_no_whole_archive=yes
2697 else
2698 libc_cv_ld_no_whole_archive=no
2700 rm -f conftest*
2703 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2704 if test $libc_cv_ld_no_whole_archive = yes; then
2705 no_whole_archive=-Wl,--no-whole-archive
2708 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
2709 echo "configure:2710: checking for gcc -fexceptions" >&5
2710 if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2712 else
2713 cat > conftest.c <<\EOF
2714 _start () {}
2715 int __eh_pc;
2716 __throw () {}
2718 if { ac_try='${CC-cc} $CFLAGS
2719 -nostdlib -nostartfiles -fexceptions
2720 -o conftest conftest.c 1>&5'; { (eval echo configure:2721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2721 libc_cv_gcc_exceptions=yes
2722 else
2723 libc_cv_gcc_exceptions=no
2725 rm -f conftest*
2728 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
2729 if test $libc_cv_gcc_exceptions = yes; then
2730 exceptions=-fexceptions
2733 if test "$base_machine" = alpha ; then
2734 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2735 echo "configure:2736: checking for function ..ng prefix" >&5
2736 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2738 else
2739 cat > conftest.c <<\EOF
2740 foo () { }
2742 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:2743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2743 then
2744 libc_cv_gcc_alpha_ng_prefix=yes
2745 else
2746 libc_cv_gcc_alpha_ng_prefix=no
2748 rm -f conftest*
2751 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2752 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2753 cat >> confdefs.h <<\EOF
2754 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2757 else
2758 cat >> confdefs.h <<\EOF
2759 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2765 if test "$host_cpu" = powerpc ; then
2766 # Check for a bug present in at least versions 2.8.x of GCC
2767 # and versions 1.0.x of EGCS.
2768 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
2769 echo "configure:2770: checking whether clobbering cr0 causes problems" >&5
2770 if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
2771 echo $ac_n "(cached) $ac_c" 1>&6
2772 else
2773 cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2776 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
2777 int main() {
2779 ; return 0; }
2781 if { (eval echo configure:2782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2782 rm -rf conftest*
2783 libc_cv_c_asmcr0_bug='no'
2784 else
2785 echo "configure: failed program was:" >&5
2786 cat conftest.$ac_ext >&5
2787 rm -rf conftest*
2788 libc_cv_c_asmcr0_bug='yes'
2790 rm -f conftest*
2793 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
2794 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
2795 cat >> confdefs.h <<\EOF
2796 #define BROKEN_PPC_ASM_CR0 1
2802 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2803 echo "configure:2804: checking for DWARF2 unwind info support" >&5
2804 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
2805 echo $ac_n "(cached) $ac_c" 1>&6
2806 else
2807 cat > conftest.c <<EOF
2808 #line 2809 "configure"
2809 static char __EH_FRAME_BEGIN__;
2810 _start ()
2812 #ifdef CHECK__register_frame
2813 __register_frame (__EH_FRAME_BEGIN__);
2814 __deregister_frame (__EH_FRAME_BEGIN__);
2815 #endif
2816 #ifdef CHECK__register_frame_info
2817 __register_frame_info (__EH_FRAME_BEGIN__);
2818 __deregister_frame_info (__EH_FRAME_BEGIN__);
2819 #endif
2821 int __eh_pc;
2822 __throw () {}
2823 /* FIXME: this is fragile. */
2824 malloc () {}
2825 strcmp () {}
2826 strlen () {}
2827 memcpy () {}
2828 memset () {}
2829 free () {}
2830 abort () {}
2831 __bzero () {}
2833 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
2834 -nostdlib -nostartfiles
2835 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2836 libc_cv_gcc_dwarf2_unwind_info=static
2837 else
2838 libc_cv_gcc_dwarf2_unwind_info=no
2840 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
2841 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
2842 -nostdlib -nostartfiles
2843 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2844 libc_cv_gcc_dwarf2_unwind_info=yes
2845 else
2846 libc_cv_gcc_dwarf2_unwind_info=no
2849 rm -f conftest*
2852 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
2853 case $libc_cv_gcc_dwarf2_unwind_info in
2854 yes)
2855 cat >> confdefs.h <<\EOF
2856 #define HAVE_DWARF2_UNWIND_INFO 1
2860 static)
2861 cat >> confdefs.h <<\EOF
2862 #define HAVE_DWARF2_UNWIND_INFO 1
2865 cat >> confdefs.h <<\EOF
2866 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
2870 esac
2872 echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
2873 echo "configure:2874: checking for __builtin_expect" >&5
2874 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_expect'+set}'`\" = set"; then
2875 echo $ac_n "(cached) $ac_c" 1>&6
2876 else
2877 cat > conftest.c <<EOF
2878 #line 2879 "configure"
2879 int foo (int a)
2881 a = __builtin_expect (a, 10);
2882 return a == 10 ? 0 : 1;
2885 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
2886 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2887 libc_cv_gcc_builtin_expect=yes
2888 else
2889 libc_cv_gcc_builtin_expect=no
2891 rm -f conftest*
2894 echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
2895 if test "$libc_cv_gcc_builtin_expect" = yes; then
2896 cat >> confdefs.h <<\EOF
2897 #define HAVE_BUILTIN_EXPECT 1
2902 echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6
2903 echo "configure:2904: checking for local label subtraction" >&5
2904 if eval "test \"`echo '$''{'libc_cv_gcc_subtract_local_labels'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2906 else
2907 cat > conftest.c <<EOF
2908 #line 2909 "configure"
2909 int foo (int a)
2911 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
2912 void *p = &&l1 + ar[a];
2913 goto *p;
2915 return 1;
2917 return 2;
2920 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
2921 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2922 libc_cv_gcc_subtract_local_labels=yes
2923 else
2924 libc_cv_gcc_subtract_local_labels=no
2926 rm -f conftest*
2929 echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6
2930 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
2931 cat >> confdefs.h <<\EOF
2932 #define HAVE_SUBTRACT_LOCAL_LABELS 1
2937 echo $ac_n "checking for libgd""... $ac_c" 1>&6
2938 echo "configure:2939: checking for libgd" >&5
2939 old_CFLAGS="$CFLAGS"
2940 CFLAGS="$CFLAGS $libgd_include"
2941 old_LDFLAGS="$LDFLAGS"
2942 LDFLAGS="$LDFLAGS $libgd_ldflags"
2943 old_LIBS="$LIBS"
2944 LIBS="$LIBS -lgd -lpng -lz"
2945 cat > conftest.$ac_ext <<EOF
2946 #line 2947 "configure"
2947 #include "confdefs.h"
2948 #include <gd.h>
2949 int main() {
2950 gdImagePng (0, 0)
2951 ; return 0; }
2953 if { (eval echo configure:2954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2954 rm -rf conftest*
2955 LIBGD=yes
2956 else
2957 echo "configure: failed program was:" >&5
2958 cat conftest.$ac_ext >&5
2959 rm -rf conftest*
2960 LIBGD=no
2962 rm -f conftest*
2963 CFLAGS="$old_CFLAGS"
2964 LDFLAGS="$old_LDFLAGS"
2965 LIBS="$old_LIBS"
2966 echo "$ac_t""$LIBGD" 1>&6
2969 ### End of automated tests.
2970 ### Now run sysdeps configure fragments.
2972 # sysdeps configure fragments may set these with files to be linked below.
2973 libc_link_dests=
2974 libc_link_sources=
2976 # They also can set these variables.
2977 ldd_rewrite_script=no
2979 # Iterate over all the sysdep directories we will use, running their
2980 # configure fragments, and looking for a uname implementation.
2981 uname=
2982 for dir in $sysnames; do
2983 case $dir in
2984 /*) dest=$dir ;;
2985 *) dest=$srcdir/$dir ;;
2986 esac
2987 if test -r $dest/configure; then
2988 echo "$ac_t""running configure fragment for $dest" 1>&6
2989 . $dest/configure
2992 if test -z "$uname"; then
2993 if test -r $dest/uname.c ||
2994 test -r $dest/uname.S ||
2995 { test -r $dest/syscalls.list &&
2996 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
2997 uname=$dir
3000 done
3004 # If we will use the generic uname implementation, we must figure out what
3005 # it will say by examining the system, and write the results in config-name.h.
3006 if test "$uname" = "sysdeps/generic"; then
3008 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
3009 if test $uname_sysname != $config_os; then
3010 config_release=`echo $config_os | sed s/$uname_sysname//`
3013 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
3014 echo "configure:3015: checking OS release for uname" >&5
3015 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3017 else
3018 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
3019 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
3020 != x$config_release; then
3021 # The configuration release is a substring of the kernel release.
3022 libc_cv_uname_release=$kernel_release
3023 elif test x$config_release != x; then
3024 libc_cv_uname_release=$config_release
3025 elif test x$kernel_release != x; then
3026 libc_cv_uname_release=$kernel_release
3027 else
3028 libc_cv_uname_release=unknown
3032 echo "$ac_t""$libc_cv_uname_release" 1>&6
3033 uname_release="$libc_cv_uname_release"
3035 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
3036 echo "configure:3037: checking OS version for uname" >&5
3037 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3039 else
3040 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
3041 if test -n "$kernel_version"; then
3042 libc_cv_uname_version="$kernel_version"
3043 else
3044 libc_cv_uname_version=unknown
3048 echo "$ac_t""$libc_cv_uname_version" 1>&6
3049 uname_version="$libc_cv_uname_version"
3051 config_uname=config-name.h:config-name.in
3052 else
3053 # For non-generic uname, we don't need to create config-name.h at all.
3054 config_uname=
3057 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
3058 echo "configure:3059: checking stdio selection" >&5
3060 case $stdio in
3061 libio) cat >> confdefs.h <<\EOF
3062 #define USE_IN_LIBIO 1
3065 default) stdio=stdio ;;
3066 esac
3067 echo "$ac_t""$stdio" 1>&6
3069 # Test for old glibc 2.0.x headers so that they can be removed properly
3070 # Search only in includedir.
3071 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
3072 echo "configure:3073: checking for old glibc 2.0.x headers" >&5
3073 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
3074 then
3075 old_glibc_headers=yes
3076 else
3077 old_glibc_headers=no
3079 echo "$ac_t""$old_glibc_headers" 1>&6
3080 if test ${old_glibc_headers} = yes; then
3081 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
3082 echo "configure: warning: *** be removed." 1>&2
3094 if test $gnu_ld = yes; then
3095 cat >> confdefs.h <<\EOF
3096 #define HAVE_GNU_LD 1
3100 if test $gnu_as = yes; then
3101 cat >> confdefs.h <<\EOF
3102 #define HAVE_GNU_AS 1
3106 if test $elf = yes; then
3107 cat >> confdefs.h <<\EOF
3108 #define HAVE_ELF 1
3115 if test $shared = default; then
3116 if test $gnu_ld = yes; then
3117 shared=$elf
3118 else
3119 # For now we do not assume shared libs are available. In future more
3120 # tests might become available.
3121 shared=no
3125 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
3126 echo "configure:3127: checking whether -fPIC is default" >&5
3127 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3129 else
3130 pic_default=yes
3131 cat > conftest.c <<EOF
3132 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
3133 # error PIC is default.
3134 #endif
3136 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
3137 pic_default=no
3139 rm -f conftest.*
3142 echo "$ac_t""$pic_default" 1>&6
3153 case "$add_ons" in
3154 *door*) linux_doors=yes ;;
3155 *) linux_doors=no ;;
3156 esac
3159 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
3160 config_makefile=
3161 else
3162 config_makefile=Makefile
3165 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
3166 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
3170 echo '*** Do NOT install this release on any production system!'
3171 echo '*** It is known to be broken and will be so for quite some time.'
3172 echo '*** Use the latest released version instead.'
3174 trap '' 1 2 15
3175 cat > confcache <<\EOF
3176 # This file is a shell script that caches the results of configure
3177 # tests run on this system so they can be shared between configure
3178 # scripts and configure runs. It is not useful on other systems.
3179 # If it contains results you don't want to keep, you may remove or edit it.
3181 # By default, configure uses ./config.cache as the cache file,
3182 # creating it if it does not exist already. You can give configure
3183 # the --cache-file=FILE option to use a different cache file; that is
3184 # what configure does when it calls configure scripts in
3185 # subdirectories, so they share the cache.
3186 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3187 # config.status only pays attention to the cache file if you give it the
3188 # --recheck option to rerun configure.
3191 # The following way of writing the cache mishandles newlines in values,
3192 # but we know of no workaround that is simple, portable, and efficient.
3193 # So, don't put newlines in cache variables' values.
3194 # Ultrix sh set writes to stderr and can't be redirected directly,
3195 # and sets the high bit in the cache file unless we assign to the vars.
3196 (set) 2>&1 |
3197 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3198 *ac_space=\ *)
3199 # `set' does not quote correctly, so add quotes (double-quote substitution
3200 # turns \\\\ into \\, and sed turns \\ into \).
3201 sed -n \
3202 -e "s/'/'\\\\''/g" \
3203 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3206 # `set' quotes correctly as required by POSIX, so do not add quotes.
3207 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3209 esac >> confcache
3210 if cmp -s $cache_file confcache; then
3212 else
3213 if test -w $cache_file; then
3214 echo "updating cache $cache_file"
3215 cat confcache > $cache_file
3216 else
3217 echo "not updating unwritable cache $cache_file"
3220 rm -f confcache
3222 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3224 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3225 # Let make expand exec_prefix.
3226 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3228 # Any assignment to VPATH causes Sun make to only execute
3229 # the first set of double-colon rules, so remove it if not needed.
3230 # If there is a colon in the path, we need to keep it.
3231 if test "x$srcdir" = x.; then
3232 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3235 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3237 DEFS=-DHAVE_CONFIG_H
3239 # Without the "./", some shells look in PATH for config.status.
3240 : ${CONFIG_STATUS=./config.status}
3242 echo creating $CONFIG_STATUS
3243 rm -f $CONFIG_STATUS
3244 cat > $CONFIG_STATUS <<EOF
3245 #! /bin/sh
3246 # Generated automatically by configure.
3247 # Run this file to recreate the current configuration.
3248 # This directory was configured as follows,
3249 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3251 # $0 $ac_configure_args
3253 # Compiler output produced by configure, useful for debugging
3254 # configure, is in ./config.log if it exists.
3256 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3257 for ac_option
3259 case "\$ac_option" in
3260 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3261 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3262 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3263 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3264 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3265 exit 0 ;;
3266 -help | --help | --hel | --he | --h)
3267 echo "\$ac_cs_usage"; exit 0 ;;
3268 *) echo "\$ac_cs_usage"; exit 1 ;;
3269 esac
3270 done
3272 ac_given_srcdir=$srcdir
3273 ac_given_INSTALL="$INSTALL"
3275 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3277 cat >> $CONFIG_STATUS <<EOF
3279 # Protect against being on the right side of a sed subst in config.status.
3280 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3281 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3282 $ac_vpsub
3283 $extrasub
3284 s%@SHELL@%$SHELL%g
3285 s%@CFLAGS@%$CFLAGS%g
3286 s%@CPPFLAGS@%$CPPFLAGS%g
3287 s%@CXXFLAGS@%$CXXFLAGS%g
3288 s%@FFLAGS@%$FFLAGS%g
3289 s%@DEFS@%$DEFS%g
3290 s%@LDFLAGS@%$LDFLAGS%g
3291 s%@LIBS@%$LIBS%g
3292 s%@exec_prefix@%$exec_prefix%g
3293 s%@prefix@%$prefix%g
3294 s%@program_transform_name@%$program_transform_name%g
3295 s%@bindir@%$bindir%g
3296 s%@sbindir@%$sbindir%g
3297 s%@libexecdir@%$libexecdir%g
3298 s%@datadir@%$datadir%g
3299 s%@sysconfdir@%$sysconfdir%g
3300 s%@sharedstatedir@%$sharedstatedir%g
3301 s%@localstatedir@%$localstatedir%g
3302 s%@libdir@%$libdir%g
3303 s%@includedir@%$includedir%g
3304 s%@oldincludedir@%$oldincludedir%g
3305 s%@infodir@%$infodir%g
3306 s%@mandir@%$mandir%g
3307 s%@with_cvs@%$with_cvs%g
3308 s%@subdirs@%$subdirs%g
3309 s%@force_install@%$force_install%g
3310 s%@host@%$host%g
3311 s%@host_alias@%$host_alias%g
3312 s%@host_cpu@%$host_cpu%g
3313 s%@host_vendor@%$host_vendor%g
3314 s%@host_os@%$host_os%g
3315 s%@base_machine@%$base_machine%g
3316 s%@sysnames@%$sysnames%g
3317 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3318 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3319 s%@INSTALL_DATA@%$INSTALL_DATA%g
3320 s%@LN_S@%$LN_S%g
3321 s%@build@%$build%g
3322 s%@build_alias@%$build_alias%g
3323 s%@build_cpu@%$build_cpu%g
3324 s%@build_vendor@%$build_vendor%g
3325 s%@build_os@%$build_os%g
3326 s%@CC@%$CC%g
3327 s%@MAKE@%$MAKE%g
3328 s%@MSGFMT@%$MSGFMT%g
3329 s%@MAKEINFO@%$MAKEINFO%g
3330 s%@CCVERSION@%$CCVERSION%g
3331 s%@cross_linkable@%$cross_linkable%g
3332 s%@BUILD_CC@%$BUILD_CC%g
3333 s%@cross_compiling@%$cross_compiling%g
3334 s%@CPP@%$CPP%g
3335 s%@AR@%$AR%g
3336 s%@RANLIB@%$RANLIB%g
3337 s%@MIG@%$MIG%g
3338 s%@SYSINCLUDES@%$SYSINCLUDES%g
3339 s%@BASH@%$BASH%g
3340 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
3341 s%@KSH@%$KSH%g
3342 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
3343 s%@AWK@%$AWK%g
3344 s%@PERL@%$PERL%g
3345 s%@INSTALL_INFO@%$INSTALL_INFO%g
3346 s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
3347 s%@VERSIONING@%$VERSIONING%g
3348 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
3349 s%@no_whole_archive@%$no_whole_archive%g
3350 s%@exceptions@%$exceptions%g
3351 s%@LIBGD@%$LIBGD%g
3352 s%@uname_sysname@%$uname_sysname%g
3353 s%@uname_release@%$uname_release%g
3354 s%@uname_version@%$uname_version%g
3355 s%@stdio@%$stdio%g
3356 s%@old_glibc_headers@%$old_glibc_headers%g
3357 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
3358 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
3359 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
3360 s%@has_ldconfig@%$has_ldconfig%g
3361 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
3362 s%@gnu_ld@%$gnu_ld%g
3363 s%@gnu_as@%$gnu_as%g
3364 s%@elf@%$elf%g
3365 s%@static@%$static%g
3366 s%@shared@%$shared%g
3367 s%@pic_default@%$pic_default%g
3368 s%@profile@%$profile%g
3369 s%@omitfp@%$omitfp%g
3370 s%@bounded@%$bounded%g
3371 s%@static_nss@%$static_nss%g
3372 s%@nopic_initfini@%$nopic_initfini%g
3373 s%@DEFINES@%$DEFINES%g
3374 s%@linux_doors@%$linux_doors%g
3375 s%@VERSION@%$VERSION%g
3376 s%@RELEASE@%$RELEASE%g
3378 CEOF
3381 cat >> $CONFIG_STATUS <<\EOF
3383 # Split the substitutions into bite-sized pieces for seds with
3384 # small command number limits, like on Digital OSF/1 and HP-UX.
3385 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3386 ac_file=1 # Number of current file.
3387 ac_beg=1 # First line for current file.
3388 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3389 ac_more_lines=:
3390 ac_sed_cmds=""
3391 while $ac_more_lines; do
3392 if test $ac_beg -gt 1; then
3393 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3394 else
3395 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3397 if test ! -s conftest.s$ac_file; then
3398 ac_more_lines=false
3399 rm -f conftest.s$ac_file
3400 else
3401 if test -z "$ac_sed_cmds"; then
3402 ac_sed_cmds="sed -f conftest.s$ac_file"
3403 else
3404 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3406 ac_file=`expr $ac_file + 1`
3407 ac_beg=$ac_end
3408 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3410 done
3411 if test -z "$ac_sed_cmds"; then
3412 ac_sed_cmds=cat
3416 cat >> $CONFIG_STATUS <<EOF
3418 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3420 cat >> $CONFIG_STATUS <<\EOF
3421 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3422 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3423 case "$ac_file" in
3424 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3425 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3426 *) ac_file_in="${ac_file}.in" ;;
3427 esac
3429 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3431 # Remove last slash and all that follows it. Not all systems have dirname.
3432 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3433 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3434 # The file is in a subdirectory.
3435 test ! -d "$ac_dir" && mkdir "$ac_dir"
3436 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3437 # A "../" for each directory in $ac_dir_suffix.
3438 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3439 else
3440 ac_dir_suffix= ac_dots=
3443 case "$ac_given_srcdir" in
3444 .) srcdir=.
3445 if test -z "$ac_dots"; then top_srcdir=.
3446 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3447 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3448 *) # Relative path.
3449 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3450 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3451 esac
3453 case "$ac_given_INSTALL" in
3454 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3455 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3456 esac
3458 echo creating "$ac_file"
3459 rm -f "$ac_file"
3460 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3461 case "$ac_file" in
3462 *Makefile*) ac_comsub="1i\\
3463 # $configure_input" ;;
3464 *) ac_comsub= ;;
3465 esac
3467 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3468 sed -e "$ac_comsub
3469 s%@configure_input@%$configure_input%g
3470 s%@srcdir@%$srcdir%g
3471 s%@top_srcdir@%$top_srcdir%g
3472 s%@INSTALL@%$INSTALL%g
3473 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3474 fi; done
3475 rm -f conftest.s*
3477 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3478 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3480 # ac_d sets the value in "#define NAME VALUE" lines.
3481 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3482 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3483 ac_dC='\3'
3484 ac_dD='%g'
3485 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3486 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3487 ac_uB='\([ ]\)%\1#\2define\3'
3488 ac_uC=' '
3489 ac_uD='\4%g'
3490 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3491 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3492 ac_eB='$%\1#\2define\3'
3493 ac_eC=' '
3494 ac_eD='%g'
3496 if test "${CONFIG_HEADERS+set}" != set; then
3498 cat >> $CONFIG_STATUS <<EOF
3499 CONFIG_HEADERS="config.h"
3501 cat >> $CONFIG_STATUS <<\EOF
3503 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3504 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3505 case "$ac_file" in
3506 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3507 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3508 *) ac_file_in="${ac_file}.in" ;;
3509 esac
3511 echo creating $ac_file
3513 rm -f conftest.frag conftest.in conftest.out
3514 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3515 cat $ac_file_inputs > conftest.in
3519 # Transform confdefs.h into a sed script conftest.vals that substitutes
3520 # the proper values into config.h.in to produce config.h. And first:
3521 # Protect against being on the right side of a sed subst in config.status.
3522 # Protect against being in an unquoted here document in config.status.
3523 rm -f conftest.vals
3524 cat > conftest.hdr <<\EOF
3525 s/[\\&%]/\\&/g
3526 s%[\\$`]%\\&%g
3527 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3528 s%ac_d%ac_u%gp
3529 s%ac_u%ac_e%gp
3531 sed -n -f conftest.hdr confdefs.h > conftest.vals
3532 rm -f conftest.hdr
3534 # This sed command replaces #undef with comments. This is necessary, for
3535 # example, in the case of _POSIX_SOURCE, which is predefined and required
3536 # on some systems where configure will not decide to define it.
3537 cat >> conftest.vals <<\EOF
3538 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3541 # Break up conftest.vals because some shells have a limit on
3542 # the size of here documents, and old seds have small limits too.
3544 rm -f conftest.tail
3545 while :
3547 ac_lines=`grep -c . conftest.vals`
3548 # grep -c gives empty output for an empty file on some AIX systems.
3549 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3550 # Write a limited-size here document to conftest.frag.
3551 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3552 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3553 echo 'CEOF
3554 sed -f conftest.frag conftest.in > conftest.out
3555 rm -f conftest.in
3556 mv conftest.out conftest.in
3557 ' >> $CONFIG_STATUS
3558 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3559 rm -f conftest.vals
3560 mv conftest.tail conftest.vals
3561 done
3562 rm -f conftest.vals
3564 cat >> $CONFIG_STATUS <<\EOF
3565 rm -f conftest.frag conftest.h
3566 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3567 cat conftest.in >> conftest.h
3568 rm -f conftest.in
3569 if cmp -s $ac_file conftest.h 2>/dev/null; then
3570 echo "$ac_file is unchanged"
3571 rm -f conftest.h
3572 else
3573 # Remove last slash and all that follows it. Not all systems have dirname.
3574 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3575 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3576 # The file is in a subdirectory.
3577 test ! -d "$ac_dir" && mkdir "$ac_dir"
3579 rm -f $ac_file
3580 mv conftest.h $ac_file
3582 fi; done
3586 cat >> $CONFIG_STATUS <<EOF
3587 ac_sources="`echo $libc_link_sources`"
3588 ac_dests="`echo $libc_link_dests`"
3591 cat >> $CONFIG_STATUS <<\EOF
3592 srcdir=$ac_given_srcdir
3593 while test -n "$ac_sources"; do
3594 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3595 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3597 echo "linking $srcdir/$ac_source to $ac_dest"
3599 if test ! -r $srcdir/$ac_source; then
3600 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3602 rm -f $ac_dest
3604 # Make relative symlinks.
3605 # Remove last slash and all that follows it. Not all systems have dirname.
3606 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3607 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3608 # The dest file is in a subdirectory.
3609 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3610 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3611 # A "../" for each directory in $ac_dest_dir_suffix.
3612 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3613 else
3614 ac_dest_dir_suffix= ac_dots=
3617 case "$srcdir" in
3618 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3619 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3620 esac
3622 # Make a symlink if possible; otherwise try a hard link.
3623 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3624 ln $srcdir/$ac_source $ac_dest; then :
3625 else
3626 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3628 done
3630 cat >> $CONFIG_STATUS <<EOF
3631 config_vars='$config_vars'
3633 cat >> $CONFIG_STATUS <<\EOF
3635 case $CONFIG_FILES in *config.make*)
3636 echo "$config_vars" >> config.make;;
3637 esac
3638 test -d bits || mkdir bits
3639 exit 0
3641 chmod +x $CONFIG_STATUS
3642 rm -fr confdefs* $ac_clean_files
3643 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3645 if test "$no_recursion" != yes; then
3647 # Remove --cache-file and --srcdir arguments so they do not pile up.
3648 ac_sub_configure_args=
3649 ac_prev=
3650 for ac_arg in $ac_configure_args; do
3651 if test -n "$ac_prev"; then
3652 ac_prev=
3653 continue
3655 case "$ac_arg" in
3656 -cache-file | --cache-file | --cache-fil | --cache-fi \
3657 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3658 ac_prev=cache_file ;;
3659 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3660 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3662 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3663 ac_prev=srcdir ;;
3664 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3666 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3667 esac
3668 done
3670 for ac_config_dir in $add_ons; do
3672 # Do not complain, so a configure script can configure whichever
3673 # parts of a large source tree are present.
3674 if test ! -d $srcdir/$ac_config_dir; then
3675 continue
3678 echo configuring in $ac_config_dir
3680 case "$srcdir" in
3681 .) ;;
3683 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3684 else
3685 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3688 esac
3690 ac_popdir=`pwd`
3691 cd $ac_config_dir
3693 # A "../" for each directory in /$ac_config_dir.
3694 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3696 case "$srcdir" in
3697 .) # No --srcdir option. We are building in place.
3698 ac_sub_srcdir=$srcdir ;;
3699 /*) # Absolute path.
3700 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3701 *) # Relative path.
3702 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3703 esac
3705 # Check for guested configure; otherwise get Cygnus style configure.
3706 if test -f $ac_sub_srcdir/configure; then
3707 ac_sub_configure=$ac_sub_srcdir/configure
3708 elif test -f $ac_sub_srcdir/configure.in; then
3709 ac_sub_configure=$ac_configure
3710 else
3711 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3712 ac_sub_configure=
3715 # The recursion is here.
3716 if test -n "$ac_sub_configure"; then
3718 # Make the cache file name correct relative to the subdirectory.
3719 case "$cache_file" in
3720 /*) ac_sub_cache_file=$cache_file ;;
3721 *) # Relative path.
3722 ac_sub_cache_file="$ac_dots$cache_file" ;;
3723 esac
3724 case "$ac_given_INSTALL" in
3725 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3726 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3727 esac
3729 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3730 # The eval makes quoting arguments work.
3731 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3732 then :
3733 else
3734 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3738 cd $ac_popdir
3739 done