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.
21 ac_default_prefix
=/usr
/local
22 # Any additions from configure.in:
24 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
26 --with-gettext=DIR find GNU gettext source code in DIR (not needed)"
28 --with-fp if using floating-point hardware [default=yes]"
30 --with-binutils=PATH specify location of binutils (as and ld)"
32 --with-elf if using the ELF object format"
34 --without-cvs if CVS should not be used"
36 --enable-libio build in GNU libio instead of GNU stdio"
38 --disable-sanity-checks really do not use threads (should not be used
39 except in special situations) [default=yes]"
41 --enable-static build static library [default=yes]"
43 --enable-shared build shared library [default=yes if GNU ld & ELF]"
45 --enable-profile build profiled library [default=yes]"
47 --enable-omitfp build undebuggable optimized library [default=no]"
49 --enable-bounded build with runtime bounds checking [default=no]"
51 --disable-versioning do not include versioning information in the
52 library objects [default=yes if supported]"
54 --enable-add-ons[=DIR1,DIR2]... configure and build add-ons in DIR1,DIR2,...
55 search for add-ons if no parameter given"
57 --enable-static-nss build static NSS modules [default=no]"
59 # Initialize some variables set by options.
60 # The variables have the same names as the options, with
61 # dashes changed to underlines.
63 cache_file
=.
/config.cache
72 program_transform_name
=s
,x
,x
,
80 bindir
='${exec_prefix}/bin'
81 sbindir
='${exec_prefix}/sbin'
82 libexecdir
='${exec_prefix}/libexec'
83 datadir
='${prefix}/share'
84 sysconfdir
='${prefix}/etc'
85 sharedstatedir
='${prefix}/com'
86 localstatedir
='${prefix}/var'
87 libdir
='${exec_prefix}/lib'
88 includedir
='${prefix}/include'
89 oldincludedir
='/usr/include'
90 infodir
='${prefix}/info'
91 mandir
='${prefix}/man'
93 # Initialize some other variables.
96 # Maximum number of lines to put in a shell here document.
103 # If the previous option needs an argument, assign it.
104 if test -n "$ac_prev"; then
105 eval "$ac_prev=\$ac_option"
111 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
115 # Accept the important Cygnus configure options, so we can diagnose typos.
119 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
121 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
122 bindir
="$ac_optarg" ;;
124 -build |
--build |
--buil |
--bui |
--bu)
126 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
127 build
="$ac_optarg" ;;
129 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
130 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
131 ac_prev
=cache_file
;;
132 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
133 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
134 cache_file
="$ac_optarg" ;;
136 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
138 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
140 datadir
="$ac_optarg" ;;
142 -disable-* |
--disable-*)
143 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
144 # Reject names that are not valid shell variable names.
145 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
146 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
148 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
149 eval "enable_${ac_feature}=no" ;;
151 -enable-* |
--enable-*)
152 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
162 eval "enable_${ac_feature}='$ac_optarg'" ;;
164 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
165 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
166 |
--exec |
--exe |
--ex)
167 ac_prev
=exec_prefix
;;
168 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
169 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
170 |
--exec=* |
--exe=* |
--ex=*)
171 exec_prefix
="$ac_optarg" ;;
173 -gas |
--gas |
--ga |
--g)
174 # Obsolete; use --with-gas.
177 -help |
--help |
--hel |
--he)
178 # Omit some internal or obsolete options to make the list less imposing.
179 # This message is too long to be a string in the A/UX 3.1 sh.
181 Usage: configure [options] [host]
182 Options: [defaults in brackets after descriptions]
184 --cache-file=FILE cache test results in FILE
185 --help print this message
186 --no-create do not create output files
187 --quiet, --silent do not print \`checking...' messages
188 --version print the version of autoconf that created configure
189 Directory and file names:
190 --prefix=PREFIX install architecture-independent files in PREFIX
192 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
194 --bindir=DIR user executables in DIR [EPREFIX/bin]
195 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
196 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
197 --datadir=DIR read-only architecture-independent data in DIR
199 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
200 --sharedstatedir=DIR modifiable architecture-independent data in DIR
202 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
203 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
204 --includedir=DIR C header files in DIR [PREFIX/include]
205 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
206 --infodir=DIR info documentation in DIR [PREFIX/info]
207 --mandir=DIR man documentation in DIR [PREFIX/man]
208 --srcdir=DIR find the sources in DIR [configure dir or ..]
209 --program-prefix=PREFIX prepend PREFIX to installed program names
210 --program-suffix=SUFFIX append SUFFIX to installed program names
211 --program-transform-name=PROGRAM
212 run sed PROGRAM on installed program names
216 --build=BUILD configure for building on BUILD [BUILD=HOST]
217 --host=HOST configure for HOST [guessed]
218 --target=TARGET configure for TARGET [TARGET=HOST]
219 Features and packages:
220 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
221 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
222 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
223 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
224 --x-includes=DIR X include files are in DIR
225 --x-libraries=DIR X library files are in DIR
227 if test -n "$ac_help"; then
228 echo "--enable and --with options recognized:$ac_help"
232 -host |
--host |
--hos |
--ho)
234 -host=* |
--host=* |
--hos=* |
--ho=*)
237 -includedir |
--includedir |
--includedi |
--included |
--include \
238 |
--includ |
--inclu |
--incl |
--inc)
239 ac_prev
=includedir
;;
240 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
241 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
242 includedir
="$ac_optarg" ;;
244 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
246 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
247 infodir
="$ac_optarg" ;;
249 -libdir |
--libdir |
--libdi |
--libd)
251 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
252 libdir
="$ac_optarg" ;;
254 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
255 |
--libexe |
--libex |
--libe)
256 ac_prev
=libexecdir
;;
257 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
258 |
--libexe=* |
--libex=* |
--libe=*)
259 libexecdir
="$ac_optarg" ;;
261 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
262 |
--localstate |
--localstat |
--localsta |
--localst \
263 |
--locals |
--local |
--loca |
--loc |
--lo)
264 ac_prev
=localstatedir
;;
265 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
266 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
267 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
268 localstatedir
="$ac_optarg" ;;
270 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
272 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
273 mandir
="$ac_optarg" ;;
276 # Obsolete; use --without-fp.
279 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
283 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
284 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
287 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
288 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
289 |
--oldin |
--oldi |
--old |
--ol |
--o)
290 ac_prev
=oldincludedir
;;
291 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
292 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
293 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
294 oldincludedir
="$ac_optarg" ;;
296 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
298 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
299 prefix
="$ac_optarg" ;;
301 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
302 |
--program-pre |
--program-pr |
--program-p)
303 ac_prev
=program_prefix
;;
304 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
305 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
306 program_prefix
="$ac_optarg" ;;
308 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
309 |
--program-suf |
--program-su |
--program-s)
310 ac_prev
=program_suffix
;;
311 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
312 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
313 program_suffix
="$ac_optarg" ;;
315 -program-transform-name |
--program-transform-name \
316 |
--program-transform-nam |
--program-transform-na \
317 |
--program-transform-n |
--program-transform- \
318 |
--program-transform |
--program-transfor \
319 |
--program-transfo |
--program-transf \
320 |
--program-trans |
--program-tran \
321 |
--progr-tra |
--program-tr |
--program-t)
322 ac_prev
=program_transform_name
;;
323 -program-transform-name=* |
--program-transform-name=* \
324 |
--program-transform-nam=* |
--program-transform-na=* \
325 |
--program-transform-n=* |
--program-transform-=* \
326 |
--program-transform=* |
--program-transfor=* \
327 |
--program-transfo=* |
--program-transf=* \
328 |
--program-trans=* |
--program-tran=* \
329 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
330 program_transform_name
="$ac_optarg" ;;
332 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
333 |
-silent |
--silent |
--silen |
--sile |
--sil)
336 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
338 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
340 sbindir
="$ac_optarg" ;;
342 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
343 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
344 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
346 ac_prev
=sharedstatedir
;;
347 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
348 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
349 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
351 sharedstatedir
="$ac_optarg" ;;
353 -site |
--site |
--sit)
355 -site=* |
--site=* |
--sit=*)
358 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
360 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
361 srcdir
="$ac_optarg" ;;
363 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
364 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
365 ac_prev
=sysconfdir
;;
366 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
367 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
368 sysconfdir
="$ac_optarg" ;;
370 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
372 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
373 target
="$ac_optarg" ;;
375 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
378 -version |
--version |
--versio |
--versi |
--vers)
379 echo "configure generated by autoconf version 2.12"
383 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 ac_package
=`echo $ac_package| sed 's/-/_/g'`
393 eval "with_${ac_package}='$ac_optarg'" ;;
395 -without-* |
--without-*)
396 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
397 # Reject names that are not valid shell variable names.
398 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
399 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401 ac_package
=`echo $ac_package| sed 's/-/_/g'`
402 eval "with_${ac_package}=no" ;;
405 # Obsolete; use --with-x.
408 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
409 |
--x-incl |
--x-inc |
--x-in |
--x-i)
410 ac_prev
=x_includes
;;
411 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
412 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
413 x_includes
="$ac_optarg" ;;
415 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
416 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
417 ac_prev
=x_libraries
;;
418 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
419 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
420 x_libraries
="$ac_optarg" ;;
422 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
426 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
427 echo "configure: warning: $ac_option: invalid host type" 1>&2
429 if test "x$nonopt" != xNONE
; then
430 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
438 if test -n "$ac_prev"; then
439 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
442 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
444 # File descriptor usage:
447 # 2 errors and warnings
448 # 3 some systems may open it to /dev/tty
449 # 4 used on the Kubota Titan
450 # 6 checking for... messages and results
451 # 5 compiler messages saved in config.log
452 if test "$silent" = yes; then
460 This file contains any messages produced by compilers while
461 running configure, to aid debugging if configure makes a mistake.
464 # Strip out --no-create and --no-recursion so they do not pile up.
465 # Also quote any args containing shell metacharacters.
470 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
471 |
--no-cr |
--no-c) ;;
472 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
473 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
474 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
475 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
476 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
481 # Only set these to C if already set. These must not be set unconditionally
482 # because not all systems understand e.g. LANG=C (notably SCO).
483 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
484 # Non-C LC_CTYPE values break the ctype check.
485 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
486 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
487 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
488 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
490 # confdefs.h avoids OS command line length limits that DEFS can exceed.
491 rm -rf conftest
* confdefs.h
492 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
495 # A filename unique to this package, relative to the directory that
496 # configure is in, which we can look for to find out if srcdir is correct.
497 ac_unique_file
=include
/features.h
499 # Find the source files, if location was not specified.
500 if test -z "$srcdir"; then
501 ac_srcdir_defaulted
=yes
502 # Try the directory containing this script, then its parent.
504 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
505 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
507 if test ! -r $srcdir/$ac_unique_file; then
511 ac_srcdir_defaulted
=no
513 if test ! -r $srcdir/$ac_unique_file; then
514 if test "$ac_srcdir_defaulted" = yes; then
515 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
517 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
520 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
522 # Prefer explicitly selected file to automatically selected ones.
523 if test -z "$CONFIG_SITE"; then
524 if test "x$prefix" != xNONE
; then
525 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
527 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
530 for ac_site_file
in $CONFIG_SITE; do
531 if test -r "$ac_site_file"; then
532 echo "loading site script $ac_site_file"
537 if test -r "$cache_file"; then
538 echo "loading cache $cache_file"
541 echo "creating cache $cache_file"
546 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
547 ac_cpp
='$CPP $CPPFLAGS'
548 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
549 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
550 cross_compiling
=$ac_cv_prog_cc_cross
552 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
553 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
554 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
561 ac_n
= ac_c
='\c' ac_t
=
567 # This will get text that should go into config.make.
570 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
571 # Check whether --with-gmp or --without-gmp was given.
572 if test "${with_gmp+set}" = set; then
575 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
577 *) config_vars
="$config_vars
578 gmp-srcdir = $withval" ;;
583 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
584 # Check whether --with-gettext or --without-gettext was given.
585 if test "${with_gettext+set}" = set; then
586 withval
="$with_gettext"
587 case "$with_gettext" in
589 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
592 config_vars
="$config_vars
593 gettext-srcdir = $withval" ;;
599 # Check whether --with-fp or --without-fp was given.
600 if test "${with_fp+set}" = set; then
607 # Check whether --with-binutils or --without-binutils was given.
608 if test "${with_binutils+set}" = set; then
609 withval
="$with_binutils"
610 path_binutils
=$withval
615 # Check whether --with-elf or --without-elf was given.
616 if test "${with_elf+set}" = set; then
623 # Check whether --with-cvs or --without-cvs was given.
624 if test "${with_cvs+set}" = set; then
633 # Check whether --enable-libio or --disable-libio was given.
634 if test "${enable_libio+set}" = set; then
635 enableval
="$enable_libio"
636 if test $enableval = yes; then
646 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
647 if test "${enable_sanity_checks+set}" = set; then
648 enableval
="$enable_sanity_checks"
649 enable_sanity
=$enableval
655 # Check whether --enable-static or --disable-static was given.
656 if test "${enable_static+set}" = set; then
657 enableval
="$enable_static"
663 # Check whether --enable-shared or --disable-shared was given.
664 if test "${enable_shared+set}" = set; then
665 enableval
="$enable_shared"
671 # Check whether --enable-profile or --disable-profile was given.
672 if test "${enable_profile+set}" = set; then
673 enableval
="$enable_profile"
679 # Check whether --enable-omitfp or --disable-omitfp was given.
680 if test "${enable_omitfp+set}" = set; then
681 enableval
="$enable_omitfp"
687 # Check whether --enable-bounded or --disable-bounded was given.
688 if test "${enable_bounded+set}" = set; then
689 enableval
="$enable_bounded"
695 # Check whether --enable-versioning or --disable-versioning was given.
696 if test "${enable_versioning+set}" = set; then
697 enableval
="$enable_versioning"
698 enable_versioning
=$enableval
700 enable_versioning
=yes
704 # Check whether --enable-add-ons or --disable-add-ons was given.
705 if test "${enable_add_ons+set}" = set; then
706 enableval
="$enable_add_ons"
708 yes) if test "$srcdir" = "."; then
709 add_ons
=`echo */configure | sed -e 's!/configure!!g'`
711 add_ons
=`echo $srcdir/*/configure | \
712 sed -e 's!/configure!!g' -e "s!$srcdir/!!g"`
714 *) add_ons
=`echo "$enableval" | sed 's/,/ /g'`;;
722 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
723 if test -f $ac_dir/install-sh
; then
725 ac_install_sh
="$ac_aux_dir/install-sh -c"
727 elif test -f $ac_dir/install.sh
; then
729 ac_install_sh
="$ac_aux_dir/install.sh -c"
733 if test -z "$ac_aux_dir"; then
734 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
736 ac_config_guess
=$ac_aux_dir/config.guess
737 ac_config_sub
=$ac_aux_dir/config.sub
738 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
743 if test x
"$add_ons" != x
; then
744 for f
in $add_ons; do
745 # Test whether such a subdir really exists.
746 if test -d $srcdir/$f; then
747 add_ons_pfx
="$add_ons_pfx $f/"
749 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
754 # Check whether --enable-static-nss or --disable-static-nss was given.
755 if test "${enable_static_nss+set}" = set; then
756 enableval
="$enable_static_nss"
757 static_nss
=$enableval
762 if test x
"$static_nss" = xyes
; then
763 cat >> confdefs.h
<<\EOF
764 #define DO_STATIC_NSS 1
770 # Make sure we can run config.sub.
771 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
772 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
775 echo $ac_n "checking host system type""... $ac_c" 1>&6
776 echo "configure:777: checking host system type" >&5
779 case "$host_alias" in
783 if host_alias
=`$ac_config_guess`; then :
784 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
786 *) host_alias
=$nonopt ;;
790 host=`$ac_config_sub $host_alias`
791 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
792 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
793 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
794 echo "$ac_t""$host" 1>&6
797 # The way shlib-versions is used to generate soversions.mk uses a
798 # fairly simplistic model for name recognition that can't distinguish
799 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
800 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
801 # tell. This doesn't get used much beyond that, so it's fairly safe.
806 host_os
=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
811 ### I put this here to prevent those annoying emails from people who cannot
812 ### read and try to compile glibc on unsupported platforms. --drepper
814 ### By using the undocumented --enable-hacker-mode option for configure
815 ### one can skip this test to make the configuration not fail for unsupported
818 if test -z "$enable_hacker_mode"; then
819 case "$machine-$host_os" in
820 *-linux* |
*-gnu* | arm
*-none*)
823 echo "*** The GNU C library is currently not available for this platform."
824 echo "*** So far nobody cared to port it and if there is no volunteer it"
825 echo "*** might never happen. So, if you have interest to see glibc on"
826 echo "*** this platform visit"
827 echo "*** http://www.gnu.org/software/libc/porting.html"
828 echo "*** and join the group of porters"
834 # We keep the original values in `$config_*' and never modify them, so we
835 # can write them unchanged into config.make. Everything else uses
836 # $machine, $vendor, and $os, and changes them whenever convenient.
837 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
839 # Some configurations imply other options.
841 gnu
* | linux
* | bsd4.4
* | netbsd
* | freebsd
*)
842 # These systems always use GNU tools.
843 gnu_ld
=yes gnu_as
=yes ;;
846 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
847 linux
*ecoff
* | linux
*aout
* | gnu
*aout
* | gnu
*ecoff
*)
849 gnu
* | linux
* | sysv4
* | solaris2
*)
850 # These systems (almost) always use the ELF format.
855 machine
=$config_machine
856 vendor
=$config_vendor
859 # Expand the configuration machine name into a subdirectory by architecture
860 # type and particular chip.
862 a29k | am29000
) base_machine
=a29k machine
=a29k
;;
863 alpha
*) base_machine
=alpha machine
=alpha
/$machine ;;
864 arm
*) base_machine
=arm machine
=arm
/$machine ;;
865 c3
[012]) base_machine
=cx0 machine
=cx
0/c30
;;
866 c4
[04]) base_machine
=cx0 machine
=cx
0/c40
;;
867 hppa
*) base_machine
=hppa machine
=hppa
/$machine ;;
868 i
[3456]86) base_machine
=i386 machine
=i386
/$machine ;;
869 m680?
0) base_machine
=m68k machine
=m68k
/$machine ;;
870 m68k
) base_machine
=m68k machine
=m68k
/m68020
;;
871 m88???
) base_machine
=m88k machine
=m88k
/$machine ;;
872 m88k
) base_machine
=m88k machine
=m88k
/m88100
;;
873 mips64
*) base_machine
=mips64 machine
=mips
/mips64
/$machine ;;
874 mips
*) base_machine
=mips machine
=mips
/$machine ;;
876 base_machine
=sparc machine
=sparc
/sparc32
;;
877 sparcv8 | supersparc | hypersparc
)
878 base_machine
=sparc machine
=sparc
/sparc32
/sparcv8
;;
879 sparc64 | ultrasparc
)
880 base_machine
=sparc machine
=sparc
/sparc64
;;
884 if test "$base_machine" = "i386"; then
885 cat >> confdefs.h
<<\EOF
886 #define USE_REGPARMS 1
891 # Compute the list of sysdep directories for this configuration.
892 # This can take a while to compute.
893 sysdep_dir
=$srcdir/sysdeps
894 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
895 echo "configure:896: checking sysdep dirs" >&5
896 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
897 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
902 netbsd
* |
386bsd
* | freebsd
* | bsdi
*)
903 base_os
=unix
/bsd
/bsd4.4
;;
904 osf
* | sunos
* | ultrix
* | newsos
* | dynix
* |
*bsd
*)
906 sysv
* | isc
* | esix
* | sco
* | minix
* | irix4
* | linux
*)
909 base_os
=unix
/sysv
/sysv4
;;
911 base_os
=standalone
;;
916 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
919 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
923 o
=`echo $tail | sed 's/[0-9]*$//'`
924 if test $o != $tail; then
927 # For linux-gnu, try linux-gnu, then linux.
928 o
=`echo $tail | sed 's/-.*$//'`
929 if test $o != $tail; then
933 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
936 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
942 # For sparc/sparc9, try sparc/sparc9 and then sparc.
945 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
947 # Prepend the machine's FPU directory unless --without-fp.
948 if test "$with_fp" = yes; then
956 # Find what sysdep directories exist.
958 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
959 for d
in $add_ons_pfx ''; do
960 for b
in $base ''; do
961 for m0
in $mach ''; do
962 for v
in /$vendor ''; do
963 test "$v" = / && continue
964 for o
in /$ostry ''; do
965 test "$o" = / && continue
966 for m
in $mach ''; do
967 if test "$m0$b$v$o$m"; then
968 try
="${d}sysdeps$m0$b$v$o$m"
969 test -n "$enable_debug_configure" &&
970 echo "$0 DEBUG: try $try" >&2
973 *) dest
=$srcdir/$try ;;
975 if test -d $dest; then
976 sysnames
="$sysnames $try"
977 { test -n "$o" ||
test -n "$b"; } && os_used
=t
978 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
989 if test -z "$os_used" && test "$os" != none
; then
990 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
992 if test -z "$machine_used" && test "$machine" != none
; then
993 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
996 # We have now validated the configuration.
999 # If using ELF, look for an `elf' subdirectory of each machine directory.
1000 # We prepend these rather than inserting them whereever the machine appears
1001 # because things specified by the machine's ELF ABI should override
1002 # OS-specific things, and should always be the same for any OS on the
1003 # machine (otherwise what's the point of an ABI?).
1004 if test "$elf" = yes; then
1006 for d
in $add_ons_pfx ''; do
1009 *) xsrcdir
=$srcdir/ ;;
1012 if test -d $xsrcdir${d}sysdeps
$m/elf
; then
1013 elf_dirs
="$elf_dirs ${d}sysdeps$m/elf"
1017 sysnames
="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1021 # Expand the list of system names into a full list of directories
1022 # from each element's parent name and Implies file (if present).
1025 while test $# -gt 0; do
1029 case " $names " in *" $name "*)
1030 # Already in the list.
1034 # Report each name as we discover it, so there is no long pause in output.
1035 echo $ac_n "$name $ac_c" >&6
1037 name_base
=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1041 *) xsrcdir
=$srcdir/ ;;
1043 test -n "$enable_debug_configure" &&
1044 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1046 if test -f $xsrcdir$name/Implies
; then
1047 # Collect more names from the `Implies' file (removing comments).
1048 implied_candidate
="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1050 for x
in $implied_candidate; do
1051 if test -d $xsrcdir$name_base/$x; then
1052 implied
="$implied $name_base/$x";
1054 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1061 # Add NAME to the list of names.
1062 names
="$names $name"
1064 # Find the parent of NAME, using the empty string if it has none.
1065 parent
="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1067 # Add the names implied by NAME, and NAME's parent (if it has one), to
1068 # the list of names to be processed (the argument list). We prepend the
1069 # implied names to the list and append the parent. We want implied
1070 # directories to come before further directories inferred from the
1071 # configuration components; this ensures that for sysv4, unix/common
1072 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1074 sysnames
="`echo $implied $* $parent`"
1075 test -n "$sysnames" && set $sysnames
1078 # Add the default directories.
1079 sysnames
="$names sysdeps/generic"
1081 # The other names were emitted during the scan.
1082 echo "$ac_t""sysdeps/generic" 1>&6
1087 # Find a good install program. We prefer a C program (faster),
1088 # so one script is as good as another. But avoid the broken or
1089 # incompatible versions:
1090 # SysV /etc/install, /usr/sbin/install
1091 # SunOS /usr/etc/install
1092 # IRIX /sbin/install
1094 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1095 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1096 # ./install, which can be erroneously created by make from ./install.sh.
1097 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1098 echo "configure:1099: checking for a BSD compatible install" >&5
1099 if test -z "$INSTALL"; then
1100 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1103 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1104 for ac_dir
in $PATH; do
1105 # Account for people who put trailing slashes in PATH elements.
1107 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1109 # OSF1 and SCO ODT 3.0 have their own names for install.
1110 for ac_prog
in ginstall installbsd scoinst
install; do
1111 if test -f $ac_dir/$ac_prog; then
1112 if test $ac_prog = install &&
1113 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1114 # AIX install. It has an incompatible calling convention.
1115 # OSF/1 installbsd also uses dspmsg, but is usable.
1118 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1129 if test "${ac_cv_path_install+set}" = set; then
1130 INSTALL
="$ac_cv_path_install"
1132 # As a last resort, use the slow shell script. We don't cache a
1133 # path for INSTALL within a source directory, because that will
1134 # break other packages using the cache if that directory is
1135 # removed, or if the path is relative.
1136 INSTALL
="$ac_install_sh"
1139 echo "$ac_t""$INSTALL" 1>&6
1141 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1142 # It thinks the first close brace ends the variable substitution.
1143 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1145 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1147 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1148 # The makefiles need to use a different form to find it in $srcdir.
1149 INSTALL
='\$(..)./install-sh -c'
1151 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1152 echo "configure:1153: checking whether ln -s works" >&5
1153 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1157 if ln -s X conftestdata
2>/dev
/null
1160 ac_cv_prog_LN_S
="ln -s"
1165 LN_S
="$ac_cv_prog_LN_S"
1166 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1167 echo "$ac_t""yes" 1>&6
1169 echo "$ac_t""no" 1>&6
1172 for ac_prog
in msgfmt gmsgfmt
1174 # Extract the first word of "$ac_prog", so it can be a program name with args.
1175 set dummy
$ac_prog; ac_word
=$2
1176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1177 echo "configure:1178: checking for $ac_word" >&5
1178 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1181 if test -n "$MSGFMT"; then
1182 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
1184 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1185 for ac_dir
in $PATH; do
1186 test -z "$ac_dir" && ac_dir
=.
1187 if test -f $ac_dir/$ac_word; then
1188 ac_cv_prog_MSGFMT
="$ac_prog"
1195 MSGFMT
="$ac_cv_prog_MSGFMT"
1196 if test -n "$MSGFMT"; then
1197 echo "$ac_t""$MSGFMT" 1>&6
1199 echo "$ac_t""no" 1>&6
1202 test -n "$MSGFMT" && break
1204 test -n "$MSGFMT" || MSGFMT
=":"
1206 if test "$MSGFMT" != ":"; then
1207 if $MSGFMT --version 2>&1 |
grep 'GNU gettext.*0\.[1-9][0-9]' >/dev
/null
2>&1
1208 then : # msgfmt from gettext 0.10 or greater, works.
1210 echo "configure: warning:
1211 *** (g)msgfmt is too old or wrong version (need gettext 0.10 or better)." 1>&2
1216 # Extract the first word of "makeinfo", so it can be a program name with args.
1217 set dummy makeinfo
; ac_word
=$2
1218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1219 echo "configure:1220: checking for $ac_word" >&5
1220 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 if test -n "$MAKEINFO"; then
1224 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
1226 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1227 for ac_dir
in $PATH; do
1228 test -z "$ac_dir" && ac_dir
=.
1229 if test -f $ac_dir/$ac_word; then
1230 ac_cv_prog_MAKEINFO
="makeinfo"
1237 MAKEINFO
="$ac_cv_prog_MAKEINFO"
1238 if test -n "$MAKEINFO"; then
1239 echo "$ac_t""$MAKEINFO" 1>&6
1241 echo "$ac_t""no" 1>&6
1244 if test "$MAKEINFO"; then
1245 if $MAKEINFO --version |
grep 'texinfo 3\.[1-9][1-9]' >/dev
/null
2>&1
1246 then : # Makeinfo 3.11 or greater, works.
1248 echo "configure: warning:
1249 *** makeinfo is too old (need version 3.11 or better).
1250 *** You should install the needed version and re-configure since otherwise
1251 *** you won't get the info pages installed." 1>&2
1256 # Extract the first word of "gcc", so it can be a program name with args.
1257 set dummy gcc
; ac_word
=$2
1258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1259 echo "configure:1260: checking for $ac_word" >&5
1260 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1263 if test -n "$CC"; then
1264 ac_cv_prog_CC
="$CC" # Let the user override the test.
1266 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1267 for ac_dir
in $PATH; do
1268 test -z "$ac_dir" && ac_dir
=.
1269 if test -f $ac_dir/$ac_word; then
1278 if test -n "$CC"; then
1279 echo "$ac_t""$CC" 1>&6
1281 echo "$ac_t""no" 1>&6
1284 if test -z "$CC"; then
1285 # Extract the first word of "cc", so it can be a program name with args.
1286 set dummy cc
; ac_word
=$2
1287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1288 echo "configure:1289: checking for $ac_word" >&5
1289 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 if test -n "$CC"; then
1293 ac_cv_prog_CC
="$CC" # Let the user override the test.
1295 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1297 for ac_dir
in $PATH; do
1298 test -z "$ac_dir" && ac_dir
=.
1299 if test -f $ac_dir/$ac_word; then
1300 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1301 ac_prog_rejected
=yes
1309 if test $ac_prog_rejected = yes; then
1310 # We found a bogon in the path, so make sure we never use it.
1311 set dummy
$ac_cv_prog_CC
1313 if test $# -gt 0; then
1314 # We chose a different compiler from the bogus one.
1315 # However, it has the same basename, so the bogon will be chosen
1316 # first if we set CC to just the basename; use the full file name.
1318 set dummy
"$ac_dir/$ac_word" "$@"
1326 if test -n "$CC"; then
1327 echo "$ac_t""$CC" 1>&6
1329 echo "$ac_t""no" 1>&6
1332 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1335 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1336 echo "configure:1337: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1339 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1340 ac_cpp
='$CPP $CPPFLAGS'
1341 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1342 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1343 cross_compiling
=$ac_cv_prog_cc_cross
1345 cat > conftest.
$ac_ext <<EOF
1346 #line 1347 "configure"
1347 #include "confdefs.h"
1350 if { (eval echo configure
:1351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1351 ac_cv_prog_cc_works
=yes
1352 # If we can't run a trivial program, we are probably using a cross compiler.
1353 if (.
/conftest
; exit) 2>/dev
/null
; then
1354 ac_cv_prog_cc_cross
=no
1356 ac_cv_prog_cc_cross
=yes
1359 echo "configure: failed program was:" >&5
1360 cat conftest.
$ac_ext >&5
1361 ac_cv_prog_cc_works
=no
1365 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1366 if test $ac_cv_prog_cc_works = no
; then
1368 ac_cv_prog_cc_cross
=yes
1372 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1373 echo "configure:1374: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1374 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1376 cross_compiling
=$ac_cv_prog_cc_cross
1378 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1379 echo "configure:1380: checking whether we are using GNU C" >&5
1380 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 cat > conftest.c
<<EOF
1388 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1395 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1397 if test $ac_cv_prog_gcc = yes; then
1400 cat > conftest.c
<<EOF
1401 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
1405 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1406 if test -z "$CFLAGS"; then
1410 { echo "configure: error: We require GNU CC version 2.7 or newer" 1>&2; exit 1; }
1413 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1416 echo $ac_n "checking build system type""... $ac_c" 1>&6
1417 echo "configure:1418: checking build system type" >&5
1420 case "$build_alias" in
1423 NONE
) build_alias
=$host_alias ;;
1424 *) build_alias
=$nonopt ;;
1428 build
=`$ac_config_sub $build_alias`
1429 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1430 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1431 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432 echo "$ac_t""$build" 1>&6
1434 if test $host != $build; then
1435 for ac_prog
in gcc cc
1437 # Extract the first word of "$ac_prog", so it can be a program name with args.
1438 set dummy
$ac_prog; ac_word
=$2
1439 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1440 echo "configure:1441: checking for $ac_word" >&5
1441 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1442 echo $ac_n "(cached) $ac_c" 1>&6
1444 if test -n "$BUILD_CC"; then
1445 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
1447 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1448 for ac_dir
in $PATH; do
1449 test -z "$ac_dir" && ac_dir
=.
1450 if test -f $ac_dir/$ac_word; then
1451 ac_cv_prog_BUILD_CC
="$ac_prog"
1458 BUILD_CC
="$ac_cv_prog_BUILD_CC"
1459 if test -n "$BUILD_CC"; then
1460 echo "$ac_t""$BUILD_CC" 1>&6
1462 echo "$ac_t""no" 1>&6
1465 test -n "$BUILD_CC" && break
1470 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1471 echo "configure:1472: checking how to run the C preprocessor" >&5
1472 # On Suns, sometimes $CPP names a directory.
1473 if test -n "$CPP" && test -d "$CPP"; then
1476 if test -z "$CPP"; then
1477 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1480 # This must be in double quotes, not single quotes, because CPP may get
1481 # substituted into the Makefile and "${CC-cc}" will confuse make.
1483 # On the NeXT, cc -E runs the code through the compiler's parser,
1484 # not just through cpp.
1485 cat > conftest.
$ac_ext <<EOF
1486 #line 1487 "configure"
1487 #include "confdefs.h"
1491 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1492 { (eval echo configure
:1493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1493 ac_err
=`grep -v '^ *+' conftest.out`
1494 if test -z "$ac_err"; then
1498 echo "configure: failed program was:" >&5
1499 cat conftest.
$ac_ext >&5
1501 CPP
="${CC-cc} -E -traditional-cpp"
1502 cat > conftest.
$ac_ext <<EOF
1503 #line 1504 "configure"
1504 #include "confdefs.h"
1508 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1509 { (eval echo configure
:1510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1510 ac_err
=`grep -v '^ *+' conftest.out`
1511 if test -z "$ac_err"; then
1515 echo "configure: failed program was:" >&5
1516 cat conftest.
$ac_ext >&5
1523 ac_cv_prog_CPP
="$CPP"
1525 CPP
="$ac_cv_prog_CPP"
1527 ac_cv_prog_CPP
="$CPP"
1529 echo "$ac_t""$CPP" 1>&6
1531 # Was a --with-binutils option given?
1532 if test -n "$path_binutils"; then
1533 # Make absolute; ensure a single trailing slash.
1534 path_binutils
=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1535 CC
="$CC -B$with_binutils"
1537 AS
=`$CC -print-file-name=as`
1538 LD
=`$CC -print-file-name=ld`
1540 # Determine whether we are using GNU binutils.
1541 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1542 echo "configure:1543: checking whether $AS is GNU as" >&5
1543 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1546 # Most GNU programs take a -v and spit out some text including
1547 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1548 if $AS -v </dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
1549 libc_cv_prog_as_gnu
=yes
1551 libc_cv_prog_as_gnu
=no
1555 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1557 gnu_as
=$libc_cv_prog_as_gnu
1559 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1560 echo "configure:1561: checking whether $LD is GNU ld" >&5
1561 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1564 # Most GNU programs take a -v and spit out some text including
1565 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1566 if $LD -v </dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
1567 libc_cv_prog_ld_gnu
=yes
1569 libc_cv_prog_ld_gnu
=no
1573 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1574 gnu_ld
=$libc_cv_prog_ld_gnu
1575 if test $host != $build; then
1576 ac_tool_prefix
=${host_alias}-
1581 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1582 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1584 echo "configure:1585: checking for $ac_word" >&5
1585 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1588 if test -n "$AR"; then
1589 ac_cv_prog_AR
="$AR" # Let the user override the test.
1591 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1592 for ac_dir
in $PATH; do
1593 test -z "$ac_dir" && ac_dir
=.
1594 if test -f $ac_dir/$ac_word; then
1595 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1600 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1604 if test -n "$AR"; then
1605 echo "$ac_t""$AR" 1>&6
1607 echo "$ac_t""no" 1>&6
1612 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1613 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1615 echo "configure:1616: checking for $ac_word" >&5
1616 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1617 echo $ac_n "(cached) $ac_c" 1>&6
1619 if test -n "$RANLIB"; then
1620 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1622 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1623 for ac_dir
in $PATH; do
1624 test -z "$ac_dir" && ac_dir
=.
1625 if test -f $ac_dir/$ac_word; then
1626 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1633 RANLIB
="$ac_cv_prog_RANLIB"
1634 if test -n "$RANLIB"; then
1635 echo "$ac_t""$RANLIB" 1>&6
1637 echo "$ac_t""no" 1>&6
1641 if test -z "$ac_cv_prog_RANLIB"; then
1642 if test -n "$ac_tool_prefix"; then
1643 # Extract the first word of "ranlib", so it can be a program name with args.
1644 set dummy ranlib
; ac_word
=$2
1645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1646 echo "configure:1647: checking for $ac_word" >&5
1647 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1650 if test -n "$RANLIB"; then
1651 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1653 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1654 for ac_dir
in $PATH; do
1655 test -z "$ac_dir" && ac_dir
=.
1656 if test -f $ac_dir/$ac_word; then
1657 ac_cv_prog_RANLIB
="ranlib"
1662 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1665 RANLIB
="$ac_cv_prog_RANLIB"
1666 if test -n "$RANLIB"; then
1667 echo "$ac_t""$RANLIB" 1>&6
1669 echo "$ac_t""no" 1>&6
1678 # Extract the first word of "bash", so it can be a program name with args.
1679 set dummy bash
; ac_word
=$2
1680 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1681 echo "configure:1682: checking for $ac_word" >&5
1682 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1683 echo $ac_n "(cached) $ac_c" 1>&6
1687 ac_cv_path_BASH
="$BASH" # Let the user override the test with a path.
1690 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1691 for ac_dir
in $PATH; do
1692 test -z "$ac_dir" && ac_dir
=.
1693 if test -f $ac_dir/$ac_word; then
1694 ac_cv_path_BASH
="$ac_dir/$ac_word"
1699 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH
="no"
1703 BASH
="$ac_cv_path_BASH"
1704 if test -n "$BASH"; then
1705 echo "$ac_t""$BASH" 1>&6
1707 echo "$ac_t""no" 1>&6
1710 if test "$BASH" != no
&&
1711 $BASH -c 'test "$BASH_VERSINFO" \
1712 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1713 libc_cv_have_bash2
=yes
1715 libc_cv_have_bash2
=no
1719 if test "$BASH" = no
; then
1720 # Extract the first word of "ksh", so it can be a program name with args.
1721 set dummy ksh
; ac_word
=$2
1722 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1723 echo "configure:1724: checking for $ac_word" >&5
1724 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1729 ac_cv_path_KSH
="$KSH" # Let the user override the test with a path.
1732 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1733 for ac_dir
in $PATH; do
1734 test -z "$ac_dir" && ac_dir
=.
1735 if test -f $ac_dir/$ac_word; then
1736 ac_cv_path_KSH
="$ac_dir/$ac_word"
1741 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH
="no"
1745 KSH
="$ac_cv_path_KSH"
1746 if test -n "$KSH"; then
1747 echo "$ac_t""$KSH" 1>&6
1749 echo "$ac_t""no" 1>&6
1752 if test "$KSH" = no
; then
1755 libc_cv_have_ksh
=yes
1760 libc_cv_have_ksh
=yes
1766 # Extract the first word of "$ac_prog", so it can be a program name with args.
1767 set dummy
$ac_prog; ac_word
=$2
1768 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1769 echo "configure:1770: checking for $ac_word" >&5
1770 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1771 echo $ac_n "(cached) $ac_c" 1>&6
1775 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
1778 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1779 for ac_dir
in $PATH; do
1780 test -z "$ac_dir" && ac_dir
=.
1781 if test -f $ac_dir/$ac_word; then
1782 ac_cv_path_PERL
="$ac_dir/$ac_word"
1790 PERL
="$ac_cv_path_PERL"
1791 if test -n "$PERL"; then
1792 echo "$ac_t""$PERL" 1>&6
1794 echo "$ac_t""no" 1>&6
1797 test -n "$PERL" && break
1799 test -n "$PERL" || PERL
="no"
1803 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1804 echo "configure:1805: checking for signed size_t type" >&5
1805 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1808 echo '#include <stddef.h>
1809 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1810 if eval "$ac_cpp conftest.c 2>/dev/null" \
1811 |
grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev
/null
; then
1812 libc_cv_signed_size_t
=no
1814 libc_cv_signed_size_t
=yes
1819 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
1820 if test $libc_cv_signed_size_t = yes; then
1821 cat >> confdefs.h
<<\EOF
1822 #undef __SIZE_TYPE__
1823 #define __SIZE_TYPE__ unsigned
1827 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
1828 echo "configure:1829: checking for libc-friendly stddef.h" >&5
1829 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1832 cat > conftest.
$ac_ext <<EOF
1833 #line 1834 "configure"
1834 #include "confdefs.h"
1835 #define __need_size_t
1836 #define __need_wchar_t
1841 size_t size; wchar_t wchar;
1843 #error stddef.h ignored __need_*
1845 if (&size == NULL || &wchar == NULL) abort ();
1848 if { (eval echo configure
:1849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1850 libc_cv_friendly_stddef
=yes
1852 echo "configure: failed program was:" >&5
1853 cat conftest.
$ac_ext >&5
1855 libc_cv_friendly_stddef
=no
1860 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
1861 if test $libc_cv_friendly_stddef = yes; then
1862 config_vars
="$config_vars
1863 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1866 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
1867 echo "configure:1868: checking whether we need to use -P to assemble .S files" >&5
1868 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6
1871 cat > conftest.S
<<EOF
1872 #include "confdefs.h"
1873 /* Nothing whatsoever. */
1875 if ${CC-cc} $CFLAGS -c conftest.S
2>/dev
/null
; then
1876 libc_cv_need_minus_P
=no
1878 libc_cv_need_minus_P
=yes
1883 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
1884 if test $libc_cv_need_minus_P = yes; then
1885 config_vars
="$config_vars
1886 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1889 # gcc 2.7.x has a bug where if -pipe is set, the assembler will always
1890 # be told to read stdin. This causes the compiler to hang when fed an
1892 if test $ac_cv_prog_gcc = yes; then
1893 case `${CC-cc} -v 2>&1` in
1895 # We must check this even if -pipe is not given here, because the user
1896 # might do `make CFLAGS=-pipe'.
1897 echo $ac_n "checking for gcc 2.7.x -pipe bug""... $ac_c" 1>&6
1898 echo "configure:1899: checking for gcc 2.7.x -pipe bug" >&5
1899 if eval "test \"`echo '$''{'libc_cv_gcc_pipe_bug'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1902 cp /dev
/null conftest.s
1903 cat >conftest1.s
<<EOF
1906 if ${CC-cc} -pipe -c conftest.s
<conftest1.s
2>/dev
/null
; then
1907 libc_cv_gcc_pipe_bug
=no
1909 libc_cv_gcc_pipe_bug
=yes
1914 echo "$ac_t""$libc_cv_gcc_pipe_bug" 1>&6
1915 if test $libc_cv_gcc_pipe_bug = yes; then
1916 makeCC
="${CC-cc} -B\$(common-objpfx)"
1918 CFLAGS
=`echo $CFLAGS |sed 's/-pipe//'`
1920 *) libc_cv_gcc_pipe_bug
=no
;;
1923 libc_cv_gcc_pipe_bug
=no
1926 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
1927 echo "configure:1928: checking for assembler global-symbol directive" >&5
1928 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1929 echo $ac_n "(cached) $ac_c" 1>&6
1931 libc_cv_asm_global_directive
=UNKNOWN
1932 for ac_globl
in .globl .global
; do
1933 cat > conftest.s
<<EOF
1938 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
1939 libc_cv_asm_global_directive
=${ac_globl}
1942 test $libc_cv_asm_global_directive != UNKNOWN
&& break
1946 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
1947 if test $libc_cv_asm_global_directive = UNKNOWN
; then
1948 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1950 cat >> confdefs.h
<<EOF
1951 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1956 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
1957 echo "configure:1958: checking for .set assembler directive" >&5
1958 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1959 echo $ac_n "(cached) $ac_c" 1>&6
1961 cat > conftest.s
<<EOF
1964 .set glibc_conftest_frobozz,foo
1965 $libc_cv_asm_global_directive glibc_conftest_frobozz
1967 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1968 # (but it doesn't work), so we must do a linking check to be sure.
1969 cat > conftest1.c
<<\EOF
1970 extern int glibc_conftest_frobozz
;
1971 main
() { printf ("%d\n", glibc_conftest_frobozz
); }
1973 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1974 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
1975 libc_cv_asm_set_directive
=yes
1977 libc_cv_asm_set_directive
=no
1982 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
1983 if test $libc_cv_asm_set_directive = yes; then
1984 cat >> confdefs.h
<<\EOF
1985 #define HAVE_ASM_SET_DIRECTIVE 1
1990 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
1991 echo "configure:1992: checking for .symver assembler directive" >&5
1992 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
1993 echo $ac_n "(cached) $ac_c" 1>&6
1995 cat > conftest.s
<<EOF
1998 .symver _sym,sym@VERS
2000 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s
1>&5 2>&5; then
2001 libc_cv_asm_symver_directive
=yes
2003 libc_cv_asm_symver_directive
=no
2008 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2009 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2010 echo "configure:2011: checking for ld --version-script" >&5
2011 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2014 if test $libc_cv_asm_symver_directive = yes; then
2015 cat > conftest.s
<<EOF
2018 .symver _sym,sym@VERS
2020 cat > conftest.map
<<EOF
2029 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s
1>&5 2>&5; then
2030 if { ac_try
='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2031 -nostartfiles -nostdlib
2032 -Wl,--version-script,conftest.map
2033 1>&5'; { (eval echo configure
:2034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2035 libc_cv_ld_version_script_option
=yes
2037 libc_cv_ld_version_script_option
=no
2040 libc_cv_ld_version_script_option
=no
2043 libc_cv_ld_version_script_option
=no
2048 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2049 if test $libc_cv_asm_symver_directive = yes &&
2050 test $libc_cv_ld_version_script_option = yes &&
2051 test $enable_versioning = yes; then
2053 cat >> confdefs.h
<<\EOF
2054 #define DO_VERSIONING 1
2062 if test $VERSIONING = no
; then
2064 *** WARNING: You should not compile GNU libc without versioning. Not using
2065 *** versioning will introduce incompatibilities so that old binaries
2066 *** will not run anymore.
2067 *** For versioning you need recent binutils (binutils-2.8.1.0.17 or newer)."
2069 if test $elf = yes; then
2070 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2071 echo "configure:2072: checking for .previous assembler directive" >&5
2072 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2075 cat > conftest.s
<<EOF
2076 .section foo_section
2079 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2080 libc_cv_asm_previous_directive
=yes
2082 libc_cv_asm_previous_directive
=no
2087 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2088 if test $libc_cv_asm_previous_directive = yes; then
2089 cat >> confdefs.h
<<\EOF
2090 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2094 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2095 echo "configure:2096: checking for .popsection assembler directive" >&5
2096 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2099 cat > conftest.s
<<EOF
2100 .pushsection foo_section
2103 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2104 libc_cv_asm_popsection_directive
=yes
2106 libc_cv_asm_popsection_directive
=no
2111 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2112 if test $libc_cv_asm_popsection_directive = yes; then
2113 cat >> confdefs.h
<<\EOF
2114 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2121 if test $elf != yes; then
2122 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2123 echo "configure:2124: checking for .init and .fini sections" >&5
2124 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2127 cat > conftest.
$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2132 asm (".section .init");
2133 asm (".section .fini");
2137 if { (eval echo configure
:2138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2139 libc_cv_have_initfini
=yes
2141 echo "configure: failed program was:" >&5
2142 cat conftest.
$ac_ext >&5
2144 libc_cv_have_initfini
=no
2149 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2150 if test $libc_cv_have_initfini = yes; then
2151 cat >> confdefs.h
<<\EOF
2152 #define HAVE_INITFINI 1
2160 if test $elf = yes; then
2161 libc_cv_asm_underscores
=no
2163 if test $ac_cv_prog_cc_works = yes; then
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
2169 cat > conftest.
$ac_ext <<EOF
2170 #line 2171 "configure"
2171 #include "confdefs.h"
2172 asm ("_glibc_foobar:");
2177 if { (eval echo configure
:2178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2179 libc_cv_asm_underscores
=yes
2181 echo "configure: failed program was:" >&5
2182 cat conftest.
$ac_ext >&5
2184 libc_cv_asm_underscores
=no
2189 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2191 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2192 echo "configure:2193: checking for _ prefix on C symbol names" >&5
2193 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2194 echo $ac_n "(cached) $ac_c" 1>&6
2196 cat > conftest.
$ac_ext <<EOF
2197 #line 2198 "configure"
2198 #include "confdefs.h"
2199 void underscore_test(void) {
2202 if { (eval echo configure
:2203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2203 if grep _underscore_test conftest
* >/dev
/null
; then
2205 libc_cv_asm_underscores
=yes
2208 libc_cv_asm_underscores
=no
2211 echo "configure: failed program was:" >&5
2212 cat conftest.
$ac_ext >&5
2214 libc_cv_asm_underscores
=no
2219 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2222 if test $libc_cv_asm_underscores = no
; then
2223 cat >> confdefs.h
<<\EOF
2224 #define NO_UNDERSCORES 1
2229 if test $elf = yes; then
2230 libc_cv_weak_symbols
=yes
2231 libc_cv_asm_weak_directive
=yes
2232 libc_cv_asm_weakext_directive
=no
2234 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2235 echo "configure:2236: checking for assembler .weak directive" >&5
2236 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2237 echo $ac_n "(cached) $ac_c" 1>&6
2239 cat > conftest.s
<<EOF
2241 ${libc_cv_asm_global_directive} foo
2244 .weak bar; bar = foo
2246 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2247 libc_cv_asm_weak_directive
=yes
2249 libc_cv_asm_weak_directive
=no
2254 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2256 if test $libc_cv_asm_weak_directive = no
; then
2257 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2258 echo "configure:2259: checking for assembler .weakext directive" >&5
2259 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
2260 echo $ac_n "(cached) $ac_c" 1>&6
2262 cat > conftest.s
<<EOF
2264 ${libc_cv_asm_global_directive} foo
2269 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2270 libc_cv_asm_weakext_directive
=yes
2272 libc_cv_asm_weakext_directive
=no
2277 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2282 if test $libc_cv_asm_weak_directive = yes; then
2283 cat >> confdefs.h
<<\EOF
2284 #define HAVE_ASM_WEAK_DIRECTIVE 1
2287 elif test $libc_cv_asm_weakext_directive = yes; then
2288 cat >> confdefs.h
<<\EOF
2289 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2294 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2295 echo "configure:2296: checking for ld --no-whole-archive" >&5
2296 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2299 cat > conftest.c
<<\EOF
2304 if { ac_try
='${CC-cc} $CFLAGS
2305 -nostdlib -nostartfiles -Wl,--no-whole-archive
2306 -o conftest conftest.c 1>&5'; { (eval echo configure
:2307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2307 libc_cv_ld_no_whole_archive
=yes
2309 libc_cv_ld_no_whole_archive
=no
2314 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2316 echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
2317 echo "configure:2318: checking for gcc -fno-exceptions" >&5
2318 if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
2319 echo $ac_n "(cached) $ac_c" 1>&6
2321 cat > conftest.c
<<\EOF
2326 if { ac_try
='${CC-cc} $CFLAGS
2327 -nostdlib -nostartfiles -fno-exceptions
2328 -o conftest conftest.c 1>&5'; { (eval echo configure
:2329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2329 libc_cv_gcc_no_exceptions
=yes
2331 libc_cv_gcc_no_exceptions
=no
2336 echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
2338 if test "$base_machine" = alpha
; then
2339 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2340 echo "configure:2341: checking for function ..ng prefix" >&5
2341 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2344 cat > conftest.c
<<\EOF
2347 if { ac_try
='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure
:2348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2349 libc_cv_gcc_alpha_ng_prefix
=yes
2351 libc_cv_gcc_alpha_ng_prefix
=no
2356 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2357 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2358 cat >> confdefs.h
<<\EOF
2359 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2363 cat >> confdefs.h
<<\EOF
2364 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2370 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2371 echo "configure:2372: checking for DWARF2 unwind info support" >&5
2372 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
2373 echo $ac_n "(cached) $ac_c" 1>&6
2375 cat > conftest.c
<<EOF
2376 #line 2377 "configure"
2377 static char __EH_FRAME_BEGIN__;
2380 #ifdef CHECK__register_frame
2381 __register_frame (__EH_FRAME_BEGIN__);
2382 __deregister_frame (__EH_FRAME_BEGIN__);
2384 #ifdef CHECK__register_frame_info
2385 __register_frame_info (__EH_FRAME_BEGIN__);
2386 __deregister_frame_info (__EH_FRAME_BEGIN__);
2391 /* FIXME: this is fragile. */
2401 if { ac_try
='${CC-cc} $CFLAGS -DCHECK__register_frame_info
2402 -nostdlib -nostartfiles
2403 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:2404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2404 libc_cv_gcc_dwarf2_unwind_info
=static
2406 libc_cv_gcc_dwarf2_unwind_info
=no
2408 if test $libc_cv_gcc_dwarf2_unwind_info = no
; then
2409 if { ac_try
='${CC-cc} $CFLAGS -DCHECK__register_frame
2410 -nostdlib -nostartfiles
2411 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:2412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2412 libc_cv_gcc_dwarf2_unwind_info
=yes
2414 libc_cv_gcc_dwarf2_unwind_info
=no
2420 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
2421 case $libc_cv_gcc_dwarf2_unwind_info in
2423 cat >> confdefs.h
<<\EOF
2424 #define HAVE_DWARF2_UNWIND_INFO 1
2429 cat >> confdefs.h
<<\EOF
2430 #define HAVE_DWARF2_UNWIND_INFO 1
2433 cat >> confdefs.h
<<\EOF
2434 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
2440 ### End of automated tests.
2441 ### Now run sysdeps configure fragments.
2443 # sysdeps configure fragments may set these with files to be linked below.
2447 # Iterate over all the sysdep directories we will use, running their
2448 # configure fragments, and looking for a uname implementation.
2450 for dir
in $sysnames; do
2453 *) dest
=$srcdir/$dir ;;
2455 if test -r $dest/configure
; then
2456 echo "$ac_t""running configure fragment for $dest" 1>&6
2460 if test -z "$uname"; then
2461 if test -r $dest/uname.c ||
2462 test -r $dest/uname.S ||
2463 { test -r $dest/syscalls.list
&&
2464 grep '^uname[ ]' $dest/syscalls.list
>/dev
/null
; }; then
2472 # If we will use the generic uname implementation, we must figure out what
2473 # it will say by examining the system, and write the results in config-name.h.
2474 if test "$uname" = "sysdeps/generic"; then
2476 uname_sysname
=`echo $config_os | sed 's/[0-9.]*$//'`
2477 if test $uname_sysname != $config_os; then
2478 config_release
=`echo $config_os | sed s/$uname_sysname//`
2481 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2482 echo "configure:2483: checking OS release for uname" >&5
2483 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2486 kernel_release
=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2487 if test x
`echo "$config_release" | sed "s/^$kernel_release//"` \
2488 != x
$config_release; then
2489 # The configuration release is a substring of the kernel release.
2490 libc_cv_uname_release
=$kernel_release
2491 elif test x
$config_release != x
; then
2492 libc_cv_uname_release
=$config_release
2493 elif test x
$kernel_release != x
; then
2494 libc_cv_uname_release
=$kernel_release
2496 libc_cv_uname_release
=unknown
2500 echo "$ac_t""$libc_cv_uname_release" 1>&6
2501 uname_release
="$libc_cv_uname_release"
2503 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2504 echo "configure:2505: checking OS version for uname" >&5
2505 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2508 kernel_version
=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2509 if test -n "$kernel_version"; then
2510 libc_cv_uname_version
="$kernel_version"
2512 libc_cv_uname_version
=unknown
2516 echo "$ac_t""$libc_cv_uname_version" 1>&6
2517 uname_version
="$libc_cv_uname_version"
2519 config_uname
=config-name.h
:config-name.
in
2521 # For non-generic uname, we don't need to create config-name.h at all.
2525 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
2526 echo "configure:2527: checking stdio selection" >&5
2529 libio
) cat >> confdefs.h
<<\EOF
2530 #define USE_IN_LIBIO 1
2533 default
) stdio
=stdio
;;
2535 echo "$ac_t""$stdio" 1>&6
2537 echo $ac_n "checking ldap selection""... $ac_c" 1>&6
2538 echo "configure:2539: checking ldap selection" >&5
2547 echo "$ac_t""$ldap" 1>&6
2556 if test $gnu_ld = yes; then
2557 cat >> confdefs.h
<<\EOF
2558 #define HAVE_GNU_LD 1
2562 if test $gnu_as = yes; then
2563 cat >> confdefs.h
<<\EOF
2564 #define HAVE_GNU_AS 1
2568 if test $elf = yes; then
2569 cat >> confdefs.h
<<\EOF
2577 if test $shared = default
; then
2578 if test $gnu_ld = yes; then
2581 # For now we do not assume shared libs are available. In future more
2582 # tests might become available.
2587 if test $static = no
&& test $shared = yes; then
2590 { echo "configure: error:
2591 *** You must compile with support for the static library since the shared
2592 *** library uses it. Restart configure without \`--disable-static'." 1>&2; exit 1; }
2599 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
2600 echo "configure:2601: checking whether -fPIC is default" >&5
2601 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2605 cat > conftest.c
<<EOF
2606 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
2607 # error PIC is default.
2610 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
2616 echo "$ac_t""$pic_default" 1>&6
2627 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
2630 config_makefile
=Makefile
2633 VERSION
=`sed -e 's/^#define VERSION "\([^"]*\)"/\1/p' -e d < $srcdir/version.h`
2636 if test $libc_cv_gcc_pipe_bug = yes; then
2641 if test -r /vmunix
; then
2642 kernel_id
=`strings /vmunix | grep UNIX`
2643 elif test -r /dynix
; then
2644 kernel_id
=`strings /dynix | grep DYNIX`
2652 cat > confcache
<<\EOF
2653 # This file is a shell script that caches the results of configure
2654 # tests run on this system so they can be shared between configure
2655 # scripts and configure runs. It is not useful on other systems.
2656 # If it contains results you don't want to keep, you may remove or edit it.
2658 # By default, configure uses ./config.cache as the cache file,
2659 # creating it if it does not exist already. You can give configure
2660 # the --cache-file=FILE option to use a different cache file; that is
2661 # what configure does when it calls configure scripts in
2662 # subdirectories, so they share the cache.
2663 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2664 # config.status only pays attention to the cache file if you give it the
2665 # --recheck option to rerun configure.
2668 # The following way of writing the cache mishandles newlines in values,
2669 # but we know of no workaround that is simple, portable, and efficient.
2670 # So, don't put newlines in cache variables' values.
2671 # Ultrix sh set writes to stderr and can't be redirected directly,
2672 # and sets the high bit in the cache file unless we assign to the vars.
2674 case `(ac_space=' '; set) 2>&1` in
2676 # `set' does not quote correctly, so add quotes (double-quote substitution
2677 # turns \\\\ into \\, and sed turns \\ into \).
2679 -e "s/'/'\\\\''/g" \
2680 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2683 # `set' quotes correctly as required by POSIX, so do not add quotes.
2684 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2687 if cmp -s $cache_file confcache
; then
2690 if test -w $cache_file; then
2691 echo "updating cache $cache_file"
2692 cat confcache
> $cache_file
2694 echo "not updating unwritable cache $cache_file"
2699 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2701 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2702 # Let make expand exec_prefix.
2703 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2705 # Any assignment to VPATH causes Sun make to only execute
2706 # the first set of double-colon rules, so remove it if not needed.
2707 # If there is a colon in the path, we need to keep it.
2708 if test "x$srcdir" = x.
; then
2709 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2712 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2714 DEFS
=-DHAVE_CONFIG_H
2716 # Without the "./", some shells look in PATH for config.status.
2717 : ${CONFIG_STATUS=./config.status}
2719 echo creating
$CONFIG_STATUS
2720 rm -f $CONFIG_STATUS
2721 cat > $CONFIG_STATUS <<EOF
2723 # Generated automatically by configure.
2724 # Run this file to recreate the current configuration.
2725 # This directory was configured as follows,
2726 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2728 # $0 $ac_configure_args
2730 # Compiler output produced by configure, useful for debugging
2731 # configure, is in ./config.log if it exists.
2733 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2736 case "\$ac_option" in
2737 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2738 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2739 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2740 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2741 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2743 -help | --help | --hel | --he | --h)
2744 echo "\$ac_cs_usage"; exit 0 ;;
2745 *) echo "\$ac_cs_usage"; exit 1 ;;
2749 ac_given_srcdir=$srcdir
2750 ac_given_INSTALL="$INSTALL"
2752 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2754 cat >> $CONFIG_STATUS <<EOF
2756 # Protect against being on the right side of a sed subst in config.status.
2757 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2758 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2761 s%@CFLAGS@%$CFLAGS%g
2762 s%@CPPFLAGS@%$CPPFLAGS%g
2763 s%@CXXFLAGS@%$CXXFLAGS%g
2765 s%@LDFLAGS@%$LDFLAGS%g
2767 s%@exec_prefix@%$exec_prefix%g
2768 s%@prefix@%$prefix%g
2769 s%@program_transform_name@%$program_transform_name%g
2770 s%@bindir@%$bindir%g
2771 s%@sbindir@%$sbindir%g
2772 s%@libexecdir@%$libexecdir%g
2773 s%@datadir@%$datadir%g
2774 s%@sysconfdir@%$sysconfdir%g
2775 s%@sharedstatedir@%$sharedstatedir%g
2776 s%@localstatedir@%$localstatedir%g
2777 s%@libdir@%$libdir%g
2778 s%@includedir@%$includedir%g
2779 s%@oldincludedir@%$oldincludedir%g
2780 s%@infodir@%$infodir%g
2781 s%@mandir@%$mandir%g
2782 s%@with_cvs@%$with_cvs%g
2783 s%@subdirs@%$subdirs%g
2785 s%@host_alias@%$host_alias%g
2786 s%@host_cpu@%$host_cpu%g
2787 s%@host_vendor@%$host_vendor%g
2788 s%@host_os@%$host_os%g
2789 s%@base_machine@%$base_machine%g
2790 s%@sysnames@%$sysnames%g
2791 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2792 s%@INSTALL_DATA@%$INSTALL_DATA%g
2794 s%@MSGFMT@%$MSGFMT%g
2795 s%@MAKEINFO@%$MAKEINFO%g
2797 s%@cross_linkable@%$cross_linkable%g
2799 s%@build_alias@%$build_alias%g
2800 s%@build_cpu@%$build_cpu%g
2801 s%@build_vendor@%$build_vendor%g
2802 s%@build_os@%$build_os%g
2803 s%@BUILD_CC@%$BUILD_CC%g
2804 s%@cross_compiling@%$cross_compiling%g
2807 s%@RANLIB@%$RANLIB%g
2809 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
2811 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
2813 s%@VERSIONING@%$VERSIONING%g
2814 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
2815 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
2816 s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
2817 s%@uname_sysname@%$uname_sysname%g
2818 s%@uname_release@%$uname_release%g
2819 s%@uname_version@%$uname_version%g
2822 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
2823 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
2824 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
2825 s%@has_ldconfig@%$has_ldconfig%g
2826 s%@gnu_ld@%$gnu_ld%g
2827 s%@gnu_as@%$gnu_as%g
2829 s%@static@%$static%g
2830 s%@shared@%$shared%g
2831 s%@pic_default@%$pic_default%g
2832 s%@profile@%$profile%g
2833 s%@omitfp@%$omitfp%g
2834 s%@bounded@%$bounded%g
2835 s%@static_nss@%$static_nss%g
2836 s%@nopic_initfini@%$nopic_initfini%g
2837 s%@DEFINES@%$DEFINES%g
2838 s%@VERSION@%$VERSION%g
2843 cat >> $CONFIG_STATUS <<\EOF
2845 # Split the substitutions into bite-sized pieces for seds with
2846 # small command number limits, like on Digital OSF/1 and HP-UX.
2847 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2848 ac_file
=1 # Number of current file.
2849 ac_beg
=1 # First line for current file.
2850 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2853 while $ac_more_lines; do
2854 if test $ac_beg -gt 1; then
2855 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2857 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2859 if test ! -s conftest.s
$ac_file; then
2861 rm -f conftest.s
$ac_file
2863 if test -z "$ac_sed_cmds"; then
2864 ac_sed_cmds
="sed -f conftest.s$ac_file"
2866 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2868 ac_file
=`expr $ac_file + 1`
2870 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2873 if test -z "$ac_sed_cmds"; then
2878 cat >> $CONFIG_STATUS <<EOF
2880 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
2882 cat >> $CONFIG_STATUS <<\EOF
2883 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2884 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2886 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2887 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2888 *) ac_file_in
="${ac_file}.in" ;;
2891 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2893 # Remove last slash and all that follows it. Not all systems have dirname.
2894 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2895 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2896 # The file is in a subdirectory.
2897 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2898 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2899 # A "../" for each directory in $ac_dir_suffix.
2900 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2902 ac_dir_suffix
= ac_dots
=
2905 case "$ac_given_srcdir" in
2907 if test -z "$ac_dots"; then top_srcdir
=.
2908 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2909 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2911 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2912 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2915 case "$ac_given_INSTALL" in
2916 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2917 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2920 echo creating
"$ac_file"
2922 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2924 *Makefile
*) ac_comsub
="1i\\
2925 # $configure_input" ;;
2929 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2931 s%@configure_input@%$configure_input%g
2932 s%@srcdir@%$srcdir%g
2933 s%@top_srcdir@%$top_srcdir%g
2934 s%@INSTALL@%$INSTALL%g
2935 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2939 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2940 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2942 # ac_d sets the value in "#define NAME VALUE" lines.
2943 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2944 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2947 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2948 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2949 ac_uB
='\([ ]\)%\1#\2define\3'
2952 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2953 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2954 ac_eB
='$%\1#\2define\3'
2958 if test "${CONFIG_HEADERS+set}" != set; then
2960 cat >> $CONFIG_STATUS <<EOF
2961 CONFIG_HEADERS="config.h"
2963 cat >> $CONFIG_STATUS <<\EOF
2965 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2966 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2968 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2969 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2970 *) ac_file_in
="${ac_file}.in" ;;
2973 echo creating
$ac_file
2975 rm -f conftest.frag conftest.
in conftest.out
2976 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2977 cat $ac_file_inputs > conftest.
in
2981 # Transform confdefs.h into a sed script conftest.vals that substitutes
2982 # the proper values into config.h.in to produce config.h. And first:
2983 # Protect against being on the right side of a sed subst in config.status.
2984 # Protect against being in an unquoted here document in config.status.
2986 cat > conftest.hdr
<<\EOF
2989 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2993 sed -n -f conftest.hdr confdefs.h > conftest.vals
2996 # This sed command replaces #undef with comments. This is necessary, for
2997 # example, in the case of _POSIX_SOURCE, which is predefined and required
2998 # on some systems where configure will not decide to define it.
2999 cat >> conftest.vals <<\EOF
3000 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3003 # Break up conftest.vals because some shells have a limit on
3004 # the size of here documents, and old seds have small limits too.
3009 ac_lines=`grep -c . conftest.vals
`
3010 # grep -c gives empty output for an empty file on some AIX systems.
3011 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3012 # Write a limited-size here document to conftest.frag.
3013 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3014 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3016 sed -f conftest.frag conftest.in > conftest.out
3018 mv conftest.out conftest.in
3020 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3022 mv conftest.tail conftest.vals
3026 cat >> $CONFIG_STATUS <<\EOF
3027 rm -f conftest.frag conftest.h
3028 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3029 cat conftest.in >> conftest.h
3031 if cmp -s $ac_file conftest.h 2>/dev/null; then
3032 echo "$ac_file is unchanged"
3035 # Remove last slash and all that follows it. Not all systems have dirname.
3036 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3037 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3038 # The file is in a subdirectory.
3039 test ! -d "$ac_dir" && mkdir "$ac_dir"
3042 mv conftest.h $ac_file
3048 cat >> $CONFIG_STATUS <<EOF
3049 ac_sources="`echo $libc_link_sources`"
3050 ac_dests="`echo $libc_link_dests`"
3053 cat >> $CONFIG_STATUS <<\EOF
3054 srcdir=$ac_given_srcdir
3055 while test -n "$ac_sources"; do
3056 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3057 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3059 echo "linking $srcdir/$ac_source to $ac_dest"
3061 if test ! -r $srcdir/$ac_source; then
3062 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3066 # Make relative symlinks.
3067 # Remove last slash and all that follows it. Not all systems have dirname.
3068 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
3069 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3070 # The dest file is in a subdirectory.
3071 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3072 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
3073 # A "../" for each directory in $ac_dest_dir_suffix.
3074 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
3076 ac_dest_dir_suffix= ac_dots=
3080 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3081 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3084 # Make a symlink if possible; otherwise try a hard link.
3085 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3086 ln $srcdir/$ac_source $ac_dest; then :
3088 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3092 cat >> $CONFIG_STATUS <<EOF
3094 echo '$config_vars' >> config.make; test -d bits || mkdir bits
3096 cat >> $CONFIG_STATUS <<\EOF
3098 if test "$realCC"; then
3099 sed -e 's/%{pipe:-}/%|/g' `$realCC -print-file-name=specs
` >specsT
3105 chmod +x $CONFIG_STATUS
3106 rm -fr confdefs* $ac_clean_files
3107 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3109 if test "$no_recursion" != yes; then
3111 # Remove --cache-file and --srcdir arguments so they do not pile up.
3112 ac_sub_configure_args=
3114 for ac_arg in $ac_configure_args; do
3115 if test -n "$ac_prev"; then
3120 -cache-file | --cache-file | --cache-fil | --cache-fi \
3121 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3122 ac_prev=cache_file ;;
3123 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3124 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3130 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3134 for ac_config_dir in $add_ons; do
3136 # Do not complain, so a configure script can configure whichever
3137 # parts of a large source tree are present.
3138 if test ! -d $srcdir/$ac_config_dir; then
3142 echo configuring in $ac_config_dir
3147 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3149 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3157 # A "../" for each directory in /$ac_config_dir.
3158 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3161 .) # No --srcdir option. We are building in place.
3162 ac_sub_srcdir=$srcdir ;;
3163 /*) # Absolute path.
3164 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3166 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3169 # Check for guested configure; otherwise get Cygnus style configure.
3170 if test -f $ac_sub_srcdir/configure; then
3171 ac_sub_configure=$ac_sub_srcdir/configure
3172 elif test -f $ac_sub_srcdir/configure.in; then
3173 ac_sub_configure=$ac_configure
3175 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3179 # The recursion is here.
3180 if test -n "$ac_sub_configure"; then
3182 # Make the cache file name correct relative to the subdirectory.
3183 case "$cache_file" in
3184 /*) ac_sub_cache_file=$cache_file ;;
3186 ac_sub_cache_file="$ac_dots$cache_file" ;;
3188 case "$ac_given_INSTALL" in
3189 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3190 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3193 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3194 # The eval makes quoting arguments work.
3195 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3198 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }