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