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