3 # From configure.in CVSid
14 # Guess values for system-dependent variables and create Makefiles.
15 # Generated automatically using autoconf version 2.13
16 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
18 # This configure script is free software; the Free Software Foundation
19 # gives unlimited permission to copy, distribute and modify it.
23 ac_default_prefix
=/usr
/local
24 # Any additions from configure.in:
26 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
28 --with-gd=DIR find libgd include dir and library with prefix DIR"
30 --with-gd-include=DIR find libgd include files in DIR"
32 --with-gd-lib=DIR find libgd library files in DIR"
34 --with-fp if using floating-point hardware [default=yes]"
36 --with-binutils=PATH specify location of binutils (as and ld)"
38 --with-elf if using the ELF object format"
40 --without-cvs if CVS should not be used"
42 --with-headers=PATH location of system headers to use
43 [e.g. /usr/src/linux/include]
44 [default=compiler default]"
46 --enable-libio build in GNU libio instead of GNU stdio"
48 --disable-sanity-checks really do not use threads (should not be used
49 except in special situations) [default=yes]"
51 --enable-shared build shared library [default=yes if GNU ld & ELF]"
53 --enable-profile build profiled library [default=yes]"
55 --enable-omitfp build undebuggable optimized library [default=no]"
57 --enable-bounded build with runtime bounds checking [default=no]"
59 --disable-versioning do not include versioning information in the
60 library objects [default=yes if supported]"
62 --enable-add-ons[=DIR1,DIR2]...
63 configure and build add-ons in DIR1,DIR2,...
64 search for add-ons if no parameter given"
66 --enable-static-nss build static NSS modules [default=no]"
68 --disable-force-install don't force installation of files from this package,
69 even if they are older than the installed files"
71 --enable-kernel=VERSION compile for compatibility with kernel not older
74 # Initialize some variables set by options.
75 # The variables have the same names as the options, with
76 # dashes changed to underlines.
78 cache_file
=.
/config.cache
87 program_transform_name
=s
,x
,x
,
95 bindir
='${exec_prefix}/bin'
96 sbindir
='${exec_prefix}/sbin'
97 libexecdir
='${exec_prefix}/libexec'
98 datadir
='${prefix}/share'
99 sysconfdir
='${prefix}/etc'
100 sharedstatedir
='${prefix}/com'
101 localstatedir
='${prefix}/var'
102 libdir
='${exec_prefix}/lib'
103 includedir
='${prefix}/include'
104 oldincludedir
='/usr/include'
105 infodir
='${prefix}/info'
106 mandir
='${prefix}/man'
108 # Initialize some other variables.
111 SHELL
=${CONFIG_SHELL-/bin/sh}
112 # Maximum number of lines to put in a shell here document.
119 # If the previous option needs an argument, assign it.
120 if test -n "$ac_prev"; then
121 eval "$ac_prev=\$ac_option"
127 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
131 # Accept the important Cygnus configure options, so we can diagnose typos.
135 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
137 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
138 bindir
="$ac_optarg" ;;
140 -build |
--build |
--buil |
--bui |
--bu)
142 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
143 build
="$ac_optarg" ;;
145 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
146 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
147 ac_prev
=cache_file
;;
148 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
149 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
150 cache_file
="$ac_optarg" ;;
152 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
154 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
156 datadir
="$ac_optarg" ;;
158 -disable-* |
--disable-*)
159 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
160 # Reject names that are not valid shell variable names.
161 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
162 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
165 eval "enable_${ac_feature}=no" ;;
167 -enable-* |
--enable-*)
168 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
169 # Reject names that are not valid shell variable names.
170 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
171 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
173 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
178 eval "enable_${ac_feature}='$ac_optarg'" ;;
180 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
181 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
182 |
--exec |
--exe |
--ex)
183 ac_prev
=exec_prefix
;;
184 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
185 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
186 |
--exec=* |
--exe=* |
--ex=*)
187 exec_prefix
="$ac_optarg" ;;
189 -gas |
--gas |
--ga |
--g)
190 # Obsolete; use --with-gas.
193 -help |
--help |
--hel |
--he)
194 # Omit some internal or obsolete options to make the list less imposing.
195 # This message is too long to be a string in the A/UX 3.1 sh.
197 Usage: configure [options] [host]
198 Options: [defaults in brackets after descriptions]
200 --cache-file=FILE cache test results in FILE
201 --help print this message
202 --no-create do not create output files
203 --quiet, --silent do not print \`checking...' messages
204 --version print the version of autoconf that created configure
205 Directory and file names:
206 --prefix=PREFIX install architecture-independent files in PREFIX
208 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
210 --bindir=DIR user executables in DIR [EPREFIX/bin]
211 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
212 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
213 --datadir=DIR read-only architecture-independent data in DIR
215 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
216 --sharedstatedir=DIR modifiable architecture-independent data in DIR
218 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
219 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
220 --includedir=DIR C header files in DIR [PREFIX/include]
221 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
222 --infodir=DIR info documentation in DIR [PREFIX/info]
223 --mandir=DIR man documentation in DIR [PREFIX/man]
224 --srcdir=DIR find the sources in DIR [configure dir or ..]
225 --program-prefix=PREFIX prepend PREFIX to installed program names
226 --program-suffix=SUFFIX append SUFFIX to installed program names
227 --program-transform-name=PROGRAM
228 run sed PROGRAM on installed program names
232 --build=BUILD configure for building on BUILD [BUILD=HOST]
233 --host=HOST configure for HOST [guessed]
234 --target=TARGET configure for TARGET [TARGET=HOST]
235 Features and packages:
236 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
237 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
238 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
239 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
240 --x-includes=DIR X include files are in DIR
241 --x-libraries=DIR X library files are in DIR
243 if test -n "$ac_help"; then
244 echo "--enable and --with options recognized:$ac_help"
248 -host |
--host |
--hos |
--ho)
250 -host=* |
--host=* |
--hos=* |
--ho=*)
253 -includedir |
--includedir |
--includedi |
--included |
--include \
254 |
--includ |
--inclu |
--incl |
--inc)
255 ac_prev
=includedir
;;
256 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
257 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
258 includedir
="$ac_optarg" ;;
260 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
262 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
263 infodir
="$ac_optarg" ;;
265 -libdir |
--libdir |
--libdi |
--libd)
267 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
268 libdir
="$ac_optarg" ;;
270 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
271 |
--libexe |
--libex |
--libe)
272 ac_prev
=libexecdir
;;
273 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
274 |
--libexe=* |
--libex=* |
--libe=*)
275 libexecdir
="$ac_optarg" ;;
277 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
278 |
--localstate |
--localstat |
--localsta |
--localst \
279 |
--locals |
--local |
--loca |
--loc |
--lo)
280 ac_prev
=localstatedir
;;
281 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
282 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
283 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
284 localstatedir
="$ac_optarg" ;;
286 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
288 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
289 mandir
="$ac_optarg" ;;
292 # Obsolete; use --without-fp.
295 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
299 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
300 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
303 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
304 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
305 |
--oldin |
--oldi |
--old |
--ol |
--o)
306 ac_prev
=oldincludedir
;;
307 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
308 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
309 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
310 oldincludedir
="$ac_optarg" ;;
312 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
314 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
315 prefix
="$ac_optarg" ;;
317 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
318 |
--program-pre |
--program-pr |
--program-p)
319 ac_prev
=program_prefix
;;
320 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
321 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
322 program_prefix
="$ac_optarg" ;;
324 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
325 |
--program-suf |
--program-su |
--program-s)
326 ac_prev
=program_suffix
;;
327 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
328 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
329 program_suffix
="$ac_optarg" ;;
331 -program-transform-name |
--program-transform-name \
332 |
--program-transform-nam |
--program-transform-na \
333 |
--program-transform-n |
--program-transform- \
334 |
--program-transform |
--program-transfor \
335 |
--program-transfo |
--program-transf \
336 |
--program-trans |
--program-tran \
337 |
--progr-tra |
--program-tr |
--program-t)
338 ac_prev
=program_transform_name
;;
339 -program-transform-name=* |
--program-transform-name=* \
340 |
--program-transform-nam=* |
--program-transform-na=* \
341 |
--program-transform-n=* |
--program-transform-=* \
342 |
--program-transform=* |
--program-transfor=* \
343 |
--program-transfo=* |
--program-transf=* \
344 |
--program-trans=* |
--program-tran=* \
345 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
346 program_transform_name
="$ac_optarg" ;;
348 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
349 |
-silent |
--silent |
--silen |
--sile |
--sil)
352 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
354 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
356 sbindir
="$ac_optarg" ;;
358 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
359 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
360 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
362 ac_prev
=sharedstatedir
;;
363 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
364 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
365 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
367 sharedstatedir
="$ac_optarg" ;;
369 -site |
--site |
--sit)
371 -site=* |
--site=* |
--sit=*)
374 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
376 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
377 srcdir
="$ac_optarg" ;;
379 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
380 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
381 ac_prev
=sysconfdir
;;
382 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
383 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
384 sysconfdir
="$ac_optarg" ;;
386 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
388 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
389 target
="$ac_optarg" ;;
391 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
394 -version |
--version |
--versio |
--versi |
--vers)
395 echo "configure generated by autoconf version 2.13"
399 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
400 # Reject names that are not valid shell variable names.
401 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
402 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404 ac_package
=`echo $ac_package| sed 's/-/_/g'`
409 eval "with_${ac_package}='$ac_optarg'" ;;
411 -without-* |
--without-*)
412 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package
=`echo $ac_package| sed 's/-/_/g'`
418 eval "with_${ac_package}=no" ;;
421 # Obsolete; use --with-x.
424 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
425 |
--x-incl |
--x-inc |
--x-in |
--x-i)
426 ac_prev
=x_includes
;;
427 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
428 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
429 x_includes
="$ac_optarg" ;;
431 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
432 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
433 ac_prev
=x_libraries
;;
434 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
435 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
436 x_libraries
="$ac_optarg" ;;
438 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
442 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
443 echo "configure: warning: $ac_option: invalid host type" 1>&2
445 if test "x$nonopt" != xNONE
; then
446 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
454 if test -n "$ac_prev"; then
455 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
458 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
460 # File descriptor usage:
463 # 2 errors and warnings
464 # 3 some systems may open it to /dev/tty
465 # 4 used on the Kubota Titan
466 # 6 checking for... messages and results
467 # 5 compiler messages saved in config.log
468 if test "$silent" = yes; then
476 This file contains any messages produced by compilers while
477 running configure, to aid debugging if configure makes a mistake.
480 # Strip out --no-create and --no-recursion so they do not pile up.
481 # Also quote any args containing shell metacharacters.
486 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
487 |
--no-cr |
--no-c) ;;
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
490 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
491 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
492 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
497 # Only set these to C if already set. These must not be set unconditionally
498 # because not all systems understand e.g. LANG=C (notably SCO).
499 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
500 # Non-C LC_CTYPE values break the ctype check.
501 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
502 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
503 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
504 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
506 # confdefs.h avoids OS command line length limits that DEFS can exceed.
507 rm -rf conftest
* confdefs.h
508 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
511 # A filename unique to this package, relative to the directory that
512 # configure is in, which we can look for to find out if srcdir is correct.
513 ac_unique_file
=include
/features.h
515 # Find the source files, if location was not specified.
516 if test -z "$srcdir"; then
517 ac_srcdir_defaulted
=yes
518 # Try the directory containing this script, then its parent.
520 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
521 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
523 if test ! -r $srcdir/$ac_unique_file; then
527 ac_srcdir_defaulted
=no
529 if test ! -r $srcdir/$ac_unique_file; then
530 if test "$ac_srcdir_defaulted" = yes; then
531 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
533 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
536 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
538 # Prefer explicitly selected file to automatically selected ones.
539 if test -z "$CONFIG_SITE"; then
540 if test "x$prefix" != xNONE
; then
541 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
543 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
546 for ac_site_file
in $CONFIG_SITE; do
547 if test -r "$ac_site_file"; then
548 echo "loading site script $ac_site_file"
553 if test -r "$cache_file"; then
554 echo "loading cache $cache_file"
557 echo "creating cache $cache_file"
562 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
563 ac_cpp
='$CPP $CPPFLAGS'
564 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
565 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
566 cross_compiling
=$ac_cv_prog_cc_cross
570 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
571 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
572 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
579 ac_n
= ac_c
='\c' ac_t
=
582 if test -r /vmunix
; then
583 kernel_id
=`strings /vmunix | grep UNIX`
584 elif test -r /dynix
; then
585 kernel_id
=`strings /dynix | grep DYNIX`
593 for ac_dir
in scripts
$srcdir/scripts
; do
594 if test -f $ac_dir/install-sh
; then
596 ac_install_sh
="$ac_aux_dir/install-sh -c"
598 elif test -f $ac_dir/install.sh
; then
600 ac_install_sh
="$ac_aux_dir/install.sh -c"
604 if test -z "$ac_aux_dir"; then
605 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
607 ac_config_guess
=$ac_aux_dir/config.guess
608 ac_config_sub
=$ac_aux_dir/config.sub
609 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
612 # This will get text that should go into config.make.
615 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
616 # Check whether --with-gmp or --without-gmp was given.
617 if test "${with_gmp+set}" = set; then
620 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
622 *) config_vars
="$config_vars
623 gmp-srcdir = $withval" ;;
628 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
629 # Check whether --with-gd or --without-gd was given.
630 if test "${with_gd+set}" = set; then
634 *) libgd_include
="-I$withval/include"
635 libgd_ldflags
="-L$withval/lib" ;;
640 # Check whether --with-gd-include or --without-gd-include was given.
641 if test "${with_gd_include+set}" = set; then
642 withval
="$with_gd_include"
643 case "$with_gd_include" in
645 *) libgd_include
="-I$withval" ;;
650 # Check whether --with-gd-lib or --without-gd-lib was given.
651 if test "${with_gd_lib+set}" = set; then
652 withval
="$with_gd_lib"
653 case "$with_gd_lib" in
655 *) libgd_ldflags
="-L$withval" ;;
661 if test -n "$libgd_include"; then
662 config_vars
="$config_vars
663 CFLAGS-memusagestat.c = $libgd_include"
665 if test -n "$libgd_ldflags"; then
666 config_vars
="$config_vars
667 libgd-LDFLAGS = $libgd_ldflags"
670 # Check whether --with-fp or --without-fp was given.
671 if test "${with_fp+set}" = set; then
678 # Check whether --with-binutils or --without-binutils was given.
679 if test "${with_binutils+set}" = set; then
680 withval
="$with_binutils"
681 path_binutils
=$withval
686 # Check whether --with-elf or --without-elf was given.
687 if test "${with_elf+set}" = set; then
694 # Check whether --with-cvs or --without-cvs was given.
695 if test "${with_cvs+set}" = set; then
704 # Check whether --with-headers or --without-headers was given.
705 if test "${with_headers+set}" = set; then
706 withval
="$with_headers"
713 # Check whether --enable-libio or --disable-libio was given.
714 if test "${enable_libio+set}" = set; then
715 enableval
="$enable_libio"
716 if test $enableval = yes; then
726 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
727 if test "${enable_sanity_checks+set}" = set; then
728 enableval
="$enable_sanity_checks"
729 enable_sanity
=$enableval
736 # Check whether --enable-shared or --disable-shared was given.
737 if test "${enable_shared+set}" = set; then
738 enableval
="$enable_shared"
744 # Check whether --enable-profile or --disable-profile was given.
745 if test "${enable_profile+set}" = set; then
746 enableval
="$enable_profile"
752 # Check whether --enable-omitfp or --disable-omitfp was given.
753 if test "${enable_omitfp+set}" = set; then
754 enableval
="$enable_omitfp"
760 # Check whether --enable-bounded or --disable-bounded was given.
761 if test "${enable_bounded+set}" = set; then
762 enableval
="$enable_bounded"
768 # Check whether --enable-versioning or --disable-versioning was given.
769 if test "${enable_versioning+set}" = set; then
770 enableval
="$enable_versioning"
771 enable_versioning
=$enableval
773 enable_versioning
=yes
777 # Check whether --enable-add-ons or --disable-add-ons was given.
778 if test "${enable_add_ons+set}" = set; then
779 enableval
="$enable_add_ons"
781 yes) add_ons
=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
782 test "$add_ons" = "*" && add_ons
= ;;
783 *) add_ons
=`echo "$enableval" | sed 's/,/ /g'`;;
793 if test x
"$add_ons" != x
; then
794 for f
in $add_ons; do
795 # Test whether such a subdir really exists.
796 if test -d $srcdir/$f; then
797 add_ons_pfx
="$add_ons_pfx $f/"
799 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
804 # Check whether --enable-static-nss or --disable-static-nss was given.
805 if test "${enable_static_nss+set}" = set; then
806 enableval
="$enable_static_nss"
807 static_nss
=$enableval
812 if test x
"$static_nss" = xyes
; then
813 cat >> confdefs.h
<<\EOF
814 #define DO_STATIC_NSS 1
819 # Check whether --enable-force-install or --disable-force-install was given.
820 if test "${enable_force_install+set}" = set; then
821 enableval
="$enable_force_install"
822 force_install
=$enableval
829 # Check whether --enable-kernel or --disable-kernel was given.
830 if test "${enable_kernel+set}" = set; then
831 enableval
="$enable_kernel"
832 minimum_kernel
=$enableval
835 if test "$minimum_kernel" = yes ||
test "$minimum_kernel" = no
; then
836 # Better nothing than this.
839 if test "$minimum_kernel" = current
; then
840 minimum_kernel
=`uname -r 2>/dev/null` || minimum_kernel
=
845 # Make sure we can run config.sub.
846 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
847 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
850 echo $ac_n "checking host system type""... $ac_c" 1>&6
851 echo "configure:852: checking host system type" >&5
854 case "$host_alias" in
858 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
859 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
861 *) host_alias
=$nonopt ;;
865 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
866 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
867 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
868 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
869 echo "$ac_t""$host" 1>&6
872 # The way shlib-versions is used to generate soversions.mk uses a
873 # fairly simplistic model for name recognition that can't distinguish
874 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
875 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
876 # tell. This doesn't get used much beyond that, so it's fairly safe.
881 host_os
=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
885 # We keep the original values in `$config_*' and never modify them, so we
886 # can write them unchanged into config.make. Everything else uses
887 # $machine, $vendor, and $os, and changes them whenever convenient.
888 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
890 # Don't allow vendor == "unknown"
891 test "$config_vendor" = unknown
&& config_vendor
=
892 config_os
="`echo $config_os | sed 's/^unknown-//'`"
894 # Some configurations imply other options.
896 gnu
* | linux
* | bsd4.4
* | netbsd
* | freebsd
*)
897 # These systems always use GNU tools.
898 gnu_ld
=yes gnu_as
=yes ;;
901 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
902 linux
*ecoff
* | linux
*aout
* | gnu
*aout
* | gnu
*ecoff
*)
904 gnu
* | linux
* | sysv4
* | solaris2
* | irix6
*)
905 # These systems (almost) always use the ELF format.
910 machine
=$config_machine
911 vendor
=$config_vendor
914 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
916 if test "$machine" = rs6000
; then
921 ### I put this here to prevent those annoying emails from people who cannot
922 ### read and try to compile glibc on unsupported platforms. --drepper
924 ### By using the undocumented --enable-hacker-mode option for configure
925 ### one can skip this test to make the configuration not fail for unsupported
928 if test -z "$enable_hacker_mode"; then
929 case "$machine-$host_os" in
930 *-linux* |
*-gnu* | arm
*-none* | powerpc-aix4.3.
*)
933 echo "*** The GNU C library is currently not available for this platform."
934 echo "*** So far nobody cared to port it and if there is no volunteer it"
935 echo "*** might never happen. So, if you have interest to see glibc on"
936 echo "*** this platform visit"
937 echo "*** http://www.gnu.org/software/libc/porting.html"
938 echo "*** and join the group of porters"
944 # Expand the configuration machine name into a subdirectory by architecture
945 # type and particular chip.
947 a29k | am29000
) base_machine
=a29k machine
=a29k
;;
948 alpha
*) base_machine
=alpha machine
=alpha
/$machine ;;
949 arm
*) base_machine
=arm machine
=arm
/$machine ;;
950 c3
[012]) base_machine
=cx0 machine
=cx
0/c30
;;
951 c4
[04]) base_machine
=cx0 machine
=cx
0/c40
;;
952 hppa
*) base_machine
=hppa machine
=hppa
/$machine ;;
953 i
[3456]86) base_machine
=i386 machine
=i386
/$machine ;;
954 ia64
) base_machine
=ia64 machine
=ia64
;;
955 m680?
0) base_machine
=m68k machine
=m68k
/$machine ;;
956 m68k
) base_machine
=m68k machine
=m68k
/m68020
;;
957 m88???
) base_machine
=m88k machine
=m88k
/$machine ;;
958 m88k
) base_machine
=m88k machine
=m88k
/m88100
;;
959 mips64
*) base_machine
=mips64 machine
=mips
/mips64
/$machine ;;
960 mips
*) base_machine
=mips
962 IP22
) machine
=mips
/mips3
;;
963 *) machine
=mips
/$machine ;;
965 sh3
*) base_machine
=sh machine
=sh
/sh3
;;
966 sh4
*) base_machine
=sh machine
=sh
/sh4
;;
968 base_machine
=sparc machine
=sparc
/sparc32
;;
969 sparcv8 | supersparc | hypersparc
)
970 base_machine
=sparc machine
=sparc
/sparc32
/sparcv8
;;
971 sparcv8plus | sparcv8plusa | sparcv9
)
972 base_machine
=sparc machine
=sparc
/sparc32
/sparcv9
;;
973 sparc64 | ultrasparc
)
974 base_machine
=sparc machine
=sparc
/sparc64
;;
978 if test "$base_machine" = "i386"; then
979 cat >> confdefs.h
<<\EOF
980 #define USE_REGPARMS 1
985 # Compute the list of sysdep directories for this configuration.
986 # This can take a while to compute.
987 sysdep_dir
=$srcdir/sysdeps
988 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
989 echo "configure:990: checking sysdep dirs" >&5
990 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
991 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
996 netbsd
* |
386bsd
* | freebsd
* | bsdi
*)
997 base_os
=unix
/bsd
/bsd4.4
;;
998 osf
* | sunos
* | ultrix
* | newsos
* | dynix
* |
*bsd
*)
1000 sysv
* | isc
* | esix
* | sco
* | minix
* | irix4
* | linux
*)
1001 base_os
=unix
/sysv
;;
1003 base_os
=unix
/sysv
/irix
6/$os ;;
1005 base_os
=unix
/sysv
/sysv4
;;
1007 base_os
=unix
/sysv
/hpux
/$os ;;
1009 base_os
=unix
/sysv
/aix
/aix4.3
;;
1011 base_os
=standalone
;;
1016 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1019 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1023 o
=`echo $tail | sed 's/[0-9]*$//'`
1024 if test $o != $tail; then
1027 # For linux-gnu, try linux-gnu, then linux.
1028 o
=`echo $tail | sed 's/-.*$//'`
1029 if test $o != $tail; then
1033 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1036 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1042 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1045 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1047 # Prepend the machine's FPU directory unless --without-fp.
1048 if test "$with_fp" = yes; then
1049 mach
="$mach /$1/fpu"
1056 # Find what sysdep directories exist.
1058 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1059 for d
in $add_ons_pfx ''; do
1060 for b
in $base ''; do
1061 for m0
in $mach ''; do
1062 for v
in /$vendor ''; do
1063 test "$v" = / && continue
1064 for o
in /$ostry ''; do
1065 test "$o" = / && continue
1066 for m
in $mach ''; do
1067 if test "$m0$b$v$o$m"; then
1068 try
="${d}sysdeps$m0$b$v$o$m"
1069 test -n "$enable_debug_configure" &&
1070 echo "$0 DEBUG: try $try" >&2
1071 if test -d $srcdir/$try; then
1072 sysnames
="$sysnames $try"
1073 { test -n "$o" ||
test -n "$b"; } && os_used
=t
1074 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
1085 if test -z "$os_used" && test "$os" != none
; then
1086 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1088 if test -z "$machine_used" && test "$machine" != none
; then
1089 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1092 # We have now validated the configuration.
1095 # If using ELF, look for an `elf' subdirectory of each machine directory.
1096 # We prepend these rather than inserting them whereever the machine appears
1097 # because things specified by the machine's ELF ABI should override
1098 # OS-specific things, and should always be the same for any OS on the
1099 # machine (otherwise what's the point of an ABI?).
1100 if test "$elf" = yes; then
1102 for d
in $add_ons_pfx ''; do
1104 if test -d $srcdir/${d}sysdeps
$m/elf
; then
1105 elf_dirs
="$elf_dirs ${d}sysdeps$m/elf"
1109 sysnames
="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1113 # Expand the list of system names into a full list of directories
1114 # from each element's parent name and Implies file (if present).
1117 while test $# -gt 0; do
1121 case " $names " in *" $name "*)
1122 # Already in the list.
1126 # Report each name as we discover it, so there is no long pause in output.
1127 echo $ac_n "$name $ac_c" >&6
1129 name_base
=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1133 *) xsrcdir
=$srcdir/ ;;
1135 test -n "$enable_debug_configure" &&
1136 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1138 if test -f $xsrcdir$name/Implies
; then
1139 # Collect more names from the `Implies' file (removing comments).
1140 implied_candidate
="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1142 for x
in $implied_candidate; do
1143 if test -d $xsrcdir$name_base/$x; then
1144 implied
="$implied $name_base/$x";
1146 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1153 # Add NAME to the list of names.
1154 names
="$names $name"
1156 # Find the parent of NAME, using the empty string if it has none.
1157 parent
="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1159 # Add the names implied by NAME, and NAME's parent (if it has one), to
1160 # the list of names to be processed (the argument list). We prepend the
1161 # implied names to the list and append the parent. We want implied
1162 # directories to come before further directories inferred from the
1163 # configuration components; this ensures that for sysv4, unix/common
1164 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1166 sysnames
="`echo $implied $* $parent`"
1167 test -n "$sysnames" && set $sysnames
1170 # Add the default directories.
1171 default_sysnames
=sysdeps
/generic
1172 if test "$elf" = yes; then
1173 default_sysnames
="sysdeps/generic/elf $default_sysnames"
1175 sysnames
="$names $default_sysnames"
1177 # The other names were emitted during the scan.
1178 echo "$ac_t""$default_sysnames" 1>&6
1183 # Find a good install program. We prefer a C program (faster),
1184 # so one script is as good as another. But avoid the broken or
1185 # incompatible versions:
1186 # SysV /etc/install, /usr/sbin/install
1187 # SunOS /usr/etc/install
1188 # IRIX /sbin/install
1190 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1191 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1192 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1193 # ./install, which can be erroneously created by make from ./install.sh.
1194 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1195 echo "configure:1196: checking for a BSD compatible install" >&5
1196 if test -z "$INSTALL"; then
1197 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1200 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1201 for ac_dir
in $PATH; do
1202 # Account for people who put trailing slashes in PATH elements.
1204 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1206 # OSF1 and SCO ODT 3.0 have their own names for install.
1207 # Don't use installbsd from OSF since it installs stuff as root
1209 for ac_prog
in ginstall scoinst
install; do
1210 if test -f $ac_dir/$ac_prog; then
1211 if test $ac_prog = install &&
1212 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1213 # AIX install. It has an incompatible calling convention.
1216 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1227 if test "${ac_cv_path_install+set}" = set; then
1228 INSTALL
="$ac_cv_path_install"
1230 # As a last resort, use the slow shell script. We don't cache a
1231 # path for INSTALL within a source directory, because that will
1232 # break other packages using the cache if that directory is
1233 # removed, or if the path is relative.
1234 INSTALL
="$ac_install_sh"
1237 echo "$ac_t""$INSTALL" 1>&6
1239 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1240 # It thinks the first close brace ends the variable substitution.
1241 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1243 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1245 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1247 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
1248 # The makefiles need to use a different form to find it in $srcdir.
1249 INSTALL
='\$(..)./scripts/install-sh -c'
1251 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1252 echo "configure:1253: checking whether ln -s works" >&5
1253 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1257 if ln -s X conftestdata
2>/dev
/null
1260 ac_cv_prog_LN_S
="ln -s"
1265 LN_S
="$ac_cv_prog_LN_S"
1266 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1267 echo "$ac_t""yes" 1>&6
1269 echo "$ac_t""no" 1>&6
1273 # We need the physical current working directory. We cannot use the
1274 # "pwd -P" shell builtin since that's not portable. Instead we try to
1275 # find a pwd binary. Note that assigning to the PWD environment
1276 # variable might have some interesting side effects, so we don't do
1278 # Extract the first word of "pwd", so it can be a program name with args.
1279 set dummy
pwd; ac_word
=$2
1280 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1281 echo "configure:1282: checking for $ac_word" >&5
1282 if eval "test \"`echo '$''{'ac_cv_path_PWD_P'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1287 ac_cv_path_PWD_P
="$PWD_P" # Let the user override the test with a path.
1290 ac_cv_path_PWD_P
="$PWD_P" # Let the user override the test with a dos path.
1293 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1295 for ac_dir
in $ac_dummy; do
1296 test -z "$ac_dir" && ac_dir
=.
1297 if test -f $ac_dir/$ac_word; then
1298 ac_cv_path_PWD_P
="$ac_dir/$ac_word"
1303 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P
="no"
1307 PWD_P
="$ac_cv_path_PWD_P"
1308 if test -n "$PWD_P"; then
1309 echo "$ac_t""$PWD_P" 1>&6
1311 echo "$ac_t""no" 1>&6
1314 if test "$PWD_P" = no
; then
1315 { echo "configure: error: *** A pwd binary could not be found." 1>&2; exit 1; }
1318 # These programs are version sensitive.
1319 echo $ac_n "checking build system type""... $ac_c" 1>&6
1320 echo "configure:1321: checking build system type" >&5
1323 case "$build_alias" in
1326 NONE
) build_alias
=$host_alias ;;
1327 *) build_alias
=$nonopt ;;
1331 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1332 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1333 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1334 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1335 echo "$ac_t""$build" 1>&6
1337 if test $host != $build; then
1338 ac_tool_prefix
=${host_alias}-
1343 for ac_prog
in ${ac_tool_prefix}gcc
${ac_tool_prefix}cc
1345 # Extract the first word of "$ac_prog", so it can be a program name with args.
1346 set dummy
$ac_prog; ac_word
=$2
1347 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1348 echo "configure:1349: checking for $ac_word" >&5
1349 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1352 if test -n "$CC"; then
1353 ac_cv_prog_CC
="$CC" # Let the user override the test.
1355 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1357 for ac_dir
in $ac_dummy; do
1358 test -z "$ac_dir" && ac_dir
=.
1359 if test -f $ac_dir/$ac_word; then
1360 ac_cv_prog_CC
="$ac_prog"
1368 if test -n "$CC"; then
1369 echo "$ac_t""$CC" 1>&6
1371 echo "$ac_t""no" 1>&6
1374 test -n "$CC" && break
1377 if test -z "$CC"; then
1380 # Found it, now check the version.
1381 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1382 echo "configure:1383: checking version of $CC" >&5
1383 ac_prog_version
=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
1384 case $ac_prog_version in
1385 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1386 egcs-2.9
[1-9].
*|egcs-2.90
.2[789]|egcs-2.90.
[3-9][0-9]|
*gcc-2.9
[1-9].
*|pgcc-2.90
.2[789]|pgcc-2.90.
[3-9][0-9]|
*2.8.
[1-9]*|
*2.9|
*2.9.
[0-9]*|
2.9[5-9]*|cygnus-2.9
[1-9]*|gcc-2.9
[5-9]|gcc-2.1
[0-9][0-9]|sgicc-
*)
1387 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1388 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1391 echo "$ac_t""$ac_prog_version" 1>&6
1393 if test $ac_verc_fail = yes; then
1397 for ac_prog
in gnumake gmake
make
1399 # Extract the first word of "$ac_prog", so it can be a program name with args.
1400 set dummy
$ac_prog; ac_word
=$2
1401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1402 echo "configure:1403: checking for $ac_word" >&5
1403 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1406 if test -n "$MAKE"; then
1407 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
1409 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1411 for ac_dir
in $ac_dummy; do
1412 test -z "$ac_dir" && ac_dir
=.
1413 if test -f $ac_dir/$ac_word; then
1414 ac_cv_prog_MAKE
="$ac_prog"
1421 MAKE
="$ac_cv_prog_MAKE"
1422 if test -n "$MAKE"; then
1423 echo "$ac_t""$MAKE" 1>&6
1425 echo "$ac_t""no" 1>&6
1428 test -n "$MAKE" && break
1431 if test -z "$MAKE"; then
1434 # Found it, now check the version.
1435 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1436 echo "configure:1437: checking version of $MAKE" >&5
1437 ac_prog_version
=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
1438 case $ac_prog_version in
1439 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1441 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1442 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1445 echo "$ac_t""$ac_prog_version" 1>&6
1447 if test $ac_verc_fail = yes; then
1452 for ac_prog
in gnumsgfmt gmsgfmt msgfmt
1454 # Extract the first word of "$ac_prog", so it can be a program name with args.
1455 set dummy
$ac_prog; ac_word
=$2
1456 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1457 echo "configure:1458: checking for $ac_word" >&5
1458 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1461 if test -n "$MSGFMT"; then
1462 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
1464 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1466 for ac_dir
in $ac_dummy; do
1467 test -z "$ac_dir" && ac_dir
=.
1468 if test -f $ac_dir/$ac_word; then
1469 ac_cv_prog_MSGFMT
="$ac_prog"
1476 MSGFMT
="$ac_cv_prog_MSGFMT"
1477 if test -n "$MSGFMT"; then
1478 echo "$ac_t""$MSGFMT" 1>&6
1480 echo "$ac_t""no" 1>&6
1483 test -n "$MSGFMT" && break
1486 if test -z "$MSGFMT"; then
1489 # Found it, now check the version.
1490 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1491 echo "configure:1492: checking version of $MSGFMT" >&5
1492 ac_prog_version
=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1493 case $ac_prog_version in
1494 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1495 0.
[1-9][0-9].
* |
[1-9].
*)
1496 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1497 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1500 echo "$ac_t""$ac_prog_version" 1>&6
1502 if test $ac_verc_fail = yes; then
1503 MSGFMT
=: aux_missing
=t
1506 for ac_prog
in makeinfo
1508 # Extract the first word of "$ac_prog", so it can be a program name with args.
1509 set dummy
$ac_prog; ac_word
=$2
1510 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1511 echo "configure:1512: checking for $ac_word" >&5
1512 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1513 echo $ac_n "(cached) $ac_c" 1>&6
1515 if test -n "$MAKEINFO"; then
1516 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
1518 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1520 for ac_dir
in $ac_dummy; do
1521 test -z "$ac_dir" && ac_dir
=.
1522 if test -f $ac_dir/$ac_word; then
1523 ac_cv_prog_MAKEINFO
="$ac_prog"
1530 MAKEINFO
="$ac_cv_prog_MAKEINFO"
1531 if test -n "$MAKEINFO"; then
1532 echo "$ac_t""$MAKEINFO" 1>&6
1534 echo "$ac_t""no" 1>&6
1537 test -n "$MAKEINFO" && break
1540 if test -z "$MAKEINFO"; then
1543 # Found it, now check the version.
1544 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1545 echo "configure:1546: checking version of $MAKEINFO" >&5
1546 ac_prog_version
=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
1547 case $ac_prog_version in
1548 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1549 3.1[1-9] |
3.
[2-9][0-9] |
4.
* |
1.6[89] |
1.7[0-9])
1550 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1551 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1554 echo "$ac_t""$ac_prog_version" 1>&6
1556 if test $ac_verc_fail = yes; then
1557 MAKEINFO
=: aux_missing
=t
1560 for ac_prog
in gsed
sed
1562 # Extract the first word of "$ac_prog", so it can be a program name with args.
1563 set dummy
$ac_prog; ac_word
=$2
1564 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1565 echo "configure:1566: checking for $ac_word" >&5
1566 if eval "test \"`echo '$''{'ac_cv_prog_SED'+set}'`\" = set"; then
1567 echo $ac_n "(cached) $ac_c" 1>&6
1569 if test -n "$SED"; then
1570 ac_cv_prog_SED
="$SED" # Let the user override the test.
1572 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1574 for ac_dir
in $ac_dummy; do
1575 test -z "$ac_dir" && ac_dir
=.
1576 if test -f $ac_dir/$ac_word; then
1577 ac_cv_prog_SED
="$ac_prog"
1584 SED
="$ac_cv_prog_SED"
1585 if test -n "$SED"; then
1586 echo "$ac_t""$SED" 1>&6
1588 echo "$ac_t""no" 1>&6
1591 test -n "$SED" && break
1594 if test -z "$SED"; then
1597 # Found it, now check the version.
1598 echo $ac_n "checking version of $SED""... $ac_c" 1>&6
1599 echo "configure:1600: checking version of $SED" >&5
1600 ac_prog_version
=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
1601 case $ac_prog_version in
1602 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1603 3.0[2-9]*|
3.
[1-9]*|
[4-9]*)
1604 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1605 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1608 echo "$ac_t""$ac_prog_version" 1>&6
1610 if test $ac_verc_fail = yes; then
1615 if test -n "$critic_missing"; then
1616 { echo "configure: error:
1617 *** Some critical program is missing or too old.
1618 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1621 test -n "$aux_missing" && echo "configure: warning:
1622 *** An auxiliary program is missing or too old;
1623 *** some features will be disabled.
1624 *** Check the INSTALL file for required versions." 1>&2
1626 # glibcbug.in wants to know the compiler version.
1627 CCVERSION
=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
1631 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1632 echo "configure:1633: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1633 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1638 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1639 ac_cpp
='$CPP $CPPFLAGS'
1640 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1641 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1642 cross_compiling
=$ac_cv_prog_cc_cross
1644 cat > conftest.
$ac_ext << EOF
1646 #line 1647 "configure"
1647 #include "confdefs.h"
1651 if { (eval echo configure
:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1652 ac_cv_prog_cc_works
=yes
1653 # If we can't run a trivial program, we are probably using a cross compiler.
1654 if (.
/conftest
; exit) 2>/dev
/null
; then
1655 ac_cv_prog_cc_cross
=no
1657 ac_cv_prog_cc_cross
=yes
1660 echo "configure: failed program was:" >&5
1661 cat conftest.
$ac_ext >&5
1662 ac_cv_prog_cc_works
=no
1666 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1667 ac_cpp
='$CPP $CPPFLAGS'
1668 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1669 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1670 cross_compiling
=$ac_cv_prog_cc_cross
1674 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1675 if test $ac_cv_prog_cc_works = no
; then
1677 ac_cv_prog_cc_cross
=yes
1681 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1682 echo "configure:1683: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1683 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1689 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1691 cross_compiling
=$ac_cv_prog_cc_cross
1693 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1694 echo "configure:1695: checking whether we are using GNU C" >&5
1695 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1696 echo $ac_n "(cached) $ac_c" 1>&6
1698 cat > conftest.c
<<EOF
1703 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1710 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1711 if test $ac_cv_prog_gcc != yes; then
1712 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1715 echo $ac_n "checking build system type""... $ac_c" 1>&6
1716 echo "configure:1717: checking build system type" >&5
1719 case "$build_alias" in
1722 NONE
) build_alias
=$host_alias ;;
1723 *) build_alias
=$nonopt ;;
1727 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1728 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1729 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1730 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1731 echo "$ac_t""$build" 1>&6
1733 if test $host != $build; then
1734 for ac_prog
in gcc cc
1736 # Extract the first word of "$ac_prog", so it can be a program name with args.
1737 set dummy
$ac_prog; ac_word
=$2
1738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1739 echo "configure:1740: checking for $ac_word" >&5
1740 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1741 echo $ac_n "(cached) $ac_c" 1>&6
1743 if test -n "$BUILD_CC"; then
1744 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
1746 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1748 for ac_dir
in $ac_dummy; do
1749 test -z "$ac_dir" && ac_dir
=.
1750 if test -f $ac_dir/$ac_word; then
1751 ac_cv_prog_BUILD_CC
="$ac_prog"
1758 BUILD_CC
="$ac_cv_prog_BUILD_CC"
1759 if test -n "$BUILD_CC"; then
1760 echo "$ac_t""$BUILD_CC" 1>&6
1762 echo "$ac_t""no" 1>&6
1765 test -n "$BUILD_CC" && break
1770 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1771 echo "configure:1772: checking how to run the C preprocessor" >&5
1772 # On Suns, sometimes $CPP names a directory.
1773 if test -n "$CPP" && test -d "$CPP"; then
1776 if test -z "$CPP"; then
1777 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1780 # This must be in double quotes, not single quotes, because CPP may get
1781 # substituted into the Makefile and "${CC-cc}" will confuse make.
1783 # On the NeXT, cc -E runs the code through the compiler's parser,
1784 # not just through cpp.
1785 cat > conftest.
$ac_ext <<EOF
1786 #line 1787 "configure"
1787 #include "confdefs.h"
1791 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1792 { (eval echo configure
:1793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1793 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1794 if test -z "$ac_err"; then
1798 echo "configure: failed program was:" >&5
1799 cat conftest.
$ac_ext >&5
1801 CPP
="${CC-cc} -E -traditional-cpp"
1802 cat > conftest.
$ac_ext <<EOF
1803 #line 1804 "configure"
1804 #include "confdefs.h"
1808 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1809 { (eval echo configure
:1810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1810 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1811 if test -z "$ac_err"; then
1815 echo "configure: failed program was:" >&5
1816 cat conftest.
$ac_ext >&5
1818 CPP
="${CC-cc} -nologo -E"
1819 cat > conftest.
$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1825 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1826 { (eval echo configure
:1827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1827 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1828 if test -z "$ac_err"; then
1832 echo "configure: failed program was:" >&5
1833 cat conftest.
$ac_ext >&5
1842 ac_cv_prog_CPP
="$CPP"
1844 CPP
="$ac_cv_prog_CPP"
1846 ac_cv_prog_CPP
="$CPP"
1848 echo "$ac_t""$CPP" 1>&6
1850 # Was a --with-binutils option given?
1851 if test -n "$path_binutils"; then
1852 # Make absolute; ensure a single trailing slash.
1853 path_binutils
=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1854 CC
="$CC -B$path_binutils"
1856 AS
=`$CC -print-prog-name=as`
1857 LD
=`$CC -print-prog-name=ld`
1858 AR
=`$CC -print-prog-name=ar`
1861 # ranlib has to be treated a bit differently since it might not exist at all.
1862 RANLIB
=`$CC -print-prog-name=ranlib`
1863 if test $RANLIB = ranlib
; then
1864 # This extra check has to happen since gcc simply echos the parameter in
1865 # case it cannot find the value in its own directories.
1866 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1867 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1869 echo "configure:1870: checking for $ac_word" >&5
1870 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1873 if test -n "$RANLIB"; then
1874 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1876 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1878 for ac_dir
in $ac_dummy; do
1879 test -z "$ac_dir" && ac_dir
=.
1880 if test -f $ac_dir/$ac_word; then
1881 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1888 RANLIB
="$ac_cv_prog_RANLIB"
1889 if test -n "$RANLIB"; then
1890 echo "$ac_t""$RANLIB" 1>&6
1892 echo "$ac_t""no" 1>&6
1896 if test -z "$ac_cv_prog_RANLIB"; then
1897 if test -n "$ac_tool_prefix"; then
1898 # Extract the first word of "ranlib", so it can be a program name with args.
1899 set dummy ranlib
; ac_word
=$2
1900 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1901 echo "configure:1902: checking for $ac_word" >&5
1902 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1905 if test -n "$RANLIB"; then
1906 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1908 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1910 for ac_dir
in $ac_dummy; do
1911 test -z "$ac_dir" && ac_dir
=.
1912 if test -f $ac_dir/$ac_word; then
1913 ac_cv_prog_RANLIB
="ranlib"
1918 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1921 RANLIB
="$ac_cv_prog_RANLIB"
1922 if test -n "$RANLIB"; then
1923 echo "$ac_t""$RANLIB" 1>&6
1925 echo "$ac_t""no" 1>&6
1936 # Determine whether we are using GNU binutils.
1937 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1938 echo "configure:1939: checking whether $AS is GNU as" >&5
1939 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1942 # Most GNU programs take a -v and spit out some text including
1943 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1944 if $AS -o conftest
-v </dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
1945 libc_cv_prog_as_gnu
=yes
1947 libc_cv_prog_as_gnu
=no
1952 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1954 gnu_as
=$libc_cv_prog_as_gnu
1956 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1957 echo "configure:1958: checking whether $LD is GNU ld" >&5
1958 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
1959 echo $ac_n "(cached) $ac_c" 1>&6
1961 # Most GNU programs take a -v and spit out some text including
1962 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1963 if $LD -o conftest
-v </dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
1964 libc_cv_prog_ld_gnu
=yes
1966 libc_cv_prog_ld_gnu
=no
1971 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1972 gnu_ld
=$libc_cv_prog_ld_gnu
1974 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
1975 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
1976 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1977 echo "configure:1978: checking for $ac_word" >&5
1978 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
1979 echo $ac_n "(cached) $ac_c" 1>&6
1981 if test -n "$MIG"; then
1982 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
1984 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1986 for ac_dir
in $ac_dummy; do
1987 test -z "$ac_dir" && ac_dir
=.
1988 if test -f $ac_dir/$ac_word; then
1989 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
1994 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
1997 MIG
="$ac_cv_prog_MIG"
1998 if test -n "$MIG"; then
1999 echo "$ac_t""$MIG" 1>&6
2001 echo "$ac_t""no" 1>&6
2007 # if using special system headers, find out the compiler's sekrit
2008 # header directory and add that to the list. NOTE: Only does the right
2009 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
2010 if test -n "$sysheaders"; then
2011 ccheaders
=`$CC -print-file-name=include`
2012 SYSINCLUDES
="-nostdinc -isystem $ccheaders -isystem $sysheaders"
2016 # check if ranlib is necessary
2017 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
2018 echo "configure:2019: checking whether ranlib is necessary" >&5
2019 if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2022 cat > conftest.c
<<EOF
2027 $CC $CFLAGS -c conftest.c
2028 $AR cr conftest.a conftest.c
2029 cp conftest.a conftest2.a
2031 if cmp -s conftest.a conftest2.a
; then
2032 libc_cv_ranlib_necessary
=no
2034 libc_cv_ranlib_necessary
=yes
2039 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
2040 if test "$libc_cv_ranlib_necessary" = no
; then
2044 # Test if LD_LIBRARY_PATH contains the notation for the current directory
2045 # since this would lead to problems installing/building glibc.
2046 # LD_LIBRARY_PATH contains the current directory if one of the following
2048 # - one of the terminals (":" and ";") is the first or last sign
2049 # - two terminals occur directly after each other
2050 # - the path contains an element with a dot in it
2051 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
2052 echo "configure:2053: checking LD_LIBRARY_PATH variable" >&5
2053 case ${LD_LIBRARY_PATH} in
2054 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
2055 ld_library_path_setting
="contains current directory"
2058 ld_library_path_setting
="ok"
2061 echo "$ac_t""$ld_library_path_setting" 1>&6
2062 if test "$ld_library_path_setting" != "ok"; then
2063 { echo "configure: error:
2064 *** LD_LIBRARY_PATH shouldn't contain the current directory when
2065 *** building glibc. Please change the environment variable
2066 *** and run configure again." 1>&2; exit 1; }
2069 # Extract the first word of "bash", so it can be a program name with args.
2070 set dummy bash
; ac_word
=$2
2071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2072 echo "configure:2073: checking for $ac_word" >&5
2073 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2078 ac_cv_path_BASH
="$BASH" # Let the user override the test with a path.
2081 ac_cv_path_BASH
="$BASH" # Let the user override the test with a dos path.
2084 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2086 for ac_dir
in $ac_dummy; do
2087 test -z "$ac_dir" && ac_dir
=.
2088 if test -f $ac_dir/$ac_word; then
2089 ac_cv_path_BASH
="$ac_dir/$ac_word"
2094 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH
="no"
2098 BASH
="$ac_cv_path_BASH"
2099 if test -n "$BASH"; then
2100 echo "$ac_t""$BASH" 1>&6
2102 echo "$ac_t""no" 1>&6
2105 if test "$BASH" != no
&&
2106 $BASH -c 'test "$BASH_VERSINFO" \
2107 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
2108 libc_cv_have_bash2
=yes
2110 libc_cv_have_bash2
=no
2114 if test "$BASH" = no
; then
2115 # Extract the first word of "ksh", so it can be a program name with args.
2116 set dummy ksh
; ac_word
=$2
2117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2118 echo "configure:2119: checking for $ac_word" >&5
2119 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2124 ac_cv_path_KSH
="$KSH" # Let the user override the test with a path.
2127 ac_cv_path_KSH
="$KSH" # Let the user override the test with a dos path.
2130 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2132 for ac_dir
in $ac_dummy; do
2133 test -z "$ac_dir" && ac_dir
=.
2134 if test -f $ac_dir/$ac_word; then
2135 ac_cv_path_KSH
="$ac_dir/$ac_word"
2140 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH
="no"
2144 KSH
="$ac_cv_path_KSH"
2145 if test -n "$KSH"; then
2146 echo "$ac_t""$KSH" 1>&6
2148 echo "$ac_t""no" 1>&6
2151 if test "$KSH" = no
; then
2154 libc_cv_have_ksh
=yes
2159 libc_cv_have_ksh
=yes
2163 for ac_prog
in gawk mawk nawk
awk
2165 # Extract the first word of "$ac_prog", so it can be a program name with args.
2166 set dummy
$ac_prog; ac_word
=$2
2167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2168 echo "configure:2169: checking for $ac_word" >&5
2169 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2172 if test -n "$AWK"; then
2173 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2175 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2177 for ac_dir
in $ac_dummy; do
2178 test -z "$ac_dir" && ac_dir
=.
2179 if test -f $ac_dir/$ac_word; then
2180 ac_cv_prog_AWK
="$ac_prog"
2187 AWK
="$ac_cv_prog_AWK"
2188 if test -n "$AWK"; then
2189 echo "$ac_t""$AWK" 1>&6
2191 echo "$ac_t""no" 1>&6
2194 test -n "$AWK" && break
2197 # Extract the first word of "perl", so it can be a program name with args.
2198 set dummy perl
; ac_word
=$2
2199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2200 echo "configure:2201: checking for $ac_word" >&5
2201 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2206 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
2209 ac_cv_path_PERL
="$PERL" # Let the user override the test with a dos path.
2212 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2214 for ac_dir
in $ac_dummy; do
2215 test -z "$ac_dir" && ac_dir
=.
2216 if test -f $ac_dir/$ac_word; then
2217 ac_cv_path_PERL
="$ac_dir/$ac_word"
2222 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="no"
2226 PERL
="$ac_cv_path_PERL"
2227 if test -n "$PERL"; then
2228 echo "$ac_t""$PERL" 1>&6
2230 echo "$ac_t""no" 1>&6
2233 if test "$PERL" != no
&&
2234 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
2237 # Extract the first word of "install-info", so it can be a program name with args.
2238 set dummy install-info
; ac_word
=$2
2239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2240 echo "configure:2241: checking for $ac_word" >&5
2241 if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then
2242 echo $ac_n "(cached) $ac_c" 1>&6
2244 case "$INSTALL_INFO" in
2246 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
2249 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a dos path.
2252 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2253 ac_dummy
="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
2254 for ac_dir
in $ac_dummy; do
2255 test -z "$ac_dir" && ac_dir
=.
2256 if test -f $ac_dir/$ac_word; then
2257 ac_cv_path_INSTALL_INFO
="$ac_dir/$ac_word"
2262 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
="no"
2266 INSTALL_INFO
="$ac_cv_path_INSTALL_INFO"
2267 if test -n "$INSTALL_INFO"; then
2268 echo "$ac_t""$INSTALL_INFO" 1>&6
2270 echo "$ac_t""no" 1>&6
2273 if test "$INSTALL_INFO" != "no"; then
2274 echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
2275 echo "configure:2276: checking for old Debian install-info" >&5
2276 if eval "test \"`echo '$''{'libc_cv_old_debian_install_info'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2280 # There is a hard ^_ on the next line. I am open to better ideas.
2282 echo 'File: dir Node: Top This is the top of the INFO tree'
2283 echo '* Menu:') >conftest.d
/dir
2284 (echo 'INFO-DIR-SECTION i-d-s works'
2285 echo 'START-INFO-DIR-ENTRY'
2286 echo '* Prog: (prog). Program.'
2287 echo 'END-INFO-DIR-ENTRY') >conftest.d
/prog.info
2288 if $INSTALL_INFO --info-dir=conftest.d conftest.d
/prog.info
>&5 2>&1
2290 if grep -s 'i-d-s works' conftest.d
/dir
>/dev
/null
2291 then libc_cv_old_debian_install_info
=no
2292 else libc_cv_old_debian_install_info
=yes
2294 else libc_cv_old_debian_install_info
=no testfailed
=t
2299 echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2300 if test -n "$testfailed"
2301 then echo "configure: warning: install-info errored out, check config.log" 1>&2
2303 OLD_DEBIAN_INSTALL_INFO
=$libc_cv_old_debian_install_info
2307 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2308 echo "configure:2309: checking for signed size_t type" >&5
2309 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2312 echo '#include <stddef.h>
2313 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2314 if eval "$ac_cpp conftest.c 2>/dev/null" \
2315 |
grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev
/null
; then
2316 libc_cv_signed_size_t
=no
2318 libc_cv_signed_size_t
=yes
2323 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2324 if test $libc_cv_signed_size_t = yes; then
2325 cat >> confdefs.h
<<\EOF
2326 #undef __SIZE_TYPE__
2327 #define __SIZE_TYPE__ unsigned
2331 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2332 echo "configure:2333: checking for libc-friendly stddef.h" >&5
2333 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2336 cat > conftest.
$ac_ext <<EOF
2337 #line 2338 "configure"
2338 #include "confdefs.h"
2339 #define __need_size_t
2340 #define __need_wchar_t
2345 size_t size; wchar_t wchar;
2347 #error stddef.h ignored __need_*
2349 if (&size == NULL || &wchar == NULL) abort ();
2352 if { (eval echo configure
:2353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2354 libc_cv_friendly_stddef
=yes
2356 echo "configure: failed program was:" >&5
2357 cat conftest.
$ac_ext >&5
2359 libc_cv_friendly_stddef
=no
2364 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2365 if test $libc_cv_friendly_stddef = yes; then
2366 config_vars
="$config_vars
2367 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2370 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2371 echo "configure:2372: checking whether we need to use -P to assemble .S files" >&5
2372 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2373 echo $ac_n "(cached) $ac_c" 1>&6
2375 cat > conftest.S
<<EOF
2376 #include "confdefs.h"
2377 /* Nothing whatsoever. */
2379 if ${CC-cc} $CFLAGS -c conftest.S
2>/dev
/null
; then
2380 libc_cv_need_minus_P
=no
2382 libc_cv_need_minus_P
=yes
2387 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2388 if test $libc_cv_need_minus_P = yes; then
2389 config_vars
="$config_vars
2390 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2393 echo $ac_n "checking whether .text pseudo-op must be used""... $ac_c" 1>&6
2394 echo "configure:2395: checking whether .text pseudo-op must be used" >&5
2395 if eval "test \"`echo '$''{'libc_cv_dot_text'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 cat > conftest.s
<<EOF
2402 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2403 libc_cv_dot_text
=.text
2408 if test -z "$libc_cv_dot_text"; then
2409 echo "$ac_t""no" 1>&6
2411 echo "$ac_t""yes" 1>&6
2414 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2415 echo "configure:2416: checking for assembler global-symbol directive" >&5
2416 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2417 echo $ac_n "(cached) $ac_c" 1>&6
2419 libc_cv_asm_global_directive
=UNKNOWN
2420 for ac_globl
in .globl .global .EXPORT
; do
2421 cat > conftest.s
<<EOF
2426 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2427 libc_cv_asm_global_directive
=${ac_globl}
2430 test $libc_cv_asm_global_directive != UNKNOWN
&& break
2434 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2435 if test $libc_cv_asm_global_directive = UNKNOWN
; then
2436 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2438 cat >> confdefs.h
<<EOF
2439 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2444 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2445 echo "configure:2446: checking for .set assembler directive" >&5
2446 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2449 cat > conftest.s
<<EOF
2452 .set glibc_conftest_frobozz,foo
2453 $libc_cv_asm_global_directive glibc_conftest_frobozz
2455 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2456 # (but it doesn't work), so we must do a linking check to be sure.
2457 cat > conftest1.c
<<\EOF
2458 extern int glibc_conftest_frobozz
;
2459 main
() { printf ("%d\n", glibc_conftest_frobozz
); }
2461 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2462 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
2463 libc_cv_asm_set_directive
=yes
2465 libc_cv_asm_set_directive
=no
2470 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2471 if test $libc_cv_asm_set_directive = yes; then
2472 cat >> confdefs.h
<<\EOF
2473 #define HAVE_ASM_SET_DIRECTIVE 1
2478 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2479 echo "configure:2480: checking for .symver assembler directive" >&5
2480 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2483 cat > conftest.s
<<EOF
2486 .symver _sym,sym@VERS
2488 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s
1>&5 2>&5; then
2489 libc_cv_asm_symver_directive
=yes
2491 libc_cv_asm_symver_directive
=no
2496 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2497 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2498 echo "configure:2499: checking for ld --version-script" >&5
2499 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2500 echo $ac_n "(cached) $ac_c" 1>&6
2502 if test $libc_cv_asm_symver_directive = yes; then
2503 cat > conftest.s
<<EOF
2506 .symver _sym,sym@VERS
2508 cat > conftest.map
<<EOF
2517 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s
1>&5 2>&5; then
2518 if { ac_try
='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2519 -nostartfiles -nostdlib
2520 -Wl,--version-script,conftest.map
2521 1>&5'; { (eval echo configure
:2522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2523 libc_cv_ld_version_script_option
=yes
2525 libc_cv_ld_version_script_option
=no
2528 libc_cv_ld_version_script_option
=no
2531 libc_cv_ld_version_script_option
=no
2536 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2537 if test $shared != no
&&
2538 test $libc_cv_asm_symver_directive = yes &&
2539 test $libc_cv_ld_version_script_option = yes &&
2540 test $enable_versioning = yes; then
2542 cat >> confdefs.h
<<\EOF
2543 #define DO_VERSIONING 1
2551 if test $shared != no
&& test $VERSIONING = no
; then
2553 *** WARNING: You should not compile GNU libc without versioning. Not using
2554 *** versioning will introduce incompatibilities so that old binaries
2555 *** will not run anymore.
2556 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2558 if test $elf = yes; then
2559 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2560 echo "configure:2561: checking for .previous assembler directive" >&5
2561 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2564 cat > conftest.s
<<EOF
2565 .section foo_section
2568 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2569 libc_cv_asm_previous_directive
=yes
2571 libc_cv_asm_previous_directive
=no
2576 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2577 if test $libc_cv_asm_previous_directive = yes; then
2578 cat >> confdefs.h
<<\EOF
2579 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2583 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2584 echo "configure:2585: checking for .popsection assembler directive" >&5
2585 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2586 echo $ac_n "(cached) $ac_c" 1>&6
2588 cat > conftest.s
<<EOF
2589 .pushsection foo_section
2592 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2593 libc_cv_asm_popsection_directive
=yes
2595 libc_cv_asm_popsection_directive
=no
2600 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2601 if test $libc_cv_asm_popsection_directive = yes; then
2602 cat >> confdefs.h
<<\EOF
2603 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2608 echo $ac_n "checking for .protected and .hidden assembler directive""... $ac_c" 1>&6
2609 echo "configure:2610: checking for .protected and .hidden assembler directive" >&5
2610 if eval "test \"`echo '$''{'libc_cv_asm_protected_directive'+set}'`\" = set"; then
2611 echo $ac_n "(cached) $ac_c" 1>&6
2613 cat > conftest.s
<<EOF
2619 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2620 libc_cv_asm_protected_directive
=yes
2622 libc_cv_asm_protected_directive
=no
2627 echo "$ac_t""$libc_cv_asm_protected_directive" 1>&6
2630 echo $ac_n "checking for -z nodelete option""... $ac_c" 1>&6
2631 echo "configure:2632: checking for -z nodelete option" >&5
2632 if eval "test \"`echo '$''{'libc_cv_z_nodelete'+set}'`\" = set"; then
2633 echo $ac_n "(cached) $ac_c" 1>&6
2635 cat > conftest.c
<<EOF
2636 int _start (void) { return 42; }
2638 if { ac_try
='${CC-cc} -shared -o conftest.so conftest.c -Wl,--enable-new-dtags,-z,nodelete 1>&5'; { (eval echo configure
:2639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2640 libc_cv_z_nodelete
=yes
2642 libc_cv_z_nodelete
=no
2647 echo "$ac_t""$libc_cv_z_nodelete" 1>&6
2650 echo $ac_n "checking for -z nodlopen option""... $ac_c" 1>&6
2651 echo "configure:2652: checking for -z nodlopen option" >&5
2652 if eval "test \"`echo '$''{'libc_cv_z_nodlopen'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2655 cat > conftest.c
<<EOF
2656 int _start (void) { return 42; }
2658 if { ac_try
='${CC-cc} -shared -o conftest.so conftest.c -Wl,--enable-new-dtags,-z,nodlopen 1>&5'; { (eval echo configure
:2659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2660 libc_cv_z_nodlopen
=yes
2662 libc_cv_z_nodlopen
=no
2667 echo "$ac_t""$libc_cv_z_nodlopen" 1>&6
2671 if test $elf != yes; then
2672 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2673 echo "configure:2674: checking for .init and .fini sections" >&5
2674 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 cat > conftest.
$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2682 asm (".section .init");
2683 asm (".section .fini");
2684 asm ("${libc_cv_dot_text}");
2687 if { (eval echo configure
:2688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2689 libc_cv_have_initfini
=yes
2691 echo "configure: failed program was:" >&5
2692 cat conftest.
$ac_ext >&5
2694 libc_cv_have_initfini
=no
2699 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2700 if test $libc_cv_have_initfini = yes; then
2701 cat >> confdefs.h
<<\EOF
2702 #define HAVE_INITFINI 1
2708 if test $elf = yes -a $gnu_ld = yes; then
2709 echo $ac_n "checking whether cc puts quotes around section names""... $ac_c" 1>&6
2710 echo "configure:2711: checking whether cc puts quotes around section names" >&5
2711 if eval "test \"`echo '$''{'libc_cv_have_section_quotes'+set}'`\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2714 cat > conftest.c
<<EOF
2715 static const int foo
2716 __attribute__ ((section ("bar"))) = 1;
2718 if ${CC-cc} -S conftest.c
-o conftest.s
; then
2719 if grep '\.section.*"bar"' conftest.s
>/dev
/null
; then
2720 libc_cv_have_section_quotes
=yes
2722 libc_cv_have_section_quotes
=no
2725 libc_cv_have_section_quotes
=unknown
2731 echo "$ac_t""$libc_cv_have_section_quotes" 1>&6
2732 if test $libc_cv_have_section_quotes = yes; then
2733 cat >> confdefs.h
<<\EOF
2734 #define HAVE_SECTION_QUOTES 1
2742 if test $elf = yes; then
2743 libc_cv_asm_underscores
=no
2745 if test $ac_cv_prog_cc_works = yes; then
2746 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2747 echo "configure:2748: checking for _ prefix on C symbol names" >&5
2748 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2751 cat > conftest.
$ac_ext <<EOF
2752 #line 2753 "configure"
2753 #include "confdefs.h"
2754 asm ("_glibc_foobar:");
2759 if { (eval echo configure
:2760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2761 libc_cv_asm_underscores
=yes
2763 echo "configure: failed program was:" >&5
2764 cat conftest.
$ac_ext >&5
2766 libc_cv_asm_underscores
=no
2771 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2773 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2774 echo "configure:2775: checking for _ prefix on C symbol names" >&5
2775 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2776 echo $ac_n "(cached) $ac_c" 1>&6
2778 cat > conftest.
$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2781 void underscore_test(void) {
2784 if { (eval echo configure
:2785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2785 if grep _underscore_test conftest
* >/dev
/null
; then
2787 libc_cv_asm_underscores
=yes
2790 libc_cv_asm_underscores
=no
2793 echo "configure: failed program was:" >&5
2794 cat conftest.
$ac_ext >&5
2796 libc_cv_asm_underscores
=no
2801 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2804 if test $libc_cv_asm_underscores = no
; then
2805 cat >> confdefs.h
<<\EOF
2806 #define NO_UNDERSCORES 1
2811 if test $elf = yes; then
2812 libc_cv_weak_symbols
=yes
2815 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2816 echo "configure:2817: checking for assembler .weak directive" >&5
2817 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2820 cat > conftest.s
<<EOF
2822 ${libc_cv_asm_global_directive} foo
2825 .weak bar; bar = foo
2827 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2828 libc_cv_asm_weak_directive
=yes
2830 libc_cv_asm_weak_directive
=no
2835 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2837 if test $libc_cv_asm_weak_directive = no
; then
2838 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2839 echo "configure:2840: checking for assembler .weakext directive" >&5
2840 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
2841 echo $ac_n "(cached) $ac_c" 1>&6
2843 cat > conftest.s
<<EOF
2845 ${libc_cv_asm_global_directive} foo
2849 ${libc_cv_asm_global_directive} baz
2852 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2853 libc_cv_asm_weakext_directive
=yes
2855 libc_cv_asm_weakext_directive
=no
2860 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2864 if test $libc_cv_asm_weak_directive = yes; then
2865 cat >> confdefs.h
<<\EOF
2866 #define HAVE_ASM_WEAK_DIRECTIVE 1
2869 elif test $libc_cv_asm_weakext_directive = yes; then
2870 cat >> confdefs.h
<<\EOF
2871 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2876 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2877 echo "configure:2878: checking for ld --no-whole-archive" >&5
2878 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2881 cat > conftest.c
<<\EOF
2886 if { ac_try
='${CC-cc} $CFLAGS
2887 -nostdlib -nostartfiles -Wl,--no-whole-archive
2888 -o conftest conftest.c 1>&5'; { (eval echo configure
:2889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2889 libc_cv_ld_no_whole_archive
=yes
2891 libc_cv_ld_no_whole_archive
=no
2896 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2897 if test $libc_cv_ld_no_whole_archive = yes; then
2898 no_whole_archive
=-Wl,--no-whole-archive
2901 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
2902 echo "configure:2903: checking for gcc -fexceptions" >&5
2903 if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
2904 echo $ac_n "(cached) $ac_c" 1>&6
2906 cat > conftest.c
<<\EOF
2911 if { ac_try
='${CC-cc} $CFLAGS
2912 -nostdlib -nostartfiles -fexceptions
2913 -o conftest conftest.c 1>&5'; { (eval echo configure
:2914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2914 libc_cv_gcc_exceptions
=yes
2916 libc_cv_gcc_exceptions
=no
2921 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
2922 if test $libc_cv_gcc_exceptions = yes; then
2923 exceptions
=-fexceptions
2926 if test "$base_machine" = alpha
; then
2927 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2928 echo "configure:2929: checking for function ..ng prefix" >&5
2929 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
2930 echo $ac_n "(cached) $ac_c" 1>&6
2932 cat > conftest.c
<<\EOF
2935 if { ac_try
='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure
:2936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2937 libc_cv_gcc_alpha_ng_prefix
=yes
2939 libc_cv_gcc_alpha_ng_prefix
=no
2944 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2945 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2946 cat >> confdefs.h
<<\EOF
2947 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2951 cat >> confdefs.h
<<\EOF
2952 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2958 if test "$host_cpu" = powerpc
; then
2959 # Check for a bug present in at least versions 2.8.x of GCC
2960 # and versions 1.0.x of EGCS.
2961 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
2962 echo "configure:2963: checking whether clobbering cr0 causes problems" >&5
2963 if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
2964 echo $ac_n "(cached) $ac_c" 1>&6
2966 cat > conftest.
$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2969 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
2974 if { (eval echo configure
:2975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2976 libc_cv_c_asmcr0_bug
='no'
2978 echo "configure: failed program was:" >&5
2979 cat conftest.
$ac_ext >&5
2981 libc_cv_c_asmcr0_bug
='yes'
2986 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
2987 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
2988 cat >> confdefs.h
<<\EOF
2989 #define BROKEN_PPC_ASM_CR0 1
2995 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2996 echo "configure:2997: checking for DWARF2 unwind info support" >&5
2997 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
2998 echo $ac_n "(cached) $ac_c" 1>&6
3000 cat > conftest.c
<<EOF
3001 #line 3002 "configure"
3002 static char __EH_FRAME_BEGIN__;
3005 #ifdef CHECK__register_frame
3006 __register_frame (__EH_FRAME_BEGIN__);
3007 __deregister_frame (__EH_FRAME_BEGIN__);
3009 #ifdef CHECK__register_frame_info
3010 __register_frame_info (__EH_FRAME_BEGIN__);
3011 __deregister_frame_info (__EH_FRAME_BEGIN__);
3016 /* FIXME: this is fragile. */
3026 if { ac_try
='${CC-cc} $CFLAGS -DCHECK__register_frame_info
3027 -nostdlib -nostartfiles
3028 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:3029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3029 libc_cv_gcc_dwarf2_unwind_info
=static
3031 libc_cv_gcc_dwarf2_unwind_info
=no
3033 if test $libc_cv_gcc_dwarf2_unwind_info = no
; then
3034 if { ac_try
='${CC-cc} $CFLAGS -DCHECK__register_frame
3035 -nostdlib -nostartfiles
3036 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:3037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3037 libc_cv_gcc_dwarf2_unwind_info
=yes
3039 libc_cv_gcc_dwarf2_unwind_info
=no
3045 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
3046 case $libc_cv_gcc_dwarf2_unwind_info in
3048 cat >> confdefs.h
<<\EOF
3049 #define HAVE_DWARF2_UNWIND_INFO 1
3054 cat >> confdefs.h
<<\EOF
3055 #define HAVE_DWARF2_UNWIND_INFO 1
3058 cat >> confdefs.h
<<\EOF
3059 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
3065 echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
3066 echo "configure:3067: checking for __builtin_expect" >&5
3067 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_expect'+set}'`\" = set"; then
3068 echo $ac_n "(cached) $ac_c" 1>&6
3070 cat > conftest.c
<<EOF
3071 #line 3072 "configure"
3074 a = __builtin_expect (a, 10);
3075 return a == 10 ? 0 : 1;
3078 if { ac_try
='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3079 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:3080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3080 libc_cv_gcc_builtin_expect
=yes
3082 libc_cv_gcc_builtin_expect
=no
3087 echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
3088 if test "$libc_cv_gcc_builtin_expect" = yes; then
3089 cat >> confdefs.h
<<\EOF
3090 #define HAVE_BUILTIN_EXPECT 1
3095 echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6
3096 echo "configure:3097: checking for local label subtraction" >&5
3097 if eval "test \"`echo '$''{'libc_cv_gcc_subtract_local_labels'+set}'`\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3100 cat > conftest.c
<<EOF
3101 #line 3102 "configure"
3104 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
3105 void *p = &&l1 + ar[a];
3113 if { ac_try
='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3114 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:3115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3115 libc_cv_gcc_subtract_local_labels
=yes
3117 libc_cv_gcc_subtract_local_labels
=no
3122 echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6
3123 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
3124 cat >> confdefs.h
<<\EOF
3125 #define HAVE_SUBTRACT_LOCAL_LABELS 1
3130 echo $ac_n "checking for libgd""... $ac_c" 1>&6
3131 echo "configure:3132: checking for libgd" >&5
3132 old_CFLAGS
="$CFLAGS"
3133 CFLAGS
="$CFLAGS $libgd_include"
3134 old_LDFLAGS
="$LDFLAGS"
3135 LDFLAGS
="$LDFLAGS $libgd_ldflags"
3137 LIBS
="$LIBS -lgd -lpng -lz -lm"
3138 cat > conftest.
$ac_ext <<EOF
3139 #line 3140 "configure"
3140 #include "confdefs.h"
3146 if { (eval echo configure
:3147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3150 echo "configure: failed program was:" >&5
3151 cat conftest.
$ac_ext >&5
3156 CFLAGS
="$old_CFLAGS"
3157 LDFLAGS
="$old_LDFLAGS"
3159 echo "$ac_t""$LIBGD" 1>&6
3162 echo $ac_n "checking size of long double""... $ac_c" 1>&6
3163 echo "configure:3164: checking size of long double" >&5
3164 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3165 echo $ac_n "(cached) $ac_c" 1>&6
3167 if test "$cross_compiling" = yes; then
3168 ac_cv_sizeof_long_double
=0
3170 cat > conftest.
$ac_ext <<EOF
3171 #line 3172 "configure"
3172 #include "confdefs.h"
3176 FILE *f=fopen("conftestval", "w");
3178 fprintf(f, "%d\n", sizeof(long double));
3182 if { (eval echo configure
:3183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3184 ac_cv_sizeof_long_double
=`cat conftestval`
3186 echo "configure: failed program was:" >&5
3187 cat conftest.
$ac_ext >&5
3189 ac_cv_sizeof_long_double
=0
3195 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3196 cat >> confdefs.h
<<EOF
3197 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3201 sizeof_long_double
=$ac_cv_sizeof_long_double
3204 ### End of automated tests.
3205 ### Now run sysdeps configure fragments.
3207 # sysdeps configure fragments may set these with files to be linked below.
3211 # They also can set these variables.
3213 ldd_rewrite_script
=no
3215 # Iterate over all the sysdep directories we will use, running their
3216 # configure fragments, and looking for a uname implementation.
3218 for dir
in $sysnames; do
3221 *) dest
=$srcdir/$dir ;;
3223 if test -r $dest/configure
; then
3224 echo "$ac_t""running configure fragment for $dest" 1>&6
3228 if test -z "$uname"; then
3229 if test -r $dest/uname.c ||
3230 test -r $dest/uname.S ||
3231 { test -r $dest/syscalls.list
&&
3232 grep '^uname[ ]' $dest/syscalls.list
>/dev
/null
; }; then
3240 # If we will use the generic uname implementation, we must figure out what
3241 # it will say by examining the system, and write the results in config-name.h.
3242 if test "$uname" = "sysdeps/generic"; then
3244 uname_sysname
=`echo $config_os | sed 's/[0-9.]*$//'`
3245 if test $uname_sysname != $config_os; then
3246 config_release
=`echo $config_os | sed s/$uname_sysname//`
3249 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
3250 echo "configure:3251: checking OS release for uname" >&5
3251 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
3252 echo $ac_n "(cached) $ac_c" 1>&6
3254 kernel_release
=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
3255 if test x
`echo "$config_release" | sed "s/^$kernel_release//"` \
3256 != x
$config_release; then
3257 # The configuration release is a substring of the kernel release.
3258 libc_cv_uname_release
=$kernel_release
3259 elif test x
$config_release != x
; then
3260 libc_cv_uname_release
=$config_release
3261 elif test x
$kernel_release != x
; then
3262 libc_cv_uname_release
=$kernel_release
3264 libc_cv_uname_release
=unknown
3268 echo "$ac_t""$libc_cv_uname_release" 1>&6
3269 uname_release
="$libc_cv_uname_release"
3271 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
3272 echo "configure:3273: checking OS version for uname" >&5
3273 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
3274 echo $ac_n "(cached) $ac_c" 1>&6
3276 kernel_version
=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
3277 if test -n "$kernel_version"; then
3278 libc_cv_uname_version
="$kernel_version"
3280 libc_cv_uname_version
=unknown
3284 echo "$ac_t""$libc_cv_uname_version" 1>&6
3285 uname_version
="$libc_cv_uname_version"
3287 config_uname
=config-name.h
:config-name.
in
3289 # For non-generic uname, we don't need to create config-name.h at all.
3293 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
3294 echo "configure:3295: checking stdio selection" >&5
3297 libio
) cat >> confdefs.h
<<\EOF
3298 #define USE_IN_LIBIO 1
3301 default
) stdio
=stdio
;;
3303 echo "$ac_t""$stdio" 1>&6
3305 # Test for old glibc 2.0.x headers so that they can be removed properly
3306 # Search only in includedir.
3307 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
3308 echo "configure:3309: checking for old glibc 2.0.x headers" >&5
3309 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
3311 old_glibc_headers
=yes
3313 old_glibc_headers
=no
3315 echo "$ac_t""$old_glibc_headers" 1>&6
3316 if test ${old_glibc_headers} = yes; then
3317 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
3318 echo "configure: warning: *** be removed." 1>&2
3331 if test $gnu_ld = yes; then
3332 cat >> confdefs.h
<<\EOF
3333 #define HAVE_GNU_LD 1
3337 if test $gnu_as = yes; then
3338 cat >> confdefs.h
<<\EOF
3339 #define HAVE_GNU_AS 1
3343 if test $elf = yes; then
3344 cat >> confdefs.h
<<\EOF
3352 if test $shared = default
; then
3353 if test $gnu_ld = yes; then
3356 # For now we do not assume shared libs are available. In future more
3357 # tests might become available.
3362 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
3363 echo "configure:3364: checking whether -fPIC is default" >&5
3364 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
3365 echo $ac_n "(cached) $ac_c" 1>&6
3368 cat > conftest.c
<<EOF
3369 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
3370 # error PIC is default.
3373 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
3379 echo "$ac_t""$pic_default" 1>&6
3391 *door
*) linux_doors
=yes ;;
3392 *) linux_doors
=no
;;
3396 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
3399 config_makefile
=Makefile
3402 VERSION
=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
3403 RELEASE
=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
3407 echo '*** Do NOT install this release on any production system!'
3408 echo '*** We are in early testing stages.'
3411 cat > confcache
<<\EOF
3412 # This file is a shell script that caches the results of configure
3413 # tests run on this system so they can be shared between configure
3414 # scripts and configure runs. It is not useful on other systems.
3415 # If it contains results you don't want to keep, you may remove or edit it.
3417 # By default, configure uses ./config.cache as the cache file,
3418 # creating it if it does not exist already. You can give configure
3419 # the --cache-file=FILE option to use a different cache file; that is
3420 # what configure does when it calls configure scripts in
3421 # subdirectories, so they share the cache.
3422 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3423 # config.status only pays attention to the cache file if you give it the
3424 # --recheck option to rerun configure.
3427 # The following way of writing the cache mishandles newlines in values,
3428 # but we know of no workaround that is simple, portable, and efficient.
3429 # So, don't put newlines in cache variables' values.
3430 # Ultrix sh set writes to stderr and can't be redirected directly,
3431 # and sets the high bit in the cache file unless we assign to the vars.
3433 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3435 # `set' does not quote correctly, so add quotes (double-quote substitution
3436 # turns \\\\ into \\, and sed turns \\ into \).
3438 -e "s/'/'\\\\''/g" \
3439 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3442 # `set' quotes correctly as required by POSIX, so do not add quotes.
3443 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3446 if cmp -s $cache_file confcache
; then
3449 if test -w $cache_file; then
3450 echo "updating cache $cache_file"
3451 cat confcache
> $cache_file
3453 echo "not updating unwritable cache $cache_file"
3458 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3460 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3461 # Let make expand exec_prefix.
3462 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3464 # Any assignment to VPATH causes Sun make to only execute
3465 # the first set of double-colon rules, so remove it if not needed.
3466 # If there is a colon in the path, we need to keep it.
3467 if test "x$srcdir" = x.
; then
3468 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3471 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3473 DEFS
=-DHAVE_CONFIG_H
3475 # Without the "./", some shells look in PATH for config.status.
3476 : ${CONFIG_STATUS=./config.status}
3478 echo creating
$CONFIG_STATUS
3479 rm -f $CONFIG_STATUS
3480 cat > $CONFIG_STATUS <<EOF
3482 # Generated automatically by configure.
3483 # Run this file to recreate the current configuration.
3484 # This directory was configured as follows,
3485 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3487 # $0 $ac_configure_args
3489 # Compiler output produced by configure, useful for debugging
3490 # configure, is in ./config.log if it exists.
3492 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3495 case "\$ac_option" in
3496 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3497 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3498 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3499 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3500 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3502 -help | --help | --hel | --he | --h)
3503 echo "\$ac_cs_usage"; exit 0 ;;
3504 *) echo "\$ac_cs_usage"; exit 1 ;;
3508 ac_given_srcdir=$srcdir
3509 ac_given_INSTALL="$INSTALL"
3511 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3513 cat >> $CONFIG_STATUS <<EOF
3515 # Protect against being on the right side of a sed subst in config.status.
3516 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3517 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3521 s%@CFLAGS@%$CFLAGS%g
3522 s%@CPPFLAGS@%$CPPFLAGS%g
3523 s%@CXXFLAGS@%$CXXFLAGS%g
3524 s%@FFLAGS@%$FFLAGS%g
3526 s%@LDFLAGS@%$LDFLAGS%g
3528 s%@exec_prefix@%$exec_prefix%g
3529 s%@prefix@%$prefix%g
3530 s%@program_transform_name@%$program_transform_name%g
3531 s%@bindir@%$bindir%g
3532 s%@sbindir@%$sbindir%g
3533 s%@libexecdir@%$libexecdir%g
3534 s%@datadir@%$datadir%g
3535 s%@sysconfdir@%$sysconfdir%g
3536 s%@sharedstatedir@%$sharedstatedir%g
3537 s%@localstatedir@%$localstatedir%g
3538 s%@libdir@%$libdir%g
3539 s%@includedir@%$includedir%g
3540 s%@oldincludedir@%$oldincludedir%g
3541 s%@infodir@%$infodir%g
3542 s%@mandir@%$mandir%g
3543 s%@with_cvs@%$with_cvs%g
3544 s%@subdirs@%$subdirs%g
3545 s%@force_install@%$force_install%g
3547 s%@host_alias@%$host_alias%g
3548 s%@host_cpu@%$host_cpu%g
3549 s%@host_vendor@%$host_vendor%g
3550 s%@host_os@%$host_os%g
3551 s%@base_machine@%$base_machine%g
3552 s%@sysnames@%$sysnames%g
3553 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3554 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3555 s%@INSTALL_DATA@%$INSTALL_DATA%g
3559 s%@build_alias@%$build_alias%g
3560 s%@build_cpu@%$build_cpu%g
3561 s%@build_vendor@%$build_vendor%g
3562 s%@build_os@%$build_os%g
3565 s%@MSGFMT@%$MSGFMT%g
3566 s%@MAKEINFO@%$MAKEINFO%g
3568 s%@CCVERSION@%$CCVERSION%g
3569 s%@cross_linkable@%$cross_linkable%g
3570 s%@BUILD_CC@%$BUILD_CC%g
3571 s%@cross_compiling@%$cross_compiling%g
3574 s%@RANLIB@%$RANLIB%g
3576 s%@SYSINCLUDES@%$SYSINCLUDES%g
3578 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
3580 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
3583 s%@INSTALL_INFO@%$INSTALL_INFO%g
3584 s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
3585 s%@VERSIONING@%$VERSIONING%g
3586 s%@libc_cv_asm_protected_directive@%$libc_cv_asm_protected_directive%g
3587 s%@libc_cv_z_nodelete@%$libc_cv_z_nodelete%g
3588 s%@libc_cv_z_nodlopen@%$libc_cv_z_nodlopen%g
3589 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
3590 s%@no_whole_archive@%$no_whole_archive%g
3591 s%@exceptions@%$exceptions%g
3593 s%@sizeof_long_double@%$sizeof_long_double%g
3594 s%@uname_sysname@%$uname_sysname%g
3595 s%@uname_release@%$uname_release%g
3596 s%@uname_version@%$uname_version%g
3598 s%@old_glibc_headers@%$old_glibc_headers%g
3599 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
3600 s%@libc_cv_localedir@%$libc_cv_localedir%g
3601 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
3602 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
3603 s%@use_ldconfig@%$use_ldconfig%g
3604 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
3605 s%@gnu_ld@%$gnu_ld%g
3606 s%@gnu_as@%$gnu_as%g
3608 s%@static@%$static%g
3609 s%@shared@%$shared%g
3610 s%@pic_default@%$pic_default%g
3611 s%@profile@%$profile%g
3612 s%@omitfp@%$omitfp%g
3613 s%@bounded@%$bounded%g
3614 s%@static_nss@%$static_nss%g
3615 s%@nopic_initfini@%$nopic_initfini%g
3616 s%@DEFINES@%$DEFINES%g
3617 s%@linux_doors@%$linux_doors%g
3618 s%@VERSION@%$VERSION%g
3619 s%@RELEASE@%$RELEASE%g
3624 cat >> $CONFIG_STATUS <<\EOF
3626 # Split the substitutions into bite-sized pieces for seds with
3627 # small command number limits, like on Digital OSF/1 and HP-UX.
3628 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3629 ac_file
=1 # Number of current file.
3630 ac_beg
=1 # First line for current file.
3631 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3634 while $ac_more_lines; do
3635 if test $ac_beg -gt 1; then
3636 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3638 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3640 if test ! -s conftest.s
$ac_file; then
3642 rm -f conftest.s
$ac_file
3644 if test -z "$ac_sed_cmds"; then
3645 ac_sed_cmds
="sed -f conftest.s$ac_file"
3647 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3649 ac_file
=`expr $ac_file + 1`
3651 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3654 if test -z "$ac_sed_cmds"; then
3659 cat >> $CONFIG_STATUS <<EOF
3661 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3663 cat >> $CONFIG_STATUS <<\EOF
3664 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3665 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3667 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3668 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3669 *) ac_file_in
="${ac_file}.in" ;;
3672 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3674 # Remove last slash and all that follows it. Not all systems have dirname.
3675 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3676 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3677 # The file is in a subdirectory.
3678 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3679 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3680 # A "../" for each directory in $ac_dir_suffix.
3681 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3683 ac_dir_suffix
= ac_dots
=
3686 case "$ac_given_srcdir" in
3688 if test -z "$ac_dots"; then top_srcdir
=.
3689 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3690 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3692 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3693 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3696 case "$ac_given_INSTALL" in
3697 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3698 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3701 echo creating
"$ac_file"
3703 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3705 *Makefile
*) ac_comsub
="1i\\
3706 # $configure_input" ;;
3710 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3712 s%@configure_input@%$configure_input%g
3713 s%@srcdir@%$srcdir%g
3714 s%@top_srcdir@%$top_srcdir%g
3715 s%@INSTALL@%$INSTALL%g
3716 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3720 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3721 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3723 # ac_d sets the value in "#define NAME VALUE" lines.
3724 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3725 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3728 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3729 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3730 ac_uB
='\([ ]\)%\1#\2define\3'
3733 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3734 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3735 ac_eB
='$%\1#\2define\3'
3739 if test "${CONFIG_HEADERS+set}" != set; then
3741 cat >> $CONFIG_STATUS <<EOF
3742 CONFIG_HEADERS="config.h"
3744 cat >> $CONFIG_STATUS <<\EOF
3746 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3747 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3749 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3750 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3751 *) ac_file_in
="${ac_file}.in" ;;
3754 echo creating
$ac_file
3756 rm -f conftest.frag conftest.
in conftest.out
3757 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3758 cat $ac_file_inputs > conftest.
in
3762 # Transform confdefs.h into a sed script conftest.vals that substitutes
3763 # the proper values into config.h.in to produce config.h. And first:
3764 # Protect against being on the right side of a sed subst in config.status.
3765 # Protect against being in an unquoted here document in config.status.
3767 cat > conftest.hdr
<<\EOF
3770 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3774 sed -n -f conftest.hdr confdefs.h > conftest.vals
3777 # This sed command replaces #undef with comments. This is necessary, for
3778 # example, in the case of _POSIX_SOURCE, which is predefined and required
3779 # on some systems where configure will not decide to define it.
3780 cat >> conftest.vals <<\EOF
3781 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3784 # Break up conftest.vals because some shells have a limit on
3785 # the size of here documents, and old seds have small limits too.
3790 ac_lines=`grep -c . conftest.vals
`
3791 # grep -c gives empty output for an empty file on some AIX systems.
3792 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3793 # Write a limited-size here document to conftest.frag.
3794 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3795 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3797 sed -f conftest.frag conftest.in > conftest.out
3799 mv conftest.out conftest.in
3801 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3803 mv conftest.tail conftest.vals
3807 cat >> $CONFIG_STATUS <<\EOF
3808 rm -f conftest.frag conftest.h
3809 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3810 cat conftest.in >> conftest.h
3812 if cmp -s $ac_file conftest.h 2>/dev/null; then
3813 echo "$ac_file is unchanged"
3816 # Remove last slash and all that follows it. Not all systems have dirname.
3817 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3818 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3819 # The file is in a subdirectory.
3820 test ! -d "$ac_dir" && mkdir "$ac_dir"
3823 mv conftest.h $ac_file
3829 cat >> $CONFIG_STATUS <<EOF
3830 ac_sources="`echo $libc_link_sources`"
3831 ac_dests="`echo $libc_link_dests`"
3834 cat >> $CONFIG_STATUS <<\EOF
3835 srcdir=$ac_given_srcdir
3836 while test -n "$ac_sources"; do
3837 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3838 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3840 echo "linking $srcdir/$ac_source to $ac_dest"
3842 if test ! -r $srcdir/$ac_source; then
3843 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3847 # Make relative symlinks.
3848 # Remove last slash and all that follows it. Not all systems have dirname.
3849 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
3850 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3851 # The dest file is in a subdirectory.
3852 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3853 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
3854 # A "../" for each directory in $ac_dest_dir_suffix.
3855 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
3857 ac_dest_dir_suffix= ac_dots=
3861 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3862 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3865 # Make a symlink if possible; otherwise try a hard link.
3866 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3867 ln $srcdir/$ac_source $ac_dest; then :
3869 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3873 cat >> $CONFIG_STATUS <<EOF
3874 config_vars='$config_vars'
3876 cat >> $CONFIG_STATUS <<\EOF
3878 case $CONFIG_FILES in *config.make*)
3879 echo "$config_vars" >> config.make;;
3881 test -d bits || mkdir bits
3884 chmod +x $CONFIG_STATUS
3885 rm -fr confdefs* $ac_clean_files
3886 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3888 if test "$no_recursion" != yes; then
3890 # Remove --cache-file and --srcdir arguments so they do not pile up.
3891 ac_sub_configure_args=
3893 for ac_arg in $ac_configure_args; do
3894 if test -n "$ac_prev"; then
3899 -cache-file | --cache-file | --cache-fil | --cache-fi \
3900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3901 ac_prev=cache_file ;;
3902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3905 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3907 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3909 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3913 for ac_config_dir in $add_ons; do
3915 # Do not complain, so a configure script can configure whichever
3916 # parts of a large source tree are present.
3917 if test ! -d $srcdir/$ac_config_dir; then
3921 echo configuring in $ac_config_dir
3926 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3928 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3936 # A "../" for each directory in /$ac_config_dir.
3937 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3940 .) # No --srcdir option. We are building in place.
3941 ac_sub_srcdir=$srcdir ;;
3942 /*) # Absolute path.
3943 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3945 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3948 # Check for guested configure; otherwise get Cygnus style configure.
3949 if test -f $ac_sub_srcdir/configure; then
3950 ac_sub_configure=$ac_sub_srcdir/configure
3951 elif test -f $ac_sub_srcdir/configure.in; then
3952 ac_sub_configure=$ac_configure
3954 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3958 # The recursion is here.
3959 if test -n "$ac_sub_configure"; then
3961 # Make the cache file name correct relative to the subdirectory.
3962 case "$cache_file" in
3963 /*) ac_sub_cache_file=$cache_file ;;
3965 ac_sub_cache_file="$ac_dots$cache_file" ;;
3967 case "$ac_given_INSTALL" in
3968 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3969 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3972 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3973 # The eval makes quoting arguments work.
3974 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3977 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }