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