Update.
[glibc.git] / configure
blob022e8a758421a74dd778ec24ba98639bff292b19
1 #! /bin/sh
3 # From configure.in CVSid
14 # Guess values for system-dependent variables and create Makefiles.
15 # Generated automatically using autoconf version 2.13
16 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
18 # This configure script is free software; the Free Software Foundation
19 # gives unlimited permission to copy, distribute and modify it.
21 # Defaults:
22 ac_help=
23 ac_default_prefix=/usr/local
24 # Any additions from configure.in:
25 ac_help="$ac_help
26 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
27 ac_help="$ac_help
28 --with-gd=DIR find libgd include dir and library with prefix DIR"
29 ac_help="$ac_help
30 --with-gd-include=DIR find libgd include files in DIR"
31 ac_help="$ac_help
32 --with-gd-lib=DIR find libgd library files in DIR"
33 ac_help="$ac_help
34 --with-fp if using floating-point hardware [default=yes]"
35 ac_help="$ac_help
36 --with-binutils=PATH specify location of binutils (as and ld)"
37 ac_help="$ac_help
38 --with-elf if using the ELF object format"
39 ac_help="$ac_help
40 --with-xcoff if using the XCOFF object format"
41 ac_help="$ac_help
42 --without-cvs if CVS should not be used"
43 ac_help="$ac_help
44 --with-headers=PATH location of system headers to use
45 [e.g. /usr/src/linux/include]
46 [default=compiler default]"
47 ac_help="$ac_help
48 --disable-sanity-checks really do not use threads (should not be used
49 except in special situations) [default=yes]"
50 ac_help="$ac_help
51 --enable-shared build shared library [default=yes if GNU ld & ELF]"
52 ac_help="$ac_help
53 --enable-profile build profiled library [default=yes]"
54 ac_help="$ac_help
55 --enable-omitfp build undebuggable optimized library [default=no]"
56 ac_help="$ac_help
57 --enable-bounded build with runtime bounds checking [default=no]"
58 ac_help="$ac_help
59 --disable-versioning do not include versioning information in the
60 library objects [default=yes if supported]"
61 ac_help="$ac_help
62 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
63 [default=glibc default]"
64 ac_help="$ac_help
65 --enable-add-ons[=DIR1,DIR2]...
66 configure and build add-ons in DIR1,DIR2,...
67 search for add-ons if no parameter given"
68 ac_help="$ac_help
69 --with-tls enable support for TLS"
70 ac_help="$ac_help
71 --disable-hidden-plt do not hide internal function calls to avoid PLT"
72 ac_help="$ac_help
73 --enable-static-nss build static NSS modules [default=no]"
74 ac_help="$ac_help
75 --disable-force-install don't force installation of files from this package,
76 even if they are older than the installed files"
77 ac_help="$ac_help
78 --enable-kernel=VERSION compile for compatibility with kernel not older
79 than VERSION"
80 ac_help="$ac_help
81 --enable-all-warnings enable all useful warnings gcc can issue"
83 # Initialize some variables set by options.
84 # The variables have the same names as the options, with
85 # dashes changed to underlines.
86 build=NONE
87 cache_file=./config.cache
88 exec_prefix=NONE
89 host=NONE
90 no_create=
91 nonopt=NONE
92 no_recursion=
93 prefix=NONE
94 program_prefix=NONE
95 program_suffix=NONE
96 program_transform_name=s,x,x,
97 silent=
98 site=
99 srcdir=
100 target=NONE
101 verbose=
102 x_includes=NONE
103 x_libraries=NONE
104 bindir='${exec_prefix}/bin'
105 sbindir='${exec_prefix}/sbin'
106 libexecdir='${exec_prefix}/libexec'
107 datadir='${prefix}/share'
108 sysconfdir='${prefix}/etc'
109 sharedstatedir='${prefix}/com'
110 localstatedir='${prefix}/var'
111 libdir='${exec_prefix}/lib'
112 includedir='${prefix}/include'
113 oldincludedir='/usr/include'
114 infodir='${prefix}/info'
115 mandir='${prefix}/man'
117 # Initialize some other variables.
118 subdirs=
119 MFLAGS= MAKEFLAGS=
120 SHELL=${CONFIG_SHELL-/bin/sh}
121 # Maximum number of lines to put in a shell here document.
122 ac_max_here_lines=12
124 ac_prev=
125 for ac_option
128 # If the previous option needs an argument, assign it.
129 if test -n "$ac_prev"; then
130 eval "$ac_prev=\$ac_option"
131 ac_prev=
132 continue
135 case "$ac_option" in
136 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
137 *) ac_optarg= ;;
138 esac
140 # Accept the important Cygnus configure options, so we can diagnose typos.
142 case "$ac_option" in
144 -bindir | --bindir | --bindi | --bind | --bin | --bi)
145 ac_prev=bindir ;;
146 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
147 bindir="$ac_optarg" ;;
149 -build | --build | --buil | --bui | --bu)
150 ac_prev=build ;;
151 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
152 build="$ac_optarg" ;;
154 -cache-file | --cache-file | --cache-fil | --cache-fi \
155 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
156 ac_prev=cache_file ;;
157 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
158 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
159 cache_file="$ac_optarg" ;;
161 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
162 ac_prev=datadir ;;
163 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
164 | --da=*)
165 datadir="$ac_optarg" ;;
167 -disable-* | --disable-*)
168 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
169 # Reject names that are not valid shell variable names.
170 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
171 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
173 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
174 eval "enable_${ac_feature}=no" ;;
176 -enable-* | --enable-*)
177 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
178 # Reject names that are not valid shell variable names.
179 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
182 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
183 case "$ac_option" in
184 *=*) ;;
185 *) ac_optarg=yes ;;
186 esac
187 eval "enable_${ac_feature}='$ac_optarg'" ;;
189 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
190 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
191 | --exec | --exe | --ex)
192 ac_prev=exec_prefix ;;
193 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
194 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
195 | --exec=* | --exe=* | --ex=*)
196 exec_prefix="$ac_optarg" ;;
198 -gas | --gas | --ga | --g)
199 # Obsolete; use --with-gas.
200 with_gas=yes ;;
202 -help | --help | --hel | --he)
203 # Omit some internal or obsolete options to make the list less imposing.
204 # This message is too long to be a string in the A/UX 3.1 sh.
205 cat << EOF
206 Usage: configure [options] [host]
207 Options: [defaults in brackets after descriptions]
208 Configuration:
209 --cache-file=FILE cache test results in FILE
210 --help print this message
211 --no-create do not create output files
212 --quiet, --silent do not print \`checking...' messages
213 --version print the version of autoconf that created configure
214 Directory and file names:
215 --prefix=PREFIX install architecture-independent files in PREFIX
216 [$ac_default_prefix]
217 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
218 [same as prefix]
219 --bindir=DIR user executables in DIR [EPREFIX/bin]
220 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
221 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
222 --datadir=DIR read-only architecture-independent data in DIR
223 [PREFIX/share]
224 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
225 --sharedstatedir=DIR modifiable architecture-independent data in DIR
226 [PREFIX/com]
227 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
228 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
229 --includedir=DIR C header files in DIR [PREFIX/include]
230 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
231 --infodir=DIR info documentation in DIR [PREFIX/info]
232 --mandir=DIR man documentation in DIR [PREFIX/man]
233 --srcdir=DIR find the sources in DIR [configure dir or ..]
234 --program-prefix=PREFIX prepend PREFIX to installed program names
235 --program-suffix=SUFFIX append SUFFIX to installed program names
236 --program-transform-name=PROGRAM
237 run sed PROGRAM on installed program names
239 cat << EOF
240 Host type:
241 --build=BUILD configure for building on BUILD [BUILD=HOST]
242 --host=HOST configure for HOST [guessed]
243 --target=TARGET configure for TARGET [TARGET=HOST]
244 Features and packages:
245 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
246 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
247 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
248 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
249 --x-includes=DIR X include files are in DIR
250 --x-libraries=DIR X library files are in DIR
252 if test -n "$ac_help"; then
253 echo "--enable and --with options recognized:$ac_help"
255 exit 0 ;;
257 -host | --host | --hos | --ho)
258 ac_prev=host ;;
259 -host=* | --host=* | --hos=* | --ho=*)
260 host="$ac_optarg" ;;
262 -includedir | --includedir | --includedi | --included | --include \
263 | --includ | --inclu | --incl | --inc)
264 ac_prev=includedir ;;
265 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
266 | --includ=* | --inclu=* | --incl=* | --inc=*)
267 includedir="$ac_optarg" ;;
269 -infodir | --infodir | --infodi | --infod | --info | --inf)
270 ac_prev=infodir ;;
271 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
272 infodir="$ac_optarg" ;;
274 -libdir | --libdir | --libdi | --libd)
275 ac_prev=libdir ;;
276 -libdir=* | --libdir=* | --libdi=* | --libd=*)
277 libdir="$ac_optarg" ;;
279 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
280 | --libexe | --libex | --libe)
281 ac_prev=libexecdir ;;
282 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
283 | --libexe=* | --libex=* | --libe=*)
284 libexecdir="$ac_optarg" ;;
286 -localstatedir | --localstatedir | --localstatedi | --localstated \
287 | --localstate | --localstat | --localsta | --localst \
288 | --locals | --local | --loca | --loc | --lo)
289 ac_prev=localstatedir ;;
290 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
291 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
292 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
293 localstatedir="$ac_optarg" ;;
295 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
296 ac_prev=mandir ;;
297 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
298 mandir="$ac_optarg" ;;
300 -nfp | --nfp | --nf)
301 # Obsolete; use --without-fp.
302 with_fp=no ;;
304 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
305 | --no-cr | --no-c)
306 no_create=yes ;;
308 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
309 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
310 no_recursion=yes ;;
312 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
313 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
314 | --oldin | --oldi | --old | --ol | --o)
315 ac_prev=oldincludedir ;;
316 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
317 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
318 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
319 oldincludedir="$ac_optarg" ;;
321 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
322 ac_prev=prefix ;;
323 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
324 prefix="$ac_optarg" ;;
326 -program-prefix | --program-prefix | --program-prefi | --program-pref \
327 | --program-pre | --program-pr | --program-p)
328 ac_prev=program_prefix ;;
329 -program-prefix=* | --program-prefix=* | --program-prefi=* \
330 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
331 program_prefix="$ac_optarg" ;;
333 -program-suffix | --program-suffix | --program-suffi | --program-suff \
334 | --program-suf | --program-su | --program-s)
335 ac_prev=program_suffix ;;
336 -program-suffix=* | --program-suffix=* | --program-suffi=* \
337 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
338 program_suffix="$ac_optarg" ;;
340 -program-transform-name | --program-transform-name \
341 | --program-transform-nam | --program-transform-na \
342 | --program-transform-n | --program-transform- \
343 | --program-transform | --program-transfor \
344 | --program-transfo | --program-transf \
345 | --program-trans | --program-tran \
346 | --progr-tra | --program-tr | --program-t)
347 ac_prev=program_transform_name ;;
348 -program-transform-name=* | --program-transform-name=* \
349 | --program-transform-nam=* | --program-transform-na=* \
350 | --program-transform-n=* | --program-transform-=* \
351 | --program-transform=* | --program-transfor=* \
352 | --program-transfo=* | --program-transf=* \
353 | --program-trans=* | --program-tran=* \
354 | --progr-tra=* | --program-tr=* | --program-t=*)
355 program_transform_name="$ac_optarg" ;;
357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
358 | -silent | --silent | --silen | --sile | --sil)
359 silent=yes ;;
361 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
362 ac_prev=sbindir ;;
363 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
364 | --sbi=* | --sb=*)
365 sbindir="$ac_optarg" ;;
367 -sharedstatedir | --sharedstatedir | --sharedstatedi \
368 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
369 | --sharedst | --shareds | --shared | --share | --shar \
370 | --sha | --sh)
371 ac_prev=sharedstatedir ;;
372 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
373 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
374 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
375 | --sha=* | --sh=*)
376 sharedstatedir="$ac_optarg" ;;
378 -site | --site | --sit)
379 ac_prev=site ;;
380 -site=* | --site=* | --sit=*)
381 site="$ac_optarg" ;;
383 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
384 ac_prev=srcdir ;;
385 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
386 srcdir="$ac_optarg" ;;
388 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
389 | --syscon | --sysco | --sysc | --sys | --sy)
390 ac_prev=sysconfdir ;;
391 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
392 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
393 sysconfdir="$ac_optarg" ;;
395 -target | --target | --targe | --targ | --tar | --ta | --t)
396 ac_prev=target ;;
397 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
398 target="$ac_optarg" ;;
400 -v | -verbose | --verbose | --verbos | --verbo | --verb)
401 verbose=yes ;;
403 -version | --version | --versio | --versi | --vers)
404 echo "configure generated by autoconf version 2.13"
405 exit 0 ;;
407 -with-* | --with-*)
408 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
409 # Reject names that are not valid shell variable names.
410 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
411 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
413 ac_package=`echo $ac_package| sed 's/-/_/g'`
414 case "$ac_option" in
415 *=*) ;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "with_${ac_package}='$ac_optarg'" ;;
420 -without-* | --without-*)
421 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
422 # Reject names that are not valid shell variable names.
423 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
426 ac_package=`echo $ac_package| sed 's/-/_/g'`
427 eval "with_${ac_package}=no" ;;
429 --x)
430 # Obsolete; use --with-x.
431 with_x=yes ;;
433 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
434 | --x-incl | --x-inc | --x-in | --x-i)
435 ac_prev=x_includes ;;
436 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
437 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
438 x_includes="$ac_optarg" ;;
440 -x-libraries | --x-libraries | --x-librarie | --x-librari \
441 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
442 ac_prev=x_libraries ;;
443 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
444 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
445 x_libraries="$ac_optarg" ;;
447 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
451 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
452 echo "configure: warning: $ac_option: invalid host type" 1>&2
454 if test "x$nonopt" != xNONE; then
455 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
457 nonopt="$ac_option"
460 esac
461 done
463 if test -n "$ac_prev"; then
464 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
467 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
469 # File descriptor usage:
470 # 0 standard input
471 # 1 file creation
472 # 2 errors and warnings
473 # 3 some systems may open it to /dev/tty
474 # 4 used on the Kubota Titan
475 # 6 checking for... messages and results
476 # 5 compiler messages saved in config.log
477 if test "$silent" = yes; then
478 exec 6>/dev/null
479 else
480 exec 6>&1
482 exec 5>./config.log
484 echo "\
485 This file contains any messages produced by compilers while
486 running configure, to aid debugging if configure makes a mistake.
487 " 1>&5
489 # Strip out --no-create and --no-recursion so they do not pile up.
490 # Also quote any args containing shell metacharacters.
491 ac_configure_args=
492 for ac_arg
494 case "$ac_arg" in
495 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
496 | --no-cr | --no-c) ;;
497 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
498 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
499 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
500 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
501 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
502 esac
503 done
505 # NLS nuisances.
506 # Only set these to C if already set. These must not be set unconditionally
507 # because not all systems understand e.g. LANG=C (notably SCO).
508 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
509 # Non-C LC_CTYPE values break the ctype check.
510 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
511 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
512 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
513 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
515 # confdefs.h avoids OS command line length limits that DEFS can exceed.
516 rm -rf conftest* confdefs.h
517 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
518 echo > confdefs.h
520 # A filename unique to this package, relative to the directory that
521 # configure is in, which we can look for to find out if srcdir is correct.
522 ac_unique_file=include/features.h
524 # Find the source files, if location was not specified.
525 if test -z "$srcdir"; then
526 ac_srcdir_defaulted=yes
527 # Try the directory containing this script, then its parent.
528 ac_prog=$0
529 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
530 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
531 srcdir=$ac_confdir
532 if test ! -r $srcdir/$ac_unique_file; then
533 srcdir=..
535 else
536 ac_srcdir_defaulted=no
538 if test ! -r $srcdir/$ac_unique_file; then
539 if test "$ac_srcdir_defaulted" = yes; then
540 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
541 else
542 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
545 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
547 # Prefer explicitly selected file to automatically selected ones.
548 if test -z "$CONFIG_SITE"; then
549 if test "x$prefix" != xNONE; then
550 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
551 else
552 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
555 for ac_site_file in $CONFIG_SITE; do
556 if test -r "$ac_site_file"; then
557 echo "loading site script $ac_site_file"
558 . "$ac_site_file"
560 done
562 if test -r "$cache_file"; then
563 echo "loading cache $cache_file"
564 . $cache_file
565 else
566 echo "creating cache $cache_file"
567 > $cache_file
570 ac_ext=c
571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
572 ac_cpp='$CPP $CPPFLAGS'
573 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
574 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
575 cross_compiling=$ac_cv_prog_cc_cross
577 ac_exeext=
578 ac_objext=o
579 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
580 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
582 ac_n= ac_c='
583 ' ac_t=' '
584 else
585 ac_n=-n ac_c= ac_t=
587 else
588 ac_n= ac_c='\c' ac_t=
591 if test -r /vmunix; then
592 kernel_id=`strings /vmunix | grep UNIX`
593 elif test -r /dynix; then
594 kernel_id=`strings /dynix | grep DYNIX`
595 else
596 kernel_id=
601 ac_aux_dir=
602 for ac_dir in scripts $srcdir/scripts; do
603 if test -f $ac_dir/install-sh; then
604 ac_aux_dir=$ac_dir
605 ac_install_sh="$ac_aux_dir/install-sh -c"
606 break
607 elif test -f $ac_dir/install.sh; then
608 ac_aux_dir=$ac_dir
609 ac_install_sh="$ac_aux_dir/install.sh -c"
610 break
612 done
613 if test -z "$ac_aux_dir"; then
614 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
616 ac_config_guess=$ac_aux_dir/config.guess
617 ac_config_sub=$ac_aux_dir/config.sub
618 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
621 # This will get text that should go into config.make.
622 config_vars=
624 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
625 # Check whether --with-gmp or --without-gmp was given.
626 if test "${with_gmp+set}" = set; then
627 withval="$with_gmp"
628 case "$with_gmp" in
629 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
630 ''|no) ;;
631 *) config_vars="$config_vars
632 gmp-srcdir = $withval" ;;
633 esac
637 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
638 # Check whether --with-gd or --without-gd was given.
639 if test "${with_gd+set}" = set; then
640 withval="$with_gd"
641 case "$with_gd" in
642 yes|''|no) ;;
643 *) libgd_include="-I$withval/include"
644 libgd_ldflags="-L$withval/lib" ;;
645 esac
649 # Check whether --with-gd-include or --without-gd-include was given.
650 if test "${with_gd_include+set}" = set; then
651 withval="$with_gd_include"
652 case "$with_gd_include" in
653 ''|no) ;;
654 *) libgd_include="-I$withval" ;;
655 esac
659 # Check whether --with-gd-lib or --without-gd-lib was given.
660 if test "${with_gd_lib+set}" = set; then
661 withval="$with_gd_lib"
662 case "$with_gd_lib" in
663 ''|no) ;;
664 *) libgd_ldflags="-L$withval" ;;
665 esac
670 if test -n "$libgd_include"; then
671 config_vars="$config_vars
672 CFLAGS-memusagestat.c = $libgd_include"
674 if test -n "$libgd_ldflags"; then
675 config_vars="$config_vars
676 libgd-LDFLAGS = $libgd_ldflags"
679 # Check whether --with-fp or --without-fp was given.
680 if test "${with_fp+set}" = set; then
681 withval="$with_fp"
682 with_fp=$withval
683 else
684 with_fp=yes
688 # Check whether --with-binutils or --without-binutils was given.
689 if test "${with_binutils+set}" = set; then
690 withval="$with_binutils"
691 path_binutils=$withval
692 else
693 path_binutils=''
696 # Check whether --with-elf or --without-elf was given.
697 if test "${with_elf+set}" = set; then
698 withval="$with_elf"
699 elf=$withval
700 else
701 elf=no
704 # Check whether --with-xcoff or --without-xcoff was given.
705 if test "${with_xcoff+set}" = set; then
706 withval="$with_xcoff"
707 xcoff=$withval
708 else
709 xcoff=no
712 # Check whether --with-cvs or --without-cvs was given.
713 if test "${with_cvs+set}" = set; then
714 withval="$with_cvs"
715 with_cvs=$withval
716 else
717 with_cvs=yes
720 if test "$with_cvs" = yes; then
721 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
722 then
723 with_cvs=no
728 # Check whether --with-headers or --without-headers was given.
729 if test "${with_headers+set}" = set; then
730 withval="$with_headers"
731 sysheaders=$withval
732 else
733 sysheaders=''
737 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
738 if test "${enable_sanity_checks+set}" = set; then
739 enableval="$enable_sanity_checks"
740 enable_sanity=$enableval
741 else
742 enable_sanity=yes
746 static=yes
747 # Check whether --enable-shared or --disable-shared was given.
748 if test "${enable_shared+set}" = set; then
749 enableval="$enable_shared"
750 shared=$enableval
751 else
752 shared=default
755 # Check whether --enable-profile or --disable-profile was given.
756 if test "${enable_profile+set}" = set; then
757 enableval="$enable_profile"
758 profile=$enableval
759 else
760 profile=yes
763 # Check whether --enable-omitfp or --disable-omitfp was given.
764 if test "${enable_omitfp+set}" = set; then
765 enableval="$enable_omitfp"
766 omitfp=$enableval
767 else
768 omitfp=no
771 # Check whether --enable-bounded or --disable-bounded was given.
772 if test "${enable_bounded+set}" = set; then
773 enableval="$enable_bounded"
774 bounded=$enableval
775 else
776 bounded=no
779 # Check whether --enable-versioning or --disable-versioning was given.
780 if test "${enable_versioning+set}" = set; then
781 enableval="$enable_versioning"
782 enable_versioning=$enableval
783 else
784 enable_versioning=yes
788 # Check whether --enable-oldest-abi or --disable-oldest-abi was given.
789 if test "${enable_oldest_abi+set}" = set; then
790 enableval="$enable_oldest_abi"
791 oldest_abi=$enableval
792 else
793 oldest_abi=no
796 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
797 oldest_abi=default
798 else
799 cat >> confdefs.h <<EOF
800 #define GLIBC_OLDEST_ABI "$oldest_abi"
806 # Check whether --enable-add-ons or --disable-add-ons was given.
807 if test "${enable_add_ons+set}" = set; then
808 enableval="$enable_add_ons"
809 case "$enableval" in
810 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
811 test "$add_ons" = "*" && add_ons= ;;
812 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
813 esac
814 else
815 add_ons=
819 # Check whether --with-tls or --without-tls was given.
820 if test "${with_tls+set}" = set; then
821 withval="$with_tls"
822 usetls=$withval
823 else
824 usetls=no
828 # Check whether --enable-hidden-plt or --disable-hidden-plt was given.
829 if test "${enable_hidden_plt+set}" = set; then
830 enableval="$enable_hidden_plt"
831 hidden=$enableval
832 else
833 hidden=yes
836 if test "x$hidden" = xno; then
837 cat >> confdefs.h <<\EOF
838 #define NO_HIDDEN 1
843 subdirs="$add_ons"
845 add_ons_pfx=
846 if test x"$add_ons" != x; then
847 for f in $add_ons; do
848 # Some sanity checks
849 if test "$f" = "crypt"; then
850 { echo "configure: error:
851 *** It seems that you're using an old \`crypt' add-on. crypt is now
852 *** part of glibc and using the old add-on will not work with this
853 *** release. Start again with fresh sources and without the old
854 *** \`crypt' add-on." 1>&2; exit 1; }
856 if test "$f" = "localedata"; then
857 { echo "configure: error:
858 *** It seems that you're using an old \`localedata' add-on. localedata
859 *** is now part of glibc and using the old add-on will not work with
860 *** this release. Start again with fresh sources and without the old
861 *** \`localedata' add-on." 1>&2; exit 1; }
863 # Test whether such a subdir really exists.
864 if test -d $srcdir/$f; then
865 add_ons_pfx="$add_ons_pfx $f/"
866 else
867 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
869 done
872 # Check whether --enable-static-nss or --disable-static-nss was given.
873 if test "${enable_static_nss+set}" = set; then
874 enableval="$enable_static_nss"
875 static_nss=$enableval
876 else
877 static_nss=no
880 if test x"$static_nss" = xyes || test x"$shared" = xno; then
881 static_nss=yes
882 cat >> confdefs.h <<\EOF
883 #define DO_STATIC_NSS 1
888 # Check whether --enable-force-install or --disable-force-install was given.
889 if test "${enable_force_install+set}" = set; then
890 enableval="$enable_force_install"
891 force_install=$enableval
892 else
893 force_install=yes
898 # Check whether --enable-kernel or --disable-kernel was given.
899 if test "${enable_kernel+set}" = set; then
900 enableval="$enable_kernel"
901 minimum_kernel=$enableval
904 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
905 # Better nothing than this.
906 minimum_kernel=""
907 else
908 if test "$minimum_kernel" = current; then
909 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
913 # Check whether --enable-all-warnings or --disable-all-warnings was given.
914 if test "${enable_all_warnings+set}" = set; then
915 enableval="$enable_all_warnings"
916 all_warnings=$enableval
922 # Make sure we can run config.sub.
923 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
924 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
927 echo $ac_n "checking host system type""... $ac_c" 1>&6
928 echo "configure:929: checking host system type" >&5
930 host_alias=$host
931 case "$host_alias" in
932 NONE)
933 case $nonopt in
934 NONE)
935 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
936 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
937 fi ;;
938 *) host_alias=$nonopt ;;
939 esac ;;
940 esac
942 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
943 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
944 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
945 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
946 echo "$ac_t""$host" 1>&6
949 # The way shlib-versions is used to generate soversions.mk uses a
950 # fairly simplistic model for name recognition that can't distinguish
951 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
952 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
953 # tell. This doesn't get used much beyond that, so it's fairly safe.
954 case "$host_os" in
955 linux*)
957 gnu*)
958 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
960 esac
962 # We keep the original values in `$config_*' and never modify them, so we
963 # can write them unchanged into config.make. Everything else uses
964 # $machine, $vendor, and $os, and changes them whenever convenient.
965 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
967 # Don't allow vendor == "unknown"
968 test "$config_vendor" = unknown && config_vendor=
969 config_os="`echo $config_os | sed 's/^unknown-//'`"
971 # Some configurations imply other options.
972 case "$host_os" in
973 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
974 # These systems always use GNU tools.
975 gnu_ld=yes gnu_as=yes ;;
976 esac
977 case "$host_os" in
978 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
979 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
981 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
982 # These systems (almost) always use the ELF format.
983 elf=yes
985 aix*)
986 # These systems are always xcoff
987 xcoff=yes
988 elf=no
990 esac
992 machine=$config_machine
993 vendor=$config_vendor
994 os=$config_os
996 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
997 # Unify this here.
998 if test "$machine" = rs6000; then
999 machine="powerpc"
1003 ### I put this here to prevent those annoying emails from people who cannot
1004 ### read and try to compile glibc on unsupported platforms. --drepper
1006 ### By using the undocumented --enable-hacker-mode option for configure
1007 ### one can skip this test to make the configuration not fail for unsupported
1008 ### platforms.
1010 if test -z "$enable_hacker_mode"; then
1011 case "$machine-$host_os" in
1012 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
1015 echo "*** The GNU C library is currently not available for this platform."
1016 echo "*** So far nobody cared to port it and if there is no volunteer it"
1017 echo "*** might never happen. So, if you have interest to see glibc on"
1018 echo "*** this platform visit"
1019 echo "*** http://www.gnu.org/software/libc/porting.html"
1020 echo "*** and join the group of porters"
1021 exit 1
1023 esac
1026 # Expand the configuration machine name into a subdirectory by architecture
1027 # type and particular chip.
1028 case "$machine" in
1029 a29k | am29000) base_machine=a29k machine=a29k ;;
1030 alpha*) base_machine=alpha machine=alpha/$machine ;;
1031 arm*) base_machine=arm machine=arm/arm32/$machine ;;
1032 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
1033 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
1034 hppa*64*) base_machine=hppa machine=hppa/hppa64 ;;
1035 hppa*) base_machine=hppa machine=hppa/hppa1.1 ;;
1036 i[3456]86) base_machine=i386 machine=i386/$machine ;;
1037 ia64) base_machine=ia64 machine=ia64 ;;
1038 m680?0) base_machine=m68k machine=m68k/$machine ;;
1039 m68k) base_machine=m68k machine=m68k/m68020 ;;
1040 m88???) base_machine=m88k machine=m88k/$machine ;;
1041 m88k) base_machine=m88k machine=m88k/m88100 ;;
1042 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
1043 mips*) base_machine=mips machine=mips/$machine ;;
1044 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
1045 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
1046 s390) base_machine=s390 machine=s390/s390-32 ;;
1047 s390x) base_machine=s390 machine=s390/s390-64 ;;
1048 sh3*) base_machine=sh machine=sh/sh3 ;;
1049 sh4*) base_machine=sh machine=sh/sh4 ;;
1050 sparc | sparcv[67])
1051 base_machine=sparc machine=sparc/sparc32 ;;
1052 sparcv8 | supersparc | hypersparc)
1053 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
1054 sparcv8plus | sparcv8plusa | sparcv9)
1055 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
1056 sparcv8plusb | sparcv9b)
1057 base_machine=sparc machine=sparc/sparc32/sparcv9b ;;
1058 sparc64 | ultrasparc)
1059 base_machine=sparc machine=sparc/sparc64 ;;
1060 sparc64b | ultrasparc3)
1061 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
1062 thumb*) base_machine=thumb machine=arm/thumb/$machine ;;
1063 *) base_machine=$machine ;;
1064 esac
1067 if test "$base_machine" = "i386"; then
1068 cat >> confdefs.h <<\EOF
1069 #define USE_REGPARMS 1
1074 # Compute the list of sysdep directories for this configuration.
1075 # This can take a while to compute.
1076 sysdep_dir=$srcdir/sysdeps
1077 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
1078 echo "configure:1079: checking sysdep dirs" >&5
1079 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1080 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1082 case "$os" in
1083 gnu*)
1084 base_os=mach/hurd ;;
1085 netbsd* | 386bsd* | freebsd* | bsdi*)
1086 base_os=unix/bsd/bsd4.4 ;;
1087 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1088 base_os=unix/bsd ;;
1089 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1090 base_os=unix/sysv ;;
1091 irix6*)
1092 base_os=unix/sysv/irix6/$os ;;
1093 solaris[2-9]*)
1094 base_os=unix/sysv/sysv4 ;;
1095 hpux*)
1096 base_os=unix/sysv/hpux/$os ;;
1097 aix4.3*)
1098 base_os=unix/sysv/aix/aix4.3 ;;
1099 none)
1100 base_os=standalone ;;
1102 base_os='' ;;
1103 esac
1105 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1106 tail=$os
1107 ostry=$os
1108 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1109 ostry="$ostry /$o"
1110 tail=$o
1111 done
1112 o=`echo $tail | sed 's/[0-9]*$//'`
1113 if test $o != $tail; then
1114 ostry="$ostry /$o"
1116 # For linux-gnu, try linux-gnu, then linux.
1117 o=`echo $tail | sed 's/-.*$//'`
1118 if test $o != $tail; then
1119 ostry="$ostry /$o"
1122 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1123 base=
1124 tail=$base_os
1125 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1126 set $b
1127 base="$base /$1"
1128 tail="$2"
1129 done
1131 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1132 mach=
1133 tail=$machine
1134 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1135 set $m
1136 # Prepend the machine's FPU directory unless --without-fp.
1137 if test "$with_fp" = yes; then
1138 mach="$mach /$1/fpu"
1140 mach="$mach /$1"
1141 tail="$2"
1142 done
1145 # Find what sysdep directories exist.
1146 sysnames=
1147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1148 for d in $add_ons_pfx ''; do
1149 for b in $base ''; do
1150 for m0 in $mach ''; do
1151 for v in /$vendor ''; do
1152 test "$v" = / && continue
1153 for o in /$ostry ''; do
1154 test "$o" = / && continue
1155 for m in $mach ''; do
1156 if test "$m0$b$v$o$m"; then
1157 try="${d}sysdeps$m0$b$v$o$m"
1158 test -n "$enable_debug_configure" &&
1159 echo "$0 DEBUG: try $try" >&2
1160 if test -d $srcdir/$try; then
1161 sysnames="$sysnames $try"
1162 { test -n "$o" || test -n "$b"; } && os_used=t
1163 { test -n "$m" || test -n "$m0"; } && machine_used=t
1166 done
1167 done
1168 done
1169 done
1170 done
1171 done
1172 IFS="$ac_save_ifs"
1174 if test -z "$os_used" && test "$os" != none; then
1175 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1177 if test -z "$machine_used" && test "$machine" != none; then
1178 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1181 # We have now validated the configuration.
1184 # If using ELF, look for an `elf' subdirectory of each machine directory.
1185 # We prepend these rather than inserting them whereever the machine appears
1186 # because things specified by the machine's ELF ABI should override
1187 # OS-specific things, and should always be the same for any OS on the
1188 # machine (otherwise what's the point of an ABI?).
1189 if test "$elf" = yes; then
1190 elf_dirs=
1191 for d in $add_ons_pfx ''; do
1192 for m in $mach; do
1193 if test -d $srcdir/${d}sysdeps$m/elf; then
1194 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1196 done
1197 done
1198 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1202 # Expand the list of system names into a full list of directories
1203 # from each element's parent name and Implies file (if present).
1204 set $sysnames
1205 names=
1206 while test $# -gt 0; do
1207 name=$1
1208 shift
1210 case " $names " in *" $name "*)
1211 # Already in the list.
1212 continue
1213 esac
1215 # Report each name as we discover it, so there is no long pause in output.
1216 echo $ac_n "$name $ac_c" >&6
1218 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1220 case $name in
1221 /*) xsrcdir= ;;
1222 *) xsrcdir=$srcdir/ ;;
1223 esac
1224 test -n "$enable_debug_configure" &&
1225 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1227 if test -f $xsrcdir$name/Implies; then
1228 # Collect more names from the `Implies' file (removing comments).
1229 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1230 implied=
1231 for x in $implied_candidate; do
1232 found=no
1233 if test -d $xsrcdir$name_base/$x; then
1234 implied="$implied $name_base/$x";
1235 found=yes
1237 for d in $add_ons_pfx ''; do
1238 try="${d}sysdeps/$x"
1239 case $d in
1240 /*) try_srcdir= ;;
1241 *) try_srcdir=$srcdir/ ;;
1242 esac
1243 test -n "$enable_debug_configure" &&
1244 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
1245 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
1246 then
1247 implied="$implied $try"
1248 found=yes
1250 done
1251 if test $found = no; then
1252 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1254 done
1255 else
1256 implied=
1259 # Add NAME to the list of names.
1260 names="$names $name"
1262 # Find the parent of NAME, using the empty string if it has none.
1263 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1265 # Add the names implied by NAME, and NAME's parent (if it has one), to
1266 # the list of names to be processed (the argument list). We prepend the
1267 # implied names to the list and append the parent. We want implied
1268 # directories to come before further directories inferred from the
1269 # configuration components; this ensures that for sysv4, unix/common
1270 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1271 # after sysv4).
1272 sysnames="`echo $implied $* $parent`"
1273 test -n "$sysnames" && set $sysnames
1274 done
1276 # Add the default directories.
1277 default_sysnames=sysdeps/generic
1278 if test "$elf" = yes; then
1279 default_sysnames="sysdeps/generic/elf $default_sysnames"
1281 sysnames="$names $default_sysnames"
1283 # The other names were emitted during the scan.
1284 echo "$ac_t""$default_sysnames" 1>&6
1287 ### Locate tools.
1289 # Find a good install program. We prefer a C program (faster),
1290 # so one script is as good as another. But avoid the broken or
1291 # incompatible versions:
1292 # SysV /etc/install, /usr/sbin/install
1293 # SunOS /usr/etc/install
1294 # IRIX /sbin/install
1295 # AIX /bin/install
1296 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1297 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1298 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1299 # ./install, which can be erroneously created by make from ./install.sh.
1300 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1301 echo "configure:1302: checking for a BSD compatible install" >&5
1302 if test -z "$INSTALL"; then
1303 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1305 else
1306 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1307 for ac_dir in $PATH; do
1308 # Account for people who put trailing slashes in PATH elements.
1309 case "$ac_dir/" in
1310 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1312 # OSF1 and SCO ODT 3.0 have their own names for install.
1313 # Don't use installbsd from OSF since it installs stuff as root
1314 # by default.
1315 for ac_prog in ginstall scoinst install; do
1316 if test -f $ac_dir/$ac_prog; then
1317 if test $ac_prog = install &&
1318 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1319 # AIX install. It has an incompatible calling convention.
1321 else
1322 ac_cv_path_install="$ac_dir/$ac_prog -c"
1323 break 2
1326 done
1328 esac
1329 done
1330 IFS="$ac_save_IFS"
1333 if test "${ac_cv_path_install+set}" = set; then
1334 INSTALL="$ac_cv_path_install"
1335 else
1336 # As a last resort, use the slow shell script. We don't cache a
1337 # path for INSTALL within a source directory, because that will
1338 # break other packages using the cache if that directory is
1339 # removed, or if the path is relative.
1340 INSTALL="$ac_install_sh"
1343 echo "$ac_t""$INSTALL" 1>&6
1345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1346 # It thinks the first close brace ends the variable substitution.
1347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1351 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1353 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
1354 # The makefiles need to use a different form to find it in $srcdir.
1355 INSTALL='\$(..)./scripts/install-sh -c'
1357 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1358 echo "configure:1359: checking whether ln -s works" >&5
1359 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1361 else
1362 rm -f conftestdata
1363 if ln -s X conftestdata 2>/dev/null
1364 then
1365 rm -f conftestdata
1366 ac_cv_prog_LN_S="ln -s"
1367 else
1368 ac_cv_prog_LN_S=ln
1371 LN_S="$ac_cv_prog_LN_S"
1372 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1373 echo "$ac_t""yes" 1>&6
1374 else
1375 echo "$ac_t""no" 1>&6
1379 # We need the physical current working directory. We cannot use the
1380 # "pwd -P" shell builtin since that's not portable. Instead we try to
1381 # find a pwd binary. Note that assigning to the PWD environment
1382 # variable might have some interesting side effects, so we don't do
1383 # that.
1384 # Extract the first word of "pwd", so it can be a program name with args.
1385 set dummy pwd; ac_word=$2
1386 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1387 echo "configure:1388: checking for $ac_word" >&5
1388 if eval "test \"`echo '$''{'ac_cv_path_PWD_P'+set}'`\" = set"; then
1389 echo $ac_n "(cached) $ac_c" 1>&6
1390 else
1391 case "$PWD_P" in
1393 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
1395 ?:/*)
1396 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a dos path.
1399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1400 ac_dummy="$PATH"
1401 for ac_dir in $ac_dummy; do
1402 test -z "$ac_dir" && ac_dir=.
1403 if test -f $ac_dir/$ac_word; then
1404 ac_cv_path_PWD_P="$ac_dir/$ac_word"
1405 break
1407 done
1408 IFS="$ac_save_ifs"
1409 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
1411 esac
1413 PWD_P="$ac_cv_path_PWD_P"
1414 if test -n "$PWD_P"; then
1415 echo "$ac_t""$PWD_P" 1>&6
1416 else
1417 echo "$ac_t""no" 1>&6
1420 if test "$PWD_P" = no; then
1421 { echo "configure: error: *** A pwd binary could not be found." 1>&2; exit 1; }
1424 # These programs are version sensitive.
1425 echo $ac_n "checking build system type""... $ac_c" 1>&6
1426 echo "configure:1427: checking build system type" >&5
1428 build_alias=$build
1429 case "$build_alias" in
1430 NONE)
1431 case $nonopt in
1432 NONE) build_alias=$host_alias ;;
1433 *) build_alias=$nonopt ;;
1434 esac ;;
1435 esac
1437 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1438 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1439 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1440 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1441 echo "$ac_t""$build" 1>&6
1443 if test $host != $build; then
1444 ac_tool_prefix=${host_alias}-
1445 else
1446 ac_tool_prefix=
1449 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
1451 # Extract the first word of "$ac_prog", so it can be a program name with args.
1452 set dummy $ac_prog; ac_word=$2
1453 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1454 echo "configure:1455: checking for $ac_word" >&5
1455 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1457 else
1458 if test -n "$CC"; then
1459 ac_cv_prog_CC="$CC" # Let the user override the test.
1460 else
1461 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1462 ac_dummy="$PATH"
1463 for ac_dir in $ac_dummy; do
1464 test -z "$ac_dir" && ac_dir=.
1465 if test -f $ac_dir/$ac_word; then
1466 ac_cv_prog_CC="$ac_prog"
1467 break
1469 done
1470 IFS="$ac_save_ifs"
1473 CC="$ac_cv_prog_CC"
1474 if test -n "$CC"; then
1475 echo "$ac_t""$CC" 1>&6
1476 else
1477 echo "$ac_t""no" 1>&6
1480 test -n "$CC" && break
1481 done
1483 if test -z "$CC"; then
1484 ac_verc_fail=yes
1485 else
1486 # Found it, now check the version.
1487 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1488 echo "configure:1489: checking version of $CC" >&5
1489 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
1490 case $ac_prog_version in
1491 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1492 3.[2-9]*)
1493 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1494 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1496 esac
1497 echo "$ac_t""$ac_prog_version" 1>&6
1499 if test $ac_verc_fail = yes; then
1500 critic_missing="$critic_missing gcc"
1503 for ac_prog in gnumake gmake make
1505 # Extract the first word of "$ac_prog", so it can be a program name with args.
1506 set dummy $ac_prog; 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_MAKE'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1511 else
1512 if test -n "$MAKE"; then
1513 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
1514 else
1515 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1516 ac_dummy="$PATH"
1517 for ac_dir in $ac_dummy; do
1518 test -z "$ac_dir" && ac_dir=.
1519 if test -f $ac_dir/$ac_word; then
1520 ac_cv_prog_MAKE="$ac_prog"
1521 break
1523 done
1524 IFS="$ac_save_ifs"
1527 MAKE="$ac_cv_prog_MAKE"
1528 if test -n "$MAKE"; then
1529 echo "$ac_t""$MAKE" 1>&6
1530 else
1531 echo "$ac_t""no" 1>&6
1534 test -n "$MAKE" && break
1535 done
1537 if test -z "$MAKE"; then
1538 ac_verc_fail=yes
1539 else
1540 # Found it, now check the version.
1541 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1542 echo "configure:1543: checking version of $MAKE" >&5
1543 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
1544 case $ac_prog_version in
1545 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1546 3.79* | 3.[89]*)
1547 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1548 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1550 esac
1551 echo "$ac_t""$ac_prog_version" 1>&6
1553 if test $ac_verc_fail = yes; then
1554 critic_missing="$critic_missing make"
1559 if test -n "$critic_missing"; then
1560 { echo "configure: error:
1561 *** These critical programs are missing or too old:$critic_missing
1562 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1566 for ac_prog in gnumsgfmt gmsgfmt msgfmt
1568 # Extract the first word of "$ac_prog", so it can be a program name with args.
1569 set dummy $ac_prog; ac_word=$2
1570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1571 echo "configure:1572: checking for $ac_word" >&5
1572 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1573 echo $ac_n "(cached) $ac_c" 1>&6
1574 else
1575 if test -n "$MSGFMT"; then
1576 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1577 else
1578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1579 ac_dummy="$PATH"
1580 for ac_dir in $ac_dummy; do
1581 test -z "$ac_dir" && ac_dir=.
1582 if test -f $ac_dir/$ac_word; then
1583 ac_cv_prog_MSGFMT="$ac_prog"
1584 break
1586 done
1587 IFS="$ac_save_ifs"
1590 MSGFMT="$ac_cv_prog_MSGFMT"
1591 if test -n "$MSGFMT"; then
1592 echo "$ac_t""$MSGFMT" 1>&6
1593 else
1594 echo "$ac_t""no" 1>&6
1597 test -n "$MSGFMT" && break
1598 done
1600 if test -z "$MSGFMT"; then
1601 ac_verc_fail=yes
1602 else
1603 # Found it, now check the version.
1604 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1605 echo "configure:1606: checking version of $MSGFMT" >&5
1606 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1607 case $ac_prog_version in
1608 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1609 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
1610 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1611 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1613 esac
1614 echo "$ac_t""$ac_prog_version" 1>&6
1616 if test $ac_verc_fail = yes; then
1617 MSGFMT=: aux_missing="$aux_missing msgfmt"
1620 for ac_prog in makeinfo
1622 # Extract the first word of "$ac_prog", so it can be a program name with args.
1623 set dummy $ac_prog; ac_word=$2
1624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1625 echo "configure:1626: checking for $ac_word" >&5
1626 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1628 else
1629 if test -n "$MAKEINFO"; then
1630 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1631 else
1632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1633 ac_dummy="$PATH"
1634 for ac_dir in $ac_dummy; do
1635 test -z "$ac_dir" && ac_dir=.
1636 if test -f $ac_dir/$ac_word; then
1637 ac_cv_prog_MAKEINFO="$ac_prog"
1638 break
1640 done
1641 IFS="$ac_save_ifs"
1644 MAKEINFO="$ac_cv_prog_MAKEINFO"
1645 if test -n "$MAKEINFO"; then
1646 echo "$ac_t""$MAKEINFO" 1>&6
1647 else
1648 echo "$ac_t""no" 1>&6
1651 test -n "$MAKEINFO" && break
1652 done
1654 if test -z "$MAKEINFO"; then
1655 ac_verc_fail=yes
1656 else
1657 # Found it, now check the version.
1658 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1659 echo "configure:1660: checking version of $MAKEINFO" >&5
1660 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
1661 case $ac_prog_version in
1662 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1663 4.*)
1664 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1665 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1667 esac
1668 echo "$ac_t""$ac_prog_version" 1>&6
1670 if test $ac_verc_fail = yes; then
1671 MAKEINFO=: aux_missing="$aux_missing makeinfo"
1674 for ac_prog in sed
1676 # Extract the first word of "$ac_prog", so it can be a program name with args.
1677 set dummy $ac_prog; ac_word=$2
1678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1679 echo "configure:1680: checking for $ac_word" >&5
1680 if eval "test \"`echo '$''{'ac_cv_prog_SED'+set}'`\" = set"; then
1681 echo $ac_n "(cached) $ac_c" 1>&6
1682 else
1683 if test -n "$SED"; then
1684 ac_cv_prog_SED="$SED" # Let the user override the test.
1685 else
1686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1687 ac_dummy="$PATH"
1688 for ac_dir in $ac_dummy; do
1689 test -z "$ac_dir" && ac_dir=.
1690 if test -f $ac_dir/$ac_word; then
1691 ac_cv_prog_SED="$ac_prog"
1692 break
1694 done
1695 IFS="$ac_save_ifs"
1698 SED="$ac_cv_prog_SED"
1699 if test -n "$SED"; then
1700 echo "$ac_t""$SED" 1>&6
1701 else
1702 echo "$ac_t""no" 1>&6
1705 test -n "$SED" && break
1706 done
1708 if test -z "$SED"; then
1709 ac_verc_fail=yes
1710 else
1711 # Found it, now check the version.
1712 echo $ac_n "checking version of $SED""... $ac_c" 1>&6
1713 echo "configure:1714: checking version of $SED" >&5
1714 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
1715 case $ac_prog_version in
1716 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
1717 3.0[2-9]*|3.[1-9]*|[4-9]*)
1718 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
1719 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
1721 esac
1722 echo "$ac_t""$ac_prog_version" 1>&6
1724 if test $ac_verc_fail = yes; then
1725 SED=: aux_missing="$aux_missing sed"
1730 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1731 echo "configure:1732: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1732 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1734 else
1736 ac_ext=c
1737 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1738 ac_cpp='$CPP $CPPFLAGS'
1739 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1740 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1741 cross_compiling=$ac_cv_prog_cc_cross
1743 cat > conftest.$ac_ext << EOF
1745 #line 1746 "configure"
1746 #include "confdefs.h"
1748 main(){return(0);}
1750 if { (eval echo configure:1751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1751 ac_cv_prog_cc_works=yes
1752 # If we can't run a trivial program, we are probably using a cross compiler.
1753 if (./conftest; exit) 2>/dev/null; then
1754 ac_cv_prog_cc_cross=no
1755 else
1756 ac_cv_prog_cc_cross=yes
1758 else
1759 echo "configure: failed program was:" >&5
1760 cat conftest.$ac_ext >&5
1761 ac_cv_prog_cc_works=no
1763 rm -fr conftest*
1764 ac_ext=c
1765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1766 ac_cpp='$CPP $CPPFLAGS'
1767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1769 cross_compiling=$ac_cv_prog_cc_cross
1773 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1774 if test $ac_cv_prog_cc_works = no; then
1775 cross_linkable=no
1776 ac_cv_prog_cc_cross=yes
1777 else
1778 cross_linkable=yes
1780 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1781 echo "configure:1782: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1782 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1784 else
1788 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1790 cross_compiling=$ac_cv_prog_cc_cross
1792 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1793 echo "configure:1794: checking whether we are using GNU C" >&5
1794 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1796 else
1797 cat > conftest.c <<EOF
1798 #ifdef __GNUC__
1799 yes;
1800 #endif
1802 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1803 ac_cv_prog_gcc=yes
1804 else
1805 ac_cv_prog_gcc=no
1809 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1810 if test $ac_cv_prog_gcc != yes; then
1811 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1814 echo $ac_n "checking build system type""... $ac_c" 1>&6
1815 echo "configure:1816: checking build system type" >&5
1817 build_alias=$build
1818 case "$build_alias" in
1819 NONE)
1820 case $nonopt in
1821 NONE) build_alias=$host_alias ;;
1822 *) build_alias=$nonopt ;;
1823 esac ;;
1824 esac
1826 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1827 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1828 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1829 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1830 echo "$ac_t""$build" 1>&6
1832 if test $host != $build; then
1833 for ac_prog in gcc cc
1835 # Extract the first word of "$ac_prog", so it can be a program name with args.
1836 set dummy $ac_prog; ac_word=$2
1837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1838 echo "configure:1839: checking for $ac_word" >&5
1839 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1840 echo $ac_n "(cached) $ac_c" 1>&6
1841 else
1842 if test -n "$BUILD_CC"; then
1843 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1844 else
1845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1846 ac_dummy="$PATH"
1847 for ac_dir in $ac_dummy; do
1848 test -z "$ac_dir" && ac_dir=.
1849 if test -f $ac_dir/$ac_word; then
1850 ac_cv_prog_BUILD_CC="$ac_prog"
1851 break
1853 done
1854 IFS="$ac_save_ifs"
1857 BUILD_CC="$ac_cv_prog_BUILD_CC"
1858 if test -n "$BUILD_CC"; then
1859 echo "$ac_t""$BUILD_CC" 1>&6
1860 else
1861 echo "$ac_t""no" 1>&6
1864 test -n "$BUILD_CC" && break
1865 done
1869 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1870 echo "configure:1871: checking how to run the C preprocessor" >&5
1871 # On Suns, sometimes $CPP names a directory.
1872 if test -n "$CPP" && test -d "$CPP"; then
1873 CPP=
1875 if test -z "$CPP"; then
1876 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1878 else
1879 # This must be in double quotes, not single quotes, because CPP may get
1880 # substituted into the Makefile and "${CC-cc}" will confuse make.
1881 CPP="${CC-cc} -E"
1882 # On the NeXT, cc -E runs the code through the compiler's parser,
1883 # not just through cpp.
1884 cat > conftest.$ac_ext <<EOF
1885 #line 1886 "configure"
1886 #include "confdefs.h"
1887 #include <assert.h>
1888 Syntax Error
1890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1891 { (eval echo configure:1892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1893 if test -z "$ac_err"; then
1895 else
1896 echo "$ac_err" >&5
1897 echo "configure: failed program was:" >&5
1898 cat conftest.$ac_ext >&5
1899 rm -rf conftest*
1900 CPP="${CC-cc} -E -traditional-cpp"
1901 cat > conftest.$ac_ext <<EOF
1902 #line 1903 "configure"
1903 #include "confdefs.h"
1904 #include <assert.h>
1905 Syntax Error
1907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1908 { (eval echo configure:1909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1910 if test -z "$ac_err"; then
1912 else
1913 echo "$ac_err" >&5
1914 echo "configure: failed program was:" >&5
1915 cat conftest.$ac_ext >&5
1916 rm -rf conftest*
1917 CPP="${CC-cc} -nologo -E"
1918 cat > conftest.$ac_ext <<EOF
1919 #line 1920 "configure"
1920 #include "confdefs.h"
1921 #include <assert.h>
1922 Syntax Error
1924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1925 { (eval echo configure:1926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1927 if test -z "$ac_err"; then
1929 else
1930 echo "$ac_err" >&5
1931 echo "configure: failed program was:" >&5
1932 cat conftest.$ac_ext >&5
1933 rm -rf conftest*
1934 CPP=/lib/cpp
1936 rm -f conftest*
1938 rm -f conftest*
1940 rm -f conftest*
1941 ac_cv_prog_CPP="$CPP"
1943 CPP="$ac_cv_prog_CPP"
1944 else
1945 ac_cv_prog_CPP="$CPP"
1947 echo "$ac_t""$CPP" 1>&6
1949 # Was a --with-binutils option given?
1950 if test -n "$path_binutils"; then
1951 # Make absolute; ensure a single trailing slash.
1952 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1953 CC="$CC -B$path_binutils"
1955 AS=`$CC -print-prog-name=as`
1956 LD=`$CC -print-prog-name=ld`
1957 AR=`$CC -print-prog-name=ar`
1960 # ranlib has to be treated a bit differently since it might not exist at all.
1961 ac_ranlib=`$CC -print-prog-name=ranlib`
1962 if test "x$ac_ranlib" = xranlib; then
1963 # This extra check has to happen since gcc simply echos the parameter in
1964 # case it cannot find the value in its own directories.
1965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1966 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1968 echo "configure:1969: checking for $ac_word" >&5
1969 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1970 echo $ac_n "(cached) $ac_c" 1>&6
1971 else
1972 if test -n "$RANLIB"; then
1973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1974 else
1975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1976 ac_dummy="$PATH"
1977 for ac_dir in $ac_dummy; do
1978 test -z "$ac_dir" && ac_dir=.
1979 if test -f $ac_dir/$ac_word; then
1980 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1981 break
1983 done
1984 IFS="$ac_save_ifs"
1987 RANLIB="$ac_cv_prog_RANLIB"
1988 if test -n "$RANLIB"; then
1989 echo "$ac_t""$RANLIB" 1>&6
1990 else
1991 echo "$ac_t""no" 1>&6
1995 if test -z "$ac_cv_prog_RANLIB"; then
1996 if test -n "$ac_tool_prefix"; then
1997 # Extract the first word of "ranlib", so it can be a program name with args.
1998 set dummy ranlib; ac_word=$2
1999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2000 echo "configure:2001: checking for $ac_word" >&5
2001 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2003 else
2004 if test -n "$RANLIB"; then
2005 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2006 else
2007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2008 ac_dummy="$PATH"
2009 for ac_dir in $ac_dummy; do
2010 test -z "$ac_dir" && ac_dir=.
2011 if test -f $ac_dir/$ac_word; then
2012 ac_cv_prog_RANLIB="ranlib"
2013 break
2015 done
2016 IFS="$ac_save_ifs"
2017 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2020 RANLIB="$ac_cv_prog_RANLIB"
2021 if test -n "$RANLIB"; then
2022 echo "$ac_t""$RANLIB" 1>&6
2023 else
2024 echo "$ac_t""no" 1>&6
2027 else
2028 RANLIB=":"
2032 else
2033 RANLIB=$ac_ranlib
2037 # Determine whether we are using GNU binutils.
2038 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
2039 echo "configure:2040: checking whether $AS is GNU as" >&5
2040 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
2041 echo $ac_n "(cached) $ac_c" 1>&6
2042 else
2043 # Most GNU programs take a -v and spit out some text including
2044 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
2045 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
2046 libc_cv_prog_as_gnu=yes
2047 else
2048 libc_cv_prog_as_gnu=no
2050 rm -fr contest*
2053 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
2054 rm -f a.out
2055 gnu_as=$libc_cv_prog_as_gnu
2057 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
2058 echo "configure:2059: checking whether $LD is GNU ld" >&5
2059 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2061 else
2062 # Most GNU programs take a -v and spit out some text including
2063 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
2064 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
2065 libc_cv_prog_ld_gnu=yes
2066 else
2067 libc_cv_prog_ld_gnu=no
2069 rm -fr contest*
2072 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
2073 gnu_ld=$libc_cv_prog_ld_gnu
2075 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
2076 set dummy ${ac_tool_prefix}mig; ac_word=$2
2077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2078 echo "configure:2079: checking for $ac_word" >&5
2079 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
2080 echo $ac_n "(cached) $ac_c" 1>&6
2081 else
2082 if test -n "$MIG"; then
2083 ac_cv_prog_MIG="$MIG" # Let the user override the test.
2084 else
2085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2086 ac_dummy="$PATH"
2087 for ac_dir in $ac_dummy; do
2088 test -z "$ac_dir" && ac_dir=.
2089 if test -f $ac_dir/$ac_word; then
2090 ac_cv_prog_MIG="${ac_tool_prefix}mig"
2091 break
2093 done
2094 IFS="$ac_save_ifs"
2097 MIG="$ac_cv_prog_MIG"
2098 if test -n "$MIG"; then
2099 echo "$ac_t""$MIG" 1>&6
2100 else
2101 echo "$ac_t""no" 1>&6
2105 if test -z "$ac_cv_prog_MIG"; then
2106 if test -n "$ac_tool_prefix"; then
2107 # Extract the first word of "mig", so it can be a program name with args.
2108 set dummy mig; ac_word=$2
2109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2110 echo "configure:2111: checking for $ac_word" >&5
2111 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2113 else
2114 if test -n "$MIG"; then
2115 ac_cv_prog_MIG="$MIG" # Let the user override the test.
2116 else
2117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2118 ac_dummy="$PATH"
2119 for ac_dir in $ac_dummy; do
2120 test -z "$ac_dir" && ac_dir=.
2121 if test -f $ac_dir/$ac_word; then
2122 ac_cv_prog_MIG="mig"
2123 break
2125 done
2126 IFS="$ac_save_ifs"
2127 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG="MISSING"
2130 MIG="$ac_cv_prog_MIG"
2131 if test -n "$MIG"; then
2132 echo "$ac_t""$MIG" 1>&6
2133 else
2134 echo "$ac_t""no" 1>&6
2137 else
2138 MIG="MISSING"
2143 # Accept binutils 2.10.1 or newer (and also any ia64 2.9 version)
2144 # XXX Commented out because it filters out too many good versions.
2145 # XXX --drepper
2146 # AC_CHECK_PROG_VER(AS, $AS, --version,
2147 # [GNU assembler.* \([0-9]*\.[0-9.]*\(-ia64-[0-9]*\)*\)],
2148 # [2.10.[1-9]* | 2.1[1-9]* | 2.9-ia64-*], AS=: critic_missing=t)
2150 test -n "$aux_missing" && echo "configure: warning:
2151 *** These auxiliary programs are missing or too old:$aux_missing
2152 *** some features will be disabled.
2153 *** Check the INSTALL file for required versions." 1>&2
2155 # glibcbug.in wants to know the compiler version.
2156 CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
2159 # if using special system headers, find out the compiler's sekrit
2160 # header directory and add that to the list. NOTE: Only does the right
2161 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
2162 if test -n "$sysheaders"; then
2163 ccheaders=`$CC -print-file-name=include`
2164 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
2168 # check if ranlib is necessary
2169 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
2170 echo "configure:2171: checking whether ranlib is necessary" >&5
2171 if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
2172 echo $ac_n "(cached) $ac_c" 1>&6
2173 else
2174 cat > conftest.c <<EOF
2175 int a;
2176 char b;
2177 void c(void) {}
2179 $CC $CFLAGS -c conftest.c
2180 $AR cr conftest.a conftest.o
2181 cp conftest.a conftest2.a
2182 $RANLIB conftest.a
2183 if cmp -s conftest.a conftest2.a; then
2184 libc_cv_ranlib_necessary=no
2185 else
2186 libc_cv_ranlib_necessary=yes
2188 rm -rf conftest*
2191 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
2192 if test "$libc_cv_ranlib_necessary" = no; then
2193 RANLIB=:
2196 # Test if LD_LIBRARY_PATH contains the notation for the current directory
2197 # since this would lead to problems installing/building glibc.
2198 # LD_LIBRARY_PATH contains the current directory if one of the following
2199 # is true:
2200 # - one of the terminals (":" and ";") is the first or last sign
2201 # - two terminals occur directly after each other
2202 # - the path contains an element with a dot in it
2203 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
2204 echo "configure:2205: checking LD_LIBRARY_PATH variable" >&5
2205 case ${LD_LIBRARY_PATH} in
2206 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
2207 ld_library_path_setting="contains current directory"
2210 ld_library_path_setting="ok"
2212 esac
2213 echo "$ac_t""$ld_library_path_setting" 1>&6
2214 if test "$ld_library_path_setting" != "ok"; then
2215 { echo "configure: error:
2216 *** LD_LIBRARY_PATH shouldn't contain the current directory when
2217 *** building glibc. Please change the environment variable
2218 *** and run configure again." 1>&2; exit 1; }
2221 echo $ac_n "checking whether GCC supports -static-libgcc""... $ac_c" 1>&6
2222 echo "configure:2223: checking whether GCC supports -static-libgcc" >&5
2223 if eval "test \"`echo '$''{'libc_cv_gcc_static_libgcc'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2225 else
2226 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
2227 libc_cv_gcc_static_libgcc=
2228 else
2229 libc_cv_gcc_static_libgcc=-static-libgcc
2233 echo "$ac_t""$libc_cv_gcc_static_libgcc" 1>&6
2236 # Extract the first word of "bash", so it can be a program name with args.
2237 set dummy bash; ac_word=$2
2238 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2239 echo "configure:2240: checking for $ac_word" >&5
2240 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2242 else
2243 case "$BASH" in
2245 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2247 ?:/*)
2248 ac_cv_path_BASH="$BASH" # Let the user override the test with a dos path.
2251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2252 ac_dummy="$PATH"
2253 for ac_dir in $ac_dummy; do
2254 test -z "$ac_dir" && ac_dir=.
2255 if test -f $ac_dir/$ac_word; then
2256 ac_cv_path_BASH="$ac_dir/$ac_word"
2257 break
2259 done
2260 IFS="$ac_save_ifs"
2261 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
2263 esac
2265 BASH="$ac_cv_path_BASH"
2266 if test -n "$BASH"; then
2267 echo "$ac_t""$BASH" 1>&6
2268 else
2269 echo "$ac_t""no" 1>&6
2272 if test "$BASH" != no &&
2273 $BASH -c 'test "$BASH_VERSINFO" \
2274 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
2275 libc_cv_have_bash2=yes
2276 else
2277 libc_cv_have_bash2=no
2281 if test "$BASH" = no; then
2282 # Extract the first word of "ksh", so it can be a program name with args.
2283 set dummy ksh; ac_word=$2
2284 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2285 echo "configure:2286: checking for $ac_word" >&5
2286 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2288 else
2289 case "$KSH" in
2291 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2293 ?:/*)
2294 ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path.
2297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2298 ac_dummy="$PATH"
2299 for ac_dir in $ac_dummy; do
2300 test -z "$ac_dir" && ac_dir=.
2301 if test -f $ac_dir/$ac_word; then
2302 ac_cv_path_KSH="$ac_dir/$ac_word"
2303 break
2305 done
2306 IFS="$ac_save_ifs"
2307 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
2309 esac
2311 KSH="$ac_cv_path_KSH"
2312 if test -n "$KSH"; then
2313 echo "$ac_t""$KSH" 1>&6
2314 else
2315 echo "$ac_t""no" 1>&6
2318 if test "$KSH" = no; then
2319 libc_cv_have_ksh=no
2320 else
2321 libc_cv_have_ksh=yes
2323 else
2324 KSH="$BASH"
2326 libc_cv_have_ksh=yes
2330 for ac_prog in gawk mawk nawk awk
2332 # Extract the first word of "$ac_prog", so it can be a program name with args.
2333 set dummy $ac_prog; ac_word=$2
2334 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2335 echo "configure:2336: checking for $ac_word" >&5
2336 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2337 echo $ac_n "(cached) $ac_c" 1>&6
2338 else
2339 if test -n "$AWK"; then
2340 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2341 else
2342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2343 ac_dummy="$PATH"
2344 for ac_dir in $ac_dummy; do
2345 test -z "$ac_dir" && ac_dir=.
2346 if test -f $ac_dir/$ac_word; then
2347 ac_cv_prog_AWK="$ac_prog"
2348 break
2350 done
2351 IFS="$ac_save_ifs"
2354 AWK="$ac_cv_prog_AWK"
2355 if test -n "$AWK"; then
2356 echo "$ac_t""$AWK" 1>&6
2357 else
2358 echo "$ac_t""no" 1>&6
2361 test -n "$AWK" && break
2362 done
2364 # Extract the first word of "perl", so it can be a program name with args.
2365 set dummy perl; ac_word=$2
2366 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2367 echo "configure:2368: checking for $ac_word" >&5
2368 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2370 else
2371 case "$PERL" in
2373 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2375 ?:/*)
2376 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
2379 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2380 ac_dummy="$PATH"
2381 for ac_dir in $ac_dummy; do
2382 test -z "$ac_dir" && ac_dir=.
2383 if test -f $ac_dir/$ac_word; then
2384 ac_cv_path_PERL="$ac_dir/$ac_word"
2385 break
2387 done
2388 IFS="$ac_save_ifs"
2389 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
2391 esac
2393 PERL="$ac_cv_path_PERL"
2394 if test -n "$PERL"; then
2395 echo "$ac_t""$PERL" 1>&6
2396 else
2397 echo "$ac_t""no" 1>&6
2400 if test "$PERL" != no &&
2401 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
2402 PERL=no
2404 # Extract the first word of "install-info", so it can be a program name with args.
2405 set dummy install-info; ac_word=$2
2406 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2407 echo "configure:2408: checking for $ac_word" >&5
2408 if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2410 else
2411 case "$INSTALL_INFO" in
2413 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
2415 ?:/*)
2416 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a dos path.
2419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2420 ac_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
2421 for ac_dir in $ac_dummy; do
2422 test -z "$ac_dir" && ac_dir=.
2423 if test -f $ac_dir/$ac_word; then
2424 ac_cv_path_INSTALL_INFO="$ac_dir/$ac_word"
2425 break
2427 done
2428 IFS="$ac_save_ifs"
2429 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
2431 esac
2433 INSTALL_INFO="$ac_cv_path_INSTALL_INFO"
2434 if test -n "$INSTALL_INFO"; then
2435 echo "$ac_t""$INSTALL_INFO" 1>&6
2436 else
2437 echo "$ac_t""no" 1>&6
2440 if test "$INSTALL_INFO" != "no"; then
2441 echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
2442 echo "configure:2443: checking for old Debian install-info" >&5
2443 if eval "test \"`echo '$''{'libc_cv_old_debian_install_info'+set}'`\" = set"; then
2444 echo $ac_n "(cached) $ac_c" 1>&6
2445 else
2446 mkdir conftest.d
2447 # There is a hard ^_ on the next line. I am open to better ideas.
2448 (echo '\x1f'
2449 echo 'File: dir Node: Top This is the top of the INFO tree'
2450 echo '* Menu:') >conftest.d/dir
2451 (echo 'INFO-DIR-SECTION i-d-s works'
2452 echo 'START-INFO-DIR-ENTRY'
2453 echo '* Prog: (prog). Program.'
2454 echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
2455 if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
2456 then
2457 if grep -s 'i-d-s works' conftest.d/dir >/dev/null
2458 then libc_cv_old_debian_install_info=no
2459 else libc_cv_old_debian_install_info=yes
2461 else libc_cv_old_debian_install_info=no testfailed=t
2463 rm -fr conftest.d
2466 echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2467 if test -n "$testfailed"
2468 then echo "configure: warning: install-info errored out, check config.log" 1>&2
2470 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
2474 # Extract the first word of "bison", so it can be a program name with args.
2475 set dummy bison; ac_word=$2
2476 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2477 echo "configure:2478: checking for $ac_word" >&5
2478 if eval "test \"`echo '$''{'ac_cv_path_BISON'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2480 else
2481 case "$BISON" in
2483 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
2485 ?:/*)
2486 ac_cv_path_BISON="$BISON" # Let the user override the test with a dos path.
2489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2490 ac_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
2491 for ac_dir in $ac_dummy; do
2492 test -z "$ac_dir" && ac_dir=.
2493 if test -f $ac_dir/$ac_word; then
2494 ac_cv_path_BISON="$ac_dir/$ac_word"
2495 break
2497 done
2498 IFS="$ac_save_ifs"
2499 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
2501 esac
2503 BISON="$ac_cv_path_BISON"
2504 if test -n "$BISON"; then
2505 echo "$ac_t""$BISON" 1>&6
2506 else
2507 echo "$ac_t""no" 1>&6
2511 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2512 echo "configure:2513: checking for signed size_t type" >&5
2513 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2515 else
2516 echo '#include <stddef.h>
2517 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2518 if eval "$ac_cpp conftest.c 2>/dev/null" \
2519 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
2520 libc_cv_signed_size_t=no
2521 else
2522 libc_cv_signed_size_t=yes
2524 rm -f conftest*
2527 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2528 if test $libc_cv_signed_size_t = yes; then
2529 cat >> confdefs.h <<\EOF
2530 #undef __SIZE_TYPE__
2531 #define __SIZE_TYPE__ unsigned
2535 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2536 echo "configure:2537: checking for libc-friendly stddef.h" >&5
2537 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2539 else
2540 cat > conftest.$ac_ext <<EOF
2541 #line 2542 "configure"
2542 #include "confdefs.h"
2543 #define __need_size_t
2544 #define __need_wchar_t
2545 #include <stddef.h>
2546 #define __need_NULL
2547 #include <stddef.h>
2548 int main() {
2549 size_t size; wchar_t wchar;
2550 #ifdef offsetof
2551 #error stddef.h ignored __need_*
2552 #endif
2553 if (&size == NULL || &wchar == NULL) abort ();
2554 ; return 0; }
2556 if { (eval echo configure:2557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2557 rm -rf conftest*
2558 libc_cv_friendly_stddef=yes
2559 else
2560 echo "configure: failed program was:" >&5
2561 cat conftest.$ac_ext >&5
2562 rm -rf conftest*
2563 libc_cv_friendly_stddef=no
2565 rm -f conftest*
2568 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2569 if test $libc_cv_friendly_stddef = yes; then
2570 config_vars="$config_vars
2571 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2574 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2575 echo "configure:2576: checking whether we need to use -P to assemble .S files" >&5
2576 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2577 echo $ac_n "(cached) $ac_c" 1>&6
2578 else
2579 cat > conftest.S <<EOF
2580 #include "confdefs.h"
2581 /* Nothing whatsoever. */
2583 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
2584 libc_cv_need_minus_P=no
2585 else
2586 libc_cv_need_minus_P=yes
2588 rm -f conftest*
2591 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2592 if test $libc_cv_need_minus_P = yes; then
2593 config_vars="$config_vars
2594 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2597 echo $ac_n "checking whether .text pseudo-op must be used""... $ac_c" 1>&6
2598 echo "configure:2599: checking whether .text pseudo-op must be used" >&5
2599 if eval "test \"`echo '$''{'libc_cv_dot_text'+set}'`\" = set"; then
2600 echo $ac_n "(cached) $ac_c" 1>&6
2601 else
2602 cat > conftest.s <<EOF
2603 .text
2605 libc_cv_dot_text=
2606 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2607 libc_cv_dot_text=.text
2609 rm -f conftest*
2612 if test -z "$libc_cv_dot_text"; then
2613 echo "$ac_t""no" 1>&6
2614 else
2615 echo "$ac_t""yes" 1>&6
2618 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2619 echo "configure:2620: checking for assembler global-symbol directive" >&5
2620 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2622 else
2623 libc_cv_asm_global_directive=UNKNOWN
2624 for ac_globl in .globl .global .EXPORT; do
2625 cat > conftest.s <<EOF
2626 ${libc_cv_dot_text}
2627 ${ac_globl} foo
2628 foo:
2630 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2631 libc_cv_asm_global_directive=${ac_globl}
2633 rm -f conftest*
2634 test $libc_cv_asm_global_directive != UNKNOWN && break
2635 done
2638 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2639 if test $libc_cv_asm_global_directive = UNKNOWN; then
2640 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2641 else
2642 cat >> confdefs.h <<EOF
2643 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2648 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2649 echo "configure:2650: checking for .set assembler directive" >&5
2650 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2651 echo $ac_n "(cached) $ac_c" 1>&6
2652 else
2653 cat > conftest.s <<EOF
2654 ${libc_cv_dot_text}
2655 foo:
2656 .set glibc_conftest_frobozz,foo
2657 $libc_cv_asm_global_directive glibc_conftest_frobozz
2659 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2660 # (but it doesn't work), so we must do a linking check to be sure.
2661 cat > conftest1.c <<\EOF
2662 extern int glibc_conftest_frobozz;
2663 main () { printf ("%d\n", glibc_conftest_frobozz); }
2665 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2666 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
2667 libc_cv_asm_set_directive=yes
2668 else
2669 libc_cv_asm_set_directive=no
2671 rm -f conftest*
2674 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2675 if test $libc_cv_asm_set_directive = yes; then
2676 cat >> confdefs.h <<\EOF
2677 #define HAVE_ASM_SET_DIRECTIVE 1
2682 echo $ac_n "checking for assembler .type directive prefix""... $ac_c" 1>&6
2683 echo "configure:2684: checking for assembler .type directive prefix" >&5
2684 if eval "test \"`echo '$''{'libc_cv_asm_type_prefix'+set}'`\" = set"; then
2685 echo $ac_n "(cached) $ac_c" 1>&6
2686 else
2687 libc_cv_asm_type_prefix=no
2688 for ac_try_prefix in '@' '%' '#'; do
2689 cat > conftest.s <<EOF
2690 ${libc_cv_dot_text}
2691 ${libc_cv_asm_global_directive} foo
2692 .type foo, ${ac_try_prefix}object
2693 .size foo, 1
2694 foo:
2695 .byte 1
2697 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2698 libc_cv_asm_type_prefix=${ac_try_prefix}
2700 rm -f conftest*
2701 test "x$libc_cv_asm_type_prefix" != xno && break
2702 done
2705 echo "$ac_t""$libc_cv_asm_type_prefix" 1>&6
2706 if test "x$libc_cv_asm_type_prefix" != xno; then
2707 cat >> confdefs.h <<EOF
2708 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
2713 # The Aix ld uses global .symbol_names instead of symbol_names.
2714 # Unfortunately also used in the PPC64 ELF ABI.
2715 case "${os}${machine}" in
2716 aix4.3* | linux*powerpc/powerpc64*)
2717 cat >> confdefs.h <<\EOF
2718 #define HAVE_ASM_GLOBAL_DOT_NAME 1
2721 esac
2723 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2724 echo "configure:2725: checking for .symver assembler directive" >&5
2725 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2727 else
2728 cat > conftest.s <<EOF
2729 ${libc_cv_dot_text}
2730 _sym:
2731 .symver _sym,sym@VERS
2733 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2734 libc_cv_asm_symver_directive=yes
2735 else
2736 libc_cv_asm_symver_directive=no
2738 rm -f conftest*
2741 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2742 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2743 echo "configure:2744: checking for ld --version-script" >&5
2744 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6
2746 else
2747 if test $libc_cv_asm_symver_directive = yes; then
2748 cat > conftest.s <<EOF
2749 ${libc_cv_dot_text}
2750 _sym:
2751 .symver _sym,sym@VERS
2753 cat > conftest.map <<EOF
2754 VERS_1 {
2755 global: sym;
2758 VERS_2 {
2759 global: sym;
2760 } VERS_1;
2762 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2763 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2764 -nostartfiles -nostdlib
2765 -Wl,--version-script,conftest.map
2766 1>&5'; { (eval echo configure:2767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2767 then
2768 libc_cv_ld_version_script_option=yes
2769 else
2770 libc_cv_ld_version_script_option=no
2772 else
2773 libc_cv_ld_version_script_option=no
2775 else
2776 libc_cv_ld_version_script_option=no
2778 rm -f conftest*
2781 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2782 if test $shared != no &&
2783 test $libc_cv_asm_symver_directive = yes &&
2784 test $libc_cv_ld_version_script_option = yes &&
2785 test $enable_versioning = yes; then
2786 VERSIONING=yes
2787 cat >> confdefs.h <<\EOF
2788 #define DO_VERSIONING 1
2791 else
2792 VERSIONING=no
2796 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
2797 echo "\
2798 *** WARNING: You should not compile GNU libc without versioning. Not using
2799 *** versioning will introduce incompatibilities so that old binaries
2800 *** will not run anymore.
2801 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2803 if test $elf = yes; then
2804 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2805 echo "configure:2806: checking for .previous assembler directive" >&5
2806 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2807 echo $ac_n "(cached) $ac_c" 1>&6
2808 else
2809 cat > conftest.s <<EOF
2810 .section foo_section
2811 .previous
2813 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2814 libc_cv_asm_previous_directive=yes
2815 else
2816 libc_cv_asm_previous_directive=no
2818 rm -f conftest*
2821 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2822 if test $libc_cv_asm_previous_directive = yes; then
2823 cat >> confdefs.h <<\EOF
2824 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2827 else
2828 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2829 echo "configure:2830: checking for .popsection assembler directive" >&5
2830 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2831 echo $ac_n "(cached) $ac_c" 1>&6
2832 else
2833 cat > conftest.s <<EOF
2834 .pushsection foo_section
2835 .popsection
2837 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2838 libc_cv_asm_popsection_directive=yes
2839 else
2840 libc_cv_asm_popsection_directive=no
2842 rm -f conftest*
2845 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2846 if test $libc_cv_asm_popsection_directive = yes; then
2847 cat >> confdefs.h <<\EOF
2848 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2853 echo $ac_n "checking for .protected and .hidden assembler directive""... $ac_c" 1>&6
2854 echo "configure:2855: checking for .protected and .hidden assembler directive" >&5
2855 if eval "test \"`echo '$''{'libc_cv_asm_protected_directive'+set}'`\" = set"; then
2856 echo $ac_n "(cached) $ac_c" 1>&6
2857 else
2858 cat > conftest.s <<EOF
2859 .protected foo
2860 foo:
2861 .hidden bar
2862 bar:
2864 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2865 libc_cv_asm_protected_directive=yes
2866 else
2867 libc_cv_asm_protected_directive=no
2869 rm -f conftest*
2872 echo "$ac_t""$libc_cv_asm_protected_directive" 1>&6
2874 cat >> confdefs.h <<\EOF
2875 #define HAVE_PROTECTED 1
2878 cat >> confdefs.h <<\EOF
2879 #define HAVE_HIDDEN 1
2883 if test $libc_cv_asm_protected_directive = yes; then
2884 echo $ac_n "checking whether __attribute__((visibility())) is supported""... $ac_c" 1>&6
2885 echo "configure:2886: checking whether __attribute__((visibility())) is supported" >&5
2886 if eval "test \"`echo '$''{'libc_cv_visibility_attribute'+set}'`\" = set"; then
2887 echo $ac_n "(cached) $ac_c" 1>&6
2888 else
2889 cat > conftest.c <<EOF
2890 int foo __attribute__ ((visibility ("hidden"))) = 1;
2891 int bar __attribute__ ((visibility ("protected"))) = 1;
2893 libc_cv_visibility_attribute=no
2894 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
2895 if grep '\.hidden.*foo' conftest.s >/dev/null; then
2896 if grep '\.protected.*bar' conftest.s >/dev/null; then
2897 libc_cv_visibility_attribute=yes
2901 rm -f conftest.cs
2905 echo "$ac_t""$libc_cv_visibility_attribute" 1>&6
2906 if test $libc_cv_visibility_attribute = yes; then
2907 cat >> confdefs.h <<\EOF
2908 #define HAVE_VISIBILITY_ATTRIBUTE 1
2914 if test $libc_cv_visibility_attribute = yes; then
2915 echo $ac_n "checking for broken __attribute__((visibility()))""... $ac_c" 1>&6
2916 echo "configure:2917: checking for broken __attribute__((visibility()))" >&5
2917 if eval "test \"`echo '$''{'libc_cv_broken_visibility_attribute'+set}'`\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2919 else
2920 cat > conftest.c <<EOF
2921 int foo (int x);
2922 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
2923 int bar (int x) { return x; }
2925 libc_cv_broken_visibility_attribute=yes
2926 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
2927 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
2928 libc_cv_broken_visibility_attribute=no
2931 rm -f conftest.c conftest.s
2935 echo "$ac_t""$libc_cv_broken_visibility_attribute" 1>&6
2936 if test $libc_cv_broken_visibility_attribute = yes; then
2937 cat >> confdefs.h <<\EOF
2938 #define HAVE_BROKEN_VISIBILITY_ATTRIBUTE 1
2944 echo $ac_n "checking for broken __attribute__((alias()))""... $ac_c" 1>&6
2945 echo "configure:2946: checking for broken __attribute__((alias()))" >&5
2946 if eval "test \"`echo '$''{'libc_cv_broken_alias_attribute'+set}'`\" = set"; then
2947 echo $ac_n "(cached) $ac_c" 1>&6
2948 else
2949 cat > conftest.c <<EOF
2950 extern int foo (int x) __asm ("xyzzy");
2951 int bar (int x) { return x; }
2952 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
2953 extern int dfoo;
2954 extern __typeof (dfoo) dfoo __asm ("abccb");
2955 int dfoo = 1;
2957 libc_cv_broken_alias_attribute=yes
2958 if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
2959 if grep 'xyzzy' conftest.s >/dev/null &&
2960 grep 'abccb' conftest.s >/dev/null; then
2961 libc_cv_broken_alias_attribute=no
2964 rm -f conftest.c conftest.s
2968 echo "$ac_t""$libc_cv_broken_alias_attribute" 1>&6
2969 if test $libc_cv_broken_alias_attribute = yes; then
2970 cat >> confdefs.h <<\EOF
2971 #define HAVE_BROKEN_ALIAS_ATTRIBUTE 1
2976 if test $libc_cv_visibility_attribute = yes -a $gnu_ld = yes; then
2977 echo $ac_n "checking whether to put _rtld_local into .sdata section""... $ac_c" 1>&6
2978 echo "configure:2979: checking whether to put _rtld_local into .sdata section" >&5
2979 if eval "test \"`echo '$''{'libc_cv_have_sdata_section'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2981 else
2982 echo "int i;" > conftest.c
2983 libc_cv_have_sdata_section=no
2984 if ${CC-cc} -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
2985 | grep '\.sdata' >/dev/null; then
2986 libc_cv_have_sdata_section=yes
2988 rm -f conftest.c conftest.so
2992 echo "$ac_t""$libc_cv_have_sdata_section" 1>&6
2993 if test $libc_cv_have_sdata_section = yes; then
2994 cat >> confdefs.h <<\EOF
2995 #define HAVE_SDATA_SECTION 1
3001 echo $ac_n "checking for .preinit_array/.init_array/.fini_array support""... $ac_c" 1>&6
3002 echo "configure:3003: checking for .preinit_array/.init_array/.fini_array support" >&5
3003 if eval "test \"`echo '$''{'libc_cv_initfinit_array'+set}'`\" = set"; then
3004 echo $ac_n "(cached) $ac_c" 1>&6
3005 else
3006 cat > conftest.c <<EOF
3007 int _start (void) { return 0; }
3008 int __start (void) { return 0; }
3009 int foo (void) { return 1; }
3010 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
3012 if { ac_try='${CC-cc} -o conftest conftest.c
3013 -static -nostartfiles -nostdlib 1>&5'; { (eval echo configure:3014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
3014 then
3015 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
3016 libc_cv_initfinit_array=yes
3017 else
3018 libc_cv_initfinit_array=no
3020 else
3021 libc_cv_initfinit_array=no
3023 rm -f conftest*
3026 echo "$ac_t""$libc_cv_initfinit_array" 1>&6
3028 if test $libc_cv_initfinit_array = yes; then
3029 cat >> confdefs.h <<\EOF
3030 #define HAVE_INITFINI_ARRAY 1
3035 echo $ac_n "checking for -z nodelete option""... $ac_c" 1>&6
3036 echo "configure:3037: checking for -z nodelete option" >&5
3037 if eval "test \"`echo '$''{'libc_cv_z_nodelete'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3039 else
3040 cat > conftest.c <<EOF
3041 int _start (void) { return 42; }
3043 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
3044 -nostartfiles -nostdlib
3045 -Wl,--enable-new-dtags,-z,nodelete 1>&5'; { (eval echo configure:3046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
3046 then
3047 libc_cv_z_nodelete=yes
3048 else
3049 libc_cv_z_nodelete=no
3051 rm -f conftest*
3054 echo "$ac_t""$libc_cv_z_nodelete" 1>&6
3057 echo $ac_n "checking for -z nodlopen option""... $ac_c" 1>&6
3058 echo "configure:3059: checking for -z nodlopen option" >&5
3059 if eval "test \"`echo '$''{'libc_cv_z_nodlopen'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3061 else
3062 cat > conftest.c <<EOF
3063 int _start (void) { return 42; }
3065 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
3066 -nostartfiles -nostdlib
3067 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'; { (eval echo configure:3068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
3068 then
3069 libc_cv_z_nodlopen=yes
3070 else
3071 libc_cv_z_nodlopen=no
3073 rm -f conftest*
3076 echo "$ac_t""$libc_cv_z_nodlopen" 1>&6
3079 echo $ac_n "checking for -z initfirst option""... $ac_c" 1>&6
3080 echo "configure:3081: checking for -z initfirst option" >&5
3081 if eval "test \"`echo '$''{'libc_cv_z_initfirst'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3083 else
3084 cat > conftest.c <<EOF
3085 int _start (void) { return 42; }
3087 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
3088 -nostartfiles -nostdlib
3089 -Wl,--enable-new-dtags,-z,initfirst 1>&5'; { (eval echo configure:3090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
3090 then
3091 libc_cv_z_initfirst=yes
3092 else
3093 libc_cv_z_initfirst=no
3095 rm -f conftest*
3098 echo "$ac_t""$libc_cv_z_initfirst" 1>&6
3101 echo $ac_n "checking for -Bgroup option""... $ac_c" 1>&6
3102 echo "configure:3103: checking for -Bgroup option" >&5
3103 if eval "test \"`echo '$''{'libc_cv_Bgroup'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3105 else
3106 cat > conftest.c <<EOF
3107 int _start (void) { return 42; }
3109 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,-Bgroup -nostdlib 1>&5'; { (eval echo configure:3110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
3110 then
3111 libc_cv_Bgroup=yes
3112 else
3113 libc_cv_Bgroup=no
3115 rm -f conftest*
3118 echo "$ac_t""$libc_cv_Bgroup" 1>&6
3121 echo $ac_n "checking for -z combreloc""... $ac_c" 1>&6
3122 echo "configure:3123: checking for -z combreloc" >&5
3123 if eval "test \"`echo '$''{'libc_cv_z_combreloc'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3125 else
3126 cat > conftest.c <<EOF
3127 extern int bar (int);
3128 extern int mumble;
3129 int foo (void) { return bar (mumble); }
3131 if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
3132 -nostdlib -nostartfiles
3133 -Wl,-z,combreloc 1>&5'; { (eval echo configure:3134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
3134 then
3135 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
3136 libc_cv_z_combreloc=yes
3137 else
3138 libc_cv_z_combreloc=no
3140 else
3141 libc_cv_z_combreloc=no
3143 rm -f conftest*
3146 echo "$ac_t""$libc_cv_z_combreloc" 1>&6
3147 if test "$libc_cv_z_combreloc" = yes; then
3148 cat >> confdefs.h <<\EOF
3149 #define HAVE_Z_COMBRELOC 1
3156 if test $elf != yes; then
3157 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
3158 echo "configure:3159: checking for .init and .fini sections" >&5
3159 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
3160 echo $ac_n "(cached) $ac_c" 1>&6
3161 else
3162 cat > conftest.$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3166 int main() {
3167 asm (".section .init");
3168 asm (".section .fini");
3169 asm ("${libc_cv_dot_text}");
3170 ; return 0; }
3172 if { (eval echo configure:3173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3173 rm -rf conftest*
3174 libc_cv_have_initfini=yes
3175 else
3176 echo "configure: failed program was:" >&5
3177 cat conftest.$ac_ext >&5
3178 rm -rf conftest*
3179 libc_cv_have_initfini=no
3181 rm -f conftest*
3184 echo "$ac_t""$libc_cv_have_initfini" 1>&6
3185 if test $libc_cv_have_initfini = yes; then
3186 cat >> confdefs.h <<\EOF
3187 #define HAVE_INITFINI 1
3193 if test $elf = yes -a $gnu_ld = yes; then
3194 echo $ac_n "checking whether cc puts quotes around section names""... $ac_c" 1>&6
3195 echo "configure:3196: checking whether cc puts quotes around section names" >&5
3196 if eval "test \"`echo '$''{'libc_cv_have_section_quotes'+set}'`\" = set"; then
3197 echo $ac_n "(cached) $ac_c" 1>&6
3198 else
3199 cat > conftest.c <<EOF
3200 static const int foo
3201 __attribute__ ((section ("bar"))) = 1;
3203 if ${CC-cc} -S conftest.c -o conftest.s; then
3204 if grep '\.section.*"bar"' conftest.s >/dev/null; then
3205 libc_cv_have_section_quotes=yes
3206 else
3207 libc_cv_have_section_quotes=no
3209 else
3210 libc_cv_have_section_quotes=unknown
3212 rm -f conftest.cs
3216 echo "$ac_t""$libc_cv_have_section_quotes" 1>&6
3217 if test $libc_cv_have_section_quotes = yes; then
3218 cat >> confdefs.h <<\EOF
3219 #define HAVE_SECTION_QUOTES 1
3227 if test $elf = yes; then
3228 libc_cv_asm_underscores=no
3229 else
3230 if test $ac_cv_prog_cc_works = yes; then
3231 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
3232 echo "configure:3233: checking for _ prefix on C symbol names" >&5
3233 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3235 else
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3239 asm ("_glibc_foobar:");
3240 int main() {
3241 glibc_foobar ();
3242 ; return 0; }
3244 if { (eval echo configure:3245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3245 rm -rf conftest*
3246 libc_cv_asm_underscores=yes
3247 else
3248 echo "configure: failed program was:" >&5
3249 cat conftest.$ac_ext >&5
3250 rm -rf conftest*
3251 libc_cv_asm_underscores=no
3253 rm -f conftest*
3256 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
3257 else
3258 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
3259 echo "configure:3260: checking for _ prefix on C symbol names" >&5
3260 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3262 else
3263 cat > conftest.$ac_ext <<EOF
3264 #line 3265 "configure"
3265 #include "confdefs.h"
3266 void underscore_test(void) {
3267 return; }
3269 if { (eval echo configure:3270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3270 if grep _underscore_test conftest* >/dev/null; then
3271 rm -f conftest*
3272 libc_cv_asm_underscores=yes
3273 else
3274 rm -f conftest*
3275 libc_cv_asm_underscores=no
3277 else
3278 echo "configure: failed program was:" >&5
3279 cat conftest.$ac_ext >&5
3280 rm -f conftest*
3281 libc_cv_asm_underscores=no
3283 rm -f conftest*
3286 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
3289 if test $libc_cv_asm_underscores = no; then
3290 cat >> confdefs.h <<\EOF
3291 #define NO_UNDERSCORES 1
3296 if test $elf = yes; then
3297 libc_cv_weak_symbols=yes
3300 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
3301 echo "configure:3302: checking for assembler .weak directive" >&5
3302 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
3303 echo $ac_n "(cached) $ac_c" 1>&6
3304 else
3305 cat > conftest.s <<EOF
3306 ${libc_cv_dot_text}
3307 ${libc_cv_asm_global_directive} foo
3308 foo:
3309 .weak foo
3310 .weak bar; bar = foo
3312 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
3313 libc_cv_asm_weak_directive=yes
3314 else
3315 libc_cv_asm_weak_directive=no
3317 rm -f conftest*
3320 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
3322 if test $libc_cv_asm_weak_directive = no; then
3323 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
3324 echo "configure:3325: checking for assembler .weakext directive" >&5
3325 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
3326 echo $ac_n "(cached) $ac_c" 1>&6
3327 else
3328 cat > conftest.s <<EOF
3329 ${libc_cv_dot_text}
3330 ${libc_cv_asm_global_directive} foo
3331 foo:
3332 .weakext bar foo
3333 .weakext baz
3334 ${libc_cv_asm_global_directive} baz
3335 baz:
3337 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
3338 libc_cv_asm_weakext_directive=yes
3339 else
3340 libc_cv_asm_weakext_directive=no
3342 rm -f conftest*
3345 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
3347 fi # no .weak
3349 if test $libc_cv_asm_weak_directive = yes; then
3350 cat >> confdefs.h <<\EOF
3351 #define HAVE_ASM_WEAK_DIRECTIVE 1
3354 elif test $libc_cv_asm_weakext_directive = yes; then
3355 cat >> confdefs.h <<\EOF
3356 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
3361 case "${host_cpu}-${host_os}" in
3362 cris*)
3363 libc_cv_asm_line_sep='@'
3364 cat >> confdefs.h <<EOF
3365 #define ASM_LINE_SEP $libc_cv_asm_line_sep
3369 hppa*linux*)
3370 echo $ac_n "checking for assembler line separator""... $ac_c" 1>&6
3371 echo "configure:3372: checking for assembler line separator" >&5
3372 if eval "test \"`echo '$''{'libc_cv_asm_line_sep'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3374 else
3375 cat > conftest.s <<EOF
3376 nop ; is_old_puffin
3378 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:3379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3379 libc_cv_asm_line_sep='!'
3380 else
3381 if test -z "$enable_hacker_mode"; then
3382 echo "*** You need a newer assembler to compile glibc"
3383 rm -f conftest*
3384 exit 1
3386 libc_cv_asm_line_sep=';'
3388 rm -f conftest*
3391 echo "$ac_t""$libc_cv_asm_line_sep" 1>&6
3392 cat >> confdefs.h <<EOF
3393 #define ASM_LINE_SEP $libc_cv_asm_line_sep
3397 esac
3399 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
3400 echo "configure:3401: checking for ld --no-whole-archive" >&5
3401 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
3402 echo $ac_n "(cached) $ac_c" 1>&6
3403 else
3404 cat > conftest.c <<\EOF
3405 _start () {}
3406 int __eh_pc;
3407 __throw () {}
3409 if { ac_try='${CC-cc} $CFLAGS
3410 -nostdlib -nostartfiles -Wl,--no-whole-archive
3411 -o conftest conftest.c 1>&5'; { (eval echo configure:3412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3412 libc_cv_ld_no_whole_archive=yes
3413 else
3414 libc_cv_ld_no_whole_archive=no
3416 rm -f conftest*
3419 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
3420 if test $libc_cv_ld_no_whole_archive = yes; then
3421 no_whole_archive=-Wl,--no-whole-archive
3424 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
3425 echo "configure:3426: checking for gcc -fexceptions" >&5
3426 if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
3427 echo $ac_n "(cached) $ac_c" 1>&6
3428 else
3429 cat > conftest.c <<\EOF
3430 _start () {}
3431 int __eh_pc;
3432 __throw () {}
3434 if { ac_try='${CC-cc} $CFLAGS
3435 -nostdlib -nostartfiles -fexceptions
3436 -o conftest conftest.c 1>&5'; { (eval echo configure:3437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3437 libc_cv_gcc_exceptions=yes
3438 else
3439 libc_cv_gcc_exceptions=no
3441 rm -f conftest*
3444 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
3445 if test $libc_cv_gcc_exceptions = yes; then
3446 exceptions=-fexceptions
3449 if test "$base_machine" = alpha ; then
3450 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
3451 echo "configure:3452: checking for function ..ng prefix" >&5
3452 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3454 else
3455 cat > conftest.c <<\EOF
3456 foo () { }
3458 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure:3459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
3459 then
3460 libc_cv_gcc_alpha_ng_prefix=yes
3461 else
3462 libc_cv_gcc_alpha_ng_prefix=no
3464 rm -f conftest*
3467 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
3468 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
3469 cat >> confdefs.h <<\EOF
3470 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
3473 else
3474 cat >> confdefs.h <<\EOF
3475 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
3481 if test "$host_cpu" = powerpc ; then
3482 # Check for a bug present in at least versions 2.8.x of GCC
3483 # and versions 1.0.x of EGCS.
3484 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
3485 echo "configure:3486: checking whether clobbering cr0 causes problems" >&5
3486 if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
3487 echo $ac_n "(cached) $ac_c" 1>&6
3488 else
3489 cat > conftest.$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3492 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
3493 int main() {
3495 ; return 0; }
3497 if { (eval echo configure:3498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3498 rm -rf conftest*
3499 libc_cv_c_asmcr0_bug='no'
3500 else
3501 echo "configure: failed program was:" >&5
3502 cat conftest.$ac_ext >&5
3503 rm -rf conftest*
3504 libc_cv_c_asmcr0_bug='yes'
3506 rm -f conftest*
3509 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
3510 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
3511 cat >> confdefs.h <<\EOF
3512 #define BROKEN_PPC_ASM_CR0 1
3518 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
3519 echo "configure:3520: checking for DWARF2 unwind info support" >&5
3520 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3522 else
3523 cat > conftest.c <<EOF
3524 #line 3525 "configure"
3525 static char *__EH_FRAME_BEGIN__;
3526 _start ()
3528 #ifdef CHECK__register_frame
3529 __register_frame (__EH_FRAME_BEGIN__);
3530 __deregister_frame (__EH_FRAME_BEGIN__);
3531 #endif
3532 #ifdef CHECK__register_frame_info
3533 __register_frame_info (__EH_FRAME_BEGIN__);
3534 __deregister_frame_info (__EH_FRAME_BEGIN__);
3535 #endif
3537 int __eh_pc;
3538 __throw () {}
3539 /* FIXME: this is fragile. */
3540 malloc () {}
3541 strcmp () {}
3542 strlen () {}
3543 memcpy () {}
3544 memset () {}
3545 free () {}
3546 abort () {}
3547 __bzero () {}
3548 dl_iterate_phdr () {}
3550 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
3551 -nostdlib -nostartfiles
3552 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3553 libc_cv_gcc_dwarf2_unwind_info=static
3554 else
3555 libc_cv_gcc_dwarf2_unwind_info=no
3557 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
3558 -nostdlib -nostartfiles
3559 -o conftest conftest.c -lgcc -lgcc_eh >&5'; { (eval echo configure:3560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3560 if ${CC-cc} $CFLAGS -DCHECK__register_frame_info -nostdlib -nostartfiles \
3561 -o conftest conftest.c -lgcc -lgcc_eh -v 2>&1 >/dev/null \
3562 | grep -q -- --eh-frame-hdr; then
3563 libc_cv_gcc_dwarf2_unwind_info=no_registry_needed
3564 else
3565 libc_cv_gcc_dwarf2_unwind_info=static
3567 else
3568 libc_cv_gcc_dwarf2_unwind_info=no
3570 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
3571 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
3572 -nostdlib -nostartfiles
3573 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3574 libc_cv_gcc_dwarf2_unwind_info=yes
3575 else
3576 libc_cv_gcc_dwarf2_unwind_info=no
3579 rm -f conftest*
3582 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
3583 case $libc_cv_gcc_dwarf2_unwind_info in
3584 yes)
3585 cat >> confdefs.h <<\EOF
3586 #define HAVE_DWARF2_UNWIND_INFO 1
3590 static)
3591 cat >> confdefs.h <<\EOF
3592 #define HAVE_DWARF2_UNWIND_INFO 1
3595 cat >> confdefs.h <<\EOF
3596 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
3600 esac
3602 echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
3603 echo "configure:3604: checking for __builtin_expect" >&5
3604 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_expect'+set}'`\" = set"; then
3605 echo $ac_n "(cached) $ac_c" 1>&6
3606 else
3607 cat > conftest.c <<EOF
3608 #line 3609 "configure"
3609 int foo (int a)
3611 a = __builtin_expect (a, 10);
3612 return a == 10 ? 0 : 1;
3615 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3616 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3617 libc_cv_gcc_builtin_expect=yes
3618 else
3619 libc_cv_gcc_builtin_expect=no
3621 rm -f conftest*
3624 echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
3625 if test "$libc_cv_gcc_builtin_expect" = yes; then
3626 cat >> confdefs.h <<\EOF
3627 #define HAVE_BUILTIN_EXPECT 1
3632 echo $ac_n "checking for __builtin_memset""... $ac_c" 1>&6
3633 echo "configure:3634: checking for __builtin_memset" >&5
3634 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_memset'+set}'`\" = set"; then
3635 echo $ac_n "(cached) $ac_c" 1>&6
3636 else
3637 cat > conftest.c <<\EOF
3638 void zero (void *x)
3640 __builtin_memset (x, 0, 1000);
3643 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'; { (eval echo configure:3644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
3644 then
3645 libc_cv_gcc_builtin_memset=no
3646 else
3647 libc_cv_gcc_builtin_memset=yes
3649 rm -f conftest*
3652 echo "$ac_t""$libc_cv_gcc_builtin_memset" 1>&6
3653 if test "$libc_cv_gcc_builtin_memset" = yes ; then
3654 cat >> confdefs.h <<\EOF
3655 #define HAVE_BUILTIN_MEMSET 1
3660 echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6
3661 echo "configure:3662: checking for local label subtraction" >&5
3662 if eval "test \"`echo '$''{'libc_cv_gcc_subtract_local_labels'+set}'`\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3664 else
3665 cat > conftest.c <<EOF
3666 #line 3667 "configure"
3667 int foo (int a)
3669 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
3670 void *p = &&l1 + ar[a];
3671 goto *p;
3673 return 1;
3675 return 2;
3678 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3679 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:3680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3680 libc_cv_gcc_subtract_local_labels=yes
3681 else
3682 libc_cv_gcc_subtract_local_labels=no
3684 rm -f conftest*
3687 echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6
3688 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
3689 cat >> confdefs.h <<\EOF
3690 #define HAVE_SUBTRACT_LOCAL_LABELS 1
3695 echo $ac_n "checking for __thread""... $ac_c" 1>&6
3696 echo "configure:3697: checking for __thread" >&5
3697 if eval "test \"`echo '$''{'libc_cv_gcc___thread'+set}'`\" = set"; then
3698 echo $ac_n "(cached) $ac_c" 1>&6
3699 else
3700 cat > conftest.c <<\EOF
3701 __thread int a = 42;
3703 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'; { (eval echo configure:3704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3704 libc_cv_gcc___thread=yes
3705 else
3706 libc_cv_gcc___thread=no
3708 rm -f conftest*
3711 echo "$ac_t""$libc_cv_gcc___thread" 1>&6
3712 if test "$libc_cv_gcc___thread" = yes; then
3713 cat >> confdefs.h <<\EOF
3714 #define HAVE___THREAD 1
3720 echo $ac_n "checking for libgd""... $ac_c" 1>&6
3721 echo "configure:3722: checking for libgd" >&5
3722 if test "$with_gd" != "no"; then
3723 old_CFLAGS="$CFLAGS"
3724 CFLAGS="$CFLAGS $libgd_include"
3725 old_LDFLAGS="$LDFLAGS"
3726 LDFLAGS="$LDFLAGS $libgd_ldflags"
3727 old_LIBS="$LIBS"
3728 LIBS="$LIBS -lgd -lpng -lz -lm"
3729 cat > conftest.$ac_ext <<EOF
3730 #line 3731 "configure"
3731 #include "confdefs.h"
3732 #include <gd.h>
3733 int main() {
3734 gdImagePng (0, 0)
3735 ; return 0; }
3737 if { (eval echo configure:3738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3738 rm -rf conftest*
3739 LIBGD=yes
3740 else
3741 echo "configure: failed program was:" >&5
3742 cat conftest.$ac_ext >&5
3743 rm -rf conftest*
3744 LIBGD=no
3746 rm -f conftest*
3747 CFLAGS="$old_CFLAGS"
3748 LDFLAGS="$old_LDFLAGS"
3749 LIBS="$old_LIBS"
3750 else
3751 LIBGD=no
3753 echo "$ac_t""$LIBGD" 1>&6
3756 echo $ac_n "checking size of long double""... $ac_c" 1>&6
3757 echo "configure:3758: checking size of long double" >&5
3758 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3760 else
3761 if test "$cross_compiling" = yes; then
3762 ac_cv_sizeof_long_double=0
3763 else
3764 cat > conftest.$ac_ext <<EOF
3765 #line 3766 "configure"
3766 #include "confdefs.h"
3767 #include <stdio.h>
3768 int main()
3770 FILE *f=fopen("conftestval", "w");
3771 if (!f) return(1);
3772 fprintf(f, "%d\n", sizeof(long double));
3773 return(0);
3776 if { (eval echo configure:3777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3777 then
3778 ac_cv_sizeof_long_double=`cat conftestval`
3779 else
3780 echo "configure: failed program was:" >&5
3781 cat conftest.$ac_ext >&5
3782 rm -fr conftest*
3783 ac_cv_sizeof_long_double=0
3785 rm -fr conftest*
3789 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3790 cat >> confdefs.h <<EOF
3791 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3795 sizeof_long_double=$ac_cv_sizeof_long_double
3798 ### End of automated tests.
3799 ### Now run sysdeps configure fragments.
3801 # sysdeps configure fragments may set these with files to be linked below.
3802 libc_link_dests=
3803 libc_link_sources=
3805 # They also can set these variables.
3806 use_ldconfig=no
3807 ldd_rewrite_script=no
3808 libc_cv_sysconfdir=$sysconfdir
3809 libc_cv_gcc_unwind_find_fde=no
3811 # Iterate over all the sysdep directories we will use, running their
3812 # configure fragments, and looking for a uname implementation.
3813 uname=
3814 for dir in $sysnames; do
3815 case $dir in
3816 /*) dest=$dir ;;
3817 *) dest=$srcdir/$dir ;;
3818 esac
3819 if test -r $dest/configure; then
3820 echo "$ac_t""running configure fragment for $dest" 1>&6
3821 . $dest/configure
3824 if test -z "$uname"; then
3825 if test -r $dest/uname.c ||
3826 test -r $dest/uname.S ||
3827 { test -r $dest/syscalls.list &&
3828 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
3829 uname=$dir
3832 done
3834 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
3835 cat >> confdefs.h <<\EOF
3836 #define EXPORT_UNWIND_FIND_FDE 1
3844 # If we will use the generic uname implementation, we must figure out what
3845 # it will say by examining the system, and write the results in config-name.h.
3846 if test "$uname" = "sysdeps/generic"; then
3848 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
3849 if test $uname_sysname != $config_os; then
3850 config_release=`echo $config_os | sed s/$uname_sysname//`
3853 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
3854 echo "configure:3855: checking OS release for uname" >&5
3855 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3857 else
3858 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
3859 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
3860 != x$config_release; then
3861 # The configuration release is a substring of the kernel release.
3862 libc_cv_uname_release=$kernel_release
3863 elif test x$config_release != x; then
3864 libc_cv_uname_release=$config_release
3865 elif test x$kernel_release != x; then
3866 libc_cv_uname_release=$kernel_release
3867 else
3868 libc_cv_uname_release=unknown
3872 echo "$ac_t""$libc_cv_uname_release" 1>&6
3873 uname_release="$libc_cv_uname_release"
3875 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
3876 echo "configure:3877: checking OS version for uname" >&5
3877 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
3878 echo $ac_n "(cached) $ac_c" 1>&6
3879 else
3880 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
3881 if test -n "$kernel_version"; then
3882 libc_cv_uname_version="$kernel_version"
3883 else
3884 libc_cv_uname_version=unknown
3888 echo "$ac_t""$libc_cv_uname_version" 1>&6
3889 uname_version="$libc_cv_uname_version"
3891 config_uname=config-name.h:config-name.in
3892 else
3893 # For non-generic uname, we don't need to create config-name.h at all.
3894 config_uname=
3897 cat >> confdefs.h <<\EOF
3898 #define USE_IN_LIBIO 1
3902 # Test for old glibc 2.0.x headers so that they can be removed properly
3903 # Search only in includedir.
3904 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
3905 echo "configure:3906: checking for old glibc 2.0.x headers" >&5
3906 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
3907 then
3908 old_glibc_headers=yes
3909 else
3910 old_glibc_headers=no
3912 echo "$ac_t""$old_glibc_headers" 1>&6
3913 if test ${old_glibc_headers} = yes; then
3914 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
3915 echo "configure: warning: *** be removed." 1>&2
3928 if test $gnu_ld = yes; then
3929 cat >> confdefs.h <<\EOF
3930 #define HAVE_GNU_LD 1
3934 if test $gnu_as = yes; then
3935 cat >> confdefs.h <<\EOF
3936 #define HAVE_GNU_AS 1
3940 if test $elf = yes; then
3941 cat >> confdefs.h <<\EOF
3942 #define HAVE_ELF 1
3946 if test $xcoff = yes; then
3947 cat >> confdefs.h <<\EOF
3948 #define HAVE_XCOFF 1
3955 if test $shared = default; then
3956 if test $gnu_ld = yes; then
3957 shared=$elf
3958 else
3959 # For now we do not assume shared libs are available. In future more
3960 # tests might become available.
3961 shared=no
3965 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
3966 echo "configure:3967: checking whether -fPIC is default" >&5
3967 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3969 else
3970 pic_default=yes
3971 cat > conftest.c <<EOF
3972 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
3973 # error PIC is default.
3974 #endif
3976 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
3977 pic_default=no
3979 rm -f conftest.*
3982 echo "$ac_t""$pic_default" 1>&6
3993 case "$add_ons" in
3994 *door*) linux_doors=yes ;;
3995 *) linux_doors=no ;;
3996 esac
4001 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
4002 config_makefile=
4003 else
4004 config_makefile=Makefile
4007 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
4008 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
4012 trap '' 1 2 15
4013 cat > confcache <<\EOF
4014 # This file is a shell script that caches the results of configure
4015 # tests run on this system so they can be shared between configure
4016 # scripts and configure runs. It is not useful on other systems.
4017 # If it contains results you don't want to keep, you may remove or edit it.
4019 # By default, configure uses ./config.cache as the cache file,
4020 # creating it if it does not exist already. You can give configure
4021 # the --cache-file=FILE option to use a different cache file; that is
4022 # what configure does when it calls configure scripts in
4023 # subdirectories, so they share the cache.
4024 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4025 # config.status only pays attention to the cache file if you give it the
4026 # --recheck option to rerun configure.
4029 # The following way of writing the cache mishandles newlines in values,
4030 # but we know of no workaround that is simple, portable, and efficient.
4031 # So, don't put newlines in cache variables' values.
4032 # Ultrix sh set writes to stderr and can't be redirected directly,
4033 # and sets the high bit in the cache file unless we assign to the vars.
4034 (set) 2>&1 |
4035 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4036 *ac_space=\ *)
4037 # `set' does not quote correctly, so add quotes (double-quote substitution
4038 # turns \\\\ into \\, and sed turns \\ into \).
4039 sed -n \
4040 -e "s/'/'\\\\''/g" \
4041 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4044 # `set' quotes correctly as required by POSIX, so do not add quotes.
4045 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4047 esac >> confcache
4048 if cmp -s $cache_file confcache; then
4050 else
4051 if test -w $cache_file; then
4052 echo "updating cache $cache_file"
4053 cat confcache > $cache_file
4054 else
4055 echo "not updating unwritable cache $cache_file"
4058 rm -f confcache
4060 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4062 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4063 # Let make expand exec_prefix.
4064 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4066 # Any assignment to VPATH causes Sun make to only execute
4067 # the first set of double-colon rules, so remove it if not needed.
4068 # If there is a colon in the path, we need to keep it.
4069 if test "x$srcdir" = x.; then
4070 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4073 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4075 DEFS=-DHAVE_CONFIG_H
4077 # Without the "./", some shells look in PATH for config.status.
4078 : ${CONFIG_STATUS=./config.status}
4080 echo creating $CONFIG_STATUS
4081 rm -f $CONFIG_STATUS
4082 cat > $CONFIG_STATUS <<EOF
4083 #! /bin/sh
4084 # Generated automatically by configure.
4085 # Run this file to recreate the current configuration.
4086 # This directory was configured as follows,
4087 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4089 # $0 $ac_configure_args
4091 # Compiler output produced by configure, useful for debugging
4092 # configure, is in ./config.log if it exists.
4094 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4095 for ac_option
4097 case "\$ac_option" in
4098 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4099 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4100 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4101 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4102 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4103 exit 0 ;;
4104 -help | --help | --hel | --he | --h)
4105 echo "\$ac_cs_usage"; exit 0 ;;
4106 *) echo "\$ac_cs_usage"; exit 1 ;;
4107 esac
4108 done
4110 ac_given_srcdir=$srcdir
4111 ac_given_INSTALL="$INSTALL"
4113 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4115 cat >> $CONFIG_STATUS <<EOF
4117 # Protect against being on the right side of a sed subst in config.status.
4118 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4119 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4120 $ac_vpsub
4121 $extrasub
4122 s%@SHELL@%$SHELL%g
4123 s%@CFLAGS@%$CFLAGS%g
4124 s%@CPPFLAGS@%$CPPFLAGS%g
4125 s%@CXXFLAGS@%$CXXFLAGS%g
4126 s%@FFLAGS@%$FFLAGS%g
4127 s%@DEFS@%$DEFS%g
4128 s%@LDFLAGS@%$LDFLAGS%g
4129 s%@LIBS@%$LIBS%g
4130 s%@exec_prefix@%$exec_prefix%g
4131 s%@prefix@%$prefix%g
4132 s%@program_transform_name@%$program_transform_name%g
4133 s%@bindir@%$bindir%g
4134 s%@sbindir@%$sbindir%g
4135 s%@libexecdir@%$libexecdir%g
4136 s%@datadir@%$datadir%g
4137 s%@sysconfdir@%$sysconfdir%g
4138 s%@sharedstatedir@%$sharedstatedir%g
4139 s%@localstatedir@%$localstatedir%g
4140 s%@libdir@%$libdir%g
4141 s%@includedir@%$includedir%g
4142 s%@oldincludedir@%$oldincludedir%g
4143 s%@infodir@%$infodir%g
4144 s%@mandir@%$mandir%g
4145 s%@with_fp@%$with_fp%g
4146 s%@with_cvs@%$with_cvs%g
4147 s%@oldest_abi@%$oldest_abi%g
4148 s%@subdirs@%$subdirs%g
4149 s%@force_install@%$force_install%g
4150 s%@all_warnings@%$all_warnings%g
4151 s%@host@%$host%g
4152 s%@host_alias@%$host_alias%g
4153 s%@host_cpu@%$host_cpu%g
4154 s%@host_vendor@%$host_vendor%g
4155 s%@host_os@%$host_os%g
4156 s%@base_machine@%$base_machine%g
4157 s%@sysnames@%$sysnames%g
4158 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4159 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4160 s%@INSTALL_DATA@%$INSTALL_DATA%g
4161 s%@LN_S@%$LN_S%g
4162 s%@PWD_P@%$PWD_P%g
4163 s%@build@%$build%g
4164 s%@build_alias@%$build_alias%g
4165 s%@build_cpu@%$build_cpu%g
4166 s%@build_vendor@%$build_vendor%g
4167 s%@build_os@%$build_os%g
4168 s%@CC@%$CC%g
4169 s%@MAKE@%$MAKE%g
4170 s%@MSGFMT@%$MSGFMT%g
4171 s%@MAKEINFO@%$MAKEINFO%g
4172 s%@SED@%$SED%g
4173 s%@cross_linkable@%$cross_linkable%g
4174 s%@BUILD_CC@%$BUILD_CC%g
4175 s%@cross_compiling@%$cross_compiling%g
4176 s%@CPP@%$CPP%g
4177 s%@AR@%$AR%g
4178 s%@RANLIB@%$RANLIB%g
4179 s%@MIG@%$MIG%g
4180 s%@CCVERSION@%$CCVERSION%g
4181 s%@SYSINCLUDES@%$SYSINCLUDES%g
4182 s%@libc_cv_gcc_static_libgcc@%$libc_cv_gcc_static_libgcc%g
4183 s%@BASH@%$BASH%g
4184 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
4185 s%@KSH@%$KSH%g
4186 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
4187 s%@AWK@%$AWK%g
4188 s%@PERL@%$PERL%g
4189 s%@INSTALL_INFO@%$INSTALL_INFO%g
4190 s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
4191 s%@BISON@%$BISON%g
4192 s%@VERSIONING@%$VERSIONING%g
4193 s%@libc_cv_asm_protected_directive@%$libc_cv_asm_protected_directive%g
4194 s%@libc_cv_initfinit_array@%$libc_cv_initfinit_array%g
4195 s%@libc_cv_z_nodelete@%$libc_cv_z_nodelete%g
4196 s%@libc_cv_z_nodlopen@%$libc_cv_z_nodlopen%g
4197 s%@libc_cv_z_initfirst@%$libc_cv_z_initfirst%g
4198 s%@libc_cv_Bgroup@%$libc_cv_Bgroup%g
4199 s%@libc_cv_z_combreloc@%$libc_cv_z_combreloc%g
4200 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
4201 s%@no_whole_archive@%$no_whole_archive%g
4202 s%@exceptions@%$exceptions%g
4203 s%@LIBGD@%$LIBGD%g
4204 s%@sizeof_long_double@%$sizeof_long_double%g
4205 s%@libc_cv_gcc_unwind_find_fde@%$libc_cv_gcc_unwind_find_fde%g
4206 s%@uname_sysname@%$uname_sysname%g
4207 s%@uname_release@%$uname_release%g
4208 s%@uname_version@%$uname_version%g
4209 s%@old_glibc_headers@%$old_glibc_headers%g
4210 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
4211 s%@libc_cv_localedir@%$libc_cv_localedir%g
4212 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
4213 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
4214 s%@use_ldconfig@%$use_ldconfig%g
4215 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
4216 s%@gnu_ld@%$gnu_ld%g
4217 s%@gnu_as@%$gnu_as%g
4218 s%@elf@%$elf%g
4219 s%@xcoff@%$xcoff%g
4220 s%@static@%$static%g
4221 s%@shared@%$shared%g
4222 s%@pic_default@%$pic_default%g
4223 s%@profile@%$profile%g
4224 s%@omitfp@%$omitfp%g
4225 s%@bounded@%$bounded%g
4226 s%@static_nss@%$static_nss%g
4227 s%@nopic_initfini@%$nopic_initfini%g
4228 s%@DEFINES@%$DEFINES%g
4229 s%@linux_doors@%$linux_doors%g
4230 s%@mach_interface_list@%$mach_interface_list%g
4231 s%@VERSION@%$VERSION%g
4232 s%@RELEASE@%$RELEASE%g
4234 CEOF
4237 cat >> $CONFIG_STATUS <<\EOF
4239 # Split the substitutions into bite-sized pieces for seds with
4240 # small command number limits, like on Digital OSF/1 and HP-UX.
4241 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4242 ac_file=1 # Number of current file.
4243 ac_beg=1 # First line for current file.
4244 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4245 ac_more_lines=:
4246 ac_sed_cmds=""
4247 while $ac_more_lines; do
4248 if test $ac_beg -gt 1; then
4249 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4250 else
4251 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4253 if test ! -s conftest.s$ac_file; then
4254 ac_more_lines=false
4255 rm -f conftest.s$ac_file
4256 else
4257 if test -z "$ac_sed_cmds"; then
4258 ac_sed_cmds="sed -f conftest.s$ac_file"
4259 else
4260 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4262 ac_file=`expr $ac_file + 1`
4263 ac_beg=$ac_end
4264 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4266 done
4267 if test -z "$ac_sed_cmds"; then
4268 ac_sed_cmds=cat
4272 cat >> $CONFIG_STATUS <<EOF
4274 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
4276 cat >> $CONFIG_STATUS <<\EOF
4277 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4278 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4279 case "$ac_file" in
4280 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4281 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4282 *) ac_file_in="${ac_file}.in" ;;
4283 esac
4285 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4287 # Remove last slash and all that follows it. Not all systems have dirname.
4288 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4289 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4290 # The file is in a subdirectory.
4291 test ! -d "$ac_dir" && mkdir "$ac_dir"
4292 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4293 # A "../" for each directory in $ac_dir_suffix.
4294 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4295 else
4296 ac_dir_suffix= ac_dots=
4299 case "$ac_given_srcdir" in
4300 .) srcdir=.
4301 if test -z "$ac_dots"; then top_srcdir=.
4302 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4303 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4304 *) # Relative path.
4305 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4306 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4307 esac
4309 case "$ac_given_INSTALL" in
4310 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4311 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4312 esac
4314 echo creating "$ac_file"
4315 rm -f "$ac_file"
4316 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4317 case "$ac_file" in
4318 *Makefile*) ac_comsub="1i\\
4319 # $configure_input" ;;
4320 *) ac_comsub= ;;
4321 esac
4323 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4324 sed -e "$ac_comsub
4325 s%@configure_input@%$configure_input%g
4326 s%@srcdir@%$srcdir%g
4327 s%@top_srcdir@%$top_srcdir%g
4328 s%@INSTALL@%$INSTALL%g
4329 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4330 fi; done
4331 rm -f conftest.s*
4333 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4334 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4336 # ac_d sets the value in "#define NAME VALUE" lines.
4337 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4338 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4339 ac_dC='\3'
4340 ac_dD='%g'
4341 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4342 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4343 ac_uB='\([ ]\)%\1#\2define\3'
4344 ac_uC=' '
4345 ac_uD='\4%g'
4346 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4347 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4348 ac_eB='$%\1#\2define\3'
4349 ac_eC=' '
4350 ac_eD='%g'
4352 if test "${CONFIG_HEADERS+set}" != set; then
4354 cat >> $CONFIG_STATUS <<EOF
4355 CONFIG_HEADERS="config.h"
4357 cat >> $CONFIG_STATUS <<\EOF
4359 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4360 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4361 case "$ac_file" in
4362 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4363 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4364 *) ac_file_in="${ac_file}.in" ;;
4365 esac
4367 echo creating $ac_file
4369 rm -f conftest.frag conftest.in conftest.out
4370 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4371 cat $ac_file_inputs > conftest.in
4375 # Transform confdefs.h into a sed script conftest.vals that substitutes
4376 # the proper values into config.h.in to produce config.h. And first:
4377 # Protect against being on the right side of a sed subst in config.status.
4378 # Protect against being in an unquoted here document in config.status.
4379 rm -f conftest.vals
4380 cat > conftest.hdr <<\EOF
4381 s/[\\&%]/\\&/g
4382 s%[\\$`]%\\&%g
4383 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4384 s%ac_d%ac_u%gp
4385 s%ac_u%ac_e%gp
4387 sed -n -f conftest.hdr confdefs.h > conftest.vals
4388 rm -f conftest.hdr
4390 # This sed command replaces #undef with comments. This is necessary, for
4391 # example, in the case of _POSIX_SOURCE, which is predefined and required
4392 # on some systems where configure will not decide to define it.
4393 cat >> conftest.vals <<\EOF
4394 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4397 # Break up conftest.vals because some shells have a limit on
4398 # the size of here documents, and old seds have small limits too.
4400 rm -f conftest.tail
4401 while :
4403 ac_lines=`grep -c . conftest.vals`
4404 # grep -c gives empty output for an empty file on some AIX systems.
4405 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4406 # Write a limited-size here document to conftest.frag.
4407 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4408 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4409 echo 'CEOF
4410 sed -f conftest.frag conftest.in > conftest.out
4411 rm -f conftest.in
4412 mv conftest.out conftest.in
4413 ' >> $CONFIG_STATUS
4414 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4415 rm -f conftest.vals
4416 mv conftest.tail conftest.vals
4417 done
4418 rm -f conftest.vals
4420 cat >> $CONFIG_STATUS <<\EOF
4421 rm -f conftest.frag conftest.h
4422 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4423 cat conftest.in >> conftest.h
4424 rm -f conftest.in
4425 if cmp -s $ac_file conftest.h 2>/dev/null; then
4426 echo "$ac_file is unchanged"
4427 rm -f conftest.h
4428 else
4429 # Remove last slash and all that follows it. Not all systems have dirname.
4430 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4431 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4432 # The file is in a subdirectory.
4433 test ! -d "$ac_dir" && mkdir "$ac_dir"
4435 rm -f $ac_file
4436 mv conftest.h $ac_file
4438 fi; done
4442 cat >> $CONFIG_STATUS <<EOF
4443 ac_sources="`echo $libc_link_sources`"
4444 ac_dests="`echo $libc_link_dests`"
4447 cat >> $CONFIG_STATUS <<\EOF
4448 srcdir=$ac_given_srcdir
4449 while test -n "$ac_sources"; do
4450 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4451 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4453 echo "linking $srcdir/$ac_source to $ac_dest"
4455 if test ! -r $srcdir/$ac_source; then
4456 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4458 rm -f $ac_dest
4460 # Make relative symlinks.
4461 # Remove last slash and all that follows it. Not all systems have dirname.
4462 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
4463 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4464 # The dest file is in a subdirectory.
4465 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4466 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
4467 # A "../" for each directory in $ac_dest_dir_suffix.
4468 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
4469 else
4470 ac_dest_dir_suffix= ac_dots=
4473 case "$srcdir" in
4474 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4475 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4476 esac
4478 # Make a symlink if possible; otherwise try a hard link.
4479 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4480 ln $srcdir/$ac_source $ac_dest; then :
4481 else
4482 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4484 done
4486 cat >> $CONFIG_STATUS <<EOF
4487 config_vars='$config_vars'
4489 cat >> $CONFIG_STATUS <<\EOF
4491 case $CONFIG_FILES in *config.make*)
4492 echo "$config_vars" >> config.make;;
4493 esac
4494 test -d bits || mkdir bits
4495 exit 0
4497 chmod +x $CONFIG_STATUS
4498 rm -fr confdefs* $ac_clean_files
4499 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4501 if test "$no_recursion" != yes; then
4503 # Remove --cache-file and --srcdir arguments so they do not pile up.
4504 ac_sub_configure_args=
4505 ac_prev=
4506 for ac_arg in $ac_configure_args; do
4507 if test -n "$ac_prev"; then
4508 ac_prev=
4509 continue
4511 case "$ac_arg" in
4512 -cache-file | --cache-file | --cache-fil | --cache-fi \
4513 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4514 ac_prev=cache_file ;;
4515 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4516 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4518 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4519 ac_prev=srcdir ;;
4520 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4522 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4523 esac
4524 done
4526 for ac_config_dir in $add_ons; do
4528 # Do not complain, so a configure script can configure whichever
4529 # parts of a large source tree are present.
4530 if test ! -d $srcdir/$ac_config_dir; then
4531 continue
4534 echo configuring in $ac_config_dir
4536 case "$srcdir" in
4537 .) ;;
4539 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4540 else
4541 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4544 esac
4546 ac_popdir=`pwd`
4547 cd $ac_config_dir
4549 # A "../" for each directory in /$ac_config_dir.
4550 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4552 case "$srcdir" in
4553 .) # No --srcdir option. We are building in place.
4554 ac_sub_srcdir=$srcdir ;;
4555 /*) # Absolute path.
4556 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4557 *) # Relative path.
4558 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4559 esac
4561 # Check for guested configure; otherwise get Cygnus style configure.
4562 if test -f $ac_sub_srcdir/configure; then
4563 ac_sub_configure=$ac_sub_srcdir/configure
4564 elif test -f $ac_sub_srcdir/configure.in; then
4565 ac_sub_configure=$ac_configure
4566 else
4567 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4568 ac_sub_configure=
4571 # The recursion is here.
4572 if test -n "$ac_sub_configure"; then
4574 # Make the cache file name correct relative to the subdirectory.
4575 case "$cache_file" in
4576 /*) ac_sub_cache_file=$cache_file ;;
4577 *) # Relative path.
4578 ac_sub_cache_file="$ac_dots$cache_file" ;;
4579 esac
4580 case "$ac_given_INSTALL" in
4581 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4582 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4583 esac
4585 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4586 # The eval makes quoting arguments work.
4587 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4588 then :
4589 else
4590 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
4594 cd $ac_popdir
4595 done