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