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