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