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 --with-xcoff if using the XCOFF object format"
42 --without-cvs if CVS should not be used"
44 --with-headers=PATH location of system headers to use
45 [e.g. /usr/src/linux/include]
46 [default=compiler default]"
48 --enable-libio build in GNU libio instead of GNU stdio"
50 --disable-sanity-checks really do not use threads (should not be used
51 except in special situations) [default=yes]"
53 --enable-shared build shared library [default=yes if GNU ld & ELF]"
55 --enable-profile build profiled library [default=yes]"
57 --enable-omitfp build undebuggable optimized library [default=no]"
59 --enable-bounded build with runtime bounds checking [default=no]"
61 --disable-versioning do not include versioning information in the
62 library objects [default=yes if supported]"
64 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
65 [default=glibc default]"
67 --enable-add-ons[=DIR1,DIR2]...
68 configure and build add-ons in DIR1,DIR2,...
69 search for add-ons if no parameter given"
71 --without-tls prevent support for TLS"
73 --enable-static-nss build static NSS modules [default=no]"
75 --disable-force-install don't force installation of files from this package,
76 even if they are older than the installed files"
78 --enable-kernel=VERSION compile for compatibility with kernel not older
81 --enable-all-warnings enable all useful warnings gcc can issue"
83 # Initialize some variables set by options.
84 # The variables have the same names as the options, with
85 # dashes changed to underlines.
87 cache_file
=.
/config.cache
96 program_transform_name
=s
,x
,x
,
104 bindir
='${exec_prefix}/bin'
105 sbindir
='${exec_prefix}/sbin'
106 libexecdir
='${exec_prefix}/libexec'
107 datadir
='${prefix}/share'
108 sysconfdir
='${prefix}/etc'
109 sharedstatedir
='${prefix}/com'
110 localstatedir
='${prefix}/var'
111 libdir
='${exec_prefix}/lib'
112 includedir
='${prefix}/include'
113 oldincludedir
='/usr/include'
114 infodir
='${prefix}/info'
115 mandir
='${prefix}/man'
117 # Initialize some other variables.
120 SHELL
=${CONFIG_SHELL-/bin/sh}
121 # Maximum number of lines to put in a shell here document.
128 # If the previous option needs an argument, assign it.
129 if test -n "$ac_prev"; then
130 eval "$ac_prev=\$ac_option"
136 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
140 # Accept the important Cygnus configure options, so we can diagnose typos.
144 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
146 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
147 bindir
="$ac_optarg" ;;
149 -build |
--build |
--buil |
--bui |
--bu)
151 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
152 build
="$ac_optarg" ;;
154 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
155 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
156 ac_prev
=cache_file
;;
157 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
158 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
159 cache_file
="$ac_optarg" ;;
161 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
163 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
165 datadir
="$ac_optarg" ;;
167 -disable-* |
--disable-*)
168 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
169 # Reject names that are not valid shell variable names.
170 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
171 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
173 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
174 eval "enable_${ac_feature}=no" ;;
176 -enable-* |
--enable-*)
177 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
178 # Reject names that are not valid shell variable names.
179 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
182 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
187 eval "enable_${ac_feature}='$ac_optarg'" ;;
189 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
190 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
191 |
--exec |
--exe |
--ex)
192 ac_prev
=exec_prefix
;;
193 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
194 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
195 |
--exec=* |
--exe=* |
--ex=*)
196 exec_prefix
="$ac_optarg" ;;
198 -gas |
--gas |
--ga |
--g)
199 # Obsolete; use --with-gas.
202 -help |
--help |
--hel |
--he)
203 # Omit some internal or obsolete options to make the list less imposing.
204 # This message is too long to be a string in the A/UX 3.1 sh.
206 Usage: configure [options] [host]
207 Options: [defaults in brackets after descriptions]
209 --cache-file=FILE cache test results in FILE
210 --help print this message
211 --no-create do not create output files
212 --quiet, --silent do not print \`checking...' messages
213 --version print the version of autoconf that created configure
214 Directory and file names:
215 --prefix=PREFIX install architecture-independent files in PREFIX
217 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
219 --bindir=DIR user executables in DIR [EPREFIX/bin]
220 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
221 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
222 --datadir=DIR read-only architecture-independent data in DIR
224 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
225 --sharedstatedir=DIR modifiable architecture-independent data in DIR
227 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
228 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
229 --includedir=DIR C header files in DIR [PREFIX/include]
230 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
231 --infodir=DIR info documentation in DIR [PREFIX/info]
232 --mandir=DIR man documentation in DIR [PREFIX/man]
233 --srcdir=DIR find the sources in DIR [configure dir or ..]
234 --program-prefix=PREFIX prepend PREFIX to installed program names
235 --program-suffix=SUFFIX append SUFFIX to installed program names
236 --program-transform-name=PROGRAM
237 run sed PROGRAM on installed program names
241 --build=BUILD configure for building on BUILD [BUILD=HOST]
242 --host=HOST configure for HOST [guessed]
243 --target=TARGET configure for TARGET [TARGET=HOST]
244 Features and packages:
245 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
246 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
247 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
248 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
249 --x-includes=DIR X include files are in DIR
250 --x-libraries=DIR X library files are in DIR
252 if test -n "$ac_help"; then
253 echo "--enable and --with options recognized:$ac_help"
257 -host |
--host |
--hos |
--ho)
259 -host=* |
--host=* |
--hos=* |
--ho=*)
262 -includedir |
--includedir |
--includedi |
--included |
--include \
263 |
--includ |
--inclu |
--incl |
--inc)
264 ac_prev
=includedir
;;
265 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
266 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
267 includedir
="$ac_optarg" ;;
269 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
271 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
272 infodir
="$ac_optarg" ;;
274 -libdir |
--libdir |
--libdi |
--libd)
276 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
277 libdir
="$ac_optarg" ;;
279 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
280 |
--libexe |
--libex |
--libe)
281 ac_prev
=libexecdir
;;
282 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
283 |
--libexe=* |
--libex=* |
--libe=*)
284 libexecdir
="$ac_optarg" ;;
286 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
287 |
--localstate |
--localstat |
--localsta |
--localst \
288 |
--locals |
--local |
--loca |
--loc |
--lo)
289 ac_prev
=localstatedir
;;
290 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
291 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
292 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
293 localstatedir
="$ac_optarg" ;;
295 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
297 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
298 mandir
="$ac_optarg" ;;
301 # Obsolete; use --without-fp.
304 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
308 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
309 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
312 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
313 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
314 |
--oldin |
--oldi |
--old |
--ol |
--o)
315 ac_prev
=oldincludedir
;;
316 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
317 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
318 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
319 oldincludedir
="$ac_optarg" ;;
321 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
323 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
324 prefix
="$ac_optarg" ;;
326 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
327 |
--program-pre |
--program-pr |
--program-p)
328 ac_prev
=program_prefix
;;
329 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
330 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
331 program_prefix
="$ac_optarg" ;;
333 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
334 |
--program-suf |
--program-su |
--program-s)
335 ac_prev
=program_suffix
;;
336 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
337 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
338 program_suffix
="$ac_optarg" ;;
340 -program-transform-name |
--program-transform-name \
341 |
--program-transform-nam |
--program-transform-na \
342 |
--program-transform-n |
--program-transform- \
343 |
--program-transform |
--program-transfor \
344 |
--program-transfo |
--program-transf \
345 |
--program-trans |
--program-tran \
346 |
--progr-tra |
--program-tr |
--program-t)
347 ac_prev
=program_transform_name
;;
348 -program-transform-name=* |
--program-transform-name=* \
349 |
--program-transform-nam=* |
--program-transform-na=* \
350 |
--program-transform-n=* |
--program-transform-=* \
351 |
--program-transform=* |
--program-transfor=* \
352 |
--program-transfo=* |
--program-transf=* \
353 |
--program-trans=* |
--program-tran=* \
354 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
355 program_transform_name
="$ac_optarg" ;;
357 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
358 |
-silent |
--silent |
--silen |
--sile |
--sil)
361 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
363 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
365 sbindir
="$ac_optarg" ;;
367 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
368 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
369 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
371 ac_prev
=sharedstatedir
;;
372 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
373 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
374 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
376 sharedstatedir
="$ac_optarg" ;;
378 -site |
--site |
--sit)
380 -site=* |
--site=* |
--sit=*)
383 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
385 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
386 srcdir
="$ac_optarg" ;;
388 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
389 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
390 ac_prev
=sysconfdir
;;
391 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
392 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
393 sysconfdir
="$ac_optarg" ;;
395 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
397 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
398 target
="$ac_optarg" ;;
400 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
403 -version |
--version |
--versio |
--versi |
--vers)
404 echo "configure generated by autoconf version 2.13"
408 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
409 # Reject names that are not valid shell variable names.
410 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
411 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
413 ac_package
=`echo $ac_package| sed 's/-/_/g'`
418 eval "with_${ac_package}='$ac_optarg'" ;;
420 -without-* |
--without-*)
421 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
422 # Reject names that are not valid shell variable names.
423 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
424 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
426 ac_package
=`echo $ac_package| sed 's/-/_/g'`
427 eval "with_${ac_package}=no" ;;
430 # Obsolete; use --with-x.
433 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
434 |
--x-incl |
--x-inc |
--x-in |
--x-i)
435 ac_prev
=x_includes
;;
436 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
437 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
438 x_includes
="$ac_optarg" ;;
440 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
441 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
442 ac_prev
=x_libraries
;;
443 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
444 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
445 x_libraries
="$ac_optarg" ;;
447 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
451 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
452 echo "configure: warning: $ac_option: invalid host type" 1>&2
454 if test "x$nonopt" != xNONE
; then
455 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
463 if test -n "$ac_prev"; then
464 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
467 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
469 # File descriptor usage:
472 # 2 errors and warnings
473 # 3 some systems may open it to /dev/tty
474 # 4 used on the Kubota Titan
475 # 6 checking for... messages and results
476 # 5 compiler messages saved in config.log
477 if test "$silent" = yes; then
485 This file contains any messages produced by compilers while
486 running configure, to aid debugging if configure makes a mistake.
489 # Strip out --no-create and --no-recursion so they do not pile up.
490 # Also quote any args containing shell metacharacters.
495 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
496 |
--no-cr |
--no-c) ;;
497 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
498 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
499 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
500 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
501 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
506 # Only set these to C if already set. These must not be set unconditionally
507 # because not all systems understand e.g. LANG=C (notably SCO).
508 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
509 # Non-C LC_CTYPE values break the ctype check.
510 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
511 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
512 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
513 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
515 # confdefs.h avoids OS command line length limits that DEFS can exceed.
516 rm -rf conftest
* confdefs.h
517 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
520 # A filename unique to this package, relative to the directory that
521 # configure is in, which we can look for to find out if srcdir is correct.
522 ac_unique_file
=include
/features.h
524 # Find the source files, if location was not specified.
525 if test -z "$srcdir"; then
526 ac_srcdir_defaulted
=yes
527 # Try the directory containing this script, then its parent.
529 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
530 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
532 if test ! -r $srcdir/$ac_unique_file; then
536 ac_srcdir_defaulted
=no
538 if test ! -r $srcdir/$ac_unique_file; then
539 if test "$ac_srcdir_defaulted" = yes; then
540 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
542 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
545 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
547 # Prefer explicitly selected file to automatically selected ones.
548 if test -z "$CONFIG_SITE"; then
549 if test "x$prefix" != xNONE
; then
550 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
552 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
555 for ac_site_file
in $CONFIG_SITE; do
556 if test -r "$ac_site_file"; then
557 echo "loading site script $ac_site_file"
562 if test -r "$cache_file"; then
563 echo "loading cache $cache_file"
566 echo "creating cache $cache_file"
571 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
572 ac_cpp
='$CPP $CPPFLAGS'
573 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
574 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
575 cross_compiling
=$ac_cv_prog_cc_cross
579 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
580 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
588 ac_n
= ac_c
='\c' ac_t
=
591 if test -r /vmunix
; then
592 kernel_id
=`strings /vmunix | grep UNIX`
593 elif test -r /dynix
; then
594 kernel_id
=`strings /dynix | grep DYNIX`
602 for ac_dir
in scripts
$srcdir/scripts
; do
603 if test -f $ac_dir/install-sh
; then
605 ac_install_sh
="$ac_aux_dir/install-sh -c"
607 elif test -f $ac_dir/install.sh
; then
609 ac_install_sh
="$ac_aux_dir/install.sh -c"
613 if test -z "$ac_aux_dir"; then
614 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
616 ac_config_guess
=$ac_aux_dir/config.guess
617 ac_config_sub
=$ac_aux_dir/config.sub
618 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
621 # This will get text that should go into config.make.
624 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
625 # Check whether --with-gmp or --without-gmp was given.
626 if test "${with_gmp+set}" = set; then
629 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
631 *) config_vars
="$config_vars
632 gmp-srcdir = $withval" ;;
637 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
638 # Check whether --with-gd or --without-gd was given.
639 if test "${with_gd+set}" = set; then
643 *) libgd_include
="-I$withval/include"
644 libgd_ldflags
="-L$withval/lib" ;;
649 # Check whether --with-gd-include or --without-gd-include was given.
650 if test "${with_gd_include+set}" = set; then
651 withval
="$with_gd_include"
652 case "$with_gd_include" in
654 *) libgd_include
="-I$withval" ;;
659 # Check whether --with-gd-lib or --without-gd-lib was given.
660 if test "${with_gd_lib+set}" = set; then
661 withval
="$with_gd_lib"
662 case "$with_gd_lib" in
664 *) libgd_ldflags
="-L$withval" ;;
670 if test -n "$libgd_include"; then
671 config_vars
="$config_vars
672 CFLAGS-memusagestat.c = $libgd_include"
674 if test -n "$libgd_ldflags"; then
675 config_vars
="$config_vars
676 libgd-LDFLAGS = $libgd_ldflags"
679 # Check whether --with-fp or --without-fp was given.
680 if test "${with_fp+set}" = set; then
688 # Check whether --with-binutils or --without-binutils was given.
689 if test "${with_binutils+set}" = set; then
690 withval
="$with_binutils"
691 path_binutils
=$withval
696 # Check whether --with-elf or --without-elf was given.
697 if test "${with_elf+set}" = set; then
704 # Check whether --with-xcoff or --without-xcoff was given.
705 if test "${with_xcoff+set}" = set; then
706 withval
="$with_xcoff"
712 # Check whether --with-cvs or --without-cvs was given.
713 if test "${with_cvs+set}" = set; then
720 if test "$with_cvs" = yes; then
721 if test -d $srcdir/CVS
&& grep :pserver
: $srcdir/CVS
/Root
> /dev
/null
728 # Check whether --with-headers or --without-headers was given.
729 if test "${with_headers+set}" = set; then
730 withval
="$with_headers"
737 # Check whether --enable-libio or --disable-libio was given.
738 if test "${enable_libio+set}" = set; then
739 enableval
="$enable_libio"
740 if test $enableval = yes; then
750 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
751 if test "${enable_sanity_checks+set}" = set; then
752 enableval
="$enable_sanity_checks"
753 enable_sanity
=$enableval
760 # Check whether --enable-shared or --disable-shared was given.
761 if test "${enable_shared+set}" = set; then
762 enableval
="$enable_shared"
768 # Check whether --enable-profile or --disable-profile was given.
769 if test "${enable_profile+set}" = set; then
770 enableval
="$enable_profile"
776 # Check whether --enable-omitfp or --disable-omitfp was given.
777 if test "${enable_omitfp+set}" = set; then
778 enableval
="$enable_omitfp"
784 # Check whether --enable-bounded or --disable-bounded was given.
785 if test "${enable_bounded+set}" = set; then
786 enableval
="$enable_bounded"
792 # Check whether --enable-versioning or --disable-versioning was given.
793 if test "${enable_versioning+set}" = set; then
794 enableval
="$enable_versioning"
795 enable_versioning
=$enableval
797 enable_versioning
=yes
801 # Check whether --enable-oldest-abi or --disable-oldest-abi was given.
802 if test "${enable_oldest_abi+set}" = set; then
803 enableval
="$enable_oldest_abi"
804 oldest_abi
=$enableval
809 if test "$oldest_abi" = yes ||
test "$oldest_abi" = no
; then
812 cat >> confdefs.h
<<EOF
813 #define GLIBC_OLDEST_ABI "$oldest_abi"
819 # Check whether --enable-add-ons or --disable-add-ons was given.
820 if test "${enable_add_ons+set}" = set; then
821 enableval
="$enable_add_ons"
823 yes) add_ons
=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
824 test "$add_ons" = "*" && add_ons
= ;;
825 *) add_ons
=`echo "$enableval" | sed 's/,/ /g'`;;
832 # Check whether --with-tls or --without-tls was given.
833 if test "${with_tls+set}" = set; then
844 if test x
"$add_ons" != x
; then
845 for f
in $add_ons; do
847 if test "$f" = "crypt"; then
848 { echo "configure: error:
849 *** It seems that you're using an old \`crypt' add-on. crypt is now
850 *** part of glibc and using the old add-on will not work with this
851 *** release. Start again with fresh sources and without the old
852 *** \`crypt' add-on." 1>&2; exit 1; }
854 if test "$f" = "localedata"; then
855 { echo "configure: error:
856 *** It seems that you're using an old \`localedata' add-on. localedata
857 *** is now part of glibc and using the old add-on will not work with
858 *** this release. Start again with fresh sources and without the old
859 *** \`localedata' add-on." 1>&2; exit 1; }
861 # Test whether such a subdir really exists.
862 if test -d $srcdir/$f; then
863 add_ons_pfx
="$add_ons_pfx $f/"
865 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
870 # Check whether --enable-static-nss or --disable-static-nss was given.
871 if test "${enable_static_nss+set}" = set; then
872 enableval
="$enable_static_nss"
873 static_nss
=$enableval
878 if test x
"$static_nss" = xyes
; then
879 cat >> confdefs.h
<<\EOF
880 #define DO_STATIC_NSS 1
885 # Check whether --enable-force-install or --disable-force-install was given.
886 if test "${enable_force_install+set}" = set; then
887 enableval
="$enable_force_install"
888 force_install
=$enableval
895 # Check whether --enable-kernel or --disable-kernel was given.
896 if test "${enable_kernel+set}" = set; then
897 enableval
="$enable_kernel"
898 minimum_kernel
=$enableval
901 if test "$minimum_kernel" = yes ||
test "$minimum_kernel" = no
; then
902 # Better nothing than this.
905 if test "$minimum_kernel" = current
; then
906 minimum_kernel
=`uname -r 2>/dev/null` || minimum_kernel
=
910 # Check whether --enable-all-warnings or --disable-all-warnings was given.
911 if test "${enable_all_warnings+set}" = set; then
912 enableval
="$enable_all_warnings"
913 all_warnings
=$enableval
919 # Make sure we can run config.sub.
920 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
921 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
924 echo $ac_n "checking host system type""... $ac_c" 1>&6
925 echo "configure:926: checking host system type" >&5
928 case "$host_alias" in
932 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
933 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
935 *) host_alias
=$nonopt ;;
939 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
940 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
941 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
942 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
943 echo "$ac_t""$host" 1>&6
946 # The way shlib-versions is used to generate soversions.mk uses a
947 # fairly simplistic model for name recognition that can't distinguish
948 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
949 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
950 # tell. This doesn't get used much beyond that, so it's fairly safe.
955 host_os
=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
959 # We keep the original values in `$config_*' and never modify them, so we
960 # can write them unchanged into config.make. Everything else uses
961 # $machine, $vendor, and $os, and changes them whenever convenient.
962 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
964 # Don't allow vendor == "unknown"
965 test "$config_vendor" = unknown
&& config_vendor
=
966 config_os
="`echo $config_os | sed 's/^unknown-//'`"
968 # Some configurations imply other options.
970 gnu
* | linux
* | bsd4.4
* | netbsd
* | freebsd
*)
971 # These systems always use GNU tools.
972 gnu_ld
=yes gnu_as
=yes ;;
975 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
976 linux
*ecoff
* | linux
*aout
* | gnu
*aout
* | gnu
*ecoff
*)
978 gnu
* | linux
* | sysv4
* | solaris2
* | irix6
*)
979 # These systems (almost) always use the ELF format.
983 # These systems are always xcoff
989 machine
=$config_machine
990 vendor
=$config_vendor
993 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
995 if test "$machine" = rs6000
; then
1000 ### I put this here to prevent those annoying emails from people who cannot
1001 ### read and try to compile glibc on unsupported platforms. --drepper
1003 ### By using the undocumented --enable-hacker-mode option for configure
1004 ### one can skip this test to make the configuration not fail for unsupported
1007 if test -z "$enable_hacker_mode"; then
1008 case "$machine-$host_os" in
1009 *-linux* |
*-gnu* | arm
*-none* | powerpc-aix4.3.
*)
1012 echo "*** The GNU C library is currently not available for this platform."
1013 echo "*** So far nobody cared to port it and if there is no volunteer it"
1014 echo "*** might never happen. So, if you have interest to see glibc on"
1015 echo "*** this platform visit"
1016 echo "*** http://www.gnu.org/software/libc/porting.html"
1017 echo "*** and join the group of porters"
1023 # Expand the configuration machine name into a subdirectory by architecture
1024 # type and particular chip.
1026 a29k | am29000
) base_machine
=a29k machine
=a29k
;;
1027 alpha
*) base_machine
=alpha machine
=alpha
/$machine ;;
1028 arm
*) base_machine
=arm machine
=arm
/arm32
/$machine ;;
1029 c3
[012]) base_machine
=cx0 machine
=cx
0/c30
;;
1030 c4
[04]) base_machine
=cx0 machine
=cx
0/c40
;;
1031 hppa
*64*) base_machine
=hppa machine
=hppa
/hppa64
;;
1032 hppa
*) base_machine
=hppa machine
=hppa
/hppa1.1
;;
1033 i
[3456]86) base_machine
=i386 machine
=i386
/$machine ;;
1034 ia64
) base_machine
=ia64 machine
=ia64
;;
1035 m680?
0) base_machine
=m68k machine
=m68k
/$machine ;;
1036 m68k
) base_machine
=m68k machine
=m68k
/m68020
;;
1037 m88???
) base_machine
=m88k machine
=m88k
/$machine ;;
1038 m88k
) base_machine
=m88k machine
=m88k
/m88100
;;
1039 mips64
*) base_machine
=mips64 machine
=mips
/mips64
/$machine ;;
1040 mips
*) base_machine
=mips
1041 case "`uname -m`" in
1042 IP22
) machine
=mips
/mips3
;;
1043 *) machine
=mips
/$machine ;;
1045 s390
) base_machine
=s390 machine
=s390
/s390-32
;;
1046 s390x
) base_machine
=s390 machine
=s390
/s390-64
;;
1047 sh3
*) base_machine
=sh machine
=sh
/sh3
;;
1048 sh4
*) base_machine
=sh machine
=sh
/sh4
;;
1050 base_machine
=sparc machine
=sparc
/sparc32
;;
1051 sparcv8 | supersparc | hypersparc
)
1052 base_machine
=sparc machine
=sparc
/sparc32
/sparcv8
;;
1053 sparcv8plus | sparcv8plusa | sparcv9
)
1054 base_machine
=sparc machine
=sparc
/sparc32
/sparcv9
;;
1055 sparcv8plusb | sparcv9b
)
1056 base_machine
=sparc machine
=sparc
/sparc32
/sparcv9b
;;
1057 sparc64 | ultrasparc
)
1058 base_machine
=sparc machine
=sparc
/sparc64
;;
1059 sparc64b | ultrasparc3
)
1060 base_machine
=sparc machine
=sparc
/sparc64
/sparcv9b
;;
1061 thumb
*) base_machine
=thumb machine
=arm
/thumb
/$machine ;;
1065 if test "$base_machine" = "i386"; then
1066 cat >> confdefs.h
<<\EOF
1067 #define USE_REGPARMS 1
1072 # Compute the list of sysdep directories for this configuration.
1073 # This can take a while to compute.
1074 sysdep_dir
=$srcdir/sysdeps
1075 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
1076 echo "configure:1077: checking sysdep dirs" >&5
1077 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1078 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1082 base_os
=mach
/hurd
;;
1083 netbsd
* |
386bsd
* | freebsd
* | bsdi
*)
1084 base_os
=unix
/bsd
/bsd4.4
;;
1085 osf
* | sunos
* | ultrix
* | newsos
* | dynix
* |
*bsd
*)
1087 sysv
* | isc
* | esix
* | sco
* | minix
* | irix4
* | linux
*)
1088 base_os
=unix
/sysv
;;
1090 base_os
=unix
/sysv
/irix
6/$os ;;
1092 base_os
=unix
/sysv
/sysv4
;;
1094 base_os
=unix
/sysv
/hpux
/$os ;;
1096 base_os
=unix
/sysv
/aix
/aix4.3
;;
1098 base_os
=standalone
;;
1103 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1106 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1110 o
=`echo $tail | sed 's/[0-9]*$//'`
1111 if test $o != $tail; then
1114 # For linux-gnu, try linux-gnu, then linux.
1115 o
=`echo $tail | sed 's/-.*$//'`
1116 if test $o != $tail; then
1120 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1123 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1129 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1132 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1134 # Prepend the machine's FPU directory unless --without-fp.
1135 if test "$with_fp" = yes; then
1136 mach
="$mach /$1/fpu"
1143 # Find what sysdep directories exist.
1145 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1146 for d
in $add_ons_pfx ''; do
1147 for b
in $base ''; do
1148 for m0
in $mach ''; do
1149 for v
in /$vendor ''; do
1150 test "$v" = / && continue
1151 for o
in /$ostry ''; do
1152 test "$o" = / && continue
1153 for m
in $mach ''; do
1154 if test "$m0$b$v$o$m"; then
1155 try
="${d}sysdeps$m0$b$v$o$m"
1156 test -n "$enable_debug_configure" &&
1157 echo "$0 DEBUG: try $try" >&2
1158 if test -d $srcdir/$try; then
1159 sysnames
="$sysnames $try"
1160 { test -n "$o" ||
test -n "$b"; } && os_used
=t
1161 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
1172 if test -z "$os_used" && test "$os" != none
; then
1173 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1175 if test -z "$machine_used" && test "$machine" != none
; then
1176 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1179 # We have now validated the configuration.
1182 # If using ELF, look for an `elf' subdirectory of each machine directory.
1183 # We prepend these rather than inserting them whereever the machine appears
1184 # because things specified by the machine's ELF ABI should override
1185 # OS-specific things, and should always be the same for any OS on the
1186 # machine (otherwise what's the point of an ABI?).
1187 if test "$elf" = yes; then
1189 for d
in $add_ons_pfx ''; do
1191 if test -d $srcdir/${d}sysdeps
$m/elf
; then
1192 elf_dirs
="$elf_dirs ${d}sysdeps$m/elf"
1196 sysnames
="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1200 # Expand the list of system names into a full list of directories
1201 # from each element's parent name and Implies file (if present).
1204 while test $# -gt 0; do
1208 case " $names " in *" $name "*)
1209 # Already in the list.
1213 # Report each name as we discover it, so there is no long pause in output.
1214 echo $ac_n "$name $ac_c" >&6
1216 name_base
=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1220 *) xsrcdir
=$srcdir/ ;;
1222 test -n "$enable_debug_configure" &&
1223 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1225 if test -f $xsrcdir$name/Implies
; then
1226 # Collect more names from the `Implies' file (removing comments).
1227 implied_candidate
="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1229 for x
in $implied_candidate; do
1231 if test -d $xsrcdir$name_base/$x; then
1232 implied
="$implied $name_base/$x";
1235 for d
in $add_ons_pfx ''; do
1236 try
="${d}sysdeps/$x"
1239 *) try_srcdir
=$srcdir/ ;;
1241 test -n "$enable_debug_configure" &&
1242 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
1243 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
1245 implied
="$implied $try"
1249 if test $found = no
; then
1250 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1257 # Add NAME to the list of names.
1258 names
="$names $name"
1260 # Find the parent of NAME, using the empty string if it has none.
1261 parent
="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1263 # Add the names implied by NAME, and NAME's parent (if it has one), to
1264 # the list of names to be processed (the argument list). We prepend the
1265 # implied names to the list and append the parent. We want implied
1266 # directories to come before further directories inferred from the
1267 # configuration components; this ensures that for sysv4, unix/common
1268 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1270 sysnames
="`echo $implied $* $parent`"
1271 test -n "$sysnames" && set $sysnames
1274 # Add the default directories.
1275 default_sysnames
=sysdeps
/generic
1276 if test "$elf" = yes; then
1277 default_sysnames
="sysdeps/generic/elf $default_sysnames"
1279 sysnames
="$names $default_sysnames"
1281 # The other names were emitted during the scan.
1282 echo "$ac_t""$default_sysnames" 1>&6
1287 # Find a good install program. We prefer a C program (faster),
1288 # so one script is as good as another. But avoid the broken or
1289 # incompatible versions:
1290 # SysV /etc/install, /usr/sbin/install
1291 # SunOS /usr/etc/install
1292 # IRIX /sbin/install
1294 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1295 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1296 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1297 # ./install, which can be erroneously created by make from ./install.sh.
1298 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1299 echo "configure:1300: checking for a BSD compatible install" >&5
1300 if test -z "$INSTALL"; then
1301 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1305 for ac_dir
in $PATH; do
1306 # Account for people who put trailing slashes in PATH elements.
1308 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1310 # OSF1 and SCO ODT 3.0 have their own names for install.
1311 # Don't use installbsd from OSF since it installs stuff as root
1313 for ac_prog
in ginstall scoinst
install; do
1314 if test -f $ac_dir/$ac_prog; then
1315 if test $ac_prog = install &&
1316 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1317 # AIX install. It has an incompatible calling convention.
1320 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1331 if test "${ac_cv_path_install+set}" = set; then
1332 INSTALL
="$ac_cv_path_install"
1334 # As a last resort, use the slow shell script. We don't cache a
1335 # path for INSTALL within a source directory, because that will
1336 # break other packages using the cache if that directory is
1337 # removed, or if the path is relative.
1338 INSTALL
="$ac_install_sh"
1341 echo "$ac_t""$INSTALL" 1>&6
1343 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1344 # It thinks the first close brace ends the variable substitution.
1345 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1347 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1349 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1351 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
1352 # The makefiles need to use a different form to find it in $srcdir.
1353 INSTALL
='\$(..)./scripts/install-sh -c'
1355 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1356 echo "configure:1357: checking whether ln -s works" >&5
1357 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1361 if ln -s X conftestdata
2>/dev
/null
1364 ac_cv_prog_LN_S
="ln -s"
1369 LN_S
="$ac_cv_prog_LN_S"
1370 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1371 echo "$ac_t""yes" 1>&6
1373 echo "$ac_t""no" 1>&6
1377 # We need the physical current working directory. We cannot use the
1378 # "pwd -P" shell builtin since that's not portable. Instead we try to
1379 # find a pwd binary. Note that assigning to the PWD environment
1380 # variable might have some interesting side effects, so we don't do
1382 # Extract the first word of "pwd", so it can be a program name with args.
1383 set dummy
pwd; ac_word
=$2
1384 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1385 echo "configure:1386: checking for $ac_word" >&5
1386 if eval "test \"`echo '$''{'ac_cv_path_PWD_P'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1391 ac_cv_path_PWD_P
="$PWD_P" # Let the user override the test with a path.
1394 ac_cv_path_PWD_P
="$PWD_P" # Let the user override the test with a dos path.
1397 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1399 for ac_dir
in $ac_dummy; do
1400 test -z "$ac_dir" && ac_dir
=.
1401 if test -f $ac_dir/$ac_word; then
1402 ac_cv_path_PWD_P
="$ac_dir/$ac_word"
1407 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P
="no"
1411 PWD_P
="$ac_cv_path_PWD_P"
1412 if test -n "$PWD_P"; then
1413 echo "$ac_t""$PWD_P" 1>&6
1415 echo "$ac_t""no" 1>&6
1418 if test "$PWD_P" = no
; then
1419 { echo "configure: error: *** A pwd binary could not be found." 1>&2; exit 1; }
1422 # These programs are version sensitive.
1423 echo $ac_n "checking build system type""... $ac_c" 1>&6
1424 echo "configure:1425: checking build system type" >&5
1427 case "$build_alias" in
1430 NONE
) build_alias
=$host_alias ;;
1431 *) build_alias
=$nonopt ;;
1435 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1436 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1437 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1438 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1439 echo "$ac_t""$build" 1>&6
1441 if test $host != $build; then
1442 ac_tool_prefix
=${host_alias}-
1447 for ac_prog
in ${ac_tool_prefix}gcc
${ac_tool_prefix}cc
1449 # Extract the first word of "$ac_prog", so it can be a program name with args.
1450 set dummy
$ac_prog; ac_word
=$2
1451 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1452 echo "configure:1453: checking for $ac_word" >&5
1453 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1456 if test -n "$CC"; then
1457 ac_cv_prog_CC
="$CC" # Let the user override the test.
1459 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1461 for ac_dir
in $ac_dummy; do
1462 test -z "$ac_dir" && ac_dir
=.
1463 if test -f $ac_dir/$ac_word; then
1464 ac_cv_prog_CC
="$ac_prog"
1472 if test -n "$CC"; then
1473 echo "$ac_t""$CC" 1>&6
1475 echo "$ac_t""no" 1>&6
1478 test -n "$CC" && break
1481 if test -z "$CC"; then
1484 # Found it, now check the version.
1485 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1486 echo "configure:1487: checking version of $CC" >&5
1487 ac_prog_version
=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
1488 case $ac_prog_version in
1489 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1490 *gcc-2.9
[5-9].
*|
*2.8.
[1-9]*|
*2.9|
*2.9.
[0-9]*|
2.9[5-9]*|
3.
[0-9]*|cygnus-2.9
[1-9]*|gcc-2.9
[5-9]|gcc-2.1
[0-9][0-9]|sgicc-
*)
1491 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1492 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1495 echo "$ac_t""$ac_prog_version" 1>&6
1497 if test $ac_verc_fail = yes; then
1501 for ac_prog
in gnumake gmake
make
1503 # Extract the first word of "$ac_prog", so it can be a program name with args.
1504 set dummy
$ac_prog; ac_word
=$2
1505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1506 echo "configure:1507: checking for $ac_word" >&5
1507 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1510 if test -n "$MAKE"; then
1511 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
1513 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1515 for ac_dir
in $ac_dummy; do
1516 test -z "$ac_dir" && ac_dir
=.
1517 if test -f $ac_dir/$ac_word; then
1518 ac_cv_prog_MAKE
="$ac_prog"
1525 MAKE
="$ac_cv_prog_MAKE"
1526 if test -n "$MAKE"; then
1527 echo "$ac_t""$MAKE" 1>&6
1529 echo "$ac_t""no" 1>&6
1532 test -n "$MAKE" && break
1535 if test -z "$MAKE"; then
1538 # Found it, now check the version.
1539 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1540 echo "configure:1541: checking version of $MAKE" >&5
1541 ac_prog_version
=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
1542 case $ac_prog_version in
1543 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1545 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1546 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1549 echo "$ac_t""$ac_prog_version" 1>&6
1551 if test $ac_verc_fail = yes; then
1552 critic_missing
="$critic_missing make"
1557 if test -n "$critic_missing"; then
1558 { echo "configure: error:
1559 *** These critical programs are missing or too old:$critic_missing
1560 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1564 for ac_prog
in gnumsgfmt gmsgfmt msgfmt
1566 # Extract the first word of "$ac_prog", so it can be a program name with args.
1567 set dummy
$ac_prog; ac_word
=$2
1568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1569 echo "configure:1570: checking for $ac_word" >&5
1570 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1573 if test -n "$MSGFMT"; then
1574 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
1576 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1578 for ac_dir
in $ac_dummy; do
1579 test -z "$ac_dir" && ac_dir
=.
1580 if test -f $ac_dir/$ac_word; then
1581 ac_cv_prog_MSGFMT
="$ac_prog"
1588 MSGFMT
="$ac_cv_prog_MSGFMT"
1589 if test -n "$MSGFMT"; then
1590 echo "$ac_t""$MSGFMT" 1>&6
1592 echo "$ac_t""no" 1>&6
1595 test -n "$MSGFMT" && break
1598 if test -z "$MSGFMT"; then
1601 # Found it, now check the version.
1602 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1603 echo "configure:1604: checking version of $MSGFMT" >&5
1604 ac_prog_version
=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1605 case $ac_prog_version in
1606 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1607 0.10.3[6-9]* |
0.10.
[4-9][0-9]* |
0.1[1-9]* |
0.
[2-9][0-9]* |
[1-9].
*)
1608 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1609 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1612 echo "$ac_t""$ac_prog_version" 1>&6
1614 if test $ac_verc_fail = yes; then
1615 MSGFMT
=: aux_missing
="$aux_missing msgfmt"
1618 for ac_prog
in makeinfo
1620 # Extract the first word of "$ac_prog", so it can be a program name with args.
1621 set dummy
$ac_prog; ac_word
=$2
1622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1623 echo "configure:1624: checking for $ac_word" >&5
1624 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1627 if test -n "$MAKEINFO"; then
1628 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
1630 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1632 for ac_dir
in $ac_dummy; do
1633 test -z "$ac_dir" && ac_dir
=.
1634 if test -f $ac_dir/$ac_word; then
1635 ac_cv_prog_MAKEINFO
="$ac_prog"
1642 MAKEINFO
="$ac_cv_prog_MAKEINFO"
1643 if test -n "$MAKEINFO"; then
1644 echo "$ac_t""$MAKEINFO" 1>&6
1646 echo "$ac_t""no" 1>&6
1649 test -n "$MAKEINFO" && break
1652 if test -z "$MAKEINFO"; then
1655 # Found it, now check the version.
1656 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1657 echo "configure:1658: checking version of $MAKEINFO" >&5
1658 ac_prog_version
=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
1659 case $ac_prog_version in
1660 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1662 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1663 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1666 echo "$ac_t""$ac_prog_version" 1>&6
1668 if test $ac_verc_fail = yes; then
1669 MAKEINFO
=: aux_missing
="$aux_missing makeinfo"
1674 # Extract the first word of "$ac_prog", so it can be a program name with args.
1675 set dummy
$ac_prog; ac_word
=$2
1676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1677 echo "configure:1678: checking for $ac_word" >&5
1678 if eval "test \"`echo '$''{'ac_cv_prog_SED'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
1681 if test -n "$SED"; then
1682 ac_cv_prog_SED
="$SED" # Let the user override the test.
1684 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1686 for ac_dir
in $ac_dummy; do
1687 test -z "$ac_dir" && ac_dir
=.
1688 if test -f $ac_dir/$ac_word; then
1689 ac_cv_prog_SED
="$ac_prog"
1696 SED
="$ac_cv_prog_SED"
1697 if test -n "$SED"; then
1698 echo "$ac_t""$SED" 1>&6
1700 echo "$ac_t""no" 1>&6
1703 test -n "$SED" && break
1706 if test -z "$SED"; then
1709 # Found it, now check the version.
1710 echo $ac_n "checking version of $SED""... $ac_c" 1>&6
1711 echo "configure:1712: checking version of $SED" >&5
1712 ac_prog_version
=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
1713 case $ac_prog_version in
1714 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1715 3.0[2-9]*|
3.
[1-9]*|
[4-9]*)
1716 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1717 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1720 echo "$ac_t""$ac_prog_version" 1>&6
1722 if test $ac_verc_fail = yes; then
1723 SED
=: aux_missing
="$aux_missing sed"
1728 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1729 echo "configure:1730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1730 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1731 echo $ac_n "(cached) $ac_c" 1>&6
1735 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1736 ac_cpp
='$CPP $CPPFLAGS'
1737 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1738 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1739 cross_compiling
=$ac_cv_prog_cc_cross
1741 cat > conftest.
$ac_ext << EOF
1743 #line 1744 "configure"
1744 #include "confdefs.h"
1748 if { (eval echo configure
:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1749 ac_cv_prog_cc_works
=yes
1750 # If we can't run a trivial program, we are probably using a cross compiler.
1751 if (.
/conftest
; exit) 2>/dev
/null
; then
1752 ac_cv_prog_cc_cross
=no
1754 ac_cv_prog_cc_cross
=yes
1757 echo "configure: failed program was:" >&5
1758 cat conftest.
$ac_ext >&5
1759 ac_cv_prog_cc_works
=no
1763 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1764 ac_cpp
='$CPP $CPPFLAGS'
1765 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1766 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1767 cross_compiling
=$ac_cv_prog_cc_cross
1771 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1772 if test $ac_cv_prog_cc_works = no
; then
1774 ac_cv_prog_cc_cross
=yes
1778 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1779 echo "configure:1780: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1780 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1781 echo $ac_n "(cached) $ac_c" 1>&6
1786 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1788 cross_compiling
=$ac_cv_prog_cc_cross
1790 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1791 echo "configure:1792: checking whether we are using GNU C" >&5
1792 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1795 cat > conftest.c
<<EOF
1800 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1807 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1808 if test $ac_cv_prog_gcc != yes; then
1809 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1812 echo $ac_n "checking build system type""... $ac_c" 1>&6
1813 echo "configure:1814: checking build system type" >&5
1816 case "$build_alias" in
1819 NONE
) build_alias
=$host_alias ;;
1820 *) build_alias
=$nonopt ;;
1824 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1825 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1826 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1827 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1828 echo "$ac_t""$build" 1>&6
1830 if test $host != $build; then
1831 for ac_prog
in gcc cc
1833 # Extract the first word of "$ac_prog", so it can be a program name with args.
1834 set dummy
$ac_prog; ac_word
=$2
1835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1836 echo "configure:1837: checking for $ac_word" >&5
1837 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 if test -n "$BUILD_CC"; then
1841 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
1843 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1845 for ac_dir
in $ac_dummy; do
1846 test -z "$ac_dir" && ac_dir
=.
1847 if test -f $ac_dir/$ac_word; then
1848 ac_cv_prog_BUILD_CC
="$ac_prog"
1855 BUILD_CC
="$ac_cv_prog_BUILD_CC"
1856 if test -n "$BUILD_CC"; then
1857 echo "$ac_t""$BUILD_CC" 1>&6
1859 echo "$ac_t""no" 1>&6
1862 test -n "$BUILD_CC" && break
1867 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1868 echo "configure:1869: checking how to run the C preprocessor" >&5
1869 # On Suns, sometimes $CPP names a directory.
1870 if test -n "$CPP" && test -d "$CPP"; then
1873 if test -z "$CPP"; then
1874 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1877 # This must be in double quotes, not single quotes, because CPP may get
1878 # substituted into the Makefile and "${CC-cc}" will confuse make.
1880 # On the NeXT, cc -E runs the code through the compiler's parser,
1881 # not just through cpp.
1882 cat > conftest.
$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1888 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1889 { (eval echo configure
:1890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1890 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1891 if test -z "$ac_err"; then
1895 echo "configure: failed program was:" >&5
1896 cat conftest.
$ac_ext >&5
1898 CPP
="${CC-cc} -E -traditional-cpp"
1899 cat > conftest.
$ac_ext <<EOF
1900 #line 1901 "configure"
1901 #include "confdefs.h"
1905 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1906 { (eval echo configure
:1907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1907 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1908 if test -z "$ac_err"; then
1912 echo "configure: failed program was:" >&5
1913 cat conftest.
$ac_ext >&5
1915 CPP
="${CC-cc} -nologo -E"
1916 cat > conftest.
$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1922 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1923 { (eval echo configure
:1924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1924 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1925 if test -z "$ac_err"; then
1929 echo "configure: failed program was:" >&5
1930 cat conftest.
$ac_ext >&5
1939 ac_cv_prog_CPP
="$CPP"
1941 CPP
="$ac_cv_prog_CPP"
1943 ac_cv_prog_CPP
="$CPP"
1945 echo "$ac_t""$CPP" 1>&6
1947 # Was a --with-binutils option given?
1948 if test -n "$path_binutils"; then
1949 # Make absolute; ensure a single trailing slash.
1950 path_binutils
=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1951 CC
="$CC -B$path_binutils"
1953 AS
=`$CC -print-prog-name=as`
1954 LD
=`$CC -print-prog-name=ld`
1955 AR
=`$CC -print-prog-name=ar`
1958 # ranlib has to be treated a bit differently since it might not exist at all.
1959 RANLIB
=`$CC -print-prog-name=ranlib`
1960 if test $RANLIB = ranlib
; then
1961 # This extra check has to happen since gcc simply echos the parameter in
1962 # case it cannot find the value in its own directories.
1963 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1964 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1966 echo "configure:1967: checking for $ac_word" >&5
1967 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1968 echo $ac_n "(cached) $ac_c" 1>&6
1970 if test -n "$RANLIB"; then
1971 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1973 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1975 for ac_dir
in $ac_dummy; do
1976 test -z "$ac_dir" && ac_dir
=.
1977 if test -f $ac_dir/$ac_word; then
1978 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1985 RANLIB
="$ac_cv_prog_RANLIB"
1986 if test -n "$RANLIB"; then
1987 echo "$ac_t""$RANLIB" 1>&6
1989 echo "$ac_t""no" 1>&6
1993 if test -z "$ac_cv_prog_RANLIB"; then
1994 if test -n "$ac_tool_prefix"; then
1995 # Extract the first word of "ranlib", so it can be a program name with args.
1996 set dummy ranlib
; ac_word
=$2
1997 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1998 echo "configure:1999: checking for $ac_word" >&5
1999 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2002 if test -n "$RANLIB"; then
2003 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2005 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2007 for ac_dir
in $ac_dummy; do
2008 test -z "$ac_dir" && ac_dir
=.
2009 if test -f $ac_dir/$ac_word; then
2010 ac_cv_prog_RANLIB
="ranlib"
2015 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2018 RANLIB
="$ac_cv_prog_RANLIB"
2019 if test -n "$RANLIB"; then
2020 echo "$ac_t""$RANLIB" 1>&6
2022 echo "$ac_t""no" 1>&6
2033 # Determine whether we are using GNU binutils.
2034 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
2035 echo "configure:2036: checking whether $AS is GNU as" >&5
2036 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2039 # Most GNU programs take a -v and spit out some text including
2040 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
2041 if $AS -o conftest
-v </dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
2042 libc_cv_prog_as_gnu
=yes
2044 libc_cv_prog_as_gnu
=no
2049 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
2051 gnu_as
=$libc_cv_prog_as_gnu
2053 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
2054 echo "configure:2055: checking whether $LD is GNU ld" >&5
2055 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2058 # Most GNU programs take a -v and spit out some text including
2059 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
2060 if $LD -o conftest
-v </dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
2061 libc_cv_prog_ld_gnu
=yes
2063 libc_cv_prog_ld_gnu
=no
2068 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
2069 gnu_ld
=$libc_cv_prog_ld_gnu
2071 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
2072 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
2073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2074 echo "configure:2075: checking for $ac_word" >&5
2075 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2078 if test -n "$MIG"; then
2079 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
2081 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2083 for ac_dir
in $ac_dummy; do
2084 test -z "$ac_dir" && ac_dir
=.
2085 if test -f $ac_dir/$ac_word; then
2086 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
2091 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
2094 MIG
="$ac_cv_prog_MIG"
2095 if test -n "$MIG"; then
2096 echo "$ac_t""$MIG" 1>&6
2098 echo "$ac_t""no" 1>&6
2104 # Accept binutils 2.10.1 or newer (and also any ia64 2.9 version)
2105 # XXX Commented out because it filters out too many good versions.
2107 # AC_CHECK_PROG_VER(AS, $AS, --version,
2108 # [GNU assembler.* \([0-9]*\.[0-9.]*\(-ia64-[0-9]*\)*\)],
2109 # [2.10.[1-9]* | 2.1[1-9]* | 2.9-ia64-*], AS=: critic_missing=t)
2111 test -n "$aux_missing" && echo "configure: warning:
2112 *** These auxiliary programs are missing or too old:$aux_missing
2113 *** some features will be disabled.
2114 *** Check the INSTALL file for required versions." 1>&2
2116 # glibcbug.in wants to know the compiler version.
2117 CCVERSION
=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
2120 # if using special system headers, find out the compiler's sekrit
2121 # header directory and add that to the list. NOTE: Only does the right
2122 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
2123 if test -n "$sysheaders"; then
2124 ccheaders
=`$CC -print-file-name=include`
2125 SYSINCLUDES
="-nostdinc -isystem $ccheaders -isystem $sysheaders"
2129 # check if ranlib is necessary
2130 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
2131 echo "configure:2132: checking whether ranlib is necessary" >&5
2132 if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
2133 echo $ac_n "(cached) $ac_c" 1>&6
2135 cat > conftest.c
<<EOF
2140 $CC $CFLAGS -c conftest.c
2141 $AR cr conftest.a conftest.c
2142 cp conftest.a conftest2.a
2144 if cmp -s conftest.a conftest2.a
; then
2145 libc_cv_ranlib_necessary
=no
2147 libc_cv_ranlib_necessary
=yes
2152 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
2153 if test "$libc_cv_ranlib_necessary" = no
; then
2157 # Test if LD_LIBRARY_PATH contains the notation for the current directory
2158 # since this would lead to problems installing/building glibc.
2159 # LD_LIBRARY_PATH contains the current directory if one of the following
2161 # - one of the terminals (":" and ";") is the first or last sign
2162 # - two terminals occur directly after each other
2163 # - the path contains an element with a dot in it
2164 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
2165 echo "configure:2166: checking LD_LIBRARY_PATH variable" >&5
2166 case ${LD_LIBRARY_PATH} in
2167 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
2168 ld_library_path_setting
="contains current directory"
2171 ld_library_path_setting
="ok"
2174 echo "$ac_t""$ld_library_path_setting" 1>&6
2175 if test "$ld_library_path_setting" != "ok"; then
2176 { echo "configure: error:
2177 *** LD_LIBRARY_PATH shouldn't contain the current directory when
2178 *** building glibc. Please change the environment variable
2179 *** and run configure again." 1>&2; exit 1; }
2182 echo $ac_n "checking whether GCC supports -static-libgcc""... $ac_c" 1>&6
2183 echo "configure:2184: checking whether GCC supports -static-libgcc" >&5
2184 if eval "test \"`echo '$''{'libc_cv_gcc_static_libgcc'+set}'`\" = set"; then
2185 echo $ac_n "(cached) $ac_c" 1>&6
2187 if $CC -v -static-libgcc 2>&1 |
grep -q 'unrecognized option.*static-libgcc'; then
2188 libc_cv_gcc_static_libgcc
=
2190 libc_cv_gcc_static_libgcc
=-static-libgcc
2194 echo "$ac_t""$libc_cv_gcc_static_libgcc" 1>&6
2197 # Extract the first word of "bash", so it can be a program name with args.
2198 set dummy bash
; 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_BASH'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2206 ac_cv_path_BASH
="$BASH" # Let the user override the test with a path.
2209 ac_cv_path_BASH
="$BASH" # 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_BASH
="$ac_dir/$ac_word"
2222 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH
="no"
2226 BASH
="$ac_cv_path_BASH"
2227 if test -n "$BASH"; then
2228 echo "$ac_t""$BASH" 1>&6
2230 echo "$ac_t""no" 1>&6
2233 if test "$BASH" != no
&&
2234 $BASH -c 'test "$BASH_VERSINFO" \
2235 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
2236 libc_cv_have_bash2
=yes
2238 libc_cv_have_bash2
=no
2242 if test "$BASH" = no
; then
2243 # Extract the first word of "ksh", so it can be a program name with args.
2244 set dummy ksh
; ac_word
=$2
2245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2246 echo "configure:2247: checking for $ac_word" >&5
2247 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2252 ac_cv_path_KSH
="$KSH" # Let the user override the test with a path.
2255 ac_cv_path_KSH
="$KSH" # Let the user override the test with a dos path.
2258 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2260 for ac_dir
in $ac_dummy; do
2261 test -z "$ac_dir" && ac_dir
=.
2262 if test -f $ac_dir/$ac_word; then
2263 ac_cv_path_KSH
="$ac_dir/$ac_word"
2268 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH
="no"
2272 KSH
="$ac_cv_path_KSH"
2273 if test -n "$KSH"; then
2274 echo "$ac_t""$KSH" 1>&6
2276 echo "$ac_t""no" 1>&6
2279 if test "$KSH" = no
; then
2282 libc_cv_have_ksh
=yes
2287 libc_cv_have_ksh
=yes
2291 for ac_prog
in gawk mawk nawk
awk
2293 # Extract the first word of "$ac_prog", so it can be a program name with args.
2294 set dummy
$ac_prog; ac_word
=$2
2295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2296 echo "configure:2297: checking for $ac_word" >&5
2297 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2300 if test -n "$AWK"; then
2301 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2303 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2305 for ac_dir
in $ac_dummy; do
2306 test -z "$ac_dir" && ac_dir
=.
2307 if test -f $ac_dir/$ac_word; then
2308 ac_cv_prog_AWK
="$ac_prog"
2315 AWK
="$ac_cv_prog_AWK"
2316 if test -n "$AWK"; then
2317 echo "$ac_t""$AWK" 1>&6
2319 echo "$ac_t""no" 1>&6
2322 test -n "$AWK" && break
2325 # Extract the first word of "perl", so it can be a program name with args.
2326 set dummy perl
; ac_word
=$2
2327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2328 echo "configure:2329: checking for $ac_word" >&5
2329 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2330 echo $ac_n "(cached) $ac_c" 1>&6
2334 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
2337 ac_cv_path_PERL
="$PERL" # Let the user override the test with a dos path.
2340 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2342 for ac_dir
in $ac_dummy; do
2343 test -z "$ac_dir" && ac_dir
=.
2344 if test -f $ac_dir/$ac_word; then
2345 ac_cv_path_PERL
="$ac_dir/$ac_word"
2350 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="no"
2354 PERL
="$ac_cv_path_PERL"
2355 if test -n "$PERL"; then
2356 echo "$ac_t""$PERL" 1>&6
2358 echo "$ac_t""no" 1>&6
2361 if test "$PERL" != no
&&
2362 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
2365 # Extract the first word of "install-info", so it can be a program name with args.
2366 set dummy install-info
; ac_word
=$2
2367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2368 echo "configure:2369: checking for $ac_word" >&5
2369 if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then
2370 echo $ac_n "(cached) $ac_c" 1>&6
2372 case "$INSTALL_INFO" in
2374 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
2377 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a dos path.
2380 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2381 ac_dummy
="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
2382 for ac_dir
in $ac_dummy; do
2383 test -z "$ac_dir" && ac_dir
=.
2384 if test -f $ac_dir/$ac_word; then
2385 ac_cv_path_INSTALL_INFO
="$ac_dir/$ac_word"
2390 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
="no"
2394 INSTALL_INFO
="$ac_cv_path_INSTALL_INFO"
2395 if test -n "$INSTALL_INFO"; then
2396 echo "$ac_t""$INSTALL_INFO" 1>&6
2398 echo "$ac_t""no" 1>&6
2401 if test "$INSTALL_INFO" != "no"; then
2402 echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
2403 echo "configure:2404: checking for old Debian install-info" >&5
2404 if eval "test \"`echo '$''{'libc_cv_old_debian_install_info'+set}'`\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6
2408 # There is a hard ^_ on the next line. I am open to better ideas.
2410 echo 'File: dir Node: Top This is the top of the INFO tree'
2411 echo '* Menu:') >conftest.d
/dir
2412 (echo 'INFO-DIR-SECTION i-d-s works'
2413 echo 'START-INFO-DIR-ENTRY'
2414 echo '* Prog: (prog). Program.'
2415 echo 'END-INFO-DIR-ENTRY') >conftest.d
/prog.info
2416 if $INSTALL_INFO --info-dir=conftest.d conftest.d
/prog.info
>&5 2>&1
2418 if grep -s 'i-d-s works' conftest.d
/dir
>/dev
/null
2419 then libc_cv_old_debian_install_info
=no
2420 else libc_cv_old_debian_install_info
=yes
2422 else libc_cv_old_debian_install_info
=no testfailed
=t
2427 echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2428 if test -n "$testfailed"
2429 then echo "configure: warning: install-info errored out, check config.log" 1>&2
2431 OLD_DEBIAN_INSTALL_INFO
=$libc_cv_old_debian_install_info
2435 # Extract the first word of "bison", so it can be a program name with args.
2436 set dummy bison
; ac_word
=$2
2437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2438 echo "configure:2439: checking for $ac_word" >&5
2439 if eval "test \"`echo '$''{'ac_cv_path_BISON'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2444 ac_cv_path_BISON
="$BISON" # Let the user override the test with a path.
2447 ac_cv_path_BISON
="$BISON" # Let the user override the test with a dos path.
2450 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2451 ac_dummy
="$PATH:/usr/local/bin:/usr/bin:/bin"
2452 for ac_dir
in $ac_dummy; do
2453 test -z "$ac_dir" && ac_dir
=.
2454 if test -f $ac_dir/$ac_word; then
2455 ac_cv_path_BISON
="$ac_dir/$ac_word"
2460 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON
="no"
2464 BISON
="$ac_cv_path_BISON"
2465 if test -n "$BISON"; then
2466 echo "$ac_t""$BISON" 1>&6
2468 echo "$ac_t""no" 1>&6
2472 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2473 echo "configure:2474: checking for signed size_t type" >&5
2474 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2477 echo '#include <stddef.h>
2478 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2479 if eval "$ac_cpp conftest.c 2>/dev/null" \
2480 |
grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev
/null
; then
2481 libc_cv_signed_size_t
=no
2483 libc_cv_signed_size_t
=yes
2488 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2489 if test $libc_cv_signed_size_t = yes; then
2490 cat >> confdefs.h
<<\EOF
2491 #undef __SIZE_TYPE__
2492 #define __SIZE_TYPE__ unsigned
2496 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2497 echo "configure:2498: checking for libc-friendly stddef.h" >&5
2498 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2501 cat > conftest.
$ac_ext <<EOF
2502 #line 2503 "configure"
2503 #include "confdefs.h"
2504 #define __need_size_t
2505 #define __need_wchar_t
2510 size_t size; wchar_t wchar;
2512 #error stddef.h ignored __need_*
2514 if (&size == NULL || &wchar == NULL) abort ();
2517 if { (eval echo configure
:2518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2519 libc_cv_friendly_stddef
=yes
2521 echo "configure: failed program was:" >&5
2522 cat conftest.
$ac_ext >&5
2524 libc_cv_friendly_stddef
=no
2529 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2530 if test $libc_cv_friendly_stddef = yes; then
2531 config_vars
="$config_vars
2532 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2535 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2536 echo "configure:2537: checking whether we need to use -P to assemble .S files" >&5
2537 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2540 cat > conftest.S
<<EOF
2541 #include "confdefs.h"
2542 /* Nothing whatsoever. */
2544 if ${CC-cc} $CFLAGS -c conftest.S
2>/dev
/null
; then
2545 libc_cv_need_minus_P
=no
2547 libc_cv_need_minus_P
=yes
2552 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2553 if test $libc_cv_need_minus_P = yes; then
2554 config_vars
="$config_vars
2555 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2558 echo $ac_n "checking whether .text pseudo-op must be used""... $ac_c" 1>&6
2559 echo "configure:2560: checking whether .text pseudo-op must be used" >&5
2560 if eval "test \"`echo '$''{'libc_cv_dot_text'+set}'`\" = set"; then
2561 echo $ac_n "(cached) $ac_c" 1>&6
2563 cat > conftest.s
<<EOF
2567 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2568 libc_cv_dot_text
=.text
2573 if test -z "$libc_cv_dot_text"; then
2574 echo "$ac_t""no" 1>&6
2576 echo "$ac_t""yes" 1>&6
2579 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2580 echo "configure:2581: checking for assembler global-symbol directive" >&5
2581 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2584 libc_cv_asm_global_directive
=UNKNOWN
2585 for ac_globl
in .globl .global .EXPORT
; do
2586 cat > conftest.s
<<EOF
2591 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2592 libc_cv_asm_global_directive
=${ac_globl}
2595 test $libc_cv_asm_global_directive != UNKNOWN
&& break
2599 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2600 if test $libc_cv_asm_global_directive = UNKNOWN
; then
2601 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2603 cat >> confdefs.h
<<EOF
2604 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2609 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2610 echo "configure:2611: checking for .set assembler directive" >&5
2611 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2614 cat > conftest.s
<<EOF
2617 .set glibc_conftest_frobozz,foo
2618 $libc_cv_asm_global_directive glibc_conftest_frobozz
2620 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2621 # (but it doesn't work), so we must do a linking check to be sure.
2622 cat > conftest1.c
<<\EOF
2623 extern int glibc_conftest_frobozz
;
2624 main
() { printf ("%d\n", glibc_conftest_frobozz
); }
2626 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2627 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
2628 libc_cv_asm_set_directive
=yes
2630 libc_cv_asm_set_directive
=no
2635 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2636 if test $libc_cv_asm_set_directive = yes; then
2637 cat >> confdefs.h
<<\EOF
2638 #define HAVE_ASM_SET_DIRECTIVE 1
2643 # The Aix ld uses global .symbol_names instead of symbol_names.
2646 cat >> confdefs.h
<<\EOF
2647 #define HAVE_ASM_GLOBAL_DOT_NAME 1
2652 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2653 echo "configure:2654: checking for .symver assembler directive" >&5
2654 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2657 cat > conftest.s
<<EOF
2660 .symver _sym,sym@VERS
2662 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s
1>&5 2>&5; then
2663 libc_cv_asm_symver_directive
=yes
2665 libc_cv_asm_symver_directive
=no
2670 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2671 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2672 echo "configure:2673: checking for ld --version-script" >&5
2673 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2676 if test $libc_cv_asm_symver_directive = yes; then
2677 cat > conftest.s
<<EOF
2680 .symver _sym,sym@VERS
2682 cat > conftest.map
<<EOF
2691 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s
1>&5 2>&5; then
2692 if { ac_try
='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2693 -nostartfiles -nostdlib
2694 -Wl,--version-script,conftest.map
2695 1>&5'; { (eval echo configure
:2696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2697 libc_cv_ld_version_script_option
=yes
2699 libc_cv_ld_version_script_option
=no
2702 libc_cv_ld_version_script_option
=no
2705 libc_cv_ld_version_script_option
=no
2710 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2711 if test $shared != no
&&
2712 test $libc_cv_asm_symver_directive = yes &&
2713 test $libc_cv_ld_version_script_option = yes &&
2714 test $enable_versioning = yes; then
2716 cat >> confdefs.h
<<\EOF
2717 #define DO_VERSIONING 1
2725 if test $elf = yes && test $shared != no
&& test $VERSIONING = no
; then
2727 *** WARNING: You should not compile GNU libc without versioning. Not using
2728 *** versioning will introduce incompatibilities so that old binaries
2729 *** will not run anymore.
2730 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2732 if test $elf = yes; then
2733 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2734 echo "configure:2735: checking for .previous assembler directive" >&5
2735 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2736 echo $ac_n "(cached) $ac_c" 1>&6
2738 cat > conftest.s
<<EOF
2739 .section foo_section
2742 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2743 libc_cv_asm_previous_directive
=yes
2745 libc_cv_asm_previous_directive
=no
2750 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2751 if test $libc_cv_asm_previous_directive = yes; then
2752 cat >> confdefs.h
<<\EOF
2753 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2757 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2758 echo "configure:2759: checking for .popsection assembler directive" >&5
2759 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2760 echo $ac_n "(cached) $ac_c" 1>&6
2762 cat > conftest.s
<<EOF
2763 .pushsection foo_section
2766 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2767 libc_cv_asm_popsection_directive
=yes
2769 libc_cv_asm_popsection_directive
=no
2774 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2775 if test $libc_cv_asm_popsection_directive = yes; then
2776 cat >> confdefs.h
<<\EOF
2777 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2782 echo $ac_n "checking for .protected and .hidden assembler directive""... $ac_c" 1>&6
2783 echo "configure:2784: checking for .protected and .hidden assembler directive" >&5
2784 if eval "test \"`echo '$''{'libc_cv_asm_protected_directive'+set}'`\" = set"; then
2785 echo $ac_n "(cached) $ac_c" 1>&6
2787 cat > conftest.s
<<EOF
2793 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2794 libc_cv_asm_protected_directive
=yes
2796 libc_cv_asm_protected_directive
=no
2801 echo "$ac_t""$libc_cv_asm_protected_directive" 1>&6
2803 cat >> confdefs.h
<<\EOF
2804 #define HAVE_PROTECTED 1
2808 echo $ac_n "checking for -z nodelete option""... $ac_c" 1>&6
2809 echo "configure:2810: checking for -z nodelete option" >&5
2810 if eval "test \"`echo '$''{'libc_cv_z_nodelete'+set}'`\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2813 cat > conftest.c
<<EOF
2814 int _start (void) { return 42; }
2816 if { ac_try
='${CC-cc} -shared -o conftest.so conftest.c
2817 -nostartfiles -nostdlib
2818 -Wl,--enable-new-dtags,-z,nodelete 1>&5'; { (eval echo configure
:2819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2820 libc_cv_z_nodelete
=yes
2822 libc_cv_z_nodelete
=no
2827 echo "$ac_t""$libc_cv_z_nodelete" 1>&6
2830 echo $ac_n "checking for -z nodlopen option""... $ac_c" 1>&6
2831 echo "configure:2832: checking for -z nodlopen option" >&5
2832 if eval "test \"`echo '$''{'libc_cv_z_nodlopen'+set}'`\" = set"; then
2833 echo $ac_n "(cached) $ac_c" 1>&6
2835 cat > conftest.c
<<EOF
2836 int _start (void) { return 42; }
2838 if { ac_try
='${CC-cc} -shared -o conftest.so conftest.c
2839 -nostartfiles -nostdlib
2840 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'; { (eval echo configure
:2841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2842 libc_cv_z_nodlopen
=yes
2844 libc_cv_z_nodlopen
=no
2849 echo "$ac_t""$libc_cv_z_nodlopen" 1>&6
2852 echo $ac_n "checking for -z initfirst option""... $ac_c" 1>&6
2853 echo "configure:2854: checking for -z initfirst option" >&5
2854 if eval "test \"`echo '$''{'libc_cv_z_initfirst'+set}'`\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2857 cat > conftest.c
<<EOF
2858 int _start (void) { return 42; }
2860 if { ac_try
='${CC-cc} -shared -o conftest.so conftest.c
2861 -nostartfiles -nostdlib
2862 -Wl,--enable-new-dtags,-z,initfirst 1>&5'; { (eval echo configure
:2863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2864 libc_cv_z_initfirst
=yes
2866 libc_cv_z_initfirst
=no
2871 echo "$ac_t""$libc_cv_z_initfirst" 1>&6
2874 echo $ac_n "checking for -Bgroup option""... $ac_c" 1>&6
2875 echo "configure:2876: checking for -Bgroup option" >&5
2876 if eval "test \"`echo '$''{'libc_cv_Bgroup'+set}'`\" = set"; then
2877 echo $ac_n "(cached) $ac_c" 1>&6
2879 cat > conftest.c
<<EOF
2880 int _start (void) { return 42; }
2882 if { ac_try
='${CC-cc} -shared -o conftest.so conftest.c -Wl,-Bgroup -nostdlib 1>&5'; { (eval echo configure
:2883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2891 echo "$ac_t""$libc_cv_Bgroup" 1>&6
2894 echo $ac_n "checking for -z combreloc""... $ac_c" 1>&6
2895 echo "configure:2896: checking for -z combreloc" >&5
2896 if eval "test \"`echo '$''{'libc_cv_z_combreloc'+set}'`\" = set"; then
2897 echo $ac_n "(cached) $ac_c" 1>&6
2899 cat > conftest.c
<<EOF
2900 extern int bar (int);
2902 int foo (void) { return bar (mumble); }
2904 if { ac_try
='${CC-cc} -shared -o conftest.so conftest.c
2905 -nostdlib -nostartfiles
2906 -Wl,-z,combreloc 1>&5'; { (eval echo configure
:2907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2908 if readelf
-S conftest.so |
grep '\.rel\(a\|\)\.dyn' > /dev
/null
; then
2909 libc_cv_z_combreloc
=yes
2911 libc_cv_z_combreloc
=no
2914 libc_cv_z_combreloc
=no
2919 echo "$ac_t""$libc_cv_z_combreloc" 1>&6
2920 if test "$libc_cv_z_combreloc" = yes; then
2921 cat >> confdefs.h
<<\EOF
2922 #define HAVE_Z_COMBRELOC 1
2929 if test $elf != yes; then
2930 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2931 echo "configure:2932: checking for .init and .fini sections" >&5
2932 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2933 echo $ac_n "(cached) $ac_c" 1>&6
2935 cat > conftest.
$ac_ext <<EOF
2936 #line 2937 "configure"
2937 #include "confdefs.h"
2940 asm (".section .init");
2941 asm (".section .fini");
2942 asm ("${libc_cv_dot_text}");
2945 if { (eval echo configure
:2946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2947 libc_cv_have_initfini
=yes
2949 echo "configure: failed program was:" >&5
2950 cat conftest.
$ac_ext >&5
2952 libc_cv_have_initfini
=no
2957 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2958 if test $libc_cv_have_initfini = yes; then
2959 cat >> confdefs.h
<<\EOF
2960 #define HAVE_INITFINI 1
2966 if test $elf = yes -a $gnu_ld = yes; then
2967 echo $ac_n "checking whether cc puts quotes around section names""... $ac_c" 1>&6
2968 echo "configure:2969: checking whether cc puts quotes around section names" >&5
2969 if eval "test \"`echo '$''{'libc_cv_have_section_quotes'+set}'`\" = set"; then
2970 echo $ac_n "(cached) $ac_c" 1>&6
2972 cat > conftest.c
<<EOF
2973 static const int foo
2974 __attribute__ ((section ("bar"))) = 1;
2976 if ${CC-cc} -S conftest.c
-o conftest.s
; then
2977 if grep '\.section.*"bar"' conftest.s
>/dev
/null
; then
2978 libc_cv_have_section_quotes
=yes
2980 libc_cv_have_section_quotes
=no
2983 libc_cv_have_section_quotes
=unknown
2989 echo "$ac_t""$libc_cv_have_section_quotes" 1>&6
2990 if test $libc_cv_have_section_quotes = yes; then
2991 cat >> confdefs.h
<<\EOF
2992 #define HAVE_SECTION_QUOTES 1
3000 if test $elf = yes; then
3001 libc_cv_asm_underscores
=no
3003 if test $ac_cv_prog_cc_works = yes; then
3004 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
3005 echo "configure:3006: checking for _ prefix on C symbol names" >&5
3006 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3009 cat > conftest.
$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3012 asm ("_glibc_foobar:");
3017 if { (eval echo configure
:3018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3019 libc_cv_asm_underscores
=yes
3021 echo "configure: failed program was:" >&5
3022 cat conftest.
$ac_ext >&5
3024 libc_cv_asm_underscores
=no
3029 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
3031 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
3032 echo "configure:3033: checking for _ prefix on C symbol names" >&5
3033 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
3034 echo $ac_n "(cached) $ac_c" 1>&6
3036 cat > conftest.
$ac_ext <<EOF
3037 #line 3038 "configure"
3038 #include "confdefs.h"
3039 void underscore_test(void) {
3042 if { (eval echo configure
:3043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3043 if grep _underscore_test conftest
* >/dev
/null
; then
3045 libc_cv_asm_underscores
=yes
3048 libc_cv_asm_underscores
=no
3051 echo "configure: failed program was:" >&5
3052 cat conftest.
$ac_ext >&5
3054 libc_cv_asm_underscores
=no
3059 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
3062 if test $libc_cv_asm_underscores = no
; then
3063 cat >> confdefs.h
<<\EOF
3064 #define NO_UNDERSCORES 1
3069 if test $elf = yes; then
3070 libc_cv_weak_symbols
=yes
3073 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
3074 echo "configure:3075: checking for assembler .weak directive" >&5
3075 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
3076 echo $ac_n "(cached) $ac_c" 1>&6
3078 cat > conftest.s
<<EOF
3080 ${libc_cv_asm_global_directive} foo
3083 .weak bar; bar = foo
3085 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
3086 libc_cv_asm_weak_directive
=yes
3088 libc_cv_asm_weak_directive
=no
3093 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
3095 if test $libc_cv_asm_weak_directive = no
; then
3096 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
3097 echo "configure:3098: checking for assembler .weakext directive" >&5
3098 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
3099 echo $ac_n "(cached) $ac_c" 1>&6
3101 cat > conftest.s
<<EOF
3103 ${libc_cv_asm_global_directive} foo
3107 ${libc_cv_asm_global_directive} baz
3110 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
3111 libc_cv_asm_weakext_directive
=yes
3113 libc_cv_asm_weakext_directive
=no
3118 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
3122 if test $libc_cv_asm_weak_directive = yes; then
3123 cat >> confdefs.h
<<\EOF
3124 #define HAVE_ASM_WEAK_DIRECTIVE 1
3127 elif test $libc_cv_asm_weakext_directive = yes; then
3128 cat >> confdefs.h
<<\EOF
3129 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
3134 case "${host_cpu}-${host_os}" in
3136 libc_cv_asm_line_sep
='@'
3137 cat >> confdefs.h
<<EOF
3138 #define ASM_LINE_SEP $libc_cv_asm_line_sep
3143 echo $ac_n "checking for assembler line separator""... $ac_c" 1>&6
3144 echo "configure:3145: checking for assembler line separator" >&5
3145 if eval "test \"`echo '$''{'libc_cv_asm_line_sep'+set}'`\" = set"; then
3146 echo $ac_n "(cached) $ac_c" 1>&6
3148 cat > conftest.s
<<EOF
3151 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:3152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3152 libc_cv_asm_line_sep
='!'
3154 if test -z "$enable_hacker_mode"; then
3155 echo "*** You need a newer assembler to compile glibc"
3159 libc_cv_asm_line_sep
=';'
3164 echo "$ac_t""$libc_cv_asm_line_sep" 1>&6
3165 cat >> confdefs.h
<<EOF
3166 #define ASM_LINE_SEP $libc_cv_asm_line_sep
3172 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
3173 echo "configure:3174: checking for ld --no-whole-archive" >&5
3174 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
3175 echo $ac_n "(cached) $ac_c" 1>&6
3177 cat > conftest.c
<<\EOF
3182 if { ac_try
='${CC-cc} $CFLAGS
3183 -nostdlib -nostartfiles -Wl,--no-whole-archive
3184 -o conftest conftest.c 1>&5'; { (eval echo configure
:3185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3185 libc_cv_ld_no_whole_archive
=yes
3187 libc_cv_ld_no_whole_archive
=no
3192 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
3193 if test $libc_cv_ld_no_whole_archive = yes; then
3194 no_whole_archive
=-Wl,--no-whole-archive
3197 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
3198 echo "configure:3199: checking for gcc -fexceptions" >&5
3199 if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
3200 echo $ac_n "(cached) $ac_c" 1>&6
3202 cat > conftest.c
<<\EOF
3207 if { ac_try
='${CC-cc} $CFLAGS
3208 -nostdlib -nostartfiles -fexceptions
3209 -o conftest conftest.c 1>&5'; { (eval echo configure
:3210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3210 libc_cv_gcc_exceptions
=yes
3212 libc_cv_gcc_exceptions
=no
3217 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
3218 if test $libc_cv_gcc_exceptions = yes; then
3219 exceptions
=-fexceptions
3222 if test "$base_machine" = alpha
; then
3223 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
3224 echo "configure:3225: checking for function ..ng prefix" >&5
3225 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
3226 echo $ac_n "(cached) $ac_c" 1>&6
3228 cat > conftest.c
<<\EOF
3231 if { ac_try
='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure
:3232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
3233 libc_cv_gcc_alpha_ng_prefix
=yes
3235 libc_cv_gcc_alpha_ng_prefix
=no
3240 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
3241 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
3242 cat >> confdefs.h
<<\EOF
3243 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
3247 cat >> confdefs.h
<<\EOF
3248 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
3254 if test "$host_cpu" = powerpc
; then
3255 # Check for a bug present in at least versions 2.8.x of GCC
3256 # and versions 1.0.x of EGCS.
3257 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
3258 echo "configure:3259: checking whether clobbering cr0 causes problems" >&5
3259 if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
3260 echo $ac_n "(cached) $ac_c" 1>&6
3262 cat > conftest.
$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3265 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
3270 if { (eval echo configure
:3271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3272 libc_cv_c_asmcr0_bug
='no'
3274 echo "configure: failed program was:" >&5
3275 cat conftest.
$ac_ext >&5
3277 libc_cv_c_asmcr0_bug
='yes'
3282 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
3283 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
3284 cat >> confdefs.h
<<\EOF
3285 #define BROKEN_PPC_ASM_CR0 1
3291 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
3292 echo "configure:3293: checking for DWARF2 unwind info support" >&5
3293 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3296 cat > conftest.c
<<EOF
3297 #line 3298 "configure"
3298 static char __EH_FRAME_BEGIN__;
3301 #ifdef CHECK__register_frame
3302 __register_frame (__EH_FRAME_BEGIN__);
3303 __deregister_frame (__EH_FRAME_BEGIN__);
3305 #ifdef CHECK__register_frame_info
3306 __register_frame_info (__EH_FRAME_BEGIN__);
3307 __deregister_frame_info (__EH_FRAME_BEGIN__);
3312 /* FIXME: this is fragile. */
3322 if { ac_try
='${CC-cc} $CFLAGS -DCHECK__register_frame_info
3323 -nostdlib -nostartfiles
3324 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:3325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3325 libc_cv_gcc_dwarf2_unwind_info
=static
3327 libc_cv_gcc_dwarf2_unwind_info
=no
3329 if test $libc_cv_gcc_dwarf2_unwind_info = no
; then
3330 if { ac_try
='${CC-cc} $CFLAGS -DCHECK__register_frame
3331 -nostdlib -nostartfiles
3332 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:3333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3333 libc_cv_gcc_dwarf2_unwind_info
=yes
3335 libc_cv_gcc_dwarf2_unwind_info
=no
3341 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
3342 case $libc_cv_gcc_dwarf2_unwind_info in
3344 cat >> confdefs.h
<<\EOF
3345 #define HAVE_DWARF2_UNWIND_INFO 1
3350 cat >> confdefs.h
<<\EOF
3351 #define HAVE_DWARF2_UNWIND_INFO 1
3354 cat >> confdefs.h
<<\EOF
3355 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
3361 echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
3362 echo "configure:3363: checking for __builtin_expect" >&5
3363 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_expect'+set}'`\" = set"; then
3364 echo $ac_n "(cached) $ac_c" 1>&6
3366 cat > conftest.c
<<EOF
3367 #line 3368 "configure"
3370 a = __builtin_expect (a, 10);
3371 return a == 10 ? 0 : 1;
3374 if { ac_try
='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3375 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:3376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3376 libc_cv_gcc_builtin_expect
=yes
3378 libc_cv_gcc_builtin_expect
=no
3383 echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
3384 if test "$libc_cv_gcc_builtin_expect" = yes; then
3385 cat >> confdefs.h
<<\EOF
3386 #define HAVE_BUILTIN_EXPECT 1
3391 echo $ac_n "checking for __builtin_memset""... $ac_c" 1>&6
3392 echo "configure:3393: checking for __builtin_memset" >&5
3393 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_memset'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3396 cat > conftest.c
<<\EOF
3399 __builtin_memset
(x
, 0, 1000);
3402 if { ac_try
='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'; { (eval echo configure
:3403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
3404 libc_cv_gcc_builtin_memset
=no
3406 libc_cv_gcc_builtin_memset
=yes
3411 echo "$ac_t""$libc_cv_gcc_builtin_memset" 1>&6
3412 if test "$libc_cv_gcc_builtin_memset" = yes ; then
3413 cat >> confdefs.h
<<\EOF
3414 #define HAVE_BUILTIN_MEMSET 1
3419 echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6
3420 echo "configure:3421: checking for local label subtraction" >&5
3421 if eval "test \"`echo '$''{'libc_cv_gcc_subtract_local_labels'+set}'`\" = set"; then
3422 echo $ac_n "(cached) $ac_c" 1>&6
3424 cat > conftest.c
<<EOF
3425 #line 3426 "configure"
3428 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
3429 void *p = &&l1 + ar[a];
3437 if { ac_try
='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3438 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:3439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3439 libc_cv_gcc_subtract_local_labels
=yes
3441 libc_cv_gcc_subtract_local_labels
=no
3446 echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6
3447 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
3448 cat >> confdefs.h
<<\EOF
3449 #define HAVE_SUBTRACT_LOCAL_LABELS 1
3454 echo $ac_n "checking for libgd""... $ac_c" 1>&6
3455 echo "configure:3456: checking for libgd" >&5
3456 if test "$with_gd" != "no"; then
3457 old_CFLAGS
="$CFLAGS"
3458 CFLAGS
="$CFLAGS $libgd_include"
3459 old_LDFLAGS
="$LDFLAGS"
3460 LDFLAGS
="$LDFLAGS $libgd_ldflags"
3462 LIBS
="$LIBS -lgd -lpng -lz -lm"
3463 cat > conftest.
$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3471 if { (eval echo configure
:3472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3475 echo "configure: failed program was:" >&5
3476 cat conftest.
$ac_ext >&5
3481 CFLAGS
="$old_CFLAGS"
3482 LDFLAGS
="$old_LDFLAGS"
3487 echo "$ac_t""$LIBGD" 1>&6
3490 echo $ac_n "checking size of long double""... $ac_c" 1>&6
3491 echo "configure:3492: checking size of long double" >&5
3492 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3493 echo $ac_n "(cached) $ac_c" 1>&6
3495 if test "$cross_compiling" = yes; then
3496 ac_cv_sizeof_long_double
=0
3498 cat > conftest.
$ac_ext <<EOF
3499 #line 3500 "configure"
3500 #include "confdefs.h"
3504 FILE *f=fopen("conftestval", "w");
3506 fprintf(f, "%d\n", sizeof(long double));
3510 if { (eval echo configure
:3511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3512 ac_cv_sizeof_long_double
=`cat conftestval`
3514 echo "configure: failed program was:" >&5
3515 cat conftest.
$ac_ext >&5
3517 ac_cv_sizeof_long_double
=0
3523 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3524 cat >> confdefs.h
<<EOF
3525 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3529 sizeof_long_double
=$ac_cv_sizeof_long_double
3532 ### End of automated tests.
3533 ### Now run sysdeps configure fragments.
3535 # sysdeps configure fragments may set these with files to be linked below.
3539 # They also can set these variables.
3541 ldd_rewrite_script
=no
3542 libc_cv_sysconfdir
=$sysconfdir
3543 libc_cv_gcc_unwind_find_fde
=no
3545 # Iterate over all the sysdep directories we will use, running their
3546 # configure fragments, and looking for a uname implementation.
3548 for dir
in $sysnames; do
3551 *) dest
=$srcdir/$dir ;;
3553 if test -r $dest/configure
; then
3554 echo "$ac_t""running configure fragment for $dest" 1>&6
3558 if test -z "$uname"; then
3559 if test -r $dest/uname.c ||
3560 test -r $dest/uname.S ||
3561 { test -r $dest/syscalls.list
&&
3562 grep '^uname[ ]' $dest/syscalls.list
>/dev
/null
; }; then
3568 if test x
$libc_cv_gcc_unwind_find_fde = xyes
; then
3569 cat >> confdefs.h
<<\EOF
3570 #define EXPORT_UNWIND_FIND_FDE 1
3578 # If we will use the generic uname implementation, we must figure out what
3579 # it will say by examining the system, and write the results in config-name.h.
3580 if test "$uname" = "sysdeps/generic"; then
3582 uname_sysname
=`echo $config_os | sed 's/[0-9.]*$//'`
3583 if test $uname_sysname != $config_os; then
3584 config_release
=`echo $config_os | sed s/$uname_sysname//`
3587 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
3588 echo "configure:3589: checking OS release for uname" >&5
3589 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
3590 echo $ac_n "(cached) $ac_c" 1>&6
3592 kernel_release
=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
3593 if test x
`echo "$config_release" | sed "s/^$kernel_release//"` \
3594 != x
$config_release; then
3595 # The configuration release is a substring of the kernel release.
3596 libc_cv_uname_release
=$kernel_release
3597 elif test x
$config_release != x
; then
3598 libc_cv_uname_release
=$config_release
3599 elif test x
$kernel_release != x
; then
3600 libc_cv_uname_release
=$kernel_release
3602 libc_cv_uname_release
=unknown
3606 echo "$ac_t""$libc_cv_uname_release" 1>&6
3607 uname_release
="$libc_cv_uname_release"
3609 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
3610 echo "configure:3611: checking OS version for uname" >&5
3611 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
3612 echo $ac_n "(cached) $ac_c" 1>&6
3614 kernel_version
=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
3615 if test -n "$kernel_version"; then
3616 libc_cv_uname_version
="$kernel_version"
3618 libc_cv_uname_version
=unknown
3622 echo "$ac_t""$libc_cv_uname_version" 1>&6
3623 uname_version
="$libc_cv_uname_version"
3625 config_uname
=config-name.h
:config-name.
in
3627 # For non-generic uname, we don't need to create config-name.h at all.
3631 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
3632 echo "configure:3633: checking stdio selection" >&5
3635 libio
) cat >> confdefs.h
<<\EOF
3636 #define USE_IN_LIBIO 1
3639 default
) stdio
=stdio
;;
3641 echo "$ac_t""$stdio" 1>&6
3643 # Test for old glibc 2.0.x headers so that they can be removed properly
3644 # Search only in includedir.
3645 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
3646 echo "configure:3647: checking for old glibc 2.0.x headers" >&5
3647 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
3649 old_glibc_headers
=yes
3651 old_glibc_headers
=no
3653 echo "$ac_t""$old_glibc_headers" 1>&6
3654 if test ${old_glibc_headers} = yes; then
3655 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
3656 echo "configure: warning: *** be removed." 1>&2
3669 if test $gnu_ld = yes; then
3670 cat >> confdefs.h
<<\EOF
3671 #define HAVE_GNU_LD 1
3675 if test $gnu_as = yes; then
3676 cat >> confdefs.h
<<\EOF
3677 #define HAVE_GNU_AS 1
3681 if test $elf = yes; then
3682 cat >> confdefs.h
<<\EOF
3687 if test $xcoff = yes; then
3688 cat >> confdefs.h
<<\EOF
3689 #define HAVE_XCOFF 1
3696 if test $shared = default
; then
3697 if test $gnu_ld = yes; then
3700 # For now we do not assume shared libs are available. In future more
3701 # tests might become available.
3706 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
3707 echo "configure:3708: checking whether -fPIC is default" >&5
3708 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
3709 echo $ac_n "(cached) $ac_c" 1>&6
3712 cat > conftest.c
<<EOF
3713 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
3714 # error PIC is default.
3717 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
3723 echo "$ac_t""$pic_default" 1>&6
3735 *door
*) linux_doors
=yes ;;
3736 *) linux_doors
=no
;;
3740 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
3743 config_makefile
=Makefile
3746 VERSION
=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
3747 RELEASE
=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
3752 cat > confcache
<<\EOF
3753 # This file is a shell script that caches the results of configure
3754 # tests run on this system so they can be shared between configure
3755 # scripts and configure runs. It is not useful on other systems.
3756 # If it contains results you don't want to keep, you may remove or edit it.
3758 # By default, configure uses ./config.cache as the cache file,
3759 # creating it if it does not exist already. You can give configure
3760 # the --cache-file=FILE option to use a different cache file; that is
3761 # what configure does when it calls configure scripts in
3762 # subdirectories, so they share the cache.
3763 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3764 # config.status only pays attention to the cache file if you give it the
3765 # --recheck option to rerun configure.
3768 # The following way of writing the cache mishandles newlines in values,
3769 # but we know of no workaround that is simple, portable, and efficient.
3770 # So, don't put newlines in cache variables' values.
3771 # Ultrix sh set writes to stderr and can't be redirected directly,
3772 # and sets the high bit in the cache file unless we assign to the vars.
3774 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3776 # `set' does not quote correctly, so add quotes (double-quote substitution
3777 # turns \\\\ into \\, and sed turns \\ into \).
3779 -e "s/'/'\\\\''/g" \
3780 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3783 # `set' quotes correctly as required by POSIX, so do not add quotes.
3784 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3787 if cmp -s $cache_file confcache
; then
3790 if test -w $cache_file; then
3791 echo "updating cache $cache_file"
3792 cat confcache
> $cache_file
3794 echo "not updating unwritable cache $cache_file"
3799 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3801 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3802 # Let make expand exec_prefix.
3803 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3805 # Any assignment to VPATH causes Sun make to only execute
3806 # the first set of double-colon rules, so remove it if not needed.
3807 # If there is a colon in the path, we need to keep it.
3808 if test "x$srcdir" = x.
; then
3809 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3812 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3814 DEFS
=-DHAVE_CONFIG_H
3816 # Without the "./", some shells look in PATH for config.status.
3817 : ${CONFIG_STATUS=./config.status}
3819 echo creating
$CONFIG_STATUS
3820 rm -f $CONFIG_STATUS
3821 cat > $CONFIG_STATUS <<EOF
3823 # Generated automatically by configure.
3824 # Run this file to recreate the current configuration.
3825 # This directory was configured as follows,
3826 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3828 # $0 $ac_configure_args
3830 # Compiler output produced by configure, useful for debugging
3831 # configure, is in ./config.log if it exists.
3833 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3836 case "\$ac_option" in
3837 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3838 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3839 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3840 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3841 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3843 -help | --help | --hel | --he | --h)
3844 echo "\$ac_cs_usage"; exit 0 ;;
3845 *) echo "\$ac_cs_usage"; exit 1 ;;
3849 ac_given_srcdir=$srcdir
3850 ac_given_INSTALL="$INSTALL"
3852 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3854 cat >> $CONFIG_STATUS <<EOF
3856 # Protect against being on the right side of a sed subst in config.status.
3857 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3858 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3862 s%@CFLAGS@%$CFLAGS%g
3863 s%@CPPFLAGS@%$CPPFLAGS%g
3864 s%@CXXFLAGS@%$CXXFLAGS%g
3865 s%@FFLAGS@%$FFLAGS%g
3867 s%@LDFLAGS@%$LDFLAGS%g
3869 s%@exec_prefix@%$exec_prefix%g
3870 s%@prefix@%$prefix%g
3871 s%@program_transform_name@%$program_transform_name%g
3872 s%@bindir@%$bindir%g
3873 s%@sbindir@%$sbindir%g
3874 s%@libexecdir@%$libexecdir%g
3875 s%@datadir@%$datadir%g
3876 s%@sysconfdir@%$sysconfdir%g
3877 s%@sharedstatedir@%$sharedstatedir%g
3878 s%@localstatedir@%$localstatedir%g
3879 s%@libdir@%$libdir%g
3880 s%@includedir@%$includedir%g
3881 s%@oldincludedir@%$oldincludedir%g
3882 s%@infodir@%$infodir%g
3883 s%@mandir@%$mandir%g
3884 s%@with_fp@%$with_fp%g
3885 s%@with_cvs@%$with_cvs%g
3886 s%@oldest_abi@%$oldest_abi%g
3887 s%@subdirs@%$subdirs%g
3888 s%@force_install@%$force_install%g
3889 s%@all_warnings@%$all_warnings%g
3891 s%@host_alias@%$host_alias%g
3892 s%@host_cpu@%$host_cpu%g
3893 s%@host_vendor@%$host_vendor%g
3894 s%@host_os@%$host_os%g
3895 s%@base_machine@%$base_machine%g
3896 s%@sysnames@%$sysnames%g
3897 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3898 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3899 s%@INSTALL_DATA@%$INSTALL_DATA%g
3903 s%@build_alias@%$build_alias%g
3904 s%@build_cpu@%$build_cpu%g
3905 s%@build_vendor@%$build_vendor%g
3906 s%@build_os@%$build_os%g
3909 s%@MSGFMT@%$MSGFMT%g
3910 s%@MAKEINFO@%$MAKEINFO%g
3912 s%@cross_linkable@%$cross_linkable%g
3913 s%@BUILD_CC@%$BUILD_CC%g
3914 s%@cross_compiling@%$cross_compiling%g
3917 s%@RANLIB@%$RANLIB%g
3919 s%@CCVERSION@%$CCVERSION%g
3920 s%@SYSINCLUDES@%$SYSINCLUDES%g
3921 s%@libc_cv_gcc_static_libgcc@%$libc_cv_gcc_static_libgcc%g
3923 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
3925 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
3928 s%@INSTALL_INFO@%$INSTALL_INFO%g
3929 s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
3931 s%@VERSIONING@%$VERSIONING%g
3932 s%@libc_cv_asm_protected_directive@%$libc_cv_asm_protected_directive%g
3933 s%@libc_cv_z_nodelete@%$libc_cv_z_nodelete%g
3934 s%@libc_cv_z_nodlopen@%$libc_cv_z_nodlopen%g
3935 s%@libc_cv_z_initfirst@%$libc_cv_z_initfirst%g
3936 s%@libc_cv_Bgroup@%$libc_cv_Bgroup%g
3937 s%@libc_cv_z_combreloc@%$libc_cv_z_combreloc%g
3938 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
3939 s%@no_whole_archive@%$no_whole_archive%g
3940 s%@exceptions@%$exceptions%g
3942 s%@sizeof_long_double@%$sizeof_long_double%g
3943 s%@libc_cv_gcc_unwind_find_fde@%$libc_cv_gcc_unwind_find_fde%g
3944 s%@uname_sysname@%$uname_sysname%g
3945 s%@uname_release@%$uname_release%g
3946 s%@uname_version@%$uname_version%g
3948 s%@old_glibc_headers@%$old_glibc_headers%g
3949 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
3950 s%@libc_cv_localedir@%$libc_cv_localedir%g
3951 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
3952 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
3953 s%@use_ldconfig@%$use_ldconfig%g
3954 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
3955 s%@gnu_ld@%$gnu_ld%g
3956 s%@gnu_as@%$gnu_as%g
3959 s%@static@%$static%g
3960 s%@shared@%$shared%g
3961 s%@pic_default@%$pic_default%g
3962 s%@profile@%$profile%g
3963 s%@omitfp@%$omitfp%g
3964 s%@bounded@%$bounded%g
3965 s%@static_nss@%$static_nss%g
3966 s%@nopic_initfini@%$nopic_initfini%g
3967 s%@DEFINES@%$DEFINES%g
3968 s%@linux_doors@%$linux_doors%g
3969 s%@VERSION@%$VERSION%g
3970 s%@RELEASE@%$RELEASE%g
3975 cat >> $CONFIG_STATUS <<\EOF
3977 # Split the substitutions into bite-sized pieces for seds with
3978 # small command number limits, like on Digital OSF/1 and HP-UX.
3979 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3980 ac_file
=1 # Number of current file.
3981 ac_beg
=1 # First line for current file.
3982 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3985 while $ac_more_lines; do
3986 if test $ac_beg -gt 1; then
3987 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3989 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3991 if test ! -s conftest.s
$ac_file; then
3993 rm -f conftest.s
$ac_file
3995 if test -z "$ac_sed_cmds"; then
3996 ac_sed_cmds
="sed -f conftest.s$ac_file"
3998 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4000 ac_file
=`expr $ac_file + 1`
4002 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4005 if test -z "$ac_sed_cmds"; then
4010 cat >> $CONFIG_STATUS <<EOF
4012 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
4014 cat >> $CONFIG_STATUS <<\EOF
4015 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4016 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4018 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4019 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4020 *) ac_file_in
="${ac_file}.in" ;;
4023 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4025 # Remove last slash and all that follows it. Not all systems have dirname.
4026 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4027 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4028 # The file is in a subdirectory.
4029 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4030 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4031 # A "../" for each directory in $ac_dir_suffix.
4032 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4034 ac_dir_suffix
= ac_dots
=
4037 case "$ac_given_srcdir" in
4039 if test -z "$ac_dots"; then top_srcdir
=.
4040 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4041 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4043 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4044 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4047 case "$ac_given_INSTALL" in
4048 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4049 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4052 echo creating
"$ac_file"
4054 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4056 *Makefile
*) ac_comsub
="1i\\
4057 # $configure_input" ;;
4061 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4063 s%@configure_input@%$configure_input%g
4064 s%@srcdir@%$srcdir%g
4065 s%@top_srcdir@%$top_srcdir%g
4066 s%@INSTALL@%$INSTALL%g
4067 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4071 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4072 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4074 # ac_d sets the value in "#define NAME VALUE" lines.
4075 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4076 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4079 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4080 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4081 ac_uB
='\([ ]\)%\1#\2define\3'
4084 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4085 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4086 ac_eB
='$%\1#\2define\3'
4090 if test "${CONFIG_HEADERS+set}" != set; then
4092 cat >> $CONFIG_STATUS <<EOF
4093 CONFIG_HEADERS="config.h"
4095 cat >> $CONFIG_STATUS <<\EOF
4097 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4098 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4100 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4101 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4102 *) ac_file_in
="${ac_file}.in" ;;
4105 echo creating
$ac_file
4107 rm -f conftest.frag conftest.
in conftest.out
4108 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4109 cat $ac_file_inputs > conftest.
in
4113 # Transform confdefs.h into a sed script conftest.vals that substitutes
4114 # the proper values into config.h.in to produce config.h. And first:
4115 # Protect against being on the right side of a sed subst in config.status.
4116 # Protect against being in an unquoted here document in config.status.
4118 cat > conftest.hdr
<<\EOF
4121 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4125 sed -n -f conftest.hdr confdefs.h > conftest.vals
4128 # This sed command replaces #undef with comments. This is necessary, for
4129 # example, in the case of _POSIX_SOURCE, which is predefined and required
4130 # on some systems where configure will not decide to define it.
4131 cat >> conftest.vals <<\EOF
4132 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4135 # Break up conftest.vals because some shells have a limit on
4136 # the size of here documents, and old seds have small limits too.
4141 ac_lines=`grep -c . conftest.vals
`
4142 # grep -c gives empty output for an empty file on some AIX systems.
4143 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4144 # Write a limited-size here document to conftest.frag.
4145 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4146 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4148 sed -f conftest.frag conftest.in > conftest.out
4150 mv conftest.out conftest.in
4152 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4154 mv conftest.tail conftest.vals
4158 cat >> $CONFIG_STATUS <<\EOF
4159 rm -f conftest.frag conftest.h
4160 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4161 cat conftest.in >> conftest.h
4163 if cmp -s $ac_file conftest.h 2>/dev/null; then
4164 echo "$ac_file is unchanged"
4167 # Remove last slash and all that follows it. Not all systems have dirname.
4168 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4169 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4170 # The file is in a subdirectory.
4171 test ! -d "$ac_dir" && mkdir "$ac_dir"
4174 mv conftest.h $ac_file
4180 cat >> $CONFIG_STATUS <<EOF
4181 ac_sources="`echo $libc_link_sources`"
4182 ac_dests="`echo $libc_link_dests`"
4185 cat >> $CONFIG_STATUS <<\EOF
4186 srcdir=$ac_given_srcdir
4187 while test -n "$ac_sources"; do
4188 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4189 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4191 echo "linking $srcdir/$ac_source to $ac_dest"
4193 if test ! -r $srcdir/$ac_source; then
4194 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4198 # Make relative symlinks.
4199 # Remove last slash and all that follows it. Not all systems have dirname.
4200 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
4201 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4202 # The dest file is in a subdirectory.
4203 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4204 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
4205 # A "../" for each directory in $ac_dest_dir_suffix.
4206 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
4208 ac_dest_dir_suffix= ac_dots=
4212 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4213 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4216 # Make a symlink if possible; otherwise try a hard link.
4217 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4218 ln $srcdir/$ac_source $ac_dest; then :
4220 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4224 cat >> $CONFIG_STATUS <<EOF
4225 config_vars='$config_vars'
4227 cat >> $CONFIG_STATUS <<\EOF
4229 case $CONFIG_FILES in *config.make*)
4230 echo "$config_vars" >> config.make;;
4232 test -d bits || mkdir bits
4235 chmod +x $CONFIG_STATUS
4236 rm -fr confdefs* $ac_clean_files
4237 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4239 if test "$no_recursion" != yes; then
4241 # Remove --cache-file and --srcdir arguments so they do not pile up.
4242 ac_sub_configure_args=
4244 for ac_arg in $ac_configure_args; do
4245 if test -n "$ac_prev"; then
4250 -cache-file | --cache-file | --cache-fil | --cache-fi \
4251 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4252 ac_prev=cache_file ;;
4253 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4254 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4260 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4264 for ac_config_dir in $add_ons; do
4266 # Do not complain, so a configure script can configure whichever
4267 # parts of a large source tree are present.
4268 if test ! -d $srcdir/$ac_config_dir; then
4272 echo configuring in $ac_config_dir
4277 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4279 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4287 # A "../" for each directory in /$ac_config_dir.
4288 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4291 .) # No --srcdir option. We are building in place.
4292 ac_sub_srcdir=$srcdir ;;
4293 /*) # Absolute path.
4294 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4296 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4299 # Check for guested configure; otherwise get Cygnus style configure.
4300 if test -f $ac_sub_srcdir/configure; then
4301 ac_sub_configure=$ac_sub_srcdir/configure
4302 elif test -f $ac_sub_srcdir/configure.in; then
4303 ac_sub_configure=$ac_configure
4305 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4309 # The recursion is here.
4310 if test -n "$ac_sub_configure"; then
4312 # Make the cache file name correct relative to the subdirectory.
4313 case "$cache_file" in
4314 /*) ac_sub_cache_file=$cache_file ;;
4316 ac_sub_cache_file="$ac_dots$cache_file" ;;
4318 case "$ac_given_INSTALL" in
4319 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4320 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4323 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4324 # The eval makes quoting arguments work.
4325 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4328 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }