3 # From configure.in CVSid
14 # Guess values for system-dependent variables and create Makefiles.
15 # Generated automatically using autoconf version 2.13
16 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
18 # This configure script is free software; the Free Software Foundation
19 # gives unlimited permission to copy, distribute and modify it.
23 ac_default_prefix
=/usr
/local
24 # Any additions from configure.in:
26 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
28 --with-gd=DIR find libgd include dir and library with prefix DIR"
30 --with-gd-include=DIR find libgd include files in DIR"
32 --with-gd-lib=DIR find libgd library files in DIR"
34 --with-fp if using floating-point hardware [default=yes]"
36 --with-binutils=PATH specify location of binutils (as and ld)"
38 --with-elf if using the ELF object format"
40 --without-cvs if CVS should not be used"
42 --with-headers=PATH location of system headers to use
43 [e.g. /usr/src/linux/include]
44 [default=compiler default]"
46 --enable-libio build in GNU libio instead of GNU stdio"
48 --disable-sanity-checks really do not use threads (should not be used
49 except in special situations) [default=yes]"
51 --enable-shared build shared library [default=yes if GNU ld & ELF]"
53 --enable-profile build profiled library [default=yes]"
55 --enable-omitfp build undebuggable optimized library [default=no]"
57 --enable-bounded build with runtime bounds checking [default=no]"
59 --disable-versioning do not include versioning information in the
60 library objects [default=yes if supported]"
62 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
63 [default=glibc default]"
65 --enable-add-ons[=DIR1,DIR2]...
66 configure and build add-ons in DIR1,DIR2,...
67 search for add-ons if no parameter given"
69 --enable-static-nss build static NSS modules [default=no]"
71 --disable-force-install don't force installation of files from this package,
72 even if they are older than the installed files"
74 --enable-kernel=VERSION compile for compatibility with kernel not older
77 --enable-all-warnings enable all useful warnings gcc can issue"
79 # Initialize some variables set by options.
80 # The variables have the same names as the options, with
81 # dashes changed to underlines.
83 cache_file
=.
/config.cache
92 program_transform_name
=s
,x
,x
,
100 bindir
='${exec_prefix}/bin'
101 sbindir
='${exec_prefix}/sbin'
102 libexecdir
='${exec_prefix}/libexec'
103 datadir
='${prefix}/share'
104 sysconfdir
='${prefix}/etc'
105 sharedstatedir
='${prefix}/com'
106 localstatedir
='${prefix}/var'
107 libdir
='${exec_prefix}/lib'
108 includedir
='${prefix}/include'
109 oldincludedir
='/usr/include'
110 infodir
='${prefix}/info'
111 mandir
='${prefix}/man'
113 # Initialize some other variables.
116 SHELL
=${CONFIG_SHELL-/bin/sh}
117 # Maximum number of lines to put in a shell here document.
124 # If the previous option needs an argument, assign it.
125 if test -n "$ac_prev"; then
126 eval "$ac_prev=\$ac_option"
132 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
136 # Accept the important Cygnus configure options, so we can diagnose typos.
140 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
142 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
143 bindir
="$ac_optarg" ;;
145 -build |
--build |
--buil |
--bui |
--bu)
147 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
148 build
="$ac_optarg" ;;
150 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
151 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
152 ac_prev
=cache_file
;;
153 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
154 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
155 cache_file
="$ac_optarg" ;;
157 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
159 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
161 datadir
="$ac_optarg" ;;
163 -disable-* |
--disable-*)
164 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
165 # Reject names that are not valid shell variable names.
166 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
167 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
170 eval "enable_${ac_feature}=no" ;;
172 -enable-* |
--enable-*)
173 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
183 eval "enable_${ac_feature}='$ac_optarg'" ;;
185 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
186 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
187 |
--exec |
--exe |
--ex)
188 ac_prev
=exec_prefix
;;
189 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
190 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
191 |
--exec=* |
--exe=* |
--ex=*)
192 exec_prefix
="$ac_optarg" ;;
194 -gas |
--gas |
--ga |
--g)
195 # Obsolete; use --with-gas.
198 -help |
--help |
--hel |
--he)
199 # Omit some internal or obsolete options to make the list less imposing.
200 # This message is too long to be a string in the A/UX 3.1 sh.
202 Usage: configure [options] [host]
203 Options: [defaults in brackets after descriptions]
205 --cache-file=FILE cache test results in FILE
206 --help print this message
207 --no-create do not create output files
208 --quiet, --silent do not print \`checking...' messages
209 --version print the version of autoconf that created configure
210 Directory and file names:
211 --prefix=PREFIX install architecture-independent files in PREFIX
213 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
215 --bindir=DIR user executables in DIR [EPREFIX/bin]
216 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
217 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
218 --datadir=DIR read-only architecture-independent data in DIR
220 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
221 --sharedstatedir=DIR modifiable architecture-independent data in DIR
223 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
224 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
225 --includedir=DIR C header files in DIR [PREFIX/include]
226 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
227 --infodir=DIR info documentation in DIR [PREFIX/info]
228 --mandir=DIR man documentation in DIR [PREFIX/man]
229 --srcdir=DIR find the sources in DIR [configure dir or ..]
230 --program-prefix=PREFIX prepend PREFIX to installed program names
231 --program-suffix=SUFFIX append SUFFIX to installed program names
232 --program-transform-name=PROGRAM
233 run sed PROGRAM on installed program names
237 --build=BUILD configure for building on BUILD [BUILD=HOST]
238 --host=HOST configure for HOST [guessed]
239 --target=TARGET configure for TARGET [TARGET=HOST]
240 Features and packages:
241 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
242 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
243 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
244 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
245 --x-includes=DIR X include files are in DIR
246 --x-libraries=DIR X library files are in DIR
248 if test -n "$ac_help"; then
249 echo "--enable and --with options recognized:$ac_help"
253 -host |
--host |
--hos |
--ho)
255 -host=* |
--host=* |
--hos=* |
--ho=*)
258 -includedir |
--includedir |
--includedi |
--included |
--include \
259 |
--includ |
--inclu |
--incl |
--inc)
260 ac_prev
=includedir
;;
261 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
262 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
263 includedir
="$ac_optarg" ;;
265 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
267 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
268 infodir
="$ac_optarg" ;;
270 -libdir |
--libdir |
--libdi |
--libd)
272 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
273 libdir
="$ac_optarg" ;;
275 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
276 |
--libexe |
--libex |
--libe)
277 ac_prev
=libexecdir
;;
278 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
279 |
--libexe=* |
--libex=* |
--libe=*)
280 libexecdir
="$ac_optarg" ;;
282 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
283 |
--localstate |
--localstat |
--localsta |
--localst \
284 |
--locals |
--local |
--loca |
--loc |
--lo)
285 ac_prev
=localstatedir
;;
286 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
287 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
288 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
289 localstatedir
="$ac_optarg" ;;
291 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
293 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
294 mandir
="$ac_optarg" ;;
297 # Obsolete; use --without-fp.
300 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
304 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
305 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
308 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
309 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
310 |
--oldin |
--oldi |
--old |
--ol |
--o)
311 ac_prev
=oldincludedir
;;
312 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
313 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
314 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
315 oldincludedir
="$ac_optarg" ;;
317 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
319 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
320 prefix
="$ac_optarg" ;;
322 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
323 |
--program-pre |
--program-pr |
--program-p)
324 ac_prev
=program_prefix
;;
325 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
326 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
327 program_prefix
="$ac_optarg" ;;
329 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
330 |
--program-suf |
--program-su |
--program-s)
331 ac_prev
=program_suffix
;;
332 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
333 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
334 program_suffix
="$ac_optarg" ;;
336 -program-transform-name |
--program-transform-name \
337 |
--program-transform-nam |
--program-transform-na \
338 |
--program-transform-n |
--program-transform- \
339 |
--program-transform |
--program-transfor \
340 |
--program-transfo |
--program-transf \
341 |
--program-trans |
--program-tran \
342 |
--progr-tra |
--program-tr |
--program-t)
343 ac_prev
=program_transform_name
;;
344 -program-transform-name=* |
--program-transform-name=* \
345 |
--program-transform-nam=* |
--program-transform-na=* \
346 |
--program-transform-n=* |
--program-transform-=* \
347 |
--program-transform=* |
--program-transfor=* \
348 |
--program-transfo=* |
--program-transf=* \
349 |
--program-trans=* |
--program-tran=* \
350 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
351 program_transform_name
="$ac_optarg" ;;
353 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
354 |
-silent |
--silent |
--silen |
--sile |
--sil)
357 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
359 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
361 sbindir
="$ac_optarg" ;;
363 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
364 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
365 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
367 ac_prev
=sharedstatedir
;;
368 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
369 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
370 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
372 sharedstatedir
="$ac_optarg" ;;
374 -site |
--site |
--sit)
376 -site=* |
--site=* |
--sit=*)
379 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
381 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
382 srcdir
="$ac_optarg" ;;
384 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
385 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
386 ac_prev
=sysconfdir
;;
387 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
388 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
389 sysconfdir
="$ac_optarg" ;;
391 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
393 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
394 target
="$ac_optarg" ;;
396 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
399 -version |
--version |
--versio |
--versi |
--vers)
400 echo "configure generated by autoconf version 2.13"
404 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
407 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 ac_package
=`echo $ac_package| sed 's/-/_/g'`
414 eval "with_${ac_package}='$ac_optarg'" ;;
416 -without-* |
--without-*)
417 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
418 # Reject names that are not valid shell variable names.
419 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
420 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
422 ac_package
=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}=no" ;;
426 # Obsolete; use --with-x.
429 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
430 |
--x-incl |
--x-inc |
--x-in |
--x-i)
431 ac_prev
=x_includes
;;
432 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
433 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
434 x_includes
="$ac_optarg" ;;
436 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
437 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
438 ac_prev
=x_libraries
;;
439 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
440 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
441 x_libraries
="$ac_optarg" ;;
443 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
447 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
448 echo "configure: warning: $ac_option: invalid host type" 1>&2
450 if test "x$nonopt" != xNONE
; then
451 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
459 if test -n "$ac_prev"; then
460 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
463 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
465 # File descriptor usage:
468 # 2 errors and warnings
469 # 3 some systems may open it to /dev/tty
470 # 4 used on the Kubota Titan
471 # 6 checking for... messages and results
472 # 5 compiler messages saved in config.log
473 if test "$silent" = yes; then
481 This file contains any messages produced by compilers while
482 running configure, to aid debugging if configure makes a mistake.
485 # Strip out --no-create and --no-recursion so they do not pile up.
486 # Also quote any args containing shell metacharacters.
491 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
492 |
--no-cr |
--no-c) ;;
493 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
494 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
495 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
496 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
497 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
502 # Only set these to C if already set. These must not be set unconditionally
503 # because not all systems understand e.g. LANG=C (notably SCO).
504 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
505 # Non-C LC_CTYPE values break the ctype check.
506 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
507 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
508 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
509 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
511 # confdefs.h avoids OS command line length limits that DEFS can exceed.
512 rm -rf conftest
* confdefs.h
513 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
516 # A filename unique to this package, relative to the directory that
517 # configure is in, which we can look for to find out if srcdir is correct.
518 ac_unique_file
=include
/features.h
520 # Find the source files, if location was not specified.
521 if test -z "$srcdir"; then
522 ac_srcdir_defaulted
=yes
523 # Try the directory containing this script, then its parent.
525 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
526 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
528 if test ! -r $srcdir/$ac_unique_file; then
532 ac_srcdir_defaulted
=no
534 if test ! -r $srcdir/$ac_unique_file; then
535 if test "$ac_srcdir_defaulted" = yes; then
536 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
538 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
541 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
543 # Prefer explicitly selected file to automatically selected ones.
544 if test -z "$CONFIG_SITE"; then
545 if test "x$prefix" != xNONE
; then
546 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
548 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
551 for ac_site_file
in $CONFIG_SITE; do
552 if test -r "$ac_site_file"; then
553 echo "loading site script $ac_site_file"
558 if test -r "$cache_file"; then
559 echo "loading cache $cache_file"
562 echo "creating cache $cache_file"
567 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
568 ac_cpp
='$CPP $CPPFLAGS'
569 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
570 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
571 cross_compiling
=$ac_cv_prog_cc_cross
575 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
576 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
577 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
584 ac_n
= ac_c
='\c' ac_t
=
587 if test -r /vmunix
; then
588 kernel_id
=`strings /vmunix | grep UNIX`
589 elif test -r /dynix
; then
590 kernel_id
=`strings /dynix | grep DYNIX`
598 for ac_dir
in scripts
$srcdir/scripts
; do
599 if test -f $ac_dir/install-sh
; then
601 ac_install_sh
="$ac_aux_dir/install-sh -c"
603 elif test -f $ac_dir/install.sh
; then
605 ac_install_sh
="$ac_aux_dir/install.sh -c"
609 if test -z "$ac_aux_dir"; then
610 { echo "configure: error: can not find install-sh or install.sh in scripts $srcdir/scripts" 1>&2; exit 1; }
612 ac_config_guess
=$ac_aux_dir/config.guess
613 ac_config_sub
=$ac_aux_dir/config.sub
614 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
617 # This will get text that should go into config.make.
620 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
621 # Check whether --with-gmp or --without-gmp was given.
622 if test "${with_gmp+set}" = set; then
625 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
627 *) config_vars
="$config_vars
628 gmp-srcdir = $withval" ;;
633 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
634 # Check whether --with-gd or --without-gd was given.
635 if test "${with_gd+set}" = set; then
639 *) libgd_include
="-I$withval/include"
640 libgd_ldflags
="-L$withval/lib" ;;
645 # Check whether --with-gd-include or --without-gd-include was given.
646 if test "${with_gd_include+set}" = set; then
647 withval
="$with_gd_include"
648 case "$with_gd_include" in
650 *) libgd_include
="-I$withval" ;;
655 # Check whether --with-gd-lib or --without-gd-lib was given.
656 if test "${with_gd_lib+set}" = set; then
657 withval
="$with_gd_lib"
658 case "$with_gd_lib" in
660 *) libgd_ldflags
="-L$withval" ;;
666 if test -n "$libgd_include"; then
667 config_vars
="$config_vars
668 CFLAGS-memusagestat.c = $libgd_include"
670 if test -n "$libgd_ldflags"; then
671 config_vars
="$config_vars
672 libgd-LDFLAGS = $libgd_ldflags"
675 # Check whether --with-fp or --without-fp was given.
676 if test "${with_fp+set}" = set; then
683 # Check whether --with-binutils or --without-binutils was given.
684 if test "${with_binutils+set}" = set; then
685 withval
="$with_binutils"
686 path_binutils
=$withval
691 # Check whether --with-elf or --without-elf was given.
692 if test "${with_elf+set}" = set; then
699 # Check whether --with-cvs or --without-cvs was given.
700 if test "${with_cvs+set}" = set; then
707 if test "$with_cvs" = yes; then
708 if test -d $srcdir/CVS
&& grep :pserver
: $srcdir/CVS
/Root
> /dev
/null
715 # Check whether --with-headers or --without-headers was given.
716 if test "${with_headers+set}" = set; then
717 withval
="$with_headers"
724 # Check whether --enable-libio or --disable-libio was given.
725 if test "${enable_libio+set}" = set; then
726 enableval
="$enable_libio"
727 if test $enableval = yes; then
737 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
738 if test "${enable_sanity_checks+set}" = set; then
739 enableval
="$enable_sanity_checks"
740 enable_sanity
=$enableval
747 # Check whether --enable-shared or --disable-shared was given.
748 if test "${enable_shared+set}" = set; then
749 enableval
="$enable_shared"
755 # Check whether --enable-profile or --disable-profile was given.
756 if test "${enable_profile+set}" = set; then
757 enableval
="$enable_profile"
763 # Check whether --enable-omitfp or --disable-omitfp was given.
764 if test "${enable_omitfp+set}" = set; then
765 enableval
="$enable_omitfp"
771 # Check whether --enable-bounded or --disable-bounded was given.
772 if test "${enable_bounded+set}" = set; then
773 enableval
="$enable_bounded"
779 # Check whether --enable-versioning or --disable-versioning was given.
780 if test "${enable_versioning+set}" = set; then
781 enableval
="$enable_versioning"
782 enable_versioning
=$enableval
784 enable_versioning
=yes
788 # Check whether --enable-oldest-abi or --disable-oldest-abi was given.
789 if test "${enable_oldest_abi+set}" = set; then
790 enableval
="$enable_oldest_abi"
791 oldest_abi
=$enableval
796 if test "$oldest_abi" = yes ||
test "$oldest_abi" = no
; then
799 cat >> confdefs.h
<<EOF
800 #define GLIBC_OLDEST_ABI "$oldest_abi"
806 # Check whether --enable-add-ons or --disable-add-ons was given.
807 if test "${enable_add_ons+set}" = set; then
808 enableval
="$enable_add_ons"
810 yes) add_ons
=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
811 test "$add_ons" = "*" && add_ons
= ;;
812 *) add_ons
=`echo "$enableval" | sed 's/,/ /g'`;;
822 if test x
"$add_ons" != x
; then
823 for f
in $add_ons; do
825 if test "$f" = "crypt"; then
826 { echo "configure: error:
827 *** It seems that you're using an old \`crypt' add-on. crypt is now
828 *** part of glibc and using the old add-on will not work with this
829 *** release. Start again with fresh sources and without the old
830 *** \`crypt' add-on." 1>&2; exit 1; }
832 if test "$f" = "localedata"; then
833 { echo "configure: error:
834 *** It seems that you're using an old \`localedata' add-on. localedata
835 *** is now part of glibc and using the old add-on will not work with
836 *** this release. Start again with fresh sources and without the old
837 *** \`localedata' add-on." 1>&2; exit 1; }
839 # Test whether such a subdir really exists.
840 if test -d $srcdir/$f; then
841 add_ons_pfx
="$add_ons_pfx $f/"
843 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
848 # Check whether --enable-static-nss or --disable-static-nss was given.
849 if test "${enable_static_nss+set}" = set; then
850 enableval
="$enable_static_nss"
851 static_nss
=$enableval
856 if test x
"$static_nss" = xyes
; then
857 cat >> confdefs.h
<<\EOF
858 #define DO_STATIC_NSS 1
863 # Check whether --enable-force-install or --disable-force-install was given.
864 if test "${enable_force_install+set}" = set; then
865 enableval
="$enable_force_install"
866 force_install
=$enableval
873 # Check whether --enable-kernel or --disable-kernel was given.
874 if test "${enable_kernel+set}" = set; then
875 enableval
="$enable_kernel"
876 minimum_kernel
=$enableval
879 if test "$minimum_kernel" = yes ||
test "$minimum_kernel" = no
; then
880 # Better nothing than this.
883 if test "$minimum_kernel" = current
; then
884 minimum_kernel
=`uname -r 2>/dev/null` || minimum_kernel
=
888 # Check whether --enable-all-warnings or --disable-all-warnings was given.
889 if test "${enable_all_warnings+set}" = set; then
890 enableval
="$enable_all_warnings"
891 all_warnings
=$enableval
897 # Make sure we can run config.sub.
898 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
899 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
902 echo $ac_n "checking host system type""... $ac_c" 1>&6
903 echo "configure:904: checking host system type" >&5
906 case "$host_alias" in
910 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
911 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
913 *) host_alias
=$nonopt ;;
917 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
918 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
919 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
920 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
921 echo "$ac_t""$host" 1>&6
924 # The way shlib-versions is used to generate soversions.mk uses a
925 # fairly simplistic model for name recognition that can't distinguish
926 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
927 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
928 # tell. This doesn't get used much beyond that, so it's fairly safe.
933 host_os
=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
937 # We keep the original values in `$config_*' and never modify them, so we
938 # can write them unchanged into config.make. Everything else uses
939 # $machine, $vendor, and $os, and changes them whenever convenient.
940 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
942 # Don't allow vendor == "unknown"
943 test "$config_vendor" = unknown
&& config_vendor
=
944 config_os
="`echo $config_os | sed 's/^unknown-//'`"
946 # Some configurations imply other options.
948 gnu
* | linux
* | bsd4.4
* | netbsd
* | freebsd
*)
949 # These systems always use GNU tools.
950 gnu_ld
=yes gnu_as
=yes ;;
953 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
954 linux
*ecoff
* | linux
*aout
* | gnu
*aout
* | gnu
*ecoff
*)
956 gnu
* | linux
* | sysv4
* | solaris2
* | irix6
*)
957 # These systems (almost) always use the ELF format.
962 machine
=$config_machine
963 vendor
=$config_vendor
966 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
968 if test "$machine" = rs6000
; then
973 ### I put this here to prevent those annoying emails from people who cannot
974 ### read and try to compile glibc on unsupported platforms. --drepper
976 ### By using the undocumented --enable-hacker-mode option for configure
977 ### one can skip this test to make the configuration not fail for unsupported
980 if test -z "$enable_hacker_mode"; then
981 case "$machine-$host_os" in
982 *-linux* |
*-gnu* | arm
*-none* | powerpc-aix4.3.
*)
985 echo "*** The GNU C library is currently not available for this platform."
986 echo "*** So far nobody cared to port it and if there is no volunteer it"
987 echo "*** might never happen. So, if you have interest to see glibc on"
988 echo "*** this platform visit"
989 echo "*** http://www.gnu.org/software/libc/porting.html"
990 echo "*** and join the group of porters"
996 # Expand the configuration machine name into a subdirectory by architecture
997 # type and particular chip.
999 a29k | am29000
) base_machine
=a29k machine
=a29k
;;
1000 alpha
*) base_machine
=alpha machine
=alpha
/$machine ;;
1001 arm
*) base_machine
=arm machine
=arm
/arm32
/$machine ;;
1002 c3
[012]) base_machine
=cx0 machine
=cx
0/c30
;;
1003 c4
[04]) base_machine
=cx0 machine
=cx
0/c40
;;
1004 hppa
*64*) base_machine
=hppa machine
=hppa
/hppa64
;;
1005 hppa
*) base_machine
=hppa machine
=hppa
/hppa1.1
;;
1006 i
[3456]86) base_machine
=i386 machine
=i386
/$machine ;;
1007 ia64
) base_machine
=ia64 machine
=ia64
;;
1008 m680?
0) base_machine
=m68k machine
=m68k
/$machine ;;
1009 m68k
) base_machine
=m68k machine
=m68k
/m68020
;;
1010 m88???
) base_machine
=m88k machine
=m88k
/$machine ;;
1011 m88k
) base_machine
=m88k machine
=m88k
/m88100
;;
1012 mips64
*) base_machine
=mips64 machine
=mips
/mips64
/$machine ;;
1013 mips
*) base_machine
=mips
1014 case "`uname -m`" in
1015 IP22
) machine
=mips
/mips3
;;
1016 *) machine
=mips
/$machine ;;
1018 s390
) base_machine
=s390 machine
=s390
/s390-32
;;
1019 s390x
) base_machine
=s390 machine
=s390
/s390-64
;;
1020 sh3
*) base_machine
=sh machine
=sh
/sh3
;;
1021 sh4
*) base_machine
=sh machine
=sh
/sh4
;;
1023 base_machine
=sparc machine
=sparc
/sparc32
;;
1024 sparcv8 | supersparc | hypersparc
)
1025 base_machine
=sparc machine
=sparc
/sparc32
/sparcv8
;;
1026 sparcv8plus | sparcv8plusa | sparcv9
)
1027 base_machine
=sparc machine
=sparc
/sparc32
/sparcv9
;;
1028 sparcv8plusb | sparcv9b
)
1029 base_machine
=sparc machine
=sparc
/sparc32
/sparcv9b
;;
1030 sparc64 | ultrasparc
)
1031 base_machine
=sparc machine
=sparc
/sparc64
;;
1032 sparc64b | ultrasparc3
)
1033 base_machine
=sparc machine
=sparc
/sparc64
/sparcv9b
;;
1034 thumb
*) base_machine
=thumb machine
=arm
/thumb
/$machine ;;
1038 if test "$base_machine" = "i386"; then
1039 cat >> confdefs.h
<<\EOF
1040 #define USE_REGPARMS 1
1045 # Compute the list of sysdep directories for this configuration.
1046 # This can take a while to compute.
1047 sysdep_dir
=$srcdir/sysdeps
1048 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
1049 echo "configure:1050: checking sysdep dirs" >&5
1050 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1051 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1055 base_os
=mach
/hurd
;;
1056 netbsd
* |
386bsd
* | freebsd
* | bsdi
*)
1057 base_os
=unix
/bsd
/bsd4.4
;;
1058 osf
* | sunos
* | ultrix
* | newsos
* | dynix
* |
*bsd
*)
1060 sysv
* | isc
* | esix
* | sco
* | minix
* | irix4
* | linux
*)
1061 base_os
=unix
/sysv
;;
1063 base_os
=unix
/sysv
/irix
6/$os ;;
1065 base_os
=unix
/sysv
/sysv4
;;
1067 base_os
=unix
/sysv
/hpux
/$os ;;
1069 base_os
=unix
/sysv
/aix
/aix4.3
;;
1071 base_os
=standalone
;;
1076 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1079 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1083 o
=`echo $tail | sed 's/[0-9]*$//'`
1084 if test $o != $tail; then
1087 # For linux-gnu, try linux-gnu, then linux.
1088 o
=`echo $tail | sed 's/-.*$//'`
1089 if test $o != $tail; then
1093 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1096 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1102 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1105 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1107 # Prepend the machine's FPU directory unless --without-fp.
1108 if test "$with_fp" = yes; then
1109 mach
="$mach /$1/fpu"
1116 # Find what sysdep directories exist.
1118 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1119 for d
in $add_ons_pfx ''; do
1120 for b
in $base ''; do
1121 for m0
in $mach ''; do
1122 for v
in /$vendor ''; do
1123 test "$v" = / && continue
1124 for o
in /$ostry ''; do
1125 test "$o" = / && continue
1126 for m
in $mach ''; do
1127 if test "$m0$b$v$o$m"; then
1128 try
="${d}sysdeps$m0$b$v$o$m"
1129 test -n "$enable_debug_configure" &&
1130 echo "$0 DEBUG: try $try" >&2
1131 if test -d $srcdir/$try; then
1132 sysnames
="$sysnames $try"
1133 { test -n "$o" ||
test -n "$b"; } && os_used
=t
1134 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
1145 if test -z "$os_used" && test "$os" != none
; then
1146 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
1148 if test -z "$machine_used" && test "$machine" != none
; then
1149 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
1152 # We have now validated the configuration.
1155 # If using ELF, look for an `elf' subdirectory of each machine directory.
1156 # We prepend these rather than inserting them whereever the machine appears
1157 # because things specified by the machine's ELF ABI should override
1158 # OS-specific things, and should always be the same for any OS on the
1159 # machine (otherwise what's the point of an ABI?).
1160 if test "$elf" = yes; then
1162 for d
in $add_ons_pfx ''; do
1164 if test -d $srcdir/${d}sysdeps
$m/elf
; then
1165 elf_dirs
="$elf_dirs ${d}sysdeps$m/elf"
1169 sysnames
="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1173 # Expand the list of system names into a full list of directories
1174 # from each element's parent name and Implies file (if present).
1177 while test $# -gt 0; do
1181 case " $names " in *" $name "*)
1182 # Already in the list.
1186 # Report each name as we discover it, so there is no long pause in output.
1187 echo $ac_n "$name $ac_c" >&6
1189 name_base
=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1193 *) xsrcdir
=$srcdir/ ;;
1195 test -n "$enable_debug_configure" &&
1196 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1198 if test -f $xsrcdir$name/Implies
; then
1199 # Collect more names from the `Implies' file (removing comments).
1200 implied_candidate
="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1202 for x
in $implied_candidate; do
1204 if test -d $xsrcdir$name_base/$x; then
1205 implied
="$implied $name_base/$x";
1208 for d
in $add_ons_pfx ''; do
1209 try
="${d}sysdeps/$x"
1212 *) try_srcdir
=$srcdir/ ;;
1214 test -n "$enable_debug_configure" &&
1215 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
1216 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
1218 implied
="$implied $try"
1222 if test $found = no
; then
1223 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1230 # Add NAME to the list of names.
1231 names
="$names $name"
1233 # Find the parent of NAME, using the empty string if it has none.
1234 parent
="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1236 # Add the names implied by NAME, and NAME's parent (if it has one), to
1237 # the list of names to be processed (the argument list). We prepend the
1238 # implied names to the list and append the parent. We want implied
1239 # directories to come before further directories inferred from the
1240 # configuration components; this ensures that for sysv4, unix/common
1241 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1243 sysnames
="`echo $implied $* $parent`"
1244 test -n "$sysnames" && set $sysnames
1247 # Add the default directories.
1248 default_sysnames
=sysdeps
/generic
1249 if test "$elf" = yes; then
1250 default_sysnames
="sysdeps/generic/elf $default_sysnames"
1252 sysnames
="$names $default_sysnames"
1254 # The other names were emitted during the scan.
1255 echo "$ac_t""$default_sysnames" 1>&6
1260 # Find a good install program. We prefer a C program (faster),
1261 # so one script is as good as another. But avoid the broken or
1262 # incompatible versions:
1263 # SysV /etc/install, /usr/sbin/install
1264 # SunOS /usr/etc/install
1265 # IRIX /sbin/install
1267 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1268 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1269 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1270 # ./install, which can be erroneously created by make from ./install.sh.
1271 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1272 echo "configure:1273: checking for a BSD compatible install" >&5
1273 if test -z "$INSTALL"; then
1274 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1277 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1278 for ac_dir
in $PATH; do
1279 # Account for people who put trailing slashes in PATH elements.
1281 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1283 # OSF1 and SCO ODT 3.0 have their own names for install.
1284 # Don't use installbsd from OSF since it installs stuff as root
1286 for ac_prog
in ginstall scoinst
install; do
1287 if test -f $ac_dir/$ac_prog; then
1288 if test $ac_prog = install &&
1289 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1290 # AIX install. It has an incompatible calling convention.
1293 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1304 if test "${ac_cv_path_install+set}" = set; then
1305 INSTALL
="$ac_cv_path_install"
1307 # As a last resort, use the slow shell script. We don't cache a
1308 # path for INSTALL within a source directory, because that will
1309 # break other packages using the cache if that directory is
1310 # removed, or if the path is relative.
1311 INSTALL
="$ac_install_sh"
1314 echo "$ac_t""$INSTALL" 1>&6
1316 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1317 # It thinks the first close brace ends the variable substitution.
1318 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1320 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1322 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1324 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
1325 # The makefiles need to use a different form to find it in $srcdir.
1326 INSTALL
='\$(..)./scripts/install-sh -c'
1328 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1329 echo "configure:1330: checking whether ln -s works" >&5
1330 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1334 if ln -s X conftestdata
2>/dev
/null
1337 ac_cv_prog_LN_S
="ln -s"
1342 LN_S
="$ac_cv_prog_LN_S"
1343 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1344 echo "$ac_t""yes" 1>&6
1346 echo "$ac_t""no" 1>&6
1350 # We need the physical current working directory. We cannot use the
1351 # "pwd -P" shell builtin since that's not portable. Instead we try to
1352 # find a pwd binary. Note that assigning to the PWD environment
1353 # variable might have some interesting side effects, so we don't do
1355 # Extract the first word of "pwd", so it can be a program name with args.
1356 set dummy
pwd; ac_word
=$2
1357 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1358 echo "configure:1359: checking for $ac_word" >&5
1359 if eval "test \"`echo '$''{'ac_cv_path_PWD_P'+set}'`\" = set"; then
1360 echo $ac_n "(cached) $ac_c" 1>&6
1364 ac_cv_path_PWD_P
="$PWD_P" # Let the user override the test with a path.
1367 ac_cv_path_PWD_P
="$PWD_P" # Let the user override the test with a dos path.
1370 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1372 for ac_dir
in $ac_dummy; do
1373 test -z "$ac_dir" && ac_dir
=.
1374 if test -f $ac_dir/$ac_word; then
1375 ac_cv_path_PWD_P
="$ac_dir/$ac_word"
1380 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P
="no"
1384 PWD_P
="$ac_cv_path_PWD_P"
1385 if test -n "$PWD_P"; then
1386 echo "$ac_t""$PWD_P" 1>&6
1388 echo "$ac_t""no" 1>&6
1391 if test "$PWD_P" = no
; then
1392 { echo "configure: error: *** A pwd binary could not be found." 1>&2; exit 1; }
1395 # These programs are version sensitive.
1396 echo $ac_n "checking build system type""... $ac_c" 1>&6
1397 echo "configure:1398: checking build system type" >&5
1400 case "$build_alias" in
1403 NONE
) build_alias
=$host_alias ;;
1404 *) build_alias
=$nonopt ;;
1408 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1409 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1410 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1411 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1412 echo "$ac_t""$build" 1>&6
1414 if test $host != $build; then
1415 ac_tool_prefix
=${host_alias}-
1420 for ac_prog
in ${ac_tool_prefix}gcc
${ac_tool_prefix}cc
1422 # Extract the first word of "$ac_prog", so it can be a program name with args.
1423 set dummy
$ac_prog; ac_word
=$2
1424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1425 echo "configure:1426: checking for $ac_word" >&5
1426 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1429 if test -n "$CC"; then
1430 ac_cv_prog_CC
="$CC" # Let the user override the test.
1432 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1434 for ac_dir
in $ac_dummy; do
1435 test -z "$ac_dir" && ac_dir
=.
1436 if test -f $ac_dir/$ac_word; then
1437 ac_cv_prog_CC
="$ac_prog"
1445 if test -n "$CC"; then
1446 echo "$ac_t""$CC" 1>&6
1448 echo "$ac_t""no" 1>&6
1451 test -n "$CC" && break
1454 if test -z "$CC"; then
1457 # Found it, now check the version.
1458 echo $ac_n "checking version of $CC""... $ac_c" 1>&6
1459 echo "configure:1460: checking version of $CC" >&5
1460 ac_prog_version
=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
1461 case $ac_prog_version in
1462 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1463 *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-
*)
1464 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1465 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1468 echo "$ac_t""$ac_prog_version" 1>&6
1470 if test $ac_verc_fail = yes; then
1474 for ac_prog
in gnumake gmake
make
1476 # Extract the first word of "$ac_prog", so it can be a program name with args.
1477 set dummy
$ac_prog; ac_word
=$2
1478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1479 echo "configure:1480: checking for $ac_word" >&5
1480 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1483 if test -n "$MAKE"; then
1484 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
1486 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1488 for ac_dir
in $ac_dummy; do
1489 test -z "$ac_dir" && ac_dir
=.
1490 if test -f $ac_dir/$ac_word; then
1491 ac_cv_prog_MAKE
="$ac_prog"
1498 MAKE
="$ac_cv_prog_MAKE"
1499 if test -n "$MAKE"; then
1500 echo "$ac_t""$MAKE" 1>&6
1502 echo "$ac_t""no" 1>&6
1505 test -n "$MAKE" && break
1508 if test -z "$MAKE"; then
1511 # Found it, now check the version.
1512 echo $ac_n "checking version of $MAKE""... $ac_c" 1>&6
1513 echo "configure:1514: checking version of $MAKE" >&5
1514 ac_prog_version
=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
1515 case $ac_prog_version in
1516 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1518 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1519 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1522 echo "$ac_t""$ac_prog_version" 1>&6
1524 if test $ac_verc_fail = yes; then
1525 critic_missing
="$critic_missing make"
1530 if test -n "$critic_missing"; then
1531 { echo "configure: error:
1532 *** These critical programs are missing or too old:$critic_missing
1533 *** Check the INSTALL file for required versions." 1>&2; exit 1; }
1537 for ac_prog
in gnumsgfmt gmsgfmt msgfmt
1539 # Extract the first word of "$ac_prog", so it can be a program name with args.
1540 set dummy
$ac_prog; ac_word
=$2
1541 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1542 echo "configure:1543: checking for $ac_word" >&5
1543 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1546 if test -n "$MSGFMT"; then
1547 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
1549 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1551 for ac_dir
in $ac_dummy; do
1552 test -z "$ac_dir" && ac_dir
=.
1553 if test -f $ac_dir/$ac_word; then
1554 ac_cv_prog_MSGFMT
="$ac_prog"
1561 MSGFMT
="$ac_cv_prog_MSGFMT"
1562 if test -n "$MSGFMT"; then
1563 echo "$ac_t""$MSGFMT" 1>&6
1565 echo "$ac_t""no" 1>&6
1568 test -n "$MSGFMT" && break
1571 if test -z "$MSGFMT"; then
1574 # Found it, now check the version.
1575 echo $ac_n "checking version of $MSGFMT""... $ac_c" 1>&6
1576 echo "configure:1577: checking version of $MSGFMT" >&5
1577 ac_prog_version
=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
1578 case $ac_prog_version in
1579 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1580 0.10.3[6-9]* |
0.10.
[4-9][0-9]* |
0.1[1-9]* |
0.
[2-9][0-9]* |
[1-9].
*)
1581 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1582 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1585 echo "$ac_t""$ac_prog_version" 1>&6
1587 if test $ac_verc_fail = yes; then
1588 MSGFMT
=: aux_missing
="$aux_missing msgfmt"
1591 for ac_prog
in makeinfo
1593 # Extract the first word of "$ac_prog", so it can be a program name with args.
1594 set dummy
$ac_prog; ac_word
=$2
1595 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1596 echo "configure:1597: checking for $ac_word" >&5
1597 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1600 if test -n "$MAKEINFO"; then
1601 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
1603 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1605 for ac_dir
in $ac_dummy; do
1606 test -z "$ac_dir" && ac_dir
=.
1607 if test -f $ac_dir/$ac_word; then
1608 ac_cv_prog_MAKEINFO
="$ac_prog"
1615 MAKEINFO
="$ac_cv_prog_MAKEINFO"
1616 if test -n "$MAKEINFO"; then
1617 echo "$ac_t""$MAKEINFO" 1>&6
1619 echo "$ac_t""no" 1>&6
1622 test -n "$MAKEINFO" && break
1625 if test -z "$MAKEINFO"; then
1628 # Found it, now check the version.
1629 echo $ac_n "checking version of $MAKEINFO""... $ac_c" 1>&6
1630 echo "configure:1631: checking version of $MAKEINFO" >&5
1631 ac_prog_version
=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
1632 case $ac_prog_version in
1633 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1635 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1636 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1639 echo "$ac_t""$ac_prog_version" 1>&6
1641 if test $ac_verc_fail = yes; then
1642 MAKEINFO
=: aux_missing
="$aux_missing makeinfo"
1645 for ac_prog
in gsed
sed
1647 # Extract the first word of "$ac_prog", so it can be a program name with args.
1648 set dummy
$ac_prog; ac_word
=$2
1649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1650 echo "configure:1651: checking for $ac_word" >&5
1651 if eval "test \"`echo '$''{'ac_cv_prog_SED'+set}'`\" = set"; then
1652 echo $ac_n "(cached) $ac_c" 1>&6
1654 if test -n "$SED"; then
1655 ac_cv_prog_SED
="$SED" # Let the user override the test.
1657 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1659 for ac_dir
in $ac_dummy; do
1660 test -z "$ac_dir" && ac_dir
=.
1661 if test -f $ac_dir/$ac_word; then
1662 ac_cv_prog_SED
="$ac_prog"
1669 SED
="$ac_cv_prog_SED"
1670 if test -n "$SED"; then
1671 echo "$ac_t""$SED" 1>&6
1673 echo "$ac_t""no" 1>&6
1676 test -n "$SED" && break
1679 if test -z "$SED"; then
1682 # Found it, now check the version.
1683 echo $ac_n "checking version of $SED""... $ac_c" 1>&6
1684 echo "configure:1685: checking version of $SED" >&5
1685 ac_prog_version
=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
1686 case $ac_prog_version in
1687 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
1688 3.0[2-9]*|
3.
[1-9]*|
[4-9]*)
1689 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
1690 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
1693 echo "$ac_t""$ac_prog_version" 1>&6
1695 if test $ac_verc_fail = yes; then
1696 SED
=: aux_missing
="$aux_missing sed"
1701 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1702 echo "configure:1703: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1703 if eval "test \"`echo '$''{'ac_cv_prog_cc_works'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1708 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1709 ac_cpp
='$CPP $CPPFLAGS'
1710 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1711 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1712 cross_compiling
=$ac_cv_prog_cc_cross
1714 cat > conftest.
$ac_ext << EOF
1716 #line 1717 "configure"
1717 #include "confdefs.h"
1721 if { (eval echo configure
:1722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1722 ac_cv_prog_cc_works
=yes
1723 # If we can't run a trivial program, we are probably using a cross compiler.
1724 if (.
/conftest
; exit) 2>/dev
/null
; then
1725 ac_cv_prog_cc_cross
=no
1727 ac_cv_prog_cc_cross
=yes
1730 echo "configure: failed program was:" >&5
1731 cat conftest.
$ac_ext >&5
1732 ac_cv_prog_cc_works
=no
1736 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1737 ac_cpp
='$CPP $CPPFLAGS'
1738 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1739 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1740 cross_compiling
=$ac_cv_prog_cc_cross
1744 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1745 if test $ac_cv_prog_cc_works = no
; then
1747 ac_cv_prog_cc_cross
=yes
1751 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1752 echo "configure:1753: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1753 if eval "test \"`echo '$''{'ac_cv_prog_cc_cross'+set}'`\" = set"; then
1754 echo $ac_n "(cached) $ac_c" 1>&6
1759 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1761 cross_compiling
=$ac_cv_prog_cc_cross
1763 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1764 echo "configure:1765: checking whether we are using GNU C" >&5
1765 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1768 cat > conftest.c
<<EOF
1773 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1780 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1781 if test $ac_cv_prog_gcc != yes; then
1782 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1785 echo $ac_n "checking build system type""... $ac_c" 1>&6
1786 echo "configure:1787: checking build system type" >&5
1789 case "$build_alias" in
1792 NONE
) build_alias
=$host_alias ;;
1793 *) build_alias
=$nonopt ;;
1797 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1798 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1799 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1800 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1801 echo "$ac_t""$build" 1>&6
1803 if test $host != $build; then
1804 for ac_prog
in gcc cc
1806 # Extract the first word of "$ac_prog", so it can be a program name with args.
1807 set dummy
$ac_prog; ac_word
=$2
1808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1809 echo "configure:1810: checking for $ac_word" >&5
1810 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1813 if test -n "$BUILD_CC"; then
1814 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
1816 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1818 for ac_dir
in $ac_dummy; do
1819 test -z "$ac_dir" && ac_dir
=.
1820 if test -f $ac_dir/$ac_word; then
1821 ac_cv_prog_BUILD_CC
="$ac_prog"
1828 BUILD_CC
="$ac_cv_prog_BUILD_CC"
1829 if test -n "$BUILD_CC"; then
1830 echo "$ac_t""$BUILD_CC" 1>&6
1832 echo "$ac_t""no" 1>&6
1835 test -n "$BUILD_CC" && break
1840 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1841 echo "configure:1842: checking how to run the C preprocessor" >&5
1842 # On Suns, sometimes $CPP names a directory.
1843 if test -n "$CPP" && test -d "$CPP"; then
1846 if test -z "$CPP"; then
1847 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1850 # This must be in double quotes, not single quotes, because CPP may get
1851 # substituted into the Makefile and "${CC-cc}" will confuse make.
1853 # On the NeXT, cc -E runs the code through the compiler's parser,
1854 # not just through cpp.
1855 cat > conftest.
$ac_ext <<EOF
1856 #line 1857 "configure"
1857 #include "confdefs.h"
1861 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1862 { (eval echo configure
:1863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1863 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1864 if test -z "$ac_err"; then
1868 echo "configure: failed program was:" >&5
1869 cat conftest.
$ac_ext >&5
1871 CPP
="${CC-cc} -E -traditional-cpp"
1872 cat > conftest.
$ac_ext <<EOF
1873 #line 1874 "configure"
1874 #include "confdefs.h"
1878 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1879 { (eval echo configure
:1880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1880 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1881 if test -z "$ac_err"; then
1885 echo "configure: failed program was:" >&5
1886 cat conftest.
$ac_ext >&5
1888 CPP
="${CC-cc} -nologo -E"
1889 cat > conftest.
$ac_ext <<EOF
1890 #line 1891 "configure"
1891 #include "confdefs.h"
1895 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1896 { (eval echo configure
:1897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1897 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1898 if test -z "$ac_err"; then
1902 echo "configure: failed program was:" >&5
1903 cat conftest.
$ac_ext >&5
1912 ac_cv_prog_CPP
="$CPP"
1914 CPP
="$ac_cv_prog_CPP"
1916 ac_cv_prog_CPP
="$CPP"
1918 echo "$ac_t""$CPP" 1>&6
1920 # Was a --with-binutils option given?
1921 if test -n "$path_binutils"; then
1922 # Make absolute; ensure a single trailing slash.
1923 path_binutils
=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1924 CC
="$CC -B$path_binutils"
1926 AS
=`$CC -print-prog-name=as`
1927 LD
=`$CC -print-prog-name=ld`
1928 AR
=`$CC -print-prog-name=ar`
1931 # ranlib has to be treated a bit differently since it might not exist at all.
1932 RANLIB
=`$CC -print-prog-name=ranlib`
1933 if test $RANLIB = ranlib
; then
1934 # This extra check has to happen since gcc simply echos the parameter in
1935 # case it cannot find the value in its own directories.
1936 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1937 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1939 echo "configure:1940: checking for $ac_word" >&5
1940 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1941 echo $ac_n "(cached) $ac_c" 1>&6
1943 if test -n "$RANLIB"; then
1944 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1946 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1948 for ac_dir
in $ac_dummy; do
1949 test -z "$ac_dir" && ac_dir
=.
1950 if test -f $ac_dir/$ac_word; then
1951 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1958 RANLIB
="$ac_cv_prog_RANLIB"
1959 if test -n "$RANLIB"; then
1960 echo "$ac_t""$RANLIB" 1>&6
1962 echo "$ac_t""no" 1>&6
1966 if test -z "$ac_cv_prog_RANLIB"; then
1967 if test -n "$ac_tool_prefix"; then
1968 # Extract the first word of "ranlib", so it can be a program name with args.
1969 set dummy ranlib
; ac_word
=$2
1970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1971 echo "configure:1972: checking for $ac_word" >&5
1972 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1973 echo $ac_n "(cached) $ac_c" 1>&6
1975 if test -n "$RANLIB"; then
1976 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1978 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1980 for ac_dir
in $ac_dummy; do
1981 test -z "$ac_dir" && ac_dir
=.
1982 if test -f $ac_dir/$ac_word; then
1983 ac_cv_prog_RANLIB
="ranlib"
1988 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1991 RANLIB
="$ac_cv_prog_RANLIB"
1992 if test -n "$RANLIB"; then
1993 echo "$ac_t""$RANLIB" 1>&6
1995 echo "$ac_t""no" 1>&6
2006 # Determine whether we are using GNU binutils.
2007 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
2008 echo "configure:2009: checking whether $AS is GNU as" >&5
2009 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
2010 echo $ac_n "(cached) $ac_c" 1>&6
2012 # Most GNU programs take a -v and spit out some text including
2013 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
2014 if $AS -o conftest
-v </dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
2015 libc_cv_prog_as_gnu
=yes
2017 libc_cv_prog_as_gnu
=no
2022 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
2024 gnu_as
=$libc_cv_prog_as_gnu
2026 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
2027 echo "configure:2028: checking whether $LD is GNU ld" >&5
2028 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
2029 echo $ac_n "(cached) $ac_c" 1>&6
2031 # Most GNU programs take a -v and spit out some text including
2032 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
2033 if $LD -o conftest
-v </dev
/null
2>&1 |
grep GNU
> /dev
/null
2>&1; then
2034 libc_cv_prog_ld_gnu
=yes
2036 libc_cv_prog_ld_gnu
=no
2041 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
2042 gnu_ld
=$libc_cv_prog_ld_gnu
2044 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
2045 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
2046 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2047 echo "configure:2048: checking for $ac_word" >&5
2048 if eval "test \"`echo '$''{'ac_cv_prog_MIG'+set}'`\" = set"; then
2049 echo $ac_n "(cached) $ac_c" 1>&6
2051 if test -n "$MIG"; then
2052 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
2054 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2056 for ac_dir
in $ac_dummy; do
2057 test -z "$ac_dir" && ac_dir
=.
2058 if test -f $ac_dir/$ac_word; then
2059 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
2064 test -z "$ac_cv_prog_MIG" && ac_cv_prog_MIG
="mig"
2067 MIG
="$ac_cv_prog_MIG"
2068 if test -n "$MIG"; then
2069 echo "$ac_t""$MIG" 1>&6
2071 echo "$ac_t""no" 1>&6
2077 # Accept binutils 2.10.1 or newer (and also any ia64 2.9 version)
2078 # XXX Commented out because it filters out too many good versions.
2080 # AC_CHECK_PROG_VER(AS, $AS, --version,
2081 # [GNU assembler.* \([0-9]*\.[0-9.]*\(-ia64-[0-9]*\)*\)],
2082 # [2.10.[1-9]* | 2.1[1-9]* | 2.9-ia64-*], AS=: critic_missing=t)
2084 test -n "$aux_missing" && echo "configure: warning:
2085 *** These auxiliary programs are missing or too old:$aux_missing
2086 *** some features will be disabled.
2087 *** Check the INSTALL file for required versions." 1>&2
2089 # glibcbug.in wants to know the compiler version.
2090 CCVERSION
=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
2093 # if using special system headers, find out the compiler's sekrit
2094 # header directory and add that to the list. NOTE: Only does the right
2095 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
2096 if test -n "$sysheaders"; then
2097 ccheaders
=`$CC -print-file-name=include`
2098 SYSINCLUDES
="-nostdinc -isystem $ccheaders -isystem $sysheaders"
2102 # check if ranlib is necessary
2103 echo $ac_n "checking whether ranlib is necessary""... $ac_c" 1>&6
2104 echo "configure:2105: checking whether ranlib is necessary" >&5
2105 if eval "test \"`echo '$''{'libc_cv_ranlib_necessary'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2108 cat > conftest.c
<<EOF
2113 $CC $CFLAGS -c conftest.c
2114 $AR cr conftest.a conftest.c
2115 cp conftest.a conftest2.a
2117 if cmp -s conftest.a conftest2.a
; then
2118 libc_cv_ranlib_necessary
=no
2120 libc_cv_ranlib_necessary
=yes
2125 echo "$ac_t""$libc_cv_ranlib_necessary" 1>&6
2126 if test "$libc_cv_ranlib_necessary" = no
; then
2130 # Test if LD_LIBRARY_PATH contains the notation for the current directory
2131 # since this would lead to problems installing/building glibc.
2132 # LD_LIBRARY_PATH contains the current directory if one of the following
2134 # - one of the terminals (":" and ";") is the first or last sign
2135 # - two terminals occur directly after each other
2136 # - the path contains an element with a dot in it
2137 echo $ac_n "checking LD_LIBRARY_PATH variable""... $ac_c" 1>&6
2138 echo "configure:2139: checking LD_LIBRARY_PATH variable" >&5
2139 case ${LD_LIBRARY_PATH} in
2140 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
2141 ld_library_path_setting
="contains current directory"
2144 ld_library_path_setting
="ok"
2147 echo "$ac_t""$ld_library_path_setting" 1>&6
2148 if test "$ld_library_path_setting" != "ok"; then
2149 { echo "configure: error:
2150 *** LD_LIBRARY_PATH shouldn't contain the current directory when
2151 *** building glibc. Please change the environment variable
2152 *** and run configure again." 1>&2; exit 1; }
2155 # Extract the first word of "bash", so it can be a program name with args.
2156 set dummy bash
; ac_word
=$2
2157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2158 echo "configure:2159: checking for $ac_word" >&5
2159 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
2160 echo $ac_n "(cached) $ac_c" 1>&6
2164 ac_cv_path_BASH
="$BASH" # Let the user override the test with a path.
2167 ac_cv_path_BASH
="$BASH" # Let the user override the test with a dos path.
2170 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2172 for ac_dir
in $ac_dummy; do
2173 test -z "$ac_dir" && ac_dir
=.
2174 if test -f $ac_dir/$ac_word; then
2175 ac_cv_path_BASH
="$ac_dir/$ac_word"
2180 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH
="no"
2184 BASH
="$ac_cv_path_BASH"
2185 if test -n "$BASH"; then
2186 echo "$ac_t""$BASH" 1>&6
2188 echo "$ac_t""no" 1>&6
2191 if test "$BASH" != no
&&
2192 $BASH -c 'test "$BASH_VERSINFO" \
2193 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
2194 libc_cv_have_bash2
=yes
2196 libc_cv_have_bash2
=no
2200 if test "$BASH" = no
; then
2201 # Extract the first word of "ksh", so it can be a program name with args.
2202 set dummy ksh
; ac_word
=$2
2203 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2204 echo "configure:2205: checking for $ac_word" >&5
2205 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
2206 echo $ac_n "(cached) $ac_c" 1>&6
2210 ac_cv_path_KSH
="$KSH" # Let the user override the test with a path.
2213 ac_cv_path_KSH
="$KSH" # Let the user override the test with a dos path.
2216 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2218 for ac_dir
in $ac_dummy; do
2219 test -z "$ac_dir" && ac_dir
=.
2220 if test -f $ac_dir/$ac_word; then
2221 ac_cv_path_KSH
="$ac_dir/$ac_word"
2226 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH
="no"
2230 KSH
="$ac_cv_path_KSH"
2231 if test -n "$KSH"; then
2232 echo "$ac_t""$KSH" 1>&6
2234 echo "$ac_t""no" 1>&6
2237 if test "$KSH" = no
; then
2240 libc_cv_have_ksh
=yes
2245 libc_cv_have_ksh
=yes
2249 for ac_prog
in mawk gawk nawk
awk
2251 # Extract the first word of "$ac_prog", so it can be a program name with args.
2252 set dummy
$ac_prog; ac_word
=$2
2253 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2254 echo "configure:2255: checking for $ac_word" >&5
2255 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2258 if test -n "$AWK"; then
2259 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2261 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2263 for ac_dir
in $ac_dummy; do
2264 test -z "$ac_dir" && ac_dir
=.
2265 if test -f $ac_dir/$ac_word; then
2266 ac_cv_prog_AWK
="$ac_prog"
2273 AWK
="$ac_cv_prog_AWK"
2274 if test -n "$AWK"; then
2275 echo "$ac_t""$AWK" 1>&6
2277 echo "$ac_t""no" 1>&6
2280 test -n "$AWK" && break
2283 # Extract the first word of "perl", so it can be a program name with args.
2284 set dummy perl
; ac_word
=$2
2285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2286 echo "configure:2287: checking for $ac_word" >&5
2287 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2292 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
2295 ac_cv_path_PERL
="$PERL" # Let the user override the test with a dos path.
2298 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2300 for ac_dir
in $ac_dummy; do
2301 test -z "$ac_dir" && ac_dir
=.
2302 if test -f $ac_dir/$ac_word; then
2303 ac_cv_path_PERL
="$ac_dir/$ac_word"
2308 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="no"
2312 PERL
="$ac_cv_path_PERL"
2313 if test -n "$PERL"; then
2314 echo "$ac_t""$PERL" 1>&6
2316 echo "$ac_t""no" 1>&6
2319 if test "$PERL" != no
&&
2320 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
2323 # Extract the first word of "install-info", so it can be a program name with args.
2324 set dummy install-info
; ac_word
=$2
2325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2326 echo "configure:2327: checking for $ac_word" >&5
2327 if eval "test \"`echo '$''{'ac_cv_path_INSTALL_INFO'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 case "$INSTALL_INFO" in
2332 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
2335 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a dos path.
2338 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2339 ac_dummy
="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
2340 for ac_dir
in $ac_dummy; do
2341 test -z "$ac_dir" && ac_dir
=.
2342 if test -f $ac_dir/$ac_word; then
2343 ac_cv_path_INSTALL_INFO
="$ac_dir/$ac_word"
2348 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
="no"
2352 INSTALL_INFO
="$ac_cv_path_INSTALL_INFO"
2353 if test -n "$INSTALL_INFO"; then
2354 echo "$ac_t""$INSTALL_INFO" 1>&6
2356 echo "$ac_t""no" 1>&6
2359 if test "$INSTALL_INFO" != "no"; then
2360 echo $ac_n "checking for old Debian install-info""... $ac_c" 1>&6
2361 echo "configure:2362: checking for old Debian install-info" >&5
2362 if eval "test \"`echo '$''{'libc_cv_old_debian_install_info'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2366 # There is a hard ^_ on the next line. I am open to better ideas.
2368 echo 'File: dir Node: Top This is the top of the INFO tree'
2369 echo '* Menu:') >conftest.d
/dir
2370 (echo 'INFO-DIR-SECTION i-d-s works'
2371 echo 'START-INFO-DIR-ENTRY'
2372 echo '* Prog: (prog). Program.'
2373 echo 'END-INFO-DIR-ENTRY') >conftest.d
/prog.info
2374 if $INSTALL_INFO --info-dir=conftest.d conftest.d
/prog.info
>&5 2>&1
2376 if grep -s 'i-d-s works' conftest.d
/dir
>/dev
/null
2377 then libc_cv_old_debian_install_info
=no
2378 else libc_cv_old_debian_install_info
=yes
2380 else libc_cv_old_debian_install_info
=no testfailed
=t
2385 echo "$ac_t""$libc_cv_old_debian_install_info" 1>&6
2386 if test -n "$testfailed"
2387 then echo "configure: warning: install-info errored out, check config.log" 1>&2
2389 OLD_DEBIAN_INSTALL_INFO
=$libc_cv_old_debian_install_info
2393 # Extract the first word of "bison", so it can be a program name with args.
2394 set dummy bison
; ac_word
=$2
2395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2396 echo "configure:2397: checking for $ac_word" >&5
2397 if eval "test \"`echo '$''{'ac_cv_path_BISON'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2402 ac_cv_path_BISON
="$BISON" # Let the user override the test with a path.
2405 ac_cv_path_BISON
="$BISON" # Let the user override the test with a dos path.
2408 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2409 ac_dummy
="$PATH:/usr/local/bin:/usr/bin:/bin"
2410 for ac_dir
in $ac_dummy; do
2411 test -z "$ac_dir" && ac_dir
=.
2412 if test -f $ac_dir/$ac_word; then
2413 ac_cv_path_BISON
="$ac_dir/$ac_word"
2418 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON
="no"
2422 BISON
="$ac_cv_path_BISON"
2423 if test -n "$BISON"; then
2424 echo "$ac_t""$BISON" 1>&6
2426 echo "$ac_t""no" 1>&6
2430 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
2431 echo "configure:2432: checking for signed size_t type" >&5
2432 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
2433 echo $ac_n "(cached) $ac_c" 1>&6
2435 echo '#include <stddef.h>
2436 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
2437 if eval "$ac_cpp conftest.c 2>/dev/null" \
2438 |
grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev
/null
; then
2439 libc_cv_signed_size_t
=no
2441 libc_cv_signed_size_t
=yes
2446 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
2447 if test $libc_cv_signed_size_t = yes; then
2448 cat >> confdefs.h
<<\EOF
2449 #undef __SIZE_TYPE__
2450 #define __SIZE_TYPE__ unsigned
2454 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
2455 echo "configure:2456: checking for libc-friendly stddef.h" >&5
2456 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2459 cat > conftest.
$ac_ext <<EOF
2460 #line 2461 "configure"
2461 #include "confdefs.h"
2462 #define __need_size_t
2463 #define __need_wchar_t
2468 size_t size; wchar_t wchar;
2470 #error stddef.h ignored __need_*
2472 if (&size == NULL || &wchar == NULL) abort ();
2475 if { (eval echo configure
:2476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2477 libc_cv_friendly_stddef
=yes
2479 echo "configure: failed program was:" >&5
2480 cat conftest.
$ac_ext >&5
2482 libc_cv_friendly_stddef
=no
2487 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
2488 if test $libc_cv_friendly_stddef = yes; then
2489 config_vars
="$config_vars
2490 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
2493 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
2494 echo "configure:2495: checking whether we need to use -P to assemble .S files" >&5
2495 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2498 cat > conftest.S
<<EOF
2499 #include "confdefs.h"
2500 /* Nothing whatsoever. */
2502 if ${CC-cc} $CFLAGS -c conftest.S
2>/dev
/null
; then
2503 libc_cv_need_minus_P
=no
2505 libc_cv_need_minus_P
=yes
2510 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
2511 if test $libc_cv_need_minus_P = yes; then
2512 config_vars
="$config_vars
2513 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
2516 echo $ac_n "checking whether .text pseudo-op must be used""... $ac_c" 1>&6
2517 echo "configure:2518: checking whether .text pseudo-op must be used" >&5
2518 if eval "test \"`echo '$''{'libc_cv_dot_text'+set}'`\" = set"; then
2519 echo $ac_n "(cached) $ac_c" 1>&6
2521 cat > conftest.s
<<EOF
2525 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2526 libc_cv_dot_text
=.text
2531 if test -z "$libc_cv_dot_text"; then
2532 echo "$ac_t""no" 1>&6
2534 echo "$ac_t""yes" 1>&6
2537 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
2538 echo "configure:2539: checking for assembler global-symbol directive" >&5
2539 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
2540 echo $ac_n "(cached) $ac_c" 1>&6
2542 libc_cv_asm_global_directive
=UNKNOWN
2543 for ac_globl
in .globl .global .EXPORT
; do
2544 cat > conftest.s
<<EOF
2549 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2550 libc_cv_asm_global_directive
=${ac_globl}
2553 test $libc_cv_asm_global_directive != UNKNOWN
&& break
2557 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
2558 if test $libc_cv_asm_global_directive = UNKNOWN
; then
2559 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
2561 cat >> confdefs.h
<<EOF
2562 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
2567 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
2568 echo "configure:2569: checking for .set assembler directive" >&5
2569 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
2570 echo $ac_n "(cached) $ac_c" 1>&6
2572 cat > conftest.s
<<EOF
2575 .set glibc_conftest_frobozz,foo
2576 $libc_cv_asm_global_directive glibc_conftest_frobozz
2578 # The alpha-dec-osf1 assembler gives only a warning for `.set'
2579 # (but it doesn't work), so we must do a linking check to be sure.
2580 cat > conftest1.c
<<\EOF
2581 extern int glibc_conftest_frobozz
;
2582 main
() { printf ("%d\n", glibc_conftest_frobozz
); }
2584 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
2585 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
2586 libc_cv_asm_set_directive
=yes
2588 libc_cv_asm_set_directive
=no
2593 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
2594 if test $libc_cv_asm_set_directive = yes; then
2595 cat >> confdefs.h
<<\EOF
2596 #define HAVE_ASM_SET_DIRECTIVE 1
2601 # The Aix ld uses global .symbol_names instead of symbol_names.
2604 cat >> confdefs.h
<<\EOF
2605 #define HAVE_ASM_GLOBAL_DOT_NAME 1
2610 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
2611 echo "configure:2612: checking for .symver assembler directive" >&5
2612 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
2613 echo $ac_n "(cached) $ac_c" 1>&6
2615 cat > conftest.s
<<EOF
2618 .symver _sym,sym@VERS
2620 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s
1>&5 2>&5; then
2621 libc_cv_asm_symver_directive
=yes
2623 libc_cv_asm_symver_directive
=no
2628 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
2629 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
2630 echo "configure:2631: checking for ld --version-script" >&5
2631 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2634 if test $libc_cv_asm_symver_directive = yes; then
2635 cat > conftest.s
<<EOF
2638 .symver _sym,sym@VERS
2640 cat > conftest.map
<<EOF
2649 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s
1>&5 2>&5; then
2650 if { ac_try
='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2651 -nostartfiles -nostdlib
2652 -Wl,--version-script,conftest.map
2653 1>&5'; { (eval echo configure
:2654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2655 libc_cv_ld_version_script_option
=yes
2657 libc_cv_ld_version_script_option
=no
2660 libc_cv_ld_version_script_option
=no
2663 libc_cv_ld_version_script_option
=no
2668 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2669 if test $shared != no
&&
2670 test $libc_cv_asm_symver_directive = yes &&
2671 test $libc_cv_ld_version_script_option = yes &&
2672 test $enable_versioning = yes; then
2674 cat >> confdefs.h
<<\EOF
2675 #define DO_VERSIONING 1
2683 if test $elf = yes && test $shared != no
&& test $VERSIONING = no
; then
2685 *** WARNING: You should not compile GNU libc without versioning. Not using
2686 *** versioning will introduce incompatibilities so that old binaries
2687 *** will not run anymore.
2688 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
2690 if test $elf = yes; then
2691 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2692 echo "configure:2693: checking for .previous assembler directive" >&5
2693 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2694 echo $ac_n "(cached) $ac_c" 1>&6
2696 cat > conftest.s
<<EOF
2697 .section foo_section
2700 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2701 libc_cv_asm_previous_directive
=yes
2703 libc_cv_asm_previous_directive
=no
2708 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2709 if test $libc_cv_asm_previous_directive = yes; then
2710 cat >> confdefs.h
<<\EOF
2711 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2715 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2716 echo "configure:2717: checking for .popsection assembler directive" >&5
2717 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2718 echo $ac_n "(cached) $ac_c" 1>&6
2720 cat > conftest.s
<<EOF
2721 .pushsection foo_section
2724 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2725 libc_cv_asm_popsection_directive
=yes
2727 libc_cv_asm_popsection_directive
=no
2732 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2733 if test $libc_cv_asm_popsection_directive = yes; then
2734 cat >> confdefs.h
<<\EOF
2735 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2740 echo $ac_n "checking for .protected and .hidden assembler directive""... $ac_c" 1>&6
2741 echo "configure:2742: checking for .protected and .hidden assembler directive" >&5
2742 if eval "test \"`echo '$''{'libc_cv_asm_protected_directive'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2745 cat > conftest.s
<<EOF
2751 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:2752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2752 libc_cv_asm_protected_directive
=yes
2754 libc_cv_asm_protected_directive
=no
2759 echo "$ac_t""$libc_cv_asm_protected_directive" 1>&6
2762 echo $ac_n "checking for -z nodelete option""... $ac_c" 1>&6
2763 echo "configure:2764: checking for -z nodelete option" >&5
2764 if eval "test \"`echo '$''{'libc_cv_z_nodelete'+set}'`\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6
2767 cat > conftest.c
<<EOF
2768 int _start (void) { return 42; }
2770 if { ac_try
='${CC-cc} -shared -o conftest.so conftest.c -Wl,--enable-new-dtags,-z,nodelete 1>&5'; { (eval echo configure
:2771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2772 libc_cv_z_nodelete
=yes
2774 libc_cv_z_nodelete
=no
2779 echo "$ac_t""$libc_cv_z_nodelete" 1>&6
2782 echo $ac_n "checking for -z nodlopen option""... $ac_c" 1>&6
2783 echo "configure:2784: checking for -z nodlopen option" >&5
2784 if eval "test \"`echo '$''{'libc_cv_z_nodlopen'+set}'`\" = set"; then
2785 echo $ac_n "(cached) $ac_c" 1>&6
2787 cat > conftest.c
<<EOF
2788 int _start (void) { return 42; }
2790 if { ac_try
='${CC-cc} -shared -o conftest.so conftest.c -Wl,--enable-new-dtags,-z,nodlopen 1>&5'; { (eval echo configure
:2791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2792 libc_cv_z_nodlopen
=yes
2794 libc_cv_z_nodlopen
=no
2799 echo "$ac_t""$libc_cv_z_nodlopen" 1>&6
2802 echo $ac_n "checking for -z initfirst option""... $ac_c" 1>&6
2803 echo "configure:2804: checking for -z initfirst option" >&5
2804 if eval "test \"`echo '$''{'libc_cv_z_initfirst'+set}'`\" = set"; then
2805 echo $ac_n "(cached) $ac_c" 1>&6
2807 cat > conftest.c
<<EOF
2808 int _start (void) { return 42; }
2810 if { ac_try
='${CC-cc} -shared -o conftest.so conftest.c -Wl,--enable-new-dtags,-z,initfirst 1>&5'; { (eval echo configure
:2811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2812 libc_cv_z_initfirst
=yes
2814 libc_cv_z_initfirst
=no
2819 echo "$ac_t""$libc_cv_z_initfirst" 1>&6
2822 echo $ac_n "checking for -Bgroup option""... $ac_c" 1>&6
2823 echo "configure:2824: checking for -Bgroup option" >&5
2824 if eval "test \"`echo '$''{'libc_cv_Bgroup'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2827 cat > conftest.c
<<EOF
2828 int _start (void) { return 42; }
2830 if { ac_try
='${CC-cc} -shared -o conftest.so conftest.c -Wl,-Bgroup -nostdlib 1>&5'; { (eval echo configure
:2831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }
2839 echo "$ac_t""$libc_cv_Bgroup" 1>&6
2843 if test $elf != yes; then
2844 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2845 echo "configure:2846: checking for .init and .fini sections" >&5
2846 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2847 echo $ac_n "(cached) $ac_c" 1>&6
2849 cat > conftest.
$ac_ext <<EOF
2850 #line 2851 "configure"
2851 #include "confdefs.h"
2854 asm (".section .init");
2855 asm (".section .fini");
2856 asm ("${libc_cv_dot_text}");
2859 if { (eval echo configure
:2860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2861 libc_cv_have_initfini
=yes
2863 echo "configure: failed program was:" >&5
2864 cat conftest.
$ac_ext >&5
2866 libc_cv_have_initfini
=no
2871 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2872 if test $libc_cv_have_initfini = yes; then
2873 cat >> confdefs.h
<<\EOF
2874 #define HAVE_INITFINI 1
2880 if test $elf = yes -a $gnu_ld = yes; then
2881 echo $ac_n "checking whether cc puts quotes around section names""... $ac_c" 1>&6
2882 echo "configure:2883: checking whether cc puts quotes around section names" >&5
2883 if eval "test \"`echo '$''{'libc_cv_have_section_quotes'+set}'`\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2886 cat > conftest.c
<<EOF
2887 static const int foo
2888 __attribute__ ((section ("bar"))) = 1;
2890 if ${CC-cc} -S conftest.c
-o conftest.s
; then
2891 if grep '\.section.*"bar"' conftest.s
>/dev
/null
; then
2892 libc_cv_have_section_quotes
=yes
2894 libc_cv_have_section_quotes
=no
2897 libc_cv_have_section_quotes
=unknown
2903 echo "$ac_t""$libc_cv_have_section_quotes" 1>&6
2904 if test $libc_cv_have_section_quotes = yes; then
2905 cat >> confdefs.h
<<\EOF
2906 #define HAVE_SECTION_QUOTES 1
2914 if test $elf = yes; then
2915 libc_cv_asm_underscores
=no
2917 if test $ac_cv_prog_cc_works = yes; then
2918 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2919 echo "configure:2920: checking for _ prefix on C symbol names" >&5
2920 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2923 cat > conftest.
$ac_ext <<EOF
2924 #line 2925 "configure"
2925 #include "confdefs.h"
2926 asm ("_glibc_foobar:");
2931 if { (eval echo configure
:2932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2933 libc_cv_asm_underscores
=yes
2935 echo "configure: failed program was:" >&5
2936 cat conftest.
$ac_ext >&5
2938 libc_cv_asm_underscores
=no
2943 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2945 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2946 echo "configure:2947: checking for _ prefix on C symbol names" >&5
2947 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2950 cat > conftest.
$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 void underscore_test(void) {
2956 if { (eval echo configure
:2957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2957 if grep _underscore_test conftest
* >/dev
/null
; then
2959 libc_cv_asm_underscores
=yes
2962 libc_cv_asm_underscores
=no
2965 echo "configure: failed program was:" >&5
2966 cat conftest.
$ac_ext >&5
2968 libc_cv_asm_underscores
=no
2973 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2976 if test $libc_cv_asm_underscores = no
; then
2977 cat >> confdefs.h
<<\EOF
2978 #define NO_UNDERSCORES 1
2983 if test $elf = yes; then
2984 libc_cv_weak_symbols
=yes
2987 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2988 echo "configure:2989: checking for assembler .weak directive" >&5
2989 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2990 echo $ac_n "(cached) $ac_c" 1>&6
2992 cat > conftest.s
<<EOF
2994 ${libc_cv_asm_global_directive} foo
2997 .weak bar; bar = foo
2999 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
3000 libc_cv_asm_weak_directive
=yes
3002 libc_cv_asm_weak_directive
=no
3007 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
3009 if test $libc_cv_asm_weak_directive = no
; then
3010 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
3011 echo "configure:3012: checking for assembler .weakext directive" >&5
3012 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 cat > conftest.s
<<EOF
3017 ${libc_cv_asm_global_directive} foo
3021 ${libc_cv_asm_global_directive} baz
3024 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
3025 libc_cv_asm_weakext_directive
=yes
3027 libc_cv_asm_weakext_directive
=no
3032 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
3036 if test $libc_cv_asm_weak_directive = yes; then
3037 cat >> confdefs.h
<<\EOF
3038 #define HAVE_ASM_WEAK_DIRECTIVE 1
3041 elif test $libc_cv_asm_weakext_directive = yes; then
3042 cat >> confdefs.h
<<\EOF
3043 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
3048 case "${host_cpu}-${host_os}" in
3050 libc_cv_asm_line_sep
='@'
3051 cat >> confdefs.h
<<EOF
3052 #define ASM_LINE_SEP $libc_cv_asm_line_sep
3057 echo $ac_n "checking for assembler line separator""... $ac_c" 1>&6
3058 echo "configure:3059: checking for assembler line separator" >&5
3059 if eval "test \"`echo '$''{'libc_cv_asm_line_sep'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3062 cat > conftest.s
<<EOF
3065 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:3066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3066 libc_cv_asm_line_sep
='!'
3068 if test -z "$enable_hacker_mode"; then
3069 echo "*** You need a newer assembler to compile glibc"
3073 libc_cv_asm_line_sep
=';'
3078 echo "$ac_t""$libc_cv_asm_line_sep" 1>&6
3079 cat >> confdefs.h
<<EOF
3080 #define ASM_LINE_SEP $libc_cv_asm_line_sep
3086 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
3087 echo "configure:3088: checking for ld --no-whole-archive" >&5
3088 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
3089 echo $ac_n "(cached) $ac_c" 1>&6
3091 cat > conftest.c
<<\EOF
3096 if { ac_try
='${CC-cc} $CFLAGS
3097 -nostdlib -nostartfiles -Wl,--no-whole-archive
3098 -o conftest conftest.c 1>&5'; { (eval echo configure
:3099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3099 libc_cv_ld_no_whole_archive
=yes
3101 libc_cv_ld_no_whole_archive
=no
3106 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
3107 if test $libc_cv_ld_no_whole_archive = yes; then
3108 no_whole_archive
=-Wl,--no-whole-archive
3111 echo $ac_n "checking for gcc -fexceptions""... $ac_c" 1>&6
3112 echo "configure:3113: checking for gcc -fexceptions" >&5
3113 if eval "test \"`echo '$''{'libc_cv_gcc_exceptions'+set}'`\" = set"; then
3114 echo $ac_n "(cached) $ac_c" 1>&6
3116 cat > conftest.c
<<\EOF
3121 if { ac_try
='${CC-cc} $CFLAGS
3122 -nostdlib -nostartfiles -fexceptions
3123 -o conftest conftest.c 1>&5'; { (eval echo configure
:3124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3124 libc_cv_gcc_exceptions
=yes
3126 libc_cv_gcc_exceptions
=no
3131 echo "$ac_t""$libc_cv_gcc_exceptions" 1>&6
3132 if test $libc_cv_gcc_exceptions = yes; then
3133 exceptions
=-fexceptions
3136 if test "$base_machine" = alpha
; then
3137 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
3138 echo "configure:3139: checking for function ..ng prefix" >&5
3139 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
3140 echo $ac_n "(cached) $ac_c" 1>&6
3142 cat > conftest.c
<<\EOF
3145 if { ac_try
='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure
:3146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
3147 libc_cv_gcc_alpha_ng_prefix
=yes
3149 libc_cv_gcc_alpha_ng_prefix
=no
3154 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
3155 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
3156 cat >> confdefs.h
<<\EOF
3157 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
3161 cat >> confdefs.h
<<\EOF
3162 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
3168 if test "$host_cpu" = powerpc
; then
3169 # Check for a bug present in at least versions 2.8.x of GCC
3170 # and versions 1.0.x of EGCS.
3171 echo $ac_n "checking whether clobbering cr0 causes problems""... $ac_c" 1>&6
3172 echo "configure:3173: checking whether clobbering cr0 causes problems" >&5
3173 if eval "test \"`echo '$''{'libc_cv_c_asmcr0_bug'+set}'`\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3176 cat > conftest.
$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
3184 if { (eval echo configure
:3185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3186 libc_cv_c_asmcr0_bug
='no'
3188 echo "configure: failed program was:" >&5
3189 cat conftest.
$ac_ext >&5
3191 libc_cv_c_asmcr0_bug
='yes'
3196 echo "$ac_t""$libc_cv_c_asmcr0_bug" 1>&6
3197 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
3198 cat >> confdefs.h
<<\EOF
3199 #define BROKEN_PPC_ASM_CR0 1
3205 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
3206 echo "configure:3207: checking for DWARF2 unwind info support" >&5
3207 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
3208 echo $ac_n "(cached) $ac_c" 1>&6
3210 cat > conftest.c
<<EOF
3211 #line 3212 "configure"
3212 static char __EH_FRAME_BEGIN__;
3215 #ifdef CHECK__register_frame
3216 __register_frame (__EH_FRAME_BEGIN__);
3217 __deregister_frame (__EH_FRAME_BEGIN__);
3219 #ifdef CHECK__register_frame_info
3220 __register_frame_info (__EH_FRAME_BEGIN__);
3221 __deregister_frame_info (__EH_FRAME_BEGIN__);
3226 /* FIXME: this is fragile. */
3236 if { ac_try
='${CC-cc} $CFLAGS -DCHECK__register_frame_info
3237 -nostdlib -nostartfiles
3238 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:3239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3239 libc_cv_gcc_dwarf2_unwind_info
=static
3241 libc_cv_gcc_dwarf2_unwind_info
=no
3243 if test $libc_cv_gcc_dwarf2_unwind_info = no
; then
3244 if { ac_try
='${CC-cc} $CFLAGS -DCHECK__register_frame
3245 -nostdlib -nostartfiles
3246 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:3247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3247 libc_cv_gcc_dwarf2_unwind_info
=yes
3249 libc_cv_gcc_dwarf2_unwind_info
=no
3255 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
3256 case $libc_cv_gcc_dwarf2_unwind_info in
3258 cat >> confdefs.h
<<\EOF
3259 #define HAVE_DWARF2_UNWIND_INFO 1
3264 cat >> confdefs.h
<<\EOF
3265 #define HAVE_DWARF2_UNWIND_INFO 1
3268 cat >> confdefs.h
<<\EOF
3269 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
3275 echo $ac_n "checking for __builtin_expect""... $ac_c" 1>&6
3276 echo "configure:3277: checking for __builtin_expect" >&5
3277 if eval "test \"`echo '$''{'libc_cv_gcc_builtin_expect'+set}'`\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3280 cat > conftest.c
<<EOF
3281 #line 3282 "configure"
3284 a = __builtin_expect (a, 10);
3285 return a == 10 ? 0 : 1;
3288 if { ac_try
='${CC-cc} $CFLAGS -nostdlib -nostartfiles
3289 -o conftest conftest.c -lgcc >&5'; { (eval echo configure
:3290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
3290 libc_cv_gcc_builtin_expect
=yes
3292 libc_cv_gcc_builtin_expect
=no
3297 echo "$ac_t""$libc_cv_gcc_builtin_expect" 1>&6
3298 if test "$libc_cv_gcc_builtin_expect" = yes; then
3299 cat >> confdefs.h
<<\EOF
3300 #define HAVE_BUILTIN_EXPECT 1
3305 echo $ac_n "checking for local label subtraction""... $ac_c" 1>&6
3306 echo "configure:3307: checking for local label subtraction" >&5
3307 if eval "test \"`echo '$''{'libc_cv_gcc_subtract_local_labels'+set}'`\" = set"; then
3308 echo $ac_n "(cached) $ac_c" 1>&6
3310 cat > conftest.c
<<EOF
3311 #line 3312 "configure"
3314 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
3315 void *p = &&l1 + ar[a];
3323 if { ac_try
='${CC-cc} $CFLAGS -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_subtract_local_labels
=yes
3327 libc_cv_gcc_subtract_local_labels
=no
3332 echo "$ac_t""$libc_cv_gcc_subtract_local_labels" 1>&6
3333 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
3334 cat >> confdefs.h
<<\EOF
3335 #define HAVE_SUBTRACT_LOCAL_LABELS 1
3340 echo $ac_n "checking for libgd""... $ac_c" 1>&6
3341 echo "configure:3342: checking for libgd" >&5
3342 if test "$with_gd" != "no"; then
3343 old_CFLAGS
="$CFLAGS"
3344 CFLAGS
="$CFLAGS $libgd_include"
3345 old_LDFLAGS
="$LDFLAGS"
3346 LDFLAGS
="$LDFLAGS $libgd_ldflags"
3348 LIBS
="$LIBS -lgd -lpng -lz -lm"
3349 cat > conftest.
$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3357 if { (eval echo configure
:3358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3361 echo "configure: failed program was:" >&5
3362 cat conftest.
$ac_ext >&5
3367 CFLAGS
="$old_CFLAGS"
3368 LDFLAGS
="$old_LDFLAGS"
3373 echo "$ac_t""$LIBGD" 1>&6
3376 echo $ac_n "checking size of long double""... $ac_c" 1>&6
3377 echo "configure:3378: checking size of long double" >&5
3378 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3379 echo $ac_n "(cached) $ac_c" 1>&6
3381 if test "$cross_compiling" = yes; then
3382 ac_cv_sizeof_long_double
=0
3384 cat > conftest.
$ac_ext <<EOF
3385 #line 3386 "configure"
3386 #include "confdefs.h"
3390 FILE *f=fopen("conftestval", "w");
3392 fprintf(f, "%d\n", sizeof(long double));
3396 if { (eval echo configure
:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3398 ac_cv_sizeof_long_double
=`cat conftestval`
3400 echo "configure: failed program was:" >&5
3401 cat conftest.
$ac_ext >&5
3403 ac_cv_sizeof_long_double
=0
3409 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3410 cat >> confdefs.h
<<EOF
3411 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3415 sizeof_long_double
=$ac_cv_sizeof_long_double
3418 ### End of automated tests.
3419 ### Now run sysdeps configure fragments.
3421 # sysdeps configure fragments may set these with files to be linked below.
3425 # They also can set these variables.
3427 ldd_rewrite_script
=no
3429 # Iterate over all the sysdep directories we will use, running their
3430 # configure fragments, and looking for a uname implementation.
3432 for dir
in $sysnames; do
3435 *) dest
=$srcdir/$dir ;;
3437 if test -r $dest/configure
; then
3438 echo "$ac_t""running configure fragment for $dest" 1>&6
3442 if test -z "$uname"; then
3443 if test -r $dest/uname.c ||
3444 test -r $dest/uname.S ||
3445 { test -r $dest/syscalls.list
&&
3446 grep '^uname[ ]' $dest/syscalls.list
>/dev
/null
; }; then
3454 # If we will use the generic uname implementation, we must figure out what
3455 # it will say by examining the system, and write the results in config-name.h.
3456 if test "$uname" = "sysdeps/generic"; then
3458 uname_sysname
=`echo $config_os | sed 's/[0-9.]*$//'`
3459 if test $uname_sysname != $config_os; then
3460 config_release
=`echo $config_os | sed s/$uname_sysname//`
3463 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
3464 echo "configure:3465: checking OS release for uname" >&5
3465 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3468 kernel_release
=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
3469 if test x
`echo "$config_release" | sed "s/^$kernel_release//"` \
3470 != x
$config_release; then
3471 # The configuration release is a substring of the kernel release.
3472 libc_cv_uname_release
=$kernel_release
3473 elif test x
$config_release != x
; then
3474 libc_cv_uname_release
=$config_release
3475 elif test x
$kernel_release != x
; then
3476 libc_cv_uname_release
=$kernel_release
3478 libc_cv_uname_release
=unknown
3482 echo "$ac_t""$libc_cv_uname_release" 1>&6
3483 uname_release
="$libc_cv_uname_release"
3485 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
3486 echo "configure:3487: checking OS version for uname" >&5
3487 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3490 kernel_version
=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
3491 if test -n "$kernel_version"; then
3492 libc_cv_uname_version
="$kernel_version"
3494 libc_cv_uname_version
=unknown
3498 echo "$ac_t""$libc_cv_uname_version" 1>&6
3499 uname_version
="$libc_cv_uname_version"
3501 config_uname
=config-name.h
:config-name.
in
3503 # For non-generic uname, we don't need to create config-name.h at all.
3507 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
3508 echo "configure:3509: checking stdio selection" >&5
3511 libio
) cat >> confdefs.h
<<\EOF
3512 #define USE_IN_LIBIO 1
3515 default
) stdio
=stdio
;;
3517 echo "$ac_t""$stdio" 1>&6
3519 # Test for old glibc 2.0.x headers so that they can be removed properly
3520 # Search only in includedir.
3521 echo $ac_n "checking for old glibc 2.0.x headers""... $ac_c" 1>&6
3522 echo "configure:3523: checking for old glibc 2.0.x headers" >&5
3523 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
3525 old_glibc_headers
=yes
3527 old_glibc_headers
=no
3529 echo "$ac_t""$old_glibc_headers" 1>&6
3530 if test ${old_glibc_headers} = yes; then
3531 echo "configure: warning: *** During \"make install\" old headers from glibc 2.0.x will" 1>&2
3532 echo "configure: warning: *** be removed." 1>&2
3544 if test $gnu_ld = yes; then
3545 cat >> confdefs.h
<<\EOF
3546 #define HAVE_GNU_LD 1
3550 if test $gnu_as = yes; then
3551 cat >> confdefs.h
<<\EOF
3552 #define HAVE_GNU_AS 1
3556 if test $elf = yes; then
3557 cat >> confdefs.h
<<\EOF
3565 if test $shared = default
; then
3566 if test $gnu_ld = yes; then
3569 # For now we do not assume shared libs are available. In future more
3570 # tests might become available.
3575 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
3576 echo "configure:3577: checking whether -fPIC is default" >&5
3577 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
3578 echo $ac_n "(cached) $ac_c" 1>&6
3581 cat > conftest.c
<<EOF
3582 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
3583 # error PIC is default.
3586 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
3592 echo "$ac_t""$pic_default" 1>&6
3604 *door
*) linux_doors
=yes ;;
3605 *) linux_doors
=no
;;
3609 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
3612 config_makefile
=Makefile
3615 VERSION
=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
3616 RELEASE
=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
3621 cat > confcache
<<\EOF
3622 # This file is a shell script that caches the results of configure
3623 # tests run on this system so they can be shared between configure
3624 # scripts and configure runs. It is not useful on other systems.
3625 # If it contains results you don't want to keep, you may remove or edit it.
3627 # By default, configure uses ./config.cache as the cache file,
3628 # creating it if it does not exist already. You can give configure
3629 # the --cache-file=FILE option to use a different cache file; that is
3630 # what configure does when it calls configure scripts in
3631 # subdirectories, so they share the cache.
3632 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3633 # config.status only pays attention to the cache file if you give it the
3634 # --recheck option to rerun configure.
3637 # The following way of writing the cache mishandles newlines in values,
3638 # but we know of no workaround that is simple, portable, and efficient.
3639 # So, don't put newlines in cache variables' values.
3640 # Ultrix sh set writes to stderr and can't be redirected directly,
3641 # and sets the high bit in the cache file unless we assign to the vars.
3643 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3645 # `set' does not quote correctly, so add quotes (double-quote substitution
3646 # turns \\\\ into \\, and sed turns \\ into \).
3648 -e "s/'/'\\\\''/g" \
3649 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3652 # `set' quotes correctly as required by POSIX, so do not add quotes.
3653 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3656 if cmp -s $cache_file confcache
; then
3659 if test -w $cache_file; then
3660 echo "updating cache $cache_file"
3661 cat confcache
> $cache_file
3663 echo "not updating unwritable cache $cache_file"
3668 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3670 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3671 # Let make expand exec_prefix.
3672 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3674 # Any assignment to VPATH causes Sun make to only execute
3675 # the first set of double-colon rules, so remove it if not needed.
3676 # If there is a colon in the path, we need to keep it.
3677 if test "x$srcdir" = x.
; then
3678 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3681 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3683 DEFS
=-DHAVE_CONFIG_H
3685 # Without the "./", some shells look in PATH for config.status.
3686 : ${CONFIG_STATUS=./config.status}
3688 echo creating
$CONFIG_STATUS
3689 rm -f $CONFIG_STATUS
3690 cat > $CONFIG_STATUS <<EOF
3692 # Generated automatically by configure.
3693 # Run this file to recreate the current configuration.
3694 # This directory was configured as follows,
3695 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3697 # $0 $ac_configure_args
3699 # Compiler output produced by configure, useful for debugging
3700 # configure, is in ./config.log if it exists.
3702 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3705 case "\$ac_option" in
3706 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3707 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3708 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3709 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3710 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3712 -help | --help | --hel | --he | --h)
3713 echo "\$ac_cs_usage"; exit 0 ;;
3714 *) echo "\$ac_cs_usage"; exit 1 ;;
3718 ac_given_srcdir=$srcdir
3719 ac_given_INSTALL="$INSTALL"
3721 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3723 cat >> $CONFIG_STATUS <<EOF
3725 # Protect against being on the right side of a sed subst in config.status.
3726 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3727 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3731 s%@CFLAGS@%$CFLAGS%g
3732 s%@CPPFLAGS@%$CPPFLAGS%g
3733 s%@CXXFLAGS@%$CXXFLAGS%g
3734 s%@FFLAGS@%$FFLAGS%g
3736 s%@LDFLAGS@%$LDFLAGS%g
3738 s%@exec_prefix@%$exec_prefix%g
3739 s%@prefix@%$prefix%g
3740 s%@program_transform_name@%$program_transform_name%g
3741 s%@bindir@%$bindir%g
3742 s%@sbindir@%$sbindir%g
3743 s%@libexecdir@%$libexecdir%g
3744 s%@datadir@%$datadir%g
3745 s%@sysconfdir@%$sysconfdir%g
3746 s%@sharedstatedir@%$sharedstatedir%g
3747 s%@localstatedir@%$localstatedir%g
3748 s%@libdir@%$libdir%g
3749 s%@includedir@%$includedir%g
3750 s%@oldincludedir@%$oldincludedir%g
3751 s%@infodir@%$infodir%g
3752 s%@mandir@%$mandir%g
3753 s%@with_cvs@%$with_cvs%g
3754 s%@oldest_abi@%$oldest_abi%g
3755 s%@subdirs@%$subdirs%g
3756 s%@force_install@%$force_install%g
3757 s%@all_warnings@%$all_warnings%g
3759 s%@host_alias@%$host_alias%g
3760 s%@host_cpu@%$host_cpu%g
3761 s%@host_vendor@%$host_vendor%g
3762 s%@host_os@%$host_os%g
3763 s%@base_machine@%$base_machine%g
3764 s%@sysnames@%$sysnames%g
3765 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3766 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3767 s%@INSTALL_DATA@%$INSTALL_DATA%g
3771 s%@build_alias@%$build_alias%g
3772 s%@build_cpu@%$build_cpu%g
3773 s%@build_vendor@%$build_vendor%g
3774 s%@build_os@%$build_os%g
3777 s%@MSGFMT@%$MSGFMT%g
3778 s%@MAKEINFO@%$MAKEINFO%g
3780 s%@cross_linkable@%$cross_linkable%g
3781 s%@BUILD_CC@%$BUILD_CC%g
3782 s%@cross_compiling@%$cross_compiling%g
3785 s%@RANLIB@%$RANLIB%g
3787 s%@CCVERSION@%$CCVERSION%g
3788 s%@SYSINCLUDES@%$SYSINCLUDES%g
3790 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
3792 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
3795 s%@INSTALL_INFO@%$INSTALL_INFO%g
3796 s%@OLD_DEBIAN_INSTALL_INFO@%$OLD_DEBIAN_INSTALL_INFO%g
3798 s%@VERSIONING@%$VERSIONING%g
3799 s%@libc_cv_asm_protected_directive@%$libc_cv_asm_protected_directive%g
3800 s%@libc_cv_z_nodelete@%$libc_cv_z_nodelete%g
3801 s%@libc_cv_z_nodlopen@%$libc_cv_z_nodlopen%g
3802 s%@libc_cv_z_initfirst@%$libc_cv_z_initfirst%g
3803 s%@libc_cv_Bgroup@%$libc_cv_Bgroup%g
3804 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
3805 s%@no_whole_archive@%$no_whole_archive%g
3806 s%@exceptions@%$exceptions%g
3808 s%@sizeof_long_double@%$sizeof_long_double%g
3809 s%@uname_sysname@%$uname_sysname%g
3810 s%@uname_release@%$uname_release%g
3811 s%@uname_version@%$uname_version%g
3813 s%@old_glibc_headers@%$old_glibc_headers%g
3814 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
3815 s%@libc_cv_localedir@%$libc_cv_localedir%g
3816 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
3817 s%@use_ldconfig@%$use_ldconfig%g
3818 s%@ldd_rewrite_script@%$ldd_rewrite_script%g
3819 s%@gnu_ld@%$gnu_ld%g
3820 s%@gnu_as@%$gnu_as%g
3822 s%@static@%$static%g
3823 s%@shared@%$shared%g
3824 s%@pic_default@%$pic_default%g
3825 s%@profile@%$profile%g
3826 s%@omitfp@%$omitfp%g
3827 s%@bounded@%$bounded%g
3828 s%@static_nss@%$static_nss%g
3829 s%@nopic_initfini@%$nopic_initfini%g
3830 s%@DEFINES@%$DEFINES%g
3831 s%@linux_doors@%$linux_doors%g
3832 s%@VERSION@%$VERSION%g
3833 s%@RELEASE@%$RELEASE%g
3838 cat >> $CONFIG_STATUS <<\EOF
3840 # Split the substitutions into bite-sized pieces for seds with
3841 # small command number limits, like on Digital OSF/1 and HP-UX.
3842 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3843 ac_file
=1 # Number of current file.
3844 ac_beg
=1 # First line for current file.
3845 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3848 while $ac_more_lines; do
3849 if test $ac_beg -gt 1; then
3850 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3852 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3854 if test ! -s conftest.s
$ac_file; then
3856 rm -f conftest.s
$ac_file
3858 if test -z "$ac_sed_cmds"; then
3859 ac_sed_cmds
="sed -f conftest.s$ac_file"
3861 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3863 ac_file
=`expr $ac_file + 1`
3865 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3868 if test -z "$ac_sed_cmds"; then
3873 cat >> $CONFIG_STATUS <<EOF
3875 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
3877 cat >> $CONFIG_STATUS <<\EOF
3878 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3879 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3881 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3882 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3883 *) ac_file_in
="${ac_file}.in" ;;
3886 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3888 # Remove last slash and all that follows it. Not all systems have dirname.
3889 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3890 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3891 # The file is in a subdirectory.
3892 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3893 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3894 # A "../" for each directory in $ac_dir_suffix.
3895 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3897 ac_dir_suffix
= ac_dots
=
3900 case "$ac_given_srcdir" in
3902 if test -z "$ac_dots"; then top_srcdir
=.
3903 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3904 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3906 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3907 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3910 case "$ac_given_INSTALL" in
3911 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3912 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3915 echo creating
"$ac_file"
3917 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3919 *Makefile
*) ac_comsub
="1i\\
3920 # $configure_input" ;;
3924 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3926 s%@configure_input@%$configure_input%g
3927 s%@srcdir@%$srcdir%g
3928 s%@top_srcdir@%$top_srcdir%g
3929 s%@INSTALL@%$INSTALL%g
3930 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3934 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3935 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3937 # ac_d sets the value in "#define NAME VALUE" lines.
3938 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3939 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3942 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3943 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3944 ac_uB
='\([ ]\)%\1#\2define\3'
3947 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3948 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3949 ac_eB
='$%\1#\2define\3'
3953 if test "${CONFIG_HEADERS+set}" != set; then
3955 cat >> $CONFIG_STATUS <<EOF
3956 CONFIG_HEADERS="config.h"
3958 cat >> $CONFIG_STATUS <<\EOF
3960 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3961 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3963 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3964 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3965 *) ac_file_in
="${ac_file}.in" ;;
3968 echo creating
$ac_file
3970 rm -f conftest.frag conftest.
in conftest.out
3971 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3972 cat $ac_file_inputs > conftest.
in
3976 # Transform confdefs.h into a sed script conftest.vals that substitutes
3977 # the proper values into config.h.in to produce config.h. And first:
3978 # Protect against being on the right side of a sed subst in config.status.
3979 # Protect against being in an unquoted here document in config.status.
3981 cat > conftest.hdr
<<\EOF
3984 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3988 sed -n -f conftest.hdr confdefs.h > conftest.vals
3991 # This sed command replaces #undef with comments. This is necessary, for
3992 # example, in the case of _POSIX_SOURCE, which is predefined and required
3993 # on some systems where configure will not decide to define it.
3994 cat >> conftest.vals <<\EOF
3995 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3998 # Break up conftest.vals because some shells have a limit on
3999 # the size of here documents, and old seds have small limits too.
4004 ac_lines=`grep -c . conftest.vals
`
4005 # grep -c gives empty output for an empty file on some AIX systems.
4006 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4007 # Write a limited-size here document to conftest.frag.
4008 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4009 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4011 sed -f conftest.frag conftest.in > conftest.out
4013 mv conftest.out conftest.in
4015 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4017 mv conftest.tail conftest.vals
4021 cat >> $CONFIG_STATUS <<\EOF
4022 rm -f conftest.frag conftest.h
4023 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4024 cat conftest.in >> conftest.h
4026 if cmp -s $ac_file conftest.h 2>/dev/null; then
4027 echo "$ac_file is unchanged"
4030 # Remove last slash and all that follows it. Not all systems have dirname.
4031 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4032 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4033 # The file is in a subdirectory.
4034 test ! -d "$ac_dir" && mkdir "$ac_dir"
4037 mv conftest.h $ac_file
4043 cat >> $CONFIG_STATUS <<EOF
4044 ac_sources="`echo $libc_link_sources`"
4045 ac_dests="`echo $libc_link_dests`"
4048 cat >> $CONFIG_STATUS <<\EOF
4049 srcdir=$ac_given_srcdir
4050 while test -n "$ac_sources"; do
4051 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
4052 set $ac_sources; ac_source=$1; shift; ac_sources=$*
4054 echo "linking $srcdir/$ac_source to $ac_dest"
4056 if test ! -r $srcdir/$ac_source; then
4057 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
4061 # Make relative symlinks.
4062 # Remove last slash and all that follows it. Not all systems have dirname.
4063 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
4064 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
4065 # The dest file is in a subdirectory.
4066 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
4067 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
4068 # A "../" for each directory in $ac_dest_dir_suffix.
4069 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
4071 ac_dest_dir_suffix= ac_dots=
4075 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
4076 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
4079 # Make a symlink if possible; otherwise try a hard link.
4080 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
4081 ln $srcdir/$ac_source $ac_dest; then :
4083 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
4087 cat >> $CONFIG_STATUS <<EOF
4088 config_vars='$config_vars'
4090 cat >> $CONFIG_STATUS <<\EOF
4092 case $CONFIG_FILES in *config.make*)
4093 echo "$config_vars" >> config.make;;
4095 test -d bits || mkdir bits
4098 chmod +x $CONFIG_STATUS
4099 rm -fr confdefs* $ac_clean_files
4100 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4102 if test "$no_recursion" != yes; then
4104 # Remove --cache-file and --srcdir arguments so they do not pile up.
4105 ac_sub_configure_args=
4107 for ac_arg in $ac_configure_args; do
4108 if test -n "$ac_prev"; then
4113 -cache-file | --cache-file | --cache-fil | --cache-fi \
4114 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4115 ac_prev=cache_file ;;
4116 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4117 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
4119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4123 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
4127 for ac_config_dir in $add_ons; do
4129 # Do not complain, so a configure script can configure whichever
4130 # parts of a large source tree are present.
4131 if test ! -d $srcdir/$ac_config_dir; then
4135 echo configuring in $ac_config_dir
4140 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
4142 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
4150 # A "../" for each directory in /$ac_config_dir.
4151 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
4154 .) # No --srcdir option. We are building in place.
4155 ac_sub_srcdir=$srcdir ;;
4156 /*) # Absolute path.
4157 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
4159 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
4162 # Check for guested configure; otherwise get Cygnus style configure.
4163 if test -f $ac_sub_srcdir/configure; then
4164 ac_sub_configure=$ac_sub_srcdir/configure
4165 elif test -f $ac_sub_srcdir/configure.in; then
4166 ac_sub_configure=$ac_configure
4168 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
4172 # The recursion is here.
4173 if test -n "$ac_sub_configure"; then
4175 # Make the cache file name correct relative to the subdirectory.
4176 case "$cache_file" in
4177 /*) ac_sub_cache_file=$cache_file ;;
4179 ac_sub_cache_file="$ac_dots$cache_file" ;;
4181 case "$ac_given_INSTALL" in
4182 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4183 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4186 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
4187 # The eval makes quoting arguments work.
4188 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
4191 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }