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