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