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