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