]> git.ipfire.org Git - thirdparty/glibc.git/blame - configure
update from main archive 970120
[thirdparty/glibc.git] / configure
CommitLineData
28f540f4
RM
1#! /bin/sh
2
424f8c09 3# From configure.in CVSid
28f540f4 4# Guess values for system-dependent variables and create Makefiles.
f9c53d11 5# Generated automatically using autoconf version 2.12
c224a18a 6# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
28f540f4
RM
7#
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10
11# Defaults:
12ac_help=
13ac_default_prefix=/usr/local
14# Any additions from configure.in:
15ac_help="$ac_help
16 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
75914335
RM
17ac_help="$ac_help
18 --with-gettext=DIR find GNU gettext source code in DIR (not needed)"
e215c478 19ac_help="$ac_help
8844bedd 20 --with-fp if using floating-point hardware [default=yes]"
28f540f4
RM
21ac_help="$ac_help
22 --with-gnu-binutils if using GNU binutils (as and ld)"
23ac_help="$ac_help
24 --with-gnu-ld if using GNU ld (in the binutils package)"
25ac_help="$ac_help
26 --with-gnu-as if using GNU as (in the binutils package)"
27ac_help="$ac_help
28 --with-elf if using the ELF object format"
d17e960c
RM
29ac_help="$ac_help
30 --enable-libio build in GNU libio instead of GNU stdio"
f65fd747
UD
31ac_help="$ac_help
32 --enable-new-malloc use the new malloc implementation. This is the
33 default for Linux, others use the old malloc."
8844bedd
TBB
34ac_help="$ac_help
35 --disable-sanity-checks really do not use threads (should not be used
36 except in special situations) [default=yes]"
424f8c09
RM
37ac_help="$ac_help
38 --enable-shared build shared library [default=yes if GNU ld & ELF]"
39ac_help="$ac_help
40 --enable-profile build profiled library [default=yes]"
41ac_help="$ac_help
6b3a2224
RM
42 --enable-omitfp build undebuggable optimized library [default=no]"
43ac_help="$ac_help
44 --enable-add-ons=DIR... configure and build named extra directories"
28f540f4
RM
45
46# Initialize some variables set by options.
47# The variables have the same names as the options, with
48# dashes changed to underlines.
49build=NONE
50cache_file=./config.cache
51exec_prefix=NONE
52host=NONE
53no_create=
54nonopt=NONE
55no_recursion=
56prefix=NONE
57program_prefix=NONE
58program_suffix=NONE
59program_transform_name=s,x,x,
60silent=
61site=
62srcdir=
63target=NONE
64verbose=
65x_includes=NONE
66x_libraries=NONE
b8dc6a10
RM
67bindir='${exec_prefix}/bin'
68sbindir='${exec_prefix}/sbin'
69libexecdir='${exec_prefix}/libexec'
70datadir='${prefix}/share'
71sysconfdir='${prefix}/etc'
72sharedstatedir='${prefix}/com'
73localstatedir='${prefix}/var'
74libdir='${exec_prefix}/lib'
75includedir='${prefix}/include'
76oldincludedir='/usr/include'
77infodir='${prefix}/info'
78mandir='${prefix}/man'
28f540f4
RM
79
80# Initialize some other variables.
81subdirs=
91c7b85d 82MFLAGS= MAKEFLAGS=
8a523922
UD
83# Maximum number of lines to put in a shell here document.
84ac_max_here_lines=12
28f540f4
RM
85
86ac_prev=
87for ac_option
88do
89
90 # If the previous option needs an argument, assign it.
91 if test -n "$ac_prev"; then
92 eval "$ac_prev=\$ac_option"
93 ac_prev=
94 continue
95 fi
96
97 case "$ac_option" in
98 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
99 *) ac_optarg= ;;
100 esac
101
102 # Accept the important Cygnus configure options, so we can diagnose typos.
103
104 case "$ac_option" in
105
b8dc6a10
RM
106 -bindir | --bindir | --bindi | --bind | --bin | --bi)
107 ac_prev=bindir ;;
108 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
109 bindir="$ac_optarg" ;;
110
111 -build | --build | --buil | --bui | --bu)
28f540f4 112 ac_prev=build ;;
b8dc6a10 113 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
28f540f4
RM
114 build="$ac_optarg" ;;
115
116 -cache-file | --cache-file | --cache-fil | --cache-fi \
117 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
118 ac_prev=cache_file ;;
119 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
120 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
121 cache_file="$ac_optarg" ;;
122
b8dc6a10
RM
123 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
124 ac_prev=datadir ;;
125 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
126 | --da=*)
127 datadir="$ac_optarg" ;;
128
28f540f4
RM
129 -disable-* | --disable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 fi
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}=no" ;;
137
138 -enable-* | --enable-*)
139 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
140 # Reject names that are not valid shell variable names.
141 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 fi
144 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
145 case "$ac_option" in
146 *=*) ;;
147 *) ac_optarg=yes ;;
148 esac
149 eval "enable_${ac_feature}='$ac_optarg'" ;;
150
151 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
152 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
153 | --exec | --exe | --ex)
154 ac_prev=exec_prefix ;;
155 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
156 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
157 | --exec=* | --exe=* | --ex=*)
158 exec_prefix="$ac_optarg" ;;
159
160 -gas | --gas | --ga | --g)
161 # Obsolete; use --with-gas.
162 with_gas=yes ;;
163
164 -help | --help | --hel | --he)
165 # Omit some internal or obsolete options to make the list less imposing.
166 # This message is too long to be a string in the A/UX 3.1 sh.
167 cat << EOF
168Usage: configure [options] [host]
169Options: [defaults in brackets after descriptions]
170Configuration:
171 --cache-file=FILE cache test results in FILE
172 --help print this message
173 --no-create do not create output files
174 --quiet, --silent do not print \`checking...' messages
175 --version print the version of autoconf that created configure
176Directory and file names:
177 --prefix=PREFIX install architecture-independent files in PREFIX
178 [$ac_default_prefix]
b8dc6a10 179 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
28f540f4 180 [same as prefix]
b8dc6a10
RM
181 --bindir=DIR user executables in DIR [EPREFIX/bin]
182 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
183 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
1ed0083c
RM
184 --datadir=DIR read-only architecture-independent data in DIR
185 [PREFIX/share]
b8dc6a10 186 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
1ed0083c
RM
187 --sharedstatedir=DIR modifiable architecture-independent data in DIR
188 [PREFIX/com]
b8dc6a10
RM
189 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
190 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
191 --includedir=DIR C header files in DIR [PREFIX/include]
192 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
193 --infodir=DIR info documentation in DIR [PREFIX/info]
194 --mandir=DIR man documentation in DIR [PREFIX/man]
28f540f4
RM
195 --srcdir=DIR find the sources in DIR [configure dir or ..]
196 --program-prefix=PREFIX prepend PREFIX to installed program names
197 --program-suffix=SUFFIX append SUFFIX to installed program names
1ed0083c
RM
198 --program-transform-name=PROGRAM
199 run sed PROGRAM on installed program names
b8dc6a10
RM
200EOF
201 cat << EOF
28f540f4
RM
202Host type:
203 --build=BUILD configure for building on BUILD [BUILD=HOST]
204 --host=HOST configure for HOST [guessed]
205 --target=TARGET configure for TARGET [TARGET=HOST]
206Features and packages:
207 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
208 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
209 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
210 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
211 --x-includes=DIR X include files are in DIR
212 --x-libraries=DIR X library files are in DIR
28f540f4 213EOF
1ed0083c
RM
214 if test -n "$ac_help"; then
215 echo "--enable and --with options recognized:$ac_help"
216 fi
28f540f4
RM
217 exit 0 ;;
218
219 -host | --host | --hos | --ho)
220 ac_prev=host ;;
221 -host=* | --host=* | --hos=* | --ho=*)
222 host="$ac_optarg" ;;
223
b8dc6a10
RM
224 -includedir | --includedir | --includedi | --included | --include \
225 | --includ | --inclu | --incl | --inc)
226 ac_prev=includedir ;;
227 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
228 | --includ=* | --inclu=* | --incl=* | --inc=*)
229 includedir="$ac_optarg" ;;
230
231 -infodir | --infodir | --infodi | --infod | --info | --inf)
232 ac_prev=infodir ;;
233 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
234 infodir="$ac_optarg" ;;
235
236 -libdir | --libdir | --libdi | --libd)
237 ac_prev=libdir ;;
238 -libdir=* | --libdir=* | --libdi=* | --libd=*)
239 libdir="$ac_optarg" ;;
240
241 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
242 | --libexe | --libex | --libe)
243 ac_prev=libexecdir ;;
244 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
245 | --libexe=* | --libex=* | --libe=*)
246 libexecdir="$ac_optarg" ;;
247
248 -localstatedir | --localstatedir | --localstatedi | --localstated \
249 | --localstate | --localstat | --localsta | --localst \
250 | --locals | --local | --loca | --loc | --lo)
251 ac_prev=localstatedir ;;
252 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
253 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
254 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
255 localstatedir="$ac_optarg" ;;
256
257 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
258 ac_prev=mandir ;;
259 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
260 mandir="$ac_optarg" ;;
261
28f540f4
RM
262 -nfp | --nfp | --nf)
263 # Obsolete; use --without-fp.
264 with_fp=no ;;
265
266 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
267 | --no-cr | --no-c)
268 no_create=yes ;;
269
270 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
271 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
272 no_recursion=yes ;;
273
b8dc6a10
RM
274 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
275 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
276 | --oldin | --oldi | --old | --ol | --o)
277 ac_prev=oldincludedir ;;
278 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
279 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
280 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
281 oldincludedir="$ac_optarg" ;;
282
28f540f4
RM
283 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
284 ac_prev=prefix ;;
285 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
286 prefix="$ac_optarg" ;;
287
288 -program-prefix | --program-prefix | --program-prefi | --program-pref \
289 | --program-pre | --program-pr | --program-p)
290 ac_prev=program_prefix ;;
291 -program-prefix=* | --program-prefix=* | --program-prefi=* \
292 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
293 program_prefix="$ac_optarg" ;;
294
295 -program-suffix | --program-suffix | --program-suffi | --program-suff \
296 | --program-suf | --program-su | --program-s)
297 ac_prev=program_suffix ;;
298 -program-suffix=* | --program-suffix=* | --program-suffi=* \
299 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
300 program_suffix="$ac_optarg" ;;
301
302 -program-transform-name | --program-transform-name \
303 | --program-transform-nam | --program-transform-na \
304 | --program-transform-n | --program-transform- \
305 | --program-transform | --program-transfor \
306 | --program-transfo | --program-transf \
307 | --program-trans | --program-tran \
308 | --progr-tra | --program-tr | --program-t)
309 ac_prev=program_transform_name ;;
310 -program-transform-name=* | --program-transform-name=* \
311 | --program-transform-nam=* | --program-transform-na=* \
312 | --program-transform-n=* | --program-transform-=* \
313 | --program-transform=* | --program-transfor=* \
314 | --program-transfo=* | --program-transf=* \
315 | --program-trans=* | --program-tran=* \
316 | --progr-tra=* | --program-tr=* | --program-t=*)
317 program_transform_name="$ac_optarg" ;;
318
319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
320 | -silent | --silent | --silen | --sile | --sil)
321 silent=yes ;;
322
b8dc6a10
RM
323 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
324 ac_prev=sbindir ;;
325 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
326 | --sbi=* | --sb=*)
327 sbindir="$ac_optarg" ;;
328
329 -sharedstatedir | --sharedstatedir | --sharedstatedi \
330 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
331 | --sharedst | --shareds | --shared | --share | --shar \
332 | --sha | --sh)
333 ac_prev=sharedstatedir ;;
334 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
335 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
336 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
337 | --sha=* | --sh=*)
338 sharedstatedir="$ac_optarg" ;;
339
28f540f4
RM
340 -site | --site | --sit)
341 ac_prev=site ;;
342 -site=* | --site=* | --sit=*)
343 site="$ac_optarg" ;;
344
345 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
346 ac_prev=srcdir ;;
347 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
348 srcdir="$ac_optarg" ;;
349
b8dc6a10
RM
350 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
351 | --syscon | --sysco | --sysc | --sys | --sy)
352 ac_prev=sysconfdir ;;
353 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
354 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
355 sysconfdir="$ac_optarg" ;;
356
28f540f4
RM
357 -target | --target | --targe | --targ | --tar | --ta | --t)
358 ac_prev=target ;;
359 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
360 target="$ac_optarg" ;;
361
362 -v | -verbose | --verbose | --verbos | --verbo | --verb)
363 verbose=yes ;;
364
365 -version | --version | --versio | --versi | --vers)
f9c53d11 366 echo "configure generated by autoconf version 2.12"
28f540f4
RM
367 exit 0 ;;
368
369 -with-* | --with-*)
370 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 fi
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 case "$ac_option" in
377 *=*) ;;
378 *) ac_optarg=yes ;;
379 esac
380 eval "with_${ac_package}='$ac_optarg'" ;;
381
382 -without-* | --without-*)
383 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 fi
388 ac_package=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}=no" ;;
390
391 --x)
392 # Obsolete; use --with-x.
393 with_x=yes ;;
394
395 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
396 | --x-incl | --x-inc | --x-in | --x-i)
397 ac_prev=x_includes ;;
398 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
399 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
400 x_includes="$ac_optarg" ;;
401
402 -x-libraries | --x-libraries | --x-librarie | --x-librari \
403 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
404 ac_prev=x_libraries ;;
405 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
406 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
407 x_libraries="$ac_optarg" ;;
408
409 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
410 ;;
411
91c7b85d 412 *)
28f540f4
RM
413 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
414 echo "configure: warning: $ac_option: invalid host type" 1>&2
415 fi
416 if test "x$nonopt" != xNONE; then
417 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
418 fi
419 nonopt="$ac_option"
420 ;;
421
422 esac
423done
424
425if test -n "$ac_prev"; then
426 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427fi
428
429trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
430
431# File descriptor usage:
432# 0 standard input
433# 1 file creation
434# 2 errors and warnings
435# 3 some systems may open it to /dev/tty
436# 4 used on the Kubota Titan
f55814ff 437# 6 checking for... messages and results
28f540f4
RM
438# 5 compiler messages saved in config.log
439if test "$silent" = yes; then
f55814ff 440 exec 6>/dev/null
28f540f4 441else
f55814ff 442 exec 6>&1
28f540f4
RM
443fi
444exec 5>./config.log
445
446echo "\
447This file contains any messages produced by compilers while
448running configure, to aid debugging if configure makes a mistake.
449" 1>&5
450
451# Strip out --no-create and --no-recursion so they do not pile up.
452# Also quote any args containing shell metacharacters.
453ac_configure_args=
454for ac_arg
455do
456 case "$ac_arg" in
457 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
458 | --no-cr | --no-c) ;;
459 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
460 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
461 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
462 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
463 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
464 esac
465done
466
467# NLS nuisances.
c6645251
UD
468# Only set these to C if already set. These must not be set unconditionally
469# because not all systems understand e.g. LANG=C (notably SCO).
470# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
471# Non-C LC_CTYPE values break the ctype check.
28f540f4 472if test "${LANG+set}" = set; then LANG=C; export LANG; fi
c6645251
UD
473if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
474if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
475if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
28f540f4
RM
476
477# confdefs.h avoids OS command line length limits that DEFS can exceed.
478rm -rf conftest* confdefs.h
479# AIX cpp loses on an empty file, so make sure it contains at least a newline.
480echo > confdefs.h
481
482# A filename unique to this package, relative to the directory that
483# configure is in, which we can look for to find out if srcdir is correct.
484ac_unique_file=features.h
485
486# Find the source files, if location was not specified.
487if test -z "$srcdir"; then
488 ac_srcdir_defaulted=yes
489 # Try the directory containing this script, then its parent.
490 ac_prog=$0
491 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
492 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
493 srcdir=$ac_confdir
494 if test ! -r $srcdir/$ac_unique_file; then
495 srcdir=..
496 fi
497else
498 ac_srcdir_defaulted=no
499fi
500if test ! -r $srcdir/$ac_unique_file; then
501 if test "$ac_srcdir_defaulted" = yes; then
502 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
503 else
504 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
505 fi
506fi
507srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
508
509# Prefer explicitly selected file to automatically selected ones.
510if test -z "$CONFIG_SITE"; then
511 if test "x$prefix" != xNONE; then
512 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
513 else
514 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
515 fi
516fi
517for ac_site_file in $CONFIG_SITE; do
518 if test -r "$ac_site_file"; then
519 echo "loading site script $ac_site_file"
520 . "$ac_site_file"
521 fi
522done
523
524if test -r "$cache_file"; then
525 echo "loading cache $cache_file"
526 . $cache_file
527else
528 echo "creating cache $cache_file"
529 > $cache_file
530fi
531
532ac_ext=c
533# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
c6de6968
RM
534ac_cpp='$CPP $CPPFLAGS'
535ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
536ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
c6645251 537cross_compiling=$ac_cv_prog_cc_cross
28f540f4
RM
538
539if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
540 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
541 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
542 ac_n= ac_c='
543' ac_t=' '
544 else
545 ac_n=-n ac_c= ac_t=
546 fi
547else
548 ac_n= ac_c='\c' ac_t=
549fi
550
551 if test -r /vmunix; then
552 kernel_id=`strings /vmunix | grep UNIX`
553 elif test -r /dynix; then
554 kernel_id=`strings /dynix | grep DYNIX`
555 else
556 kernel_id=
557 fi
558
559
560
561
562# This will get text that should go into config.make.
563config_vars=
564
565# Check for a --with-gmp argument and set gmp-srcdir in config.make.
566# Check whether --with-gmp or --without-gmp was given.
b8dc6a10
RM
567if test "${with_gmp+set}" = set; then
568 withval="$with_gmp"
28f540f4
RM
569 case "$with_gmp" in
570yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
571''|no) ;;
572*) config_vars="$config_vars
573gmp-srcdir = $withval" ;;
574esac
575
576fi
577
75914335
RM
578# Check for a --with-gettext argument and set gettext-srcdir in config.make.
579# Check whether --with-gettext or --without-gettext was given.
580if test "${with_gettext+set}" = set; then
581 withval="$with_gettext"
582 case "$with_gettext" in
583yes)
584 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
585''|no) ;;
586*)
587 config_vars="$config_vars
588gettext-srcdir = $withval" ;;
589esac
590
591fi
592
28f540f4 593
e215c478 594# Check whether --with-fp or --without-fp was given.
b8dc6a10
RM
595if test "${with_fp+set}" = set; then
596 withval="$with_fp"
e215c478
RM
597 with_fp=$withval
598else
599 with_fp=yes
600fi
601
28f540f4 602# Check whether --with-gnu-binutils or --without-gnu-binutils was given.
b8dc6a10
RM
603if test "${with_gnu_binutils+set}" = set; then
604 withval="$with_gnu_binutils"
e215c478 605 gnu_binutils=$withval
28f540f4
RM
606else
607 gnu_binutils=no
608fi
609
610# Check whether --with-gnu-ld or --without-gnu-ld was given.
b8dc6a10
RM
611if test "${with_gnu_ld+set}" = set; then
612 withval="$with_gnu_ld"
e215c478 613 gnu_ld=$withval
28f540f4
RM
614else
615 gnu_ld=no
616fi
617
618# Check whether --with-gnu-as or --without-gnu-as was given.
b8dc6a10
RM
619if test "${with_gnu_as+set}" = set; then
620 withval="$with_gnu_as"
e215c478 621 gnu_as=$withval
28f540f4
RM
622else
623 gnu_as=no
624fi
625
626test $gnu_binutils = yes && gnu_as=yes gnu_ld=yes
627# Check whether --with-elf or --without-elf was given.
b8dc6a10
RM
628if test "${with_elf+set}" = set; then
629 withval="$with_elf"
e215c478 630 elf=$withval
28f540f4
RM
631else
632 elf=no
633fi
634
28f540f4 635
d17e960c
RM
636# Check whether --enable-libio or --disable-libio was given.
637if test "${enable_libio+set}" = set; then
638 enableval="$enable_libio"
1ed0083c
RM
639 if test $enableval = yes; then
640 stdio=libio
641 else
642 stdio=stdio
643 fi
d17e960c 644else
91c7b85d 645 stdio=default
d17e960c
RM
646fi
647
648
f65fd747
UD
649# Check whether --enable-new-malloc or --disable-new-malloc was given.
650if test "${enable_new_malloc+set}" = set; then
651 enableval="$enable_new_malloc"
652 if test $enableval = yes; then
653 malloc=new-malloc
654 else
655 malloc=malloc
656 fi
657else
658 malloc=default
659fi
660
661
8844bedd
TBB
662# Check whether --enable-sanity-checks or --disable-sanity-checks was given.
663if test "${enable_sanity_checks+set}" = set; then
664 enableval="$enable_sanity_checks"
665 enable_sanity=$enableval
666else
667 enable_sanity=yes
668fi
669
670
424f8c09 671# Check whether --enable-shared or --disable-shared was given.
b8dc6a10
RM
672if test "${enable_shared+set}" = set; then
673 enableval="$enable_shared"
424f8c09
RM
674 shared=$enableval
675else
676 shared=default
677fi
678
679# Check whether --enable-profile or --disable-profile was given.
b8dc6a10
RM
680if test "${enable_profile+set}" = set; then
681 enableval="$enable_profile"
424f8c09
RM
682 profile=$enableval
683else
684 profile=yes
685fi
686
687# Check whether --enable-omitfp or --disable-omitfp was given.
b8dc6a10
RM
688if test "${enable_omitfp+set}" = set; then
689 enableval="$enable_omitfp"
424f8c09
RM
690 omitfp=$enableval
691else
692 omitfp=no
693fi
694
695
6b3a2224
RM
696# Check whether --enable-add-ons or --disable-add-ons was given.
697if test "${enable_add_ons+set}" = set; then
698 enableval="$enable_add_ons"
ba3f9540 699 add_ons=`echo "$enableval" | sed 's/,/ /g'`
6b3a2224 700else
ba3f9540 701 add_ons=
6b3a2224
RM
702fi
703
28f540f4
RM
704ac_aux_dir=
705for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
706 if test -f $ac_dir/install-sh; then
707 ac_aux_dir=$ac_dir
708 ac_install_sh="$ac_aux_dir/install-sh -c"
709 break
710 elif test -f $ac_dir/install.sh; then
711 ac_aux_dir=$ac_dir
712 ac_install_sh="$ac_aux_dir/install.sh -c"
713 break
714 fi
715done
716if test -z "$ac_aux_dir"; then
717 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
718fi
719ac_config_guess=$ac_aux_dir/config.guess
720ac_config_sub=$ac_aux_dir/config.sub
721ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
722
6b3a2224
RM
723subdirs="$add_ons"
724
57ba7bb4 725add_ons_pfx=
da74e902 726if test x"$add_ons" != x; then
57ba7bb4
UD
727 for f in $add_ons; do
728 add_ons_pfx="$add_ons_pfx $f/"
729 done
730fi
6b3a2224 731
28f540f4
RM
732
733# Make sure we can run config.sub.
734if $ac_config_sub sun4 >/dev/null 2>&1; then :
735else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
736fi
737
f55814ff 738echo $ac_n "checking host system type""... $ac_c" 1>&6
f65fd747 739echo "configure:740: checking host system type" >&5
28f540f4
RM
740
741host_alias=$host
742case "$host_alias" in
743NONE)
744 case $nonopt in
745 NONE)
746 if host_alias=`$ac_config_guess`; then :
747 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
748 fi ;;
749 *) host_alias=$nonopt ;;
750 esac ;;
751esac
752
753host=`$ac_config_sub $host_alias`
ec4b0518
UD
754host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
755host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
756host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
f55814ff 757echo "$ac_t""$host" 1>&6
28f540f4 758
8a523922
UD
759
760# The way shlib-versions is used to generate soversions.mk uses a
761# fairly simplistic model for name recognition that can't distinguish
762# i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
763# of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
764# tell. This doesn't get used much beyond that, so it's fairly safe.
765case "$host_os" in
766linux*)
767 ;;
768gnu*)
769 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
770 ;;
771esac
772
28f540f4
RM
773# We keep the original values in `$config_*' and never modify them, so we
774# can write them unchanged into config.make. Everything else uses
775# $machine, $vendor, and $os, and changes them whenever convenient.
776config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
777
2b83a2a4
RM
778# Some configurations imply other options.
779case "$host_os" in
780gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
781 # These systems always use GNU tools.
c8cf0b14 782 gnu_ld=yes gnu_as=yes ;;
2b83a2a4
RM
783esac
784case "$host_os" in
d7126ae6
RM
785linux*ecoff*)
786 ;;
2b83a2a4 787gnu* | linux* | sysv4* | solaris2*)
d7126ae6
RM
788 # These systems (almost) always use the ELF format.
789 elf=yes
9004bc20 790 ;;
2b83a2a4
RM
791esac
792
f0523145 793machine=$config_machine
28f540f4
RM
794vendor=$config_vendor
795os=$config_os
796
797# Expand the configuration machine name into a subdirectory by architecture
798# type and particular chip.
799case "$machine" in
f0523145
RM
800a29k | am29000) base_machine=a29k machine=a29k ;;
801alpha*) base_machine=alpha machine=alpha/$machine ;;
802hppa*) base_machine=hppa machine=hppa/$machine ;;
a5113b14 803i[3456]86) base_machine=i386 machine=i386/$machine ;;
f0523145
RM
804m680?0) base_machine=m68k machine=m68k/$machine ;;
805m68k) base_machine=m68k machine=m68k/m68020 ;;
806m88???) base_machine=m88k machine=m88k/$machine ;;
807m88k) base_machine=m88k machine=m88k/m88100 ;;
808mips*) base_machine=mips machine=mips/$machine ;;
809mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
810sparc[6789]) base_machine=sparc machine=sparc/$machine ;;
811supersparc) base_machine=sparc machine=sparc/sparc8 ;;
28f540f4
RM
812esac
813
f0523145
RM
814
815# Compute the list of sysdep directories for this configuration.
f9496a7b 816# This can take a while to compute.
f0523145 817sysdep_dir=$srcdir/sysdeps
f55814ff 818echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
f65fd747 819echo "configure:820: checking sysdep dirs" >&5
f9496a7b 820# Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
28f540f4
RM
821os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
822
823case "$os" in
824gnu*)
825 base_os=mach/hurd ;;
e215c478 826netbsd* | 386bsd* | freebsd* | bsdi*)
28f540f4 827 base_os=unix/bsd/bsd4.4 ;;
222c4e71 828osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
28f540f4 829 base_os=unix/bsd ;;
287fbbe7 830sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
28f540f4 831 base_os=unix/sysv ;;
287fbbe7 832solaris[2-9]*)
28f540f4
RM
833 base_os=unix/sysv/sysv4 ;;
834none)
835 base_os=standalone ;;
836*)
837 base_os='' ;;
838esac
839
840# For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
841tail=$os
842ostry=$os
843while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
844 ostry="$ostry /$o"
845 tail=$o
75914335 846done
28f540f4
RM
847o=`echo $tail | sed 's/[0-9]*$//'`
848if test $o != $tail; then
849 ostry="$ostry /$o"
850fi
ec4b0518
UD
851# For linux-gnu, try linux-gnu, then linux.
852o=`echo $tail | sed 's/-.*$//'`
853if test $o != $tail; then
854 ostry="$ostry /$o"
855fi
28f540f4
RM
856
857# For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
858base=
859tail=$base_os
860while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
861 set $b
862 base="$base /$1"
863 tail="$2"
864done
865
866# For sparc/sparc9, try sparc/sparc9 and then sparc.
867mach=
868tail=$machine
869while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
870 set $m
273d56ce
RM
871 # Prepend the machine's FPU directory unless --without-fp.
872 if test "$with_fp" = yes; then
873 mach="$mach /$1/fpu"
b96bdcd7 874 fi
28f540f4
RM
875 mach="$mach /$1"
876 tail="$2"
877done
878
879
880# Find what sysdep directories exist.
881sysnames=
57ba7bb4
UD
882IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
883for d in $add_ons_pfx ''; do
884 for b in $base ''; do
885 for m0 in $mach ''; do
886 for v in /$vendor ''; do
887 for o in /$ostry ''; do
888 for m in $mach ''; do
889 if test "$m0$b$v$o$m"; then
890 try="${d}sysdeps$m0$b$v$o$m"
891 test -n "$enable_debug_configure" &&
892 echo "$0 DEBUG: try $try" >&2
893 case $try in
894 /*) dest=$try ;;
895 *) dest=$srcdir/$try ;;
896 esac
897 if test -d $dest; then
898 sysnames="$sysnames $try"
899 { test -n "$o" || test -n "$b"; } && os_used=t
900 { test -n "$m" || test -n "$m0"; } && machine_used=t
901 fi
902 fi
903 done
28f540f4
RM
904 done
905 done
906 done
907 done
908done
57ba7bb4 909IFS="$ac_save_ifs"
28f540f4
RM
910
911if test -z "$os_used" && test "$os" != none; then
912 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
913fi
914if test -z "$machine_used" && test "$machine" != none; then
915 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
916fi
917
918# We have now validated the configuration.
919
e215c478 920
273d56ce
RM
921# If using ELF, look for an `elf' subdirectory of each machine directory.
922# We prepend these rather than inserting them whereever the machine appears
923# because things specified by the machine's ELF ABI should override
924# OS-specific things, and should always be the same for any OS on the
925# machine (otherwise what's the point of an ABI?).
926if test "$elf" = yes; then
927 elf_dirs=
57ba7bb4
UD
928 for d in $add_ons_pfx ''; do
929 case $d in
930 /*) xsrcdir= ;;
931 *) xsrcdir=$srcdir/ ;;
932 esac
933 for m in $mach; do
934 if test -d $xsrcdir${d}sysdeps$m/elf; then
c2bb8cab 935 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
57ba7bb4
UD
936 fi
937 done
28f540f4 938 done
57ba7bb4 939 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
28f540f4
RM
940fi
941
e215c478 942
28f540f4
RM
943# Expand the list of system names into a full list of directories
944# from each element's parent name and Implies file (if present).
945set $sysnames
959c3674 946names=
28f540f4
RM
947while test $# -gt 0; do
948 name=$1
949 shift
950
959c3674 951 case " $names " in *" $name "*)
f9496a7b
RM
952 # Already in the list.
953 continue
959c3674 954 esac
f9496a7b
RM
955
956 # Report each name as we discover it, so there is no long pause in output.
957 echo $ac_n "$name $ac_c" >&6
958
57ba7bb4
UD
959 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
960
961 case $name in
962 /*) xsrcdir= ;;
963 *) xsrcdir=$srcdir/ ;;
964 esac
965 test -n "$enable_debug_configure" &&
966 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
967
968 if test -f $xsrcdir$name/Implies; then
28f540f4 969 # Collect more names from the `Implies' file (removing comments).
57ba7bb4
UD
970 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
971 implied=
972 for x in $implied_candidate; do
973 if test -d $xsrcdir$name_base/$x; then
974 implied="$implied $name_base/$x";
975 else
976 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
977 fi
28f540f4
RM
978 done
979 else
980 implied=
981 fi
982
983 # Add NAME to the list of names.
984 names="$names $name"
985
986 # Find the parent of NAME, using the empty string if it has none.
57ba7bb4 987 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
28f540f4
RM
988
989 # Add the names implied by NAME, and NAME's parent (if it has one), to
990 # the list of names to be processed (the argument list). We prepend the
991 # implied names to the list and append the parent. We want implied
992 # directories to come before further directories inferred from the
993 # configuration components; this ensures that for sysv4, unix/common
994 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
995 # after sysv4).
996 sysnames="`echo $implied $* $parent`"
997 test -n "$sysnames" && set $sysnames
998done
999
1000# Add the default directories.
57ba7bb4 1001sysnames="$names sysdeps/generic sysdeps/stub"
f9496a7b
RM
1002
1003# The other names were emitted during the scan.
57ba7bb4 1004echo "$ac_t""sysdeps/generic sysdeps/stub" 1>&6
28f540f4 1005
28f540f4 1006
f9496a7b 1007### Locate tools.
28f540f4 1008
28f540f4
RM
1009# Find a good install program. We prefer a C program (faster),
1010# so one script is as good as another. But avoid the broken or
1011# incompatible versions:
1012# SysV /etc/install, /usr/sbin/install
1013# SunOS /usr/etc/install
1014# IRIX /sbin/install
1015# AIX /bin/install
1016# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1017# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1018# ./install, which can be erroneously created by make from ./install.sh.
f55814ff 1019echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
f65fd747 1020echo "configure:1021: checking for a BSD compatible install" >&5
28f540f4 1021if test -z "$INSTALL"; then
424f8c09 1022if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
f55814ff 1023 echo $ac_n "(cached) $ac_c" 1>&6
28f540f4 1024else
c6645251 1025 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
28f540f4
RM
1026 for ac_dir in $PATH; do
1027 # Account for people who put trailing slashes in PATH elements.
1028 case "$ac_dir/" in
1029 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1030 *)
1031 # OSF1 and SCO ODT 3.0 have their own names for install.
1032 for ac_prog in ginstall installbsd scoinst install; do
1033 if test -f $ac_dir/$ac_prog; then
1034 if test $ac_prog = install &&
1035 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1036 # AIX install. It has an incompatible calling convention.
1037 # OSF/1 installbsd also uses dspmsg, but is usable.
1038 :
1039 else
1040 ac_cv_path_install="$ac_dir/$ac_prog -c"
1041 break 2
1042 fi
1043 fi
1044 done
1045 ;;
1046 esac
1047 done
c6645251 1048 IFS="$ac_save_IFS"
b8dc6a10 1049
28f540f4 1050fi
b8dc6a10
RM
1051 if test "${ac_cv_path_install+set}" = set; then
1052 INSTALL="$ac_cv_path_install"
1053 else
1054 # As a last resort, use the slow shell script. We don't cache a
1055 # path for INSTALL within a source directory, because that will
1056 # break other packages using the cache if that directory is
1057 # removed, or if the path is relative.
1058 INSTALL="$ac_install_sh"
1059 fi
28f540f4 1060fi
f55814ff 1061echo "$ac_t""$INSTALL" 1>&6
28f540f4
RM
1062
1063# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1064# It thinks the first close brace ends the variable substitution.
1065test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1066
1067test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1068
26761c28 1069if test "$INSTALL" = "${srcdir}/install-sh -c"; then
28f540f4 1070 # The makefiles need to use a different form to find it in $srcdir.
8a523922 1071 INSTALL='$(..)./install-sh -c'
28f540f4 1072fi
f55814ff 1073echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
f65fd747 1074echo "configure:1075: checking whether ln -s works" >&5
ad41463d 1075if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
f55814ff 1076 echo $ac_n "(cached) $ac_c" 1>&6
ad41463d
RM
1077else
1078 rm -f conftestdata
1079if ln -s X conftestdata 2>/dev/null
1080then
1081 rm -f conftestdata
1082 ac_cv_prog_LN_S="ln -s"
1083else
1084 ac_cv_prog_LN_S=ln
1085fi
1086fi
1087LN_S="$ac_cv_prog_LN_S"
1088if test "$ac_cv_prog_LN_S" = "ln -s"; then
f55814ff 1089 echo "$ac_t""yes" 1>&6
ad41463d 1090else
f55814ff 1091 echo "$ac_t""no" 1>&6
ad41463d
RM
1092fi
1093
ce4d8b66
RM
1094for ac_prog in msgfmt gmsgfmt
1095do
1096# Extract the first word of "$ac_prog", so it can be a program name with args.
1097set dummy $ac_prog; ac_word=$2
f55814ff 1098echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f65fd747 1099echo "configure:1100: checking for $ac_word" >&5
ce4d8b66 1100if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
f55814ff 1101 echo $ac_n "(cached) $ac_c" 1>&6
ce4d8b66
RM
1102else
1103 if test -n "$MSGFMT"; then
1104 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1105else
1106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1107 for ac_dir in $PATH; do
1108 test -z "$ac_dir" && ac_dir=.
1109 if test -f $ac_dir/$ac_word; then
1110 ac_cv_prog_MSGFMT="$ac_prog"
1111 break
1112 fi
1113 done
1114 IFS="$ac_save_ifs"
1115fi
1116fi
1117MSGFMT="$ac_cv_prog_MSGFMT"
1118if test -n "$MSGFMT"; then
f55814ff 1119 echo "$ac_t""$MSGFMT" 1>&6
ce4d8b66 1120else
f55814ff 1121 echo "$ac_t""no" 1>&6
ce4d8b66
RM
1122fi
1123
1124test -n "$MSGFMT" && break
1125done
f0523145 1126test -n "$MSGFMT" || MSGFMT=":"
ce4d8b66 1127
28f540f4 1128
f55814ff 1129echo $ac_n "checking build system type""... $ac_c" 1>&6
f65fd747 1130echo "configure:1131: checking build system type" >&5
28f540f4
RM
1131
1132build_alias=$build
1133case "$build_alias" in
1134NONE)
1135 case $nonopt in
1136 NONE) build_alias=$host_alias ;;
1137 *) build_alias=$nonopt ;;
1138 esac ;;
1139esac
1140
1141build=`$ac_config_sub $build_alias`
ec4b0518
UD
1142build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1143build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1144build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
f55814ff 1145echo "$ac_t""$build" 1>&6
28f540f4
RM
1146
1147if test $host != $build; then
1148 ac_tool_prefix=${host_alias}-
1149else
1150 ac_tool_prefix=
1151fi
1152
1153# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1154set dummy ${ac_tool_prefix}gcc; ac_word=$2
f55814ff 1155echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f65fd747 1156echo "configure:1157: checking for $ac_word" >&5
424f8c09 1157if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
f55814ff 1158 echo $ac_n "(cached) $ac_c" 1>&6
28f540f4
RM
1159else
1160 if test -n "$CC"; then
1161 ac_cv_prog_CC="$CC" # Let the user override the test.
1162else
1163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3bbceb12 1164 for ac_dir in $PATH; do
28f540f4
RM
1165 test -z "$ac_dir" && ac_dir=.
1166 if test -f $ac_dir/$ac_word; then
1167 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1168 break
1169 fi
1170 done
1171 IFS="$ac_save_ifs"
1172 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
1173fi
1174fi
1175CC="$ac_cv_prog_CC"
1176if test -n "$CC"; then
f55814ff 1177 echo "$ac_t""$CC" 1>&6
28f540f4 1178else
f55814ff 1179 echo "$ac_t""no" 1>&6
28f540f4
RM
1180fi
1181
1182
1183
7f811679 1184if test $host != $build; then
40a4b79f
RM
1185 # Extract the first word of "gcc cc", so it can be a program name with args.
1186set dummy gcc cc; ac_word=$2
1187echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f65fd747 1188echo "configure:1189: checking for $ac_word" >&5
40a4b79f
RM
1189if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1190 echo $ac_n "(cached) $ac_c" 1>&6
1191else
1192 if test -n "$BUILD_CC"; then
1193 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1194else
1195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1196 for ac_dir in $PATH; do
1197 test -z "$ac_dir" && ac_dir=.
1198 if test -f $ac_dir/$ac_word; then
1199 ac_cv_prog_BUILD_CC=""
1200 break
1201 fi
1202 done
1203 IFS="$ac_save_ifs"
1204fi
1205fi
1206BUILD_CC="$ac_cv_prog_BUILD_CC"
1207if test -n "$BUILD_CC"; then
1208 echo "$ac_t""$BUILD_CC" 1>&6
1209else
1210 echo "$ac_t""no" 1>&6
1211fi
1212
1213fi
f55814ff 1214echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
f65fd747 1215echo "configure:1216: checking how to run the C preprocessor" >&5
8942a07a
RM
1216# On Suns, sometimes $CPP names a directory.
1217if test -n "$CPP" && test -d "$CPP"; then
1218 CPP=
1219fi
1220if test -z "$CPP"; then
1221if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
f55814ff 1222 echo $ac_n "(cached) $ac_c" 1>&6
8942a07a
RM
1223else
1224 # This must be in double quotes, not single quotes, because CPP may get
1225 # substituted into the Makefile and "${CC-cc}" will confuse make.
1226 CPP="${CC-cc} -E"
1227 # On the NeXT, cc -E runs the code through the compiler's parser,
1228 # not just through cpp.
1229 cat > conftest.$ac_ext <<EOF
f65fd747 1230#line 1231 "configure"
8942a07a
RM
1231#include "confdefs.h"
1232#include <assert.h>
1233Syntax Error
1234EOF
1235ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f65fd747 1236{ (eval echo configure:1237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8942a07a
RM
1237ac_err=`grep -v '^ *+' conftest.out`
1238if test -z "$ac_err"; then
1239 :
1240else
1241 echo "$ac_err" >&5
26761c28
UD
1242 echo "configure: failed program was:" >&5
1243 cat conftest.$ac_ext >&5
8942a07a
RM
1244 rm -rf conftest*
1245 CPP="${CC-cc} -E -traditional-cpp"
1246 cat > conftest.$ac_ext <<EOF
f65fd747 1247#line 1248 "configure"
8942a07a
RM
1248#include "confdefs.h"
1249#include <assert.h>
1250Syntax Error
1251EOF
1252ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f65fd747 1253{ (eval echo configure:1254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8942a07a
RM
1254ac_err=`grep -v '^ *+' conftest.out`
1255if test -z "$ac_err"; then
1256 :
1257else
1258 echo "$ac_err" >&5
26761c28
UD
1259 echo "configure: failed program was:" >&5
1260 cat conftest.$ac_ext >&5
8942a07a
RM
1261 rm -rf conftest*
1262 CPP=/lib/cpp
1263fi
1264rm -f conftest*
1265fi
1266rm -f conftest*
1267 ac_cv_prog_CPP="$CPP"
1268fi
1269 CPP="$ac_cv_prog_CPP"
1270else
1271 ac_cv_prog_CPP="$CPP"
1272fi
f55814ff 1273echo "$ac_t""$CPP" 1>&6
8942a07a 1274
28f540f4
RM
1275# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1276set dummy ${ac_tool_prefix}ar; ac_word=$2
f55814ff 1277echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f65fd747 1278echo "configure:1279: checking for $ac_word" >&5
424f8c09 1279if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
f55814ff 1280 echo $ac_n "(cached) $ac_c" 1>&6
28f540f4
RM
1281else
1282 if test -n "$AR"; then
1283 ac_cv_prog_AR="$AR" # Let the user override the test.
1284else
1285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3bbceb12 1286 for ac_dir in $PATH; do
28f540f4
RM
1287 test -z "$ac_dir" && ac_dir=.
1288 if test -f $ac_dir/$ac_word; then
1289 ac_cv_prog_AR="${ac_tool_prefix}ar"
1290 break
1291 fi
1292 done
1293 IFS="$ac_save_ifs"
1294 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1295fi
1296fi
1297AR="$ac_cv_prog_AR"
1298if test -n "$AR"; then
f55814ff 1299 echo "$ac_t""$AR" 1>&6
28f540f4 1300else
f55814ff 1301 echo "$ac_t""no" 1>&6
28f540f4
RM
1302fi
1303
1304
1305
1306# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1307set dummy ${ac_tool_prefix}ranlib; ac_word=$2
f55814ff 1308echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f65fd747 1309echo "configure:1310: checking for $ac_word" >&5
424f8c09 1310if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
f55814ff 1311 echo $ac_n "(cached) $ac_c" 1>&6
28f540f4
RM
1312else
1313 if test -n "$RANLIB"; then
1314 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1315else
1316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1317 for ac_dir in $PATH; do
1318 test -z "$ac_dir" && ac_dir=.
1319 if test -f $ac_dir/$ac_word; then
1320 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1321 break
1322 fi
1323 done
1324 IFS="$ac_save_ifs"
1325fi
1326fi
1327RANLIB="$ac_cv_prog_RANLIB"
1328if test -n "$RANLIB"; then
f55814ff 1329 echo "$ac_t""$RANLIB" 1>&6
28f540f4 1330else
f55814ff 1331 echo "$ac_t""no" 1>&6
28f540f4
RM
1332fi
1333
1334
1335if test -z "$ac_cv_prog_RANLIB"; then
1336if test -n "$ac_tool_prefix"; then
1337 # Extract the first word of "ranlib", so it can be a program name with args.
1338set dummy ranlib; ac_word=$2
f55814ff 1339echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f65fd747 1340echo "configure:1341: checking for $ac_word" >&5
424f8c09 1341if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
f55814ff 1342 echo $ac_n "(cached) $ac_c" 1>&6
28f540f4
RM
1343else
1344 if test -n "$RANLIB"; then
1345 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1346else
1347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3bbceb12 1348 for ac_dir in $PATH; do
28f540f4
RM
1349 test -z "$ac_dir" && ac_dir=.
1350 if test -f $ac_dir/$ac_word; then
1351 ac_cv_prog_RANLIB="ranlib"
1352 break
1353 fi
1354 done
1355 IFS="$ac_save_ifs"
1356 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1357fi
1358fi
1359RANLIB="$ac_cv_prog_RANLIB"
1360if test -n "$RANLIB"; then
f55814ff 1361 echo "$ac_t""$RANLIB" 1>&6
28f540f4 1362else
f55814ff 1363 echo "$ac_t""no" 1>&6
28f540f4
RM
1364fi
1365
1366else
1367 RANLIB=":"
1368fi
1369fi
1370
28f540f4 1371
84384f5b
UD
1372# Extract the first word of "bash", so it can be a program name with args.
1373set dummy bash; ac_word=$2
1374echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f65fd747 1375echo "configure:1376: checking for $ac_word" >&5
84384f5b
UD
1376if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1378else
1379 case "$BASH" in
1380 /*)
1381 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1382 ;;
1383 *)
1384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1385 for ac_dir in $PATH; do
1386 test -z "$ac_dir" && ac_dir=.
1387 if test -f $ac_dir/$ac_word; then
1388 ac_cv_path_BASH="$ac_dir/$ac_word"
1389 break
1390 fi
1391 done
1392 IFS="$ac_save_ifs"
1393 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
1394 ;;
1395esac
1396fi
1397BASH="$ac_cv_path_BASH"
1398if test -n "$BASH"; then
1399 echo "$ac_t""$BASH" 1>&6
1400else
1401 echo "$ac_t""no" 1>&6
1402fi
1403
a18f587d
UD
1404if test "$BASH" != no &&
1405 $BASH -c 'test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
84384f5b
UD
1406 libc_cv_have_bash2=yes
1407else
1408 libc_cv_have_bash2=no
1409fi
1410
1411
5290baf0
UD
1412if test "$BASH" = no; then
1413 # Extract the first word of "ksh", so it can be a program name with args.
1414set dummy ksh; ac_word=$2
1415echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1416echo "configure:1417: checking for $ac_word" >&5
1417if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1418 echo $ac_n "(cached) $ac_c" 1>&6
1419else
1420 case "$KSH" in
1421 /*)
1422 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1423 ;;
1424 *)
1425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1426 for ac_dir in $PATH; do
1427 test -z "$ac_dir" && ac_dir=.
1428 if test -f $ac_dir/$ac_word; then
1429 ac_cv_path_KSH="$ac_dir/$ac_word"
1430 break
1431 fi
1432 done
1433 IFS="$ac_save_ifs"
1434 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
1435 ;;
1436esac
1437fi
1438KSH="$ac_cv_path_KSH"
1439if test -n "$KSH"; then
1440 echo "$ac_t""$KSH" 1>&6
1441else
1442 echo "$ac_t""no" 1>&6
1443fi
1444
1445 if test "$KSH" = no; then
1446 libc_cv_have_ksh=no
1447 else
1448 libc_cv_have_ksh=yes
1449 fi
1450else
1451 KSH="$BASH"
1452
1453 libc_cv_have_ksh=yes
1454fi
1455
1456
f55814ff 1457echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
5290baf0 1458echo "configure:1459: checking for signed size_t type" >&5
424f8c09 1459if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
f55814ff 1460 echo $ac_n "(cached) $ac_c" 1>&6
28f540f4
RM
1461else
1462 echo '#include <stddef.h>
1463FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1464if eval "$ac_cpp conftest.c 2>/dev/null" \
1465| grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
1466 libc_cv_signed_size_t=no
1467else
1468 libc_cv_signed_size_t=yes
1469fi
1470rm -f conftest*
1471fi
1472
f55814ff 1473echo "$ac_t""$libc_cv_signed_size_t" 1>&6
28f540f4
RM
1474if test $libc_cv_signed_size_t = yes; then
1475 cat >> confdefs.h <<\EOF
1476#undef __SIZE_TYPE__
1477#define __SIZE_TYPE__ unsigned
1478EOF
1479fi
1480
f55814ff 1481echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
5290baf0 1482echo "configure:1483: checking for libc-friendly stddef.h" >&5
424f8c09 1483if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
f55814ff 1484 echo $ac_n "(cached) $ac_c" 1>&6
28f540f4
RM
1485else
1486 cat > conftest.$ac_ext <<EOF
5290baf0 1487#line 1488 "configure"
28f540f4
RM
1488#include "confdefs.h"
1489#define __need_size_t
1490#define __need_wchar_t
1491#include <stddef.h>
1492#define __need_NULL
1493#include <stddef.h>
26761c28 1494int main() {
28f540f4
RM
1495size_t size; wchar_t wchar;
1496#ifdef offsetof
1497#error stddef.h ignored __need_*
1498#endif
1499if (&size == NULL || &wchar == NULL) abort ();
1500; return 0; }
1501EOF
5290baf0 1502if { (eval echo configure:1503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
28f540f4
RM
1503 rm -rf conftest*
1504 libc_cv_friendly_stddef=yes
1505else
26761c28
UD
1506 echo "configure: failed program was:" >&5
1507 cat conftest.$ac_ext >&5
28f540f4
RM
1508 rm -rf conftest*
1509 libc_cv_friendly_stddef=no
1510fi
1511rm -f conftest*
28f540f4
RM
1512fi
1513
f55814ff 1514echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
28f540f4
RM
1515if test $libc_cv_friendly_stddef = yes; then
1516 config_vars="$config_vars
1517override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1518fi
1519
f55814ff 1520echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
5290baf0 1521echo "configure:1522: checking whether we need to use -P to assemble .S files" >&5
424f8c09 1522if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
f55814ff 1523 echo $ac_n "(cached) $ac_c" 1>&6
28f540f4
RM
1524else
1525 cat > conftest.S <<EOF
1526#include "confdefs.h"
1527/* Nothing whatsoever. */
1528EOF
1529if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
1530 libc_cv_need_minus_P=no
1531else
1532 libc_cv_need_minus_P=yes
1533fi
1534rm -f conftest*
1535fi
1536
f55814ff 1537echo "$ac_t""$libc_cv_need_minus_P" 1>&6
28f540f4
RM
1538if test $libc_cv_need_minus_P = yes; then
1539 config_vars="$config_vars
1540asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1541fi
1542
f55814ff 1543echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
5290baf0 1544echo "configure:1545: checking for assembler global-symbol directive" >&5
587dbc6f 1545if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
f55814ff 1546 echo $ac_n "(cached) $ac_c" 1>&6
587dbc6f
RM
1547else
1548 libc_cv_asm_global_directive=UNKNOWN
1549for ac_globl in .globl .global; do
1550 cat > conftest.s <<EOF
1551.text
1552${ac_globl} foo
1553foo: .long 0
1554EOF
1555 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1556 libc_cv_asm_global_directive=${ac_globl}
1557 fi
1558 rm -f conftest*
1559 test $libc_cv_asm_global_directive != UNKNOWN && break
1560done
1561fi
1562
f55814ff 1563echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
587dbc6f
RM
1564if test $libc_cv_asm_global_directive = UNKNOWN; then
1565 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1566else
1567 cat >> confdefs.h <<EOF
1568#define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1569EOF
1570
1571fi
1572
f55814ff 1573echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
5290baf0 1574echo "configure:1575: checking for .set assembler directive" >&5
e215c478 1575if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
f55814ff 1576 echo $ac_n "(cached) $ac_c" 1>&6
e215c478 1577else
587dbc6f 1578 cat > conftest.s <<EOF
e215c478
RM
1579.text
1580foo: .long 0
df2a0c93 1581.set glibc_conftest_frobozz,foo
587dbc6f 1582$libc_cv_asm_global_directive glibc_conftest_frobozz
e215c478 1583EOF
df2a0c93
RM
1584# The alpha-dec-osf1 assembler gives only a warning for `.set'
1585# (but it doesn't work), so we must do a linking check to be sure.
1586cat > conftest1.c <<\EOF
1587extern int glibc_conftest_frobozz;
1588main () { printf ("%d\n", glibc_conftest_frobozz); }
1589EOF
1590if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
b3a59f40 1591 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
e215c478
RM
1592 libc_cv_asm_set_directive=yes
1593else
1594 libc_cv_asm_set_directive=no
1595fi
d02907df 1596rm -f conftest*
e215c478
RM
1597fi
1598
f55814ff 1599echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
e215c478
RM
1600if test $libc_cv_asm_set_directive = yes; then
1601 cat >> confdefs.h <<\EOF
1602#define HAVE_ASM_SET_DIRECTIVE 1
1603EOF
1604
1605fi
1606
fd26970f
UD
1607if test $elf = yes; then
1608 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
1609echo "configure:1610: checking for .previous assembler directive" >&5
1610if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
1611 echo $ac_n "(cached) $ac_c" 1>&6
1612else
1613 cat > conftest.s <<EOF
1614.section foo_section
1615.previous
1616EOF
1617 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:1618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1618 libc_cv_asm_previous_directive=yes
1619 else
1620 libc_cv_asm_previous_directive=no
1621 fi
1622 rm -f conftest*
1623fi
1624
1625echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
1626 if test $libc_cv_asm_previous_directive = yes; then
1627 cat >> confdefs.h <<\EOF
1628#define HAVE_ASM_PREVIOUS_DIRECTIVE 1
1629EOF
1630
1631 else
1632 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
1633echo "configure:1634: checking for .popsection assembler directive" >&5
1634if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1636else
1637 cat > conftest.s <<EOF
1638.pushsection foo_section
1639.popsection
1640EOF
1641 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:1642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1642 libc_cv_asm_popsection_directive=yes
1643 else
1644 libc_cv_asm_popsection_directive=no
1645 fi
1646 rm -f conftest*
1647fi
1648
1649echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
1650 if test $libc_cv_asm_popsection_directive = yes; then
1651 cat >> confdefs.h <<\EOF
1652#define HAVE_ASM_POPSECTION_DIRECTIVE 1
1653EOF
1654
1655 fi
1656 fi
1657fi
1658
b8dc6a10 1659if test $elf != yes; then
f55814ff 1660 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
fd26970f 1661echo "configure:1662: checking for .init and .fini sections" >&5
b8dc6a10 1662if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
f55814ff 1663 echo $ac_n "(cached) $ac_c" 1>&6
b8dc6a10
RM
1664else
1665 cat > conftest.$ac_ext <<EOF
fd26970f 1666#line 1667 "configure"
b8dc6a10
RM
1667#include "confdefs.h"
1668
26761c28 1669int main() {
b8dc6a10
RM
1670asm (".section .init");
1671 asm (".section .fini");
9004bc20 1672 asm (".text");
b8dc6a10
RM
1673; return 0; }
1674EOF
fd26970f 1675if { (eval echo configure:1676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b8dc6a10
RM
1676 rm -rf conftest*
1677 libc_cv_have_initfini=yes
1678else
26761c28
UD
1679 echo "configure: failed program was:" >&5
1680 cat conftest.$ac_ext >&5
b8dc6a10
RM
1681 rm -rf conftest*
1682 libc_cv_have_initfini=no
1683fi
1684rm -f conftest*
b8dc6a10
RM
1685fi
1686
f55814ff 1687echo "$ac_t""$libc_cv_have_initfini" 1>&6
b8dc6a10
RM
1688 if test $libc_cv_have_initfini = yes; then
1689 cat >> confdefs.h <<\EOF
1690#define HAVE_INITFINI 1
1691EOF
1692
1693 fi
1694fi
e215c478 1695
c224a18a
RM
1696if test $elf = yes; then
1697 libc_cv_asm_underscores=no
1698else
f55814ff 1699 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
fd26970f 1700echo "configure:1701: checking for _ prefix on C symbol names" >&5
c224a18a 1701if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
f55814ff 1702 echo $ac_n "(cached) $ac_c" 1>&6
c224a18a
RM
1703else
1704 cat > conftest.$ac_ext <<EOF
fd26970f 1705#line 1706 "configure"
c224a18a
RM
1706#include "confdefs.h"
1707asm ("_glibc_foobar:");
26761c28 1708int main() {
c224a18a
RM
1709glibc_foobar ();
1710; return 0; }
1711EOF
fd26970f 1712if { (eval echo configure:1713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
c224a18a
RM
1713 rm -rf conftest*
1714 libc_cv_asm_underscores=yes
1715else
26761c28
UD
1716 echo "configure: failed program was:" >&5
1717 cat conftest.$ac_ext >&5
c224a18a
RM
1718 rm -rf conftest*
1719 libc_cv_asm_underscores=no
1720fi
1721rm -f conftest*
c224a18a
RM
1722fi
1723
f55814ff 1724echo "$ac_t""$libc_cv_asm_underscores" 1>&6
c224a18a
RM
1725fi
1726if test $libc_cv_asm_underscores = no; then
1727 cat >> confdefs.h <<\EOF
1728#define NO_UNDERSCORES 1
1729EOF
1730
1731fi
1732
1733if test $elf = yes; then
1734 libc_cv_weak_symbols=yes
1735 libc_cv_asm_weak_directive=yes
1736 libc_cv_asm_weakext_directive=no
1737else
f55814ff 1738 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
fd26970f 1739echo "configure:1740: checking for assembler .weak directive" >&5
c224a18a 1740if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
f55814ff 1741 echo $ac_n "(cached) $ac_c" 1>&6
c224a18a
RM
1742else
1743 cat > conftest.s <<EOF
1744.text
1745${libc_cv_asm_global_directive} foo
1746foo: .long 0
1747.weak foo
1748.weak bar; bar = foo
1749EOF
1750 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1751 libc_cv_asm_weak_directive=yes
1752 else
1753 libc_cv_asm_weak_directive=no
1754 fi
1755 rm -f conftest*
1756fi
1757
f55814ff 1758echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
c224a18a 1759
c8cf0b14 1760if test $libc_cv_asm_weak_directive = no; then
f55814ff 1761 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
fd26970f 1762echo "configure:1763: checking for assembler .weakext directive" >&5
c224a18a 1763if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
f55814ff 1764 echo $ac_n "(cached) $ac_c" 1>&6
c224a18a
RM
1765else
1766 cat > conftest.s <<EOF
1767.text
1768${libc_cv_asm_global_directive} foo
1769foo: .long 0
1770.weakext foo
a1470b6f 1771.weakext foo, bar
c224a18a
RM
1772EOF
1773 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1774 libc_cv_asm_weakext_directive=yes
1775 else
1776 libc_cv_asm_weakext_directive=no
1777 fi
1778 rm -f conftest*
1779fi
1780
f55814ff 1781echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
c224a18a
RM
1782
1783 fi # no .weak
1784fi # not ELF
1785
ffcf9634 1786if test $libc_cv_asm_weak_directive = yes; then
c224a18a
RM
1787 cat >> confdefs.h <<\EOF
1788#define HAVE_ASM_WEAK_DIRECTIVE 1
1789EOF
1790
ffcf9634 1791elif test $libc_cv_asm_weakext_directive = yes; then
c224a18a
RM
1792 cat >> confdefs.h <<\EOF
1793#define HAVE_ASM_WEAKEXT_DIRECTIVE 1
1794EOF
1795
1796fi
1797
f55814ff 1798echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
fd26970f 1799echo "configure:1800: checking for ld --no-whole-archive" >&5
ad41463d 1800if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
f55814ff 1801 echo $ac_n "(cached) $ac_c" 1>&6
ad41463d
RM
1802else
1803 cat > conftest.c <<\EOF
5f0e6fc7 1804_start () {}
655a5796
UD
1805int __eh_pc;
1806__throw () {}
ad41463d 1807EOF
dcea62dd
RM
1808if { ac_try='${CC-cc} $CFLAGS
1809 -nostdlib -nostartfiles -Wl,--no-whole-archive
fd26970f 1810 -o conftest conftest.c'; { (eval echo configure:1811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
ad41463d
RM
1811 libc_cv_ld_no_whole_archive=yes
1812else
1813 libc_cv_ld_no_whole_archive=no
1814fi
1815rm -f conftest*
1816fi
1817
f55814ff 1818echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
ad41463d 1819
59f63dc4 1820echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
fd26970f 1821echo "configure:1822: checking for gcc -fno-exceptions" >&5
59f63dc4
UD
1822if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
1823 echo $ac_n "(cached) $ac_c" 1>&6
1824else
1825 cat > conftest.c <<\EOF
1826_start () {}
1827int __eh_pc;
1828__throw () {}
1829EOF
1830if { ac_try='${CC-cc} $CFLAGS
1831 -nostdlib -nostartfiles -fno-exceptions
fd26970f 1832 -o conftest conftest.c'; { (eval echo configure:1833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
59f63dc4
UD
1833 libc_cv_gcc_no_exceptions=yes
1834else
1835 libc_cv_gcc_no_exceptions=no
1836fi
1837rm -f conftest*
1838fi
1839
1840echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
1841
c224a18a
RM
1842### End of automated tests.
1843### Now run sysdeps configure fragments.
1844
28f540f4
RM
1845# sysdeps configure fragments may set these with files to be linked below.
1846libc_link_dests=
1847libc_link_sources=
1848
1849# Iterate over all the sysdep directories we will use, running their
1850# configure fragments, and looking for a uname implementation.
1851uname=
1852for dir in $sysnames; do
57ba7bb4
UD
1853 case $dir in
1854 /*) dest=$dir ;;
1855 *) dest=$srcdir/$dir ;;
1856 esac
1857 if test -r $dest/configure; then
1858 echo "$ac_t""running configure fragment for $dest" 1>&6
1859 . $dest/configure
28f540f4 1860 fi
c6de6968 1861
28f540f4 1862 if test -z "$uname"; then
c6de6968
RM
1863 if test -r $sysdep_dir/$dir/uname.c ||
1864 test -r $sysdep_dir/$dir/uname.S ||
1865 { test -r $sysdep_dir/$dir/syscalls.list &&
1866 grep '^uname[ ]' $sysdep_dir/$dir/syscalls.list >/dev/null; }; then
1867 uname=$dir
1868 fi
28f540f4
RM
1869 fi
1870done
1871
1872
1873
1874# If we will use the generic uname implementation, we must figure out what
1875# it will say by examining the system, and write the results in config-name.h.
1876if test "$uname" = generic; then
1877
1878 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
1879 if test $uname_sysname != $config_os; then
1880 config_release=`echo $config_os | sed s/$uname_sysname//`
1881 fi
1882
f55814ff 1883 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
fd26970f 1884echo "configure:1885: checking OS release for uname" >&5
b8dc6a10 1885if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
f55814ff 1886 echo $ac_n "(cached) $ac_c" 1>&6
28f540f4
RM
1887else
1888 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
1889 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
1890 != x$config_release; then
1891 # The configuration release is a substring of the kernel release.
1892 libc_cv_uname_release=$kernel_release
1893 elif test x$config_release != x; then
1894 libc_cv_uname_release=$config_release
1895 elif test x$kernel_release != x; then
1896 libc_cv_uname_release=$kernel_release
1897 else
1898 libc_cv_uname_release=unknown
1899 fi
1900fi
1901
f55814ff 1902echo "$ac_t""$libc_cv_uname_release" 1>&6
28f540f4
RM
1903 uname_release="$libc_cv_uname_release"
1904
f55814ff 1905 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
fd26970f 1906echo "configure:1907: checking OS version for uname" >&5
b8dc6a10 1907if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
f55814ff 1908 echo $ac_n "(cached) $ac_c" 1>&6
28f540f4
RM
1909else
1910 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
1911 if test -n "$kernel_version"; then
1912 libc_cv_uname_version="$kernel_version"
1913 else
1914 libc_cv_uname_version=unknown
1915 fi
1916fi
1917
f55814ff 1918echo "$ac_t""$libc_cv_uname_version" 1>&6
28f540f4
RM
1919 uname_version="$libc_cv_uname_version"
1920
1921 config_uname=config-name.h:config-name.in
1922else
1923 # For non-generic uname, we don't need to create config-name.h at all.
1924 config_uname=
1925fi
1926
f55814ff 1927echo $ac_n "checking stdio selection""... $ac_c" 1>&6
fd26970f 1928echo "configure:1929: checking stdio selection" >&5
91c7b85d
RM
1929
1930case $stdio in
1931libio) cat >> confdefs.h <<\EOF
1932#define USE_IN_LIBIO 1
1933EOF
1934 ;;
1935default) stdio=stdio ;;
1936esac
f55814ff 1937echo "$ac_t""$stdio" 1>&6
91c7b85d 1938
f65fd747 1939echo $ac_n "checking malloc selection""... $ac_c" 1>&6
fd26970f 1940echo "configure:1941: checking malloc selection" >&5
f65fd747 1941
feb3c934
UD
1942case $malloc in
1943new-malloc) USE_NEW_MALLOC=-DUSE_NEW_MALLOC ;;
1944default) malloc=malloc ;;
1945esac
1946
f65fd747
UD
1947echo "$ac_t""$malloc" 1>&6
1948
1949
84384f5b
UD
1950
1951
1952
c224a18a 1953
28f540f4
RM
1954if test $gnu_ld = yes; then
1955 cat >> confdefs.h <<\EOF
1956#define HAVE_GNU_LD 1
1957EOF
1958
1959fi
1960if test $gnu_as = yes; then
1961 cat >> confdefs.h <<\EOF
1962#define HAVE_GNU_AS 1
1963EOF
1964
1965fi
1966if test $elf = yes; then
1967 cat >> confdefs.h <<\EOF
1968#define HAVE_ELF 1
1969EOF
1970
28f540f4
RM
1971fi
1972
1973
424f8c09
RM
1974if test $shared = default; then
1975 if test $gnu_ld = yes; then
1976 shared=$elf
f65fd747
UD
1977 else
1978 # For now we do not assume shared libs are available. In future more
1979 # tests might become available.
1980 shared=no
424f8c09
RM
1981 fi
1982fi
1983
1984
1985
edf5b2d7
UD
1986
1987
28f540f4
RM
1988if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
1989 config_makefile=
1990else
1991 config_makefile=Makefile
1992fi
1993
df4ef2ab
UD
1994VERSION=`sed -e 's/^#define VERSION "\([^"]*\)"/\1/p' -e d < $srcdir/version.h`
1995
1996
28f540f4 1997trap '' 1 2 15
424f8c09 1998cat > confcache <<\EOF
28f540f4
RM
1999# This file is a shell script that caches the results of configure
2000# tests run on this system so they can be shared between configure
2001# scripts and configure runs. It is not useful on other systems.
2002# If it contains results you don't want to keep, you may remove or edit it.
2003#
2004# By default, configure uses ./config.cache as the cache file,
2005# creating it if it does not exist already. You can give configure
2006# the --cache-file=FILE option to use a different cache file; that is
2007# what configure does when it calls configure scripts in
2008# subdirectories, so they share the cache.
2009# Giving --cache-file=/dev/null disables caching, for debugging configure.
2010# config.status only pays attention to the cache file if you give it the
2011# --recheck option to rerun configure.
2012#
2013EOF
c6645251
UD
2014# The following way of writing the cache mishandles newlines in values,
2015# but we know of no workaround that is simple, portable, and efficient.
2016# So, don't put newlines in cache variables' values.
28f540f4
RM
2017# Ultrix sh set writes to stderr and can't be redirected directly,
2018# and sets the high bit in the cache file unless we assign to the vars.
2019(set) 2>&1 |
f9c53d11 2020 case `(ac_space=' '; set | grep ac_space) 2>&1` in
c6645251
UD
2021 *ac_space=\ *)
2022 # `set' does not quote correctly, so add quotes (double-quote substitution
2023 # turns \\\\ into \\, and sed turns \\ into \).
2024 sed -n \
2025 -e "s/'/'\\\\''/g" \
2026 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2027 ;;
2028 *)
2029 # `set' quotes correctly as required by POSIX, so do not add quotes.
2030 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2031 ;;
2032 esac >> confcache
424f8c09
RM
2033if cmp -s $cache_file confcache; then
2034 :
28f540f4 2035else
424f8c09
RM
2036 if test -w $cache_file; then
2037 echo "updating cache $cache_file"
2038 cat confcache > $cache_file
2039 else
2040 echo "not updating unwritable cache $cache_file"
2041 fi
28f540f4 2042fi
424f8c09 2043rm -f confcache
28f540f4
RM
2044
2045trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2046
2047test "x$prefix" = xNONE && prefix=$ac_default_prefix
2048# Let make expand exec_prefix.
2049test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2050
2051# Any assignment to VPATH causes Sun make to only execute
2052# the first set of double-colon rules, so remove it if not needed.
2053# If there is a colon in the path, we need to keep it.
2054if test "x$srcdir" = x.; then
2055 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2056fi
2057
2058trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2059
2060DEFS=-DHAVE_CONFIG_H
2061
2062# Without the "./", some shells look in PATH for config.status.
2063: ${CONFIG_STATUS=./config.status}
2064
2065echo creating $CONFIG_STATUS
2066rm -f $CONFIG_STATUS
2067cat > $CONFIG_STATUS <<EOF
2068#! /bin/sh
2069# Generated automatically by configure.
2070# Run this file to recreate the current configuration.
2071# This directory was configured as follows,
2072# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2073#
2074# $0 $ac_configure_args
2075#
2076# Compiler output produced by configure, useful for debugging
2077# configure, is in ./config.log if it exists.
2078
2079ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2080for ac_option
2081do
2082 case "\$ac_option" in
2083 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2084 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2085 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2086 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
f9c53d11 2087 echo "$CONFIG_STATUS generated by autoconf version 2.12"
28f540f4
RM
2088 exit 0 ;;
2089 -help | --help | --hel | --he | --h)
2090 echo "\$ac_cs_usage"; exit 0 ;;
2091 *) echo "\$ac_cs_usage"; exit 1 ;;
2092 esac
2093done
2094
2095ac_given_srcdir=$srcdir
2096ac_given_INSTALL="$INSTALL"
2097
df4ef2ab 2098trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1ed0083c
RM
2099EOF
2100cat >> $CONFIG_STATUS <<EOF
28f540f4 2101
91c7b85d 2102# Protect against being on the right side of a sed subst in config.status.
1ed0083c
RM
2103sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2104 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
28f540f4
RM
2105$ac_vpsub
2106$extrasub
2107s%@CFLAGS@%$CFLAGS%g
2108s%@CPPFLAGS@%$CPPFLAGS%g
2109s%@CXXFLAGS@%$CXXFLAGS%g
2110s%@DEFS@%$DEFS%g
2111s%@LDFLAGS@%$LDFLAGS%g
2112s%@LIBS@%$LIBS%g
2113s%@exec_prefix@%$exec_prefix%g
2114s%@prefix@%$prefix%g
2115s%@program_transform_name@%$program_transform_name%g
b8dc6a10
RM
2116s%@bindir@%$bindir%g
2117s%@sbindir@%$sbindir%g
2118s%@libexecdir@%$libexecdir%g
2119s%@datadir@%$datadir%g
2120s%@sysconfdir@%$sysconfdir%g
2121s%@sharedstatedir@%$sharedstatedir%g
2122s%@localstatedir@%$localstatedir%g
2123s%@libdir@%$libdir%g
2124s%@includedir@%$includedir%g
2125s%@oldincludedir@%$oldincludedir%g
2126s%@infodir@%$infodir%g
2127s%@mandir@%$mandir%g
6b3a2224 2128s%@subdirs@%$subdirs%g
28f540f4
RM
2129s%@host@%$host%g
2130s%@host_alias@%$host_alias%g
2131s%@host_cpu@%$host_cpu%g
2132s%@host_vendor@%$host_vendor%g
2133s%@host_os@%$host_os%g
f0523145 2134s%@base_machine@%$base_machine%g
28f540f4
RM
2135s%@sysnames@%$sysnames%g
2136s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2137s%@INSTALL_DATA@%$INSTALL_DATA%g
ad41463d 2138s%@LN_S@%$LN_S%g
ce4d8b66 2139s%@MSGFMT@%$MSGFMT%g
28f540f4
RM
2140s%@build@%$build%g
2141s%@build_alias@%$build_alias%g
2142s%@build_cpu@%$build_cpu%g
2143s%@build_vendor@%$build_vendor%g
2144s%@build_os@%$build_os%g
2145s%@CC@%$CC%g
40a4b79f 2146s%@BUILD_CC@%$BUILD_CC%g
8942a07a 2147s%@CPP@%$CPP%g
28f540f4
RM
2148s%@AR@%$AR%g
2149s%@RANLIB@%$RANLIB%g
84384f5b
UD
2150s%@BASH@%$BASH%g
2151s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
5290baf0
UD
2152s%@KSH@%$KSH%g
2153s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
b8dc6a10 2154s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
ad41463d 2155s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
0b72c47e 2156s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
28f540f4
RM
2157s%@uname_sysname@%$uname_sysname%g
2158s%@uname_release@%$uname_release%g
2159s%@uname_version@%$uname_version%g
91c7b85d 2160s%@stdio@%$stdio%g
f65fd747 2161s%@malloc@%$malloc%g
feb3c934 2162s%@USE_NEW_MALLOC@%$USE_NEW_MALLOC%g
84384f5b
UD
2163s%@libc_cv_slibdir@%$libc_cv_slibdir%g
2164s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
28f540f4
RM
2165s%@gnu_ld@%$gnu_ld%g
2166s%@gnu_as@%$gnu_as%g
2167s%@elf@%$elf%g
424f8c09
RM
2168s%@shared@%$shared%g
2169s%@profile@%$profile%g
2170s%@omitfp@%$omitfp%g
edf5b2d7 2171s%@DEFINES@%$DEFINES%g
df4ef2ab 2172s%@VERSION@%$VERSION%g
28f540f4
RM
2173
2174CEOF
2175EOF
26761c28
UD
2176
2177cat >> $CONFIG_STATUS <<\EOF
2178
2179# Split the substitutions into bite-sized pieces for seds with
2180# small command number limits, like on Digital OSF/1 and HP-UX.
8a523922 2181ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
26761c28 2182ac_file=1 # Number of current file.
26761c28 2183ac_beg=1 # First line for current file.
8a523922 2184ac_end=$ac_max_sed_cmds # Line after last line for current file.
26761c28
UD
2185ac_more_lines=:
2186ac_sed_cmds=""
2187while $ac_more_lines; do
2188 if test $ac_beg -gt 1; then
2189 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2190 else
2191 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2192 fi
2193 if test ! -s conftest.s$ac_file; then
2194 ac_more_lines=false
2195 rm -f conftest.s$ac_file
2196 else
2197 if test -z "$ac_sed_cmds"; then
2198 ac_sed_cmds="sed -f conftest.s$ac_file"
2199 else
2200 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2201 fi
2202 ac_file=`expr $ac_file + 1`
2203 ac_beg=$ac_end
8a523922 2204 ac_end=`expr $ac_end + $ac_max_sed_cmds`
26761c28
UD
2205 fi
2206done
2207if test -z "$ac_sed_cmds"; then
2208 ac_sed_cmds=cat
2209fi
2210EOF
2211
28f540f4
RM
2212cat >> $CONFIG_STATUS <<EOF
2213
df4ef2ab 2214CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
28f540f4
RM
2215EOF
2216cat >> $CONFIG_STATUS <<\EOF
2217for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
c6645251 2218 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28f540f4 2219 case "$ac_file" in
c6645251 2220 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
28f540f4
RM
2221 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2222 *) ac_file_in="${ac_file}.in" ;;
2223 esac
2224
26761c28 2225 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
28f540f4
RM
2226
2227 # Remove last slash and all that follows it. Not all systems have dirname.
2228 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2229 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2230 # The file is in a subdirectory.
2231 test ! -d "$ac_dir" && mkdir "$ac_dir"
2232 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2233 # A "../" for each directory in $ac_dir_suffix.
2234 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2235 else
2236 ac_dir_suffix= ac_dots=
2237 fi
2238
2239 case "$ac_given_srcdir" in
2240 .) srcdir=.
2241 if test -z "$ac_dots"; then top_srcdir=.
2242 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2243 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2244 *) # Relative path.
2245 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2246 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2247 esac
2248
2249 case "$ac_given_INSTALL" in
2250 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2251 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2252 esac
26761c28 2253
28f540f4
RM
2254 echo creating "$ac_file"
2255 rm -f "$ac_file"
2256 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2257 case "$ac_file" in
2258 *Makefile*) ac_comsub="1i\\
2259# $configure_input" ;;
2260 *) ac_comsub= ;;
2261 esac
c6645251
UD
2262
2263 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
28f540f4
RM
2264 sed -e "$ac_comsub
2265s%@configure_input@%$configure_input%g
2266s%@srcdir@%$srcdir%g
2267s%@top_srcdir@%$top_srcdir%g
2268s%@INSTALL@%$INSTALL%g
c6645251 2269" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
28f540f4 2270fi; done
26761c28 2271rm -f conftest.s*
28f540f4
RM
2272
2273# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2274# NAME is the cpp macro being defined and VALUE is the value it is being given.
2275#
2276# ac_d sets the value in "#define NAME VALUE" lines.
2277ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2278ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2279ac_dC='\3'
2280ac_dD='%g'
2281# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2282ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2283ac_uB='\([ ]\)%\1#\2define\3'
2284ac_uC=' '
2285ac_uD='\4%g'
2286# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2287ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2288ac_eB='$%\1#\2define\3'
2289ac_eC=' '
2290ac_eD='%g'
2291
c6645251 2292if test "${CONFIG_HEADERS+set}" != set; then
26761c28
UD
2293EOF
2294cat >> $CONFIG_STATUS <<EOF
2295 CONFIG_HEADERS="config.h"
2296EOF
2297cat >> $CONFIG_STATUS <<\EOF
2298fi
28f540f4 2299for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
c6645251 2300 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28f540f4 2301 case "$ac_file" in
c6645251 2302 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
28f540f4
RM
2303 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2304 *) ac_file_in="${ac_file}.in" ;;
2305 esac
2306
2307 echo creating $ac_file
2308
2309 rm -f conftest.frag conftest.in conftest.out
c6645251
UD
2310 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2311 cat $ac_file_inputs > conftest.in
28f540f4
RM
2312
2313EOF
2314
2315# Transform confdefs.h into a sed script conftest.vals that substitutes
2316# the proper values into config.h.in to produce config.h. And first:
91c7b85d 2317# Protect against being on the right side of a sed subst in config.status.
28f540f4
RM
2318# Protect against being in an unquoted here document in config.status.
2319rm -f conftest.vals
2320cat > conftest.hdr <<\EOF
2321s/[\\&%]/\\&/g
2322s%[\\$`]%\\&%g
c224a18a 2323s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
28f540f4
RM
2324s%ac_d%ac_u%gp
2325s%ac_u%ac_e%gp
2326EOF
2327sed -n -f conftest.hdr confdefs.h > conftest.vals
2328rm -f conftest.hdr
2329
2330# This sed command replaces #undef with comments. This is necessary, for
2331# example, in the case of _POSIX_SOURCE, which is predefined and required
2332# on some systems where configure will not decide to define it.
2333cat >> conftest.vals <<\EOF
2334s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2335EOF
2336
2337# Break up conftest.vals because some shells have a limit on
2338# the size of here documents, and old seds have small limits too.
28f540f4
RM
2339
2340rm -f conftest.tail
2341while :
2342do
2343 ac_lines=`grep -c . conftest.vals`
2344 # grep -c gives empty output for an empty file on some AIX systems.
2345 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2346 # Write a limited-size here document to conftest.frag.
2347 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2348 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2349 echo 'CEOF
2350 sed -f conftest.frag conftest.in > conftest.out
2351 rm -f conftest.in
2352 mv conftest.out conftest.in
2353' >> $CONFIG_STATUS
2354 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2355 rm -f conftest.vals
2356 mv conftest.tail conftest.vals
2357done
2358rm -f conftest.vals
2359
2360cat >> $CONFIG_STATUS <<\EOF
2361 rm -f conftest.frag conftest.h
2362 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2363 cat conftest.in >> conftest.h
2364 rm -f conftest.in
2365 if cmp -s $ac_file conftest.h 2>/dev/null; then
2366 echo "$ac_file is unchanged"
2367 rm -f conftest.h
2368 else
ad41463d
RM
2369 # Remove last slash and all that follows it. Not all systems have dirname.
2370 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2371 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2372 # The file is in a subdirectory.
2373 test ! -d "$ac_dir" && mkdir "$ac_dir"
2374 fi
28f540f4
RM
2375 rm -f $ac_file
2376 mv conftest.h $ac_file
2377 fi
2378fi; done
2379
2380EOF
2381
2382cat >> $CONFIG_STATUS <<EOF
2383ac_sources="`echo $libc_link_sources`"
2384ac_dests="`echo $libc_link_dests`"
2385EOF
2386
2387cat >> $CONFIG_STATUS <<\EOF
2388srcdir=$ac_given_srcdir
2389while test -n "$ac_sources"; do
2390 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2391 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2392
2393 echo "linking $srcdir/$ac_source to $ac_dest"
2394
2395 if test ! -r $srcdir/$ac_source; then
2396 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2397 fi
2398 rm -f $ac_dest
2399
2400 # Make relative symlinks.
2401 # Remove last slash and all that follows it. Not all systems have dirname.
2402 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
2403 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2404 # The dest file is in a subdirectory.
2405 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2406 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
2407 # A "../" for each directory in $ac_dest_dir_suffix.
2408 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
2409 else
2410 ac_dest_dir_suffix= ac_dots=
2411 fi
2412
2413 case "$srcdir" in
2414 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2415 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2416 esac
2417
2418 # Make a symlink if possible; otherwise try a hard link.
2419 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2420 ln $srcdir/$ac_source $ac_dest; then :
2421 else
2422 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2423 fi
2424done
2425EOF
2426cat >> $CONFIG_STATUS <<EOF
2427echo '$config_vars' >> config.make
2428EOF
2429cat >> $CONFIG_STATUS <<\EOF
2430
2431exit 0
2432EOF
2433chmod +x $CONFIG_STATUS
2434rm -fr confdefs* $ac_clean_files
2435test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2436
6b3a2224
RM
2437if test "$no_recursion" != yes; then
2438
2439 # Remove --cache-file and --srcdir arguments so they do not pile up.
2440 ac_sub_configure_args=
2441 ac_prev=
2442 for ac_arg in $ac_configure_args; do
2443 if test -n "$ac_prev"; then
2444 ac_prev=
2445 continue
2446 fi
2447 case "$ac_arg" in
2448 -cache-file | --cache-file | --cache-fil | --cache-fi \
2449 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2450 ac_prev=cache_file ;;
2451 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2452 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2453 ;;
2454 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2455 ac_prev=srcdir ;;
2456 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2457 ;;
2458 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2459 esac
2460 done
2461
2462 for ac_config_dir in $add_ons; do
2463
2464 # Do not complain, so a configure script can configure whichever
2465 # parts of a large source tree are present.
2466 if test ! -d $srcdir/$ac_config_dir; then
2467 continue
2468 fi
2469
2470 echo configuring in $ac_config_dir
2471
2472 case "$srcdir" in
2473 .) ;;
2474 *)
2475 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2476 else
2477 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2478 fi
2479 ;;
2480 esac
2481
2482 ac_popdir=`pwd`
2483 cd $ac_config_dir
2484
26761c28
UD
2485 # A "../" for each directory in /$ac_config_dir.
2486 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2487
6b3a2224
RM
2488 case "$srcdir" in
2489 .) # No --srcdir option. We are building in place.
2490 ac_sub_srcdir=$srcdir ;;
2491 /*) # Absolute path.
2492 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2493 *) # Relative path.
26761c28 2494 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
6b3a2224
RM
2495 esac
2496
2497 # Check for guested configure; otherwise get Cygnus style configure.
2498 if test -f $ac_sub_srcdir/configure; then
2499 ac_sub_configure=$ac_sub_srcdir/configure
2500 elif test -f $ac_sub_srcdir/configure.in; then
2501 ac_sub_configure=$ac_configure
2502 else
2503 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2504 ac_sub_configure=
2505 fi
2506
2507 # The recursion is here.
2508 if test -n "$ac_sub_configure"; then
2509
2510 # Make the cache file name correct relative to the subdirectory.
6b3a2224
RM
2511 case "$cache_file" in
2512 /*) ac_sub_cache_file=$cache_file ;;
2513 *) # Relative path.
2514 ac_sub_cache_file="$ac_dots$cache_file" ;;
2515 esac
2516 case "$ac_given_INSTALL" in
2517 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2518 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2519 esac
2520
2521 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2522 # The eval makes quoting arguments work.
2523 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2524 then :
2525 else
2526 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2527 fi
2528 fi
2529
2530 cd $ac_popdir
2531 done
2532fi
2533