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