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