3 # From configure.in CVSid
12 # Guess values for system-dependent variables and create Makefiles.
13 # Generated automatically using autoconf version 2.12
14 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
16 # This configure script is free software; the Free Software Foundation
17 # gives unlimited permission to copy, distribute and modify it.
21 ac_default_prefix=/usr/local
22 # Any additions from configure.in:
24 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
26 --with-gettext=DIR find GNU gettext source code in DIR (not needed)"
28 --with-fp if using floating-point hardware [default=yes]"
30 --with-binutils=PATH specify location of binutils (as and ld)
31 path_binutils=$withval"
33 --with-elf if using the ELF object format"
35 --enable-libio build in GNU libio instead of GNU stdio"
37 --disable-sanity-checks really do not use threads (should not be used
38 except in special situations) [default=yes]"
40 --enable-static build static library [default=yes]"
42 --enable-shared build shared library [default=yes if GNU ld & ELF]"
44 --enable-profile build profiled library [default=yes]"
46 --enable-omitfp build undebuggable optimized library [default=no]"
48 --enable-bounded build with runtime bounds checking [default=no]"
50 --disable-versioning do not include versioning information in the
51 library objects [default=yes if supported]"
53 --enable-add-ons=DIR... configure and build named extra directories"
55 --enable-static-nss build static NSS modules [default=no]"
57 # Initialize some variables set by options.
58 # The variables have the same names as the options, with
59 # dashes changed to underlines.
61 cache_file=./config.cache
70 program_transform_name=s,x,x,
78 bindir='${exec_prefix}/bin'
79 sbindir='${exec_prefix}/sbin'
80 libexecdir='${exec_prefix}/libexec'
81 datadir='${prefix}/share'
82 sysconfdir='${prefix}/etc'
83 sharedstatedir='${prefix}/com'
84 localstatedir='${prefix}/var'
85 libdir='${exec_prefix}/lib'
86 includedir='${prefix}/include'
87 oldincludedir='/usr/include'
88 infodir='${prefix}/info'
89 mandir='${prefix}/man'
91 # Initialize some other variables.
94 # Maximum number of lines to put in a shell here document.
101 # If the previous option needs an argument, assign it.
102 if test -n "$ac_prev"; then
103 eval "$ac_prev=\$ac_option"
109 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
113 # Accept the important Cygnus configure options, so we can diagnose typos.
117 -bindir | --bindir | --bindi | --bind | --bin | --bi)
119 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
120 bindir="$ac_optarg" ;;
122 -build | --build | --buil | --bui | --bu)
124 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
125 build="$ac_optarg" ;;
127 -cache-file | --cache-file | --cache-fil | --cache-fi \
128 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
129 ac_prev=cache_file ;;
130 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
131 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
132 cache_file="$ac_optarg" ;;
134 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
136 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
138 datadir="$ac_optarg" ;;
140 -disable-* | --disable-*)
141 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}=no" ;;
149 -enable-* | --enable-*)
150 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
151 # Reject names that are not valid shell variable names.
152 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
153 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}='$ac_optarg'" ;;
162 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
163 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
164 | --exec | --exe | --ex)
165 ac_prev=exec_prefix ;;
166 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
167 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
168 | --exec=* | --exe=* | --ex=*)
169 exec_prefix="$ac_optarg" ;;
171 -gas | --gas | --ga | --g)
172 # Obsolete; use --with-gas.
175 -help | --help | --hel | --he)
176 # Omit some internal or obsolete options to make the list less imposing.
177 # This message is too long to be a string in the A/UX 3.1 sh.
179 Usage: configure [options] [host]
180 Options: [defaults in brackets after descriptions]
182 --cache-file=FILE cache test results in FILE
183 --help print this message
184 --no-create do not create output files
185 --quiet, --silent do not print \`checking...' messages
186 --version print the version of autoconf that created configure
187 Directory and file names:
188 --prefix=PREFIX install architecture-independent files in PREFIX
190 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
192 --bindir=DIR user executables in DIR [EPREFIX/bin]
193 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
194 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
195 --datadir=DIR read-only architecture-independent data in DIR
197 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
198 --sharedstatedir=DIR modifiable architecture-independent data in DIR
200 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
201 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
202 --includedir=DIR C header files in DIR [PREFIX/include]
203 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
204 --infodir=DIR info documentation in DIR [PREFIX/info]
205 --mandir=DIR man documentation in DIR [PREFIX/man]
206 --srcdir=DIR find the sources in DIR [configure dir or ..]
207 --program-prefix=PREFIX prepend PREFIX to installed program names
208 --program-suffix=SUFFIX append SUFFIX to installed program names
209 --program-transform-name=PROGRAM
210 run sed PROGRAM on installed program names
214 --build=BUILD configure for building on BUILD [BUILD=HOST]
215 --host=HOST configure for HOST [guessed]
216 --target=TARGET configure for TARGET [TARGET=HOST]
217 Features and packages:
218 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
219 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
220 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
221 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
222 --x-includes=DIR X include files are in DIR
223 --x-libraries=DIR X library files are in DIR
225 if test -n "$ac_help"; then
226 echo "--enable and --with options recognized:$ac_help"
230 -host | --host | --hos | --ho)
232 -host=* | --host=* | --hos=* | --ho=*)
235 -includedir | --includedir | --includedi | --included | --include \
236 | --includ | --inclu | --incl | --inc)
237 ac_prev=includedir ;;
238 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
239 | --includ=* | --inclu=* | --incl=* | --inc=*)
240 includedir="$ac_optarg" ;;
242 -infodir | --infodir | --infodi | --infod | --info | --inf)
244 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
245 infodir="$ac_optarg" ;;
247 -libdir | --libdir | --libdi | --libd)
249 -libdir=* | --libdir=* | --libdi=* | --libd=*)
250 libdir="$ac_optarg" ;;
252 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
253 | --libexe | --libex | --libe)
254 ac_prev=libexecdir ;;
255 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
256 | --libexe=* | --libex=* | --libe=*)
257 libexecdir="$ac_optarg" ;;
259 -localstatedir | --localstatedir | --localstatedi | --localstated \
260 | --localstate | --localstat | --localsta | --localst \
261 | --locals | --local | --loca | --loc | --lo)
262 ac_prev=localstatedir ;;
263 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
264 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
265 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
266 localstatedir="$ac_optarg" ;;
268 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
270 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
271 mandir="$ac_optarg" ;;
274 # Obsolete; use --without-fp.
277 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
281 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
282 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
285 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
286 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
287 | --oldin | --oldi | --old | --ol | --o)
288 ac_prev=oldincludedir ;;
289 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
290 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
291 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
292 oldincludedir="$ac_optarg" ;;
294 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
296 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
297 prefix="$ac_optarg" ;;
299 -program-prefix | --program-prefix | --program-prefi | --program-pref \
300 | --program-pre | --program-pr | --program-p)
301 ac_prev=program_prefix ;;
302 -program-prefix=* | --program-prefix=* | --program-prefi=* \
303 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
304 program_prefix="$ac_optarg" ;;
306 -program-suffix | --program-suffix | --program-suffi | --program-suff \
307 | --program-suf | --program-su | --program-s)
308 ac_prev=program_suffix ;;
309 -program-suffix=* | --program-suffix=* | --program-suffi=* \
310 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
311 program_suffix="$ac_optarg" ;;
313 -program-transform-name | --program-transform-name \
314 | --program-transform-nam | --program-transform-na \
315 | --program-transform-n | --program-transform- \
316 | --program-transform | --program-transfor \
317 | --program-transfo | --program-transf \
318 | --program-trans | --program-tran \
319 | --progr-tra | --program-tr | --program-t)
320 ac_prev=program_transform_name ;;
321 -program-transform-name=* | --program-transform-name=* \
322 | --program-transform-nam=* | --program-transform-na=* \
323 | --program-transform-n=* | --program-transform-=* \
324 | --program-transform=* | --program-transfor=* \
325 | --program-transfo=* | --program-transf=* \
326 | --program-trans=* | --program-tran=* \
327 | --progr-tra=* | --program-tr=* | --program-t=*)
328 program_transform_name="$ac_optarg" ;;
330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
331 | -silent | --silent | --silen | --sile | --sil)
334 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
336 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
338 sbindir="$ac_optarg" ;;
340 -sharedstatedir | --sharedstatedir | --sharedstatedi \
341 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
342 | --sharedst | --shareds | --shared | --share | --shar \
344 ac_prev=sharedstatedir ;;
345 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
346 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
347 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
349 sharedstatedir="$ac_optarg" ;;
351 -site | --site | --sit)
353 -site=* | --site=* | --sit=*)
356 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
358 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
359 srcdir="$ac_optarg" ;;
361 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
362 | --syscon | --sysco | --sysc | --sys | --sy)
363 ac_prev=sysconfdir ;;
364 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
365 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
366 sysconfdir="$ac_optarg" ;;
368 -target | --target | --targe | --targ | --tar | --ta | --t)
370 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
371 target="$ac_optarg" ;;
373 -v | -verbose | --verbose | --verbos | --verbo | --verb)
376 -version | --version | --versio | --versi | --vers)
377 echo "configure generated by autoconf version 2.12"
381 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}='$ac_optarg'" ;;
393 -without-* | --without-*)
394 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
400 eval "with_${ac_package}=no" ;;
403 # Obsolete; use --with-x.
406 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
407 | --x-incl | --x-inc | --x-in | --x-i)
408 ac_prev=x_includes ;;
409 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
410 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
411 x_includes="$ac_optarg" ;;
413 -x-libraries | --x-libraries | --x-librarie | --x-librari \
414 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
415 ac_prev=x_libraries ;;
416 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
417 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
418 x_libraries="$ac_optarg" ;;
420 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
424 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
425 echo "configure: warning: $ac_option: invalid host type" 1>&2
427 if test "x$nonopt" != xNONE; then
428 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
436 if test -n "$ac_prev"; then
437 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
440 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
442 # File descriptor usage:
445 # 2 errors and warnings
446 # 3 some systems may open it to /dev/tty
447 # 4 used on the Kubota Titan
448 # 6 checking for... messages and results
449 # 5 compiler messages saved in config.log
450 if test "$silent" = yes; then
458 This file contains any messages produced by compilers while
459 running configure, to aid debugging if configure makes a mistake.
462 # Strip out --no-create and --no-recursion so they do not pile up.
463 # Also quote any args containing shell metacharacters.
468 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
469 | --no-cr | --no-c) ;;
470 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
471 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
472 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
473 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
474 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
479 # Only set these to C if already set. These must not be set unconditionally
480 # because not all systems understand e.g. LANG=C (notably SCO).
481 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
482 # Non-C LC_CTYPE values break the ctype check.
483 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
484 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
485 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
486 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
488 # confdefs.h avoids OS command line length limits that DEFS can exceed.
489 rm -rf conftest* confdefs.h
490 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
493 # A filename unique to this package, relative to the directory that
494 # configure is in, which we can look for to find out if srcdir is correct.
495 ac_unique_file=include/features.h
497 # Find the source files, if location was not specified.
498 if test -z "$srcdir"; then
499 ac_srcdir_defaulted=yes
500 # Try the directory containing this script, then its parent.
502 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
503 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
505 if test ! -r $srcdir/$ac_unique_file; then
509 ac_srcdir_defaulted=no
511 if test ! -r $srcdir/$ac_unique_file; then
512 if test "$ac_srcdir_defaulted" = yes; then
513 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
515 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
518 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
520 # Prefer explicitly selected file to automatically selected ones.
521 if test -z "$CONFIG_SITE"; then
522 if test "x$prefix" != xNONE; then
523 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
525 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
528 for ac_site_file in $CONFIG_SITE; do
529 if test -r "$ac_site_file"; then
530 echo "loading site script $ac_site_file"
535 if test -r "$cache_file"; then
536 echo "loading cache $cache_file"
539 echo "creating cache $cache_file"
544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
545 ac_cpp='$CPP $CPPFLAGS'
546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
547 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
548 cross_compiling=$ac_cv_prog_cc_cross
550 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
551 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
552 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
559 ac_n= ac_c='\c' ac_t=
562 if test -r /vmunix; then
563 kernel_id=`strings /vmunix | grep UNIX`
564 elif test -r /dynix; then
565 kernel_id=`strings /dynix | grep DYNIX`
573 # This will get text that should go into config.make.
576 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
577 # Check whether --with-gmp or --without-gmp was given.
578 if test "${with_gmp+set}" = set; then
581 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
583 *) config_vars="$config_vars
584 gmp-srcdir = $withval" ;;
589 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
590 # Check whether --with-gettext or --without-gettext was given.
591 if test "${with_gettext+set}" = set; then
592 withval="$with_gettext"
593 case "$with_gettext" in
595 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
598 config_vars="$config_vars
599 gettext-srcdir = $withval" ;;
605 # Check whether --with-fp or --without-fp was given.
606 if test "${with_fp+set}" = set; then
613 # Check whether --with-binutils or --without-binutils was given.
614 if test "${with_binutils+set}" = set; then
615 withval="$with_binutils"
619 # Check whether --with-elf or --without-elf was given.
620 if test "${with_elf+set}" = set; then
628 # Check whether --enable-libio or --disable-libio was given.
629 if test "${enable_libio+set}" = set; then
630 enableval="$enable_libio"
631 if test $enableval = yes; then
641 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
642 if test "${enable_sanity_checks+set}" = set; then
643 enableval="$enable_sanity_checks"
644 enable_sanity=$enableval
650 # Check whether --enable-static or --disable-static was given.
651 if test "${enable_static+set}" = set; then
652 enableval="$enable_static"
658 # Check whether --enable-shared or --disable-shared was given.
659 if test "${enable_shared+set}" = set; then
660 enableval="$enable_shared"
666 # Check whether --enable-profile or --disable-profile was given.
667 if test "${enable_profile+set}" = set; then
668 enableval="$enable_profile"
674 # Check whether --enable-omitfp or --disable-omitfp was given.
675 if test "${enable_omitfp+set}" = set; then
676 enableval="$enable_omitfp"
682 # Check whether --enable-bounded or --disable-bounded was given.
683 if test "${enable_bounded+set}" = set; then
684 enableval="$enable_bounded"
690 # Check whether --enable-versioning or --disable-versioning was given.
691 if test "${enable_versioning+set}" = set; then
692 enableval="$enable_versioning"
693 enable_versioning=$enableval
695 enable_versioning=yes
699 # Check whether --enable-add-ons or --disable-add-ons was given.
700 if test "${enable_add_ons+set}" = set; then
701 enableval="$enable_add_ons"
702 add_ons=`echo "$enableval" | sed 's/,/ /g'`
708 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
709 if test -f $ac_dir/install-sh; then
711 ac_install_sh="$ac_aux_dir/install-sh -c"
713 elif test -f $ac_dir/install.sh; then
715 ac_install_sh="$ac_aux_dir/install.sh -c"
719 if test -z "$ac_aux_dir"; then
720 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
722 ac_config_guess=$ac_aux_dir/config.guess
723 ac_config_sub=$ac_aux_dir/config.sub
724 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
729 if test x"$add_ons" != x; then
730 for f in $add_ons; do
731 add_ons_pfx="$add_ons_pfx $f/"
735 # Check whether --enable-static-nss or --disable-static-nss was given.
736 if test "${enable_static_nss+set}" = set; then
737 enableval="$enable_static_nss"
738 static_nss=$enableval
743 if test x"$static_nss" = xyes; then
744 cat >> confdefs.h <<\EOF
745 #define DO_STATIC_NSS 1
751 # Make sure we can run config.sub.
752 if $ac_config_sub sun4 >/dev/null 2>&1; then :
753 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
756 echo $ac_n "checking host system type""... $ac_c" 1>&6
757 echo "configure:758: checking host system type" >&5
760 case "$host_alias" in
764 if host_alias=`$ac_config_guess`; then :
765 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
767 *) host_alias=$nonopt ;;
771 host=`$ac_config_sub $host_alias`
772 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
773 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
774 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
775 echo "$ac_t""$host" 1>&6
778 # The way shlib-versions is used to generate soversions.mk uses a
779 # fairly simplistic model for name recognition that can't distinguish
780 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
781 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
782 # tell. This doesn't get used much beyond that, so it's fairly safe.
787 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
792 ### I put this here to prevent those annoying emails from people who cannot
793 ### read and try to compile glibc on unsupported platforms. --drepper
795 ### By using the undocumented --enable-hacker-mode option for configure
796 ### one can skip this test to make the configuration not fail for unsupported
799 if test -z "$enable_hacker_mode"; then
804 echo "*** The GNU C library is currently not available for this platform."
805 echo "*** So far nobody cared to port it and if there is no volunteer it"
806 echo "*** might never happen. So, if you have interest to see glibc on"
807 echo "*** this platform visit"
808 echo "*** http://www.gnu.ai.mit.edu/software/libc/porting.html"
809 echo "*** and join the group of porters"
815 # We keep the original values in `$config_*' and never modify them, so we
816 # can write them unchanged into config.make. Everything else uses
817 # $machine, $vendor, and $os, and changes them whenever convenient.
818 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
820 # Some configurations imply other options.
822 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
823 # These systems always use GNU tools.
824 gnu_ld=yes gnu_as=yes ;;
827 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
828 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
830 gnu* | linux* | sysv4* | solaris2*)
831 # These systems (almost) always use the ELF format.
836 machine=$config_machine
837 vendor=$config_vendor
840 # Expand the configuration machine name into a subdirectory by architecture
841 # type and particular chip.
843 a29k | am29000) base_machine=a29k machine=a29k ;;
844 alpha*) base_machine=alpha machine=alpha/$machine ;;
845 arm*) base_machine=arm machine=arm/$machine ;;
846 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
847 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
848 hppa*) base_machine=hppa machine=hppa/$machine ;;
849 i[3456]86) base_machine=i386 machine=i386/$machine ;;
850 m680?0) base_machine=m68k machine=m68k/$machine ;;
851 m68k) base_machine=m68k machine=m68k/m68020 ;;
852 m88???) base_machine=m88k machine=m88k/$machine ;;
853 m88k) base_machine=m88k machine=m88k/m88100 ;;
854 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
855 mips*) base_machine=mips machine=mips/$machine ;;
857 base_machine=sparc machine=sparc/sparc32 ;;
858 sparcv8 | supersparc | hypersparc)
859 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
860 sparc64 | ultrasparc)
861 base_machine=sparc machine=sparc/sparc64 ;;
865 # Compute the list of sysdep directories for this configuration.
866 # This can take a while to compute.
867 sysdep_dir=$srcdir/sysdeps
868 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
869 echo "configure:870: checking sysdep dirs" >&5
870 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
871 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
876 netbsd* | 386bsd* | freebsd* | bsdi*)
877 base_os=unix/bsd/bsd4.4 ;;
878 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
880 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
883 base_os=unix/sysv/sysv4 ;;
885 base_os=standalone ;;
890 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
893 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
897 o=`echo $tail | sed 's/[0-9]*$//'`
898 if test $o != $tail; then
901 # For linux-gnu, try linux-gnu, then linux.
902 o=`echo $tail | sed 's/-.*$//'`
903 if test $o != $tail; then
907 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
910 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
916 # For sparc/sparc9, try sparc/sparc9 and then sparc.
919 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
921 # Prepend the machine's FPU directory unless --without-fp.
922 if test "$with_fp" = yes; then
930 # Find what sysdep directories exist.
932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
933 for d in $add_ons_pfx ''; do
934 for b in $base ''; do
935 for m0 in $mach ''; do
936 for v in /$vendor ''; do
937 for o in /$ostry ''; do
938 for m in $mach ''; do
939 if test "$m0$b$v$o$m"; then
940 try="${d}sysdeps$m0$b$v$o$m"
941 test -n "$enable_debug_configure" &&
942 echo "$0 DEBUG: try $try" >&2
945 *) dest=$srcdir/$try ;;
947 if test -d $dest; then
948 sysnames="$sysnames $try"
949 { test -n "$o" || test -n "$b"; } && os_used=t
950 { test -n "$m" || test -n "$m0"; } && machine_used=t
961 if test -z "$os_used" && test "$os" != none; then
962 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
964 if test -z "$machine_used" && test "$machine" != none; then
965 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
968 # We have now validated the configuration.
971 # If using ELF, look for an `elf' subdirectory of each machine directory.
972 # We prepend these rather than inserting them whereever the machine appears
973 # because things specified by the machine's ELF ABI should override
974 # OS-specific things, and should always be the same for any OS on the
975 # machine (otherwise what's the point of an ABI?).
976 if test "$elf" = yes; then
978 for d in $add_ons_pfx ''; do
981 *) xsrcdir=$srcdir/ ;;
984 if test -d $xsrcdir${d}sysdeps$m/elf; then
985 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
989 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
993 # Expand the list of system names into a full list of directories
994 # from each element's parent name and Implies file (if present).
997 while test $# -gt 0; do
1001 case " $names " in *" $name "*)
1002 # Already in the list.
1006 # Report each name as we discover it, so there is no long pause in output.
1007 echo $ac_n "$name $ac_c" >&6
1009 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1013 *) xsrcdir=$srcdir/ ;;
1015 test -n "$enable_debug_configure" &&
1016 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1018 if test -f $xsrcdir$name/Implies; then
1019 # Collect more names from the `Implies' file (removing comments).
1020 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1022 for x in $implied_candidate; do
1023 if test -d $xsrcdir$name_base/$x; then
1024 implied="$implied $name_base/$x";
1026 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1033 # Add NAME to the list of names.
1034 names="$names $name"
1036 # Find the parent of NAME, using the empty string if it has none.
1037 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1039 # Add the names implied by NAME, and NAME's parent (if it has one), to
1040 # the list of names to be processed (the argument list). We prepend the
1041 # implied names to the list and append the parent. We want implied
1042 # directories to come before further directories inferred from the
1043 # configuration components; this ensures that for sysv4, unix/common
1044 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1046 sysnames="`echo $implied $* $parent`"
1047 test -n "$sysnames" && set $sysnames
1050 # Add the default directories.
1051 sysnames="$names sysdeps/generic sysdeps/stub"
1053 # The other names were emitted during the scan.
1054 echo "$ac_t""sysdeps/generic sysdeps/stub" 1>&6
1059 # Find a good install program. We prefer a C program (faster),
1060 # so one script is as good as another. But avoid the broken or
1061 # incompatible versions:
1062 # SysV /etc/install, /usr/sbin/install
1063 # SunOS /usr/etc/install
1064 # IRIX /sbin/install
1066 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1067 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1068 # ./install, which can be erroneously created by make from ./install.sh.
1069 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1070 echo "configure:1071: checking for a BSD compatible install" >&5
1071 if test -z "$INSTALL"; then
1072 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1075 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1076 for ac_dir in $PATH; do
1077 # Account for people who put trailing slashes in PATH elements.
1079 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1081 # OSF1 and SCO ODT 3.0 have their own names for install.
1082 for ac_prog in ginstall installbsd scoinst install; do
1083 if test -f $ac_dir/$ac_prog; then
1084 if test $ac_prog = install &&
1085 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1086 # AIX install. It has an incompatible calling convention.
1087 # OSF/1 installbsd also uses dspmsg, but is usable.
1090 ac_cv_path_install="$ac_dir/$ac_prog -c"
1101 if test "${ac_cv_path_install+set}" = set; then
1102 INSTALL="$ac_cv_path_install"
1104 # As a last resort, use the slow shell script. We don't cache a
1105 # path for INSTALL within a source directory, because that will
1106 # break other packages using the cache if that directory is
1107 # removed, or if the path is relative.
1108 INSTALL="$ac_install_sh"
1111 echo "$ac_t""$INSTALL" 1>&6
1113 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1114 # It thinks the first close brace ends the variable substitution.
1115 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1117 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1119 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1120 # The makefiles need to use a different form to find it in $srcdir.
1121 INSTALL='\$(..)./install-sh -c'
1123 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1124 echo "configure:1125: checking whether ln -s works" >&5
1125 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1126 echo $ac_n "(cached) $ac_c" 1>&6
1129 if ln -s X conftestdata 2>/dev/null
1132 ac_cv_prog_LN_S="ln -s"
1137 LN_S="$ac_cv_prog_LN_S"
1138 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1139 echo "$ac_t""yes" 1>&6
1141 echo "$ac_t""no" 1>&6
1144 for ac_prog in msgfmt gmsgfmt
1146 # Extract the first word of "$ac_prog", so it can be a program name with args.
1147 set dummy $ac_prog; ac_word=$2
1148 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1149 echo "configure:1150: checking for $ac_word" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 if test -n "$MSGFMT"; then
1154 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1157 for ac_dir in $PATH; do
1158 test -z "$ac_dir" && ac_dir=.
1159 if test -f $ac_dir/$ac_word; then
1160 ac_cv_prog_MSGFMT="$ac_prog"
1167 MSGFMT="$ac_cv_prog_MSGFMT"
1168 if test -n "$MSGFMT"; then
1169 echo "$ac_t""$MSGFMT" 1>&6
1171 echo "$ac_t""no" 1>&6
1174 test -n "$MSGFMT" && break
1176 test -n "$MSGFMT" || MSGFMT=":"
1179 # Extract the first word of "gcc", so it can be a program name with args.
1180 set dummy gcc; ac_word=$2
1181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1182 echo "configure:1183: checking for $ac_word" >&5
1183 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1184 echo $ac_n "(cached) $ac_c" 1>&6
1186 if test -n "$CC"; then
1187 ac_cv_prog_CC="$CC" # Let the user override the test.
1189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1190 for ac_dir in $PATH; do
1191 test -z "$ac_dir" && ac_dir=.
1192 if test -f $ac_dir/$ac_word; then
1201 if test -n "$CC"; then
1202 echo "$ac_t""$CC" 1>&6
1204 echo "$ac_t""no" 1>&6
1207 if test -z "$CC"; then
1208 # Extract the first word of "cc", so it can be a program name with args.
1209 set dummy cc; ac_word=$2
1210 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1211 echo "configure:1212: checking for $ac_word" >&5
1212 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&6
1215 if test -n "$CC"; then
1216 ac_cv_prog_CC="$CC" # Let the user override the test.
1218 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1220 for ac_dir in $PATH; do
1221 test -z "$ac_dir" && ac_dir=.
1222 if test -f $ac_dir/$ac_word; then
1223 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1224 ac_prog_rejected=yes
1232 if test $ac_prog_rejected = yes; then
1233 # We found a bogon in the path, so make sure we never use it.
1234 set dummy $ac_cv_prog_CC
1236 if test $# -gt 0; then
1237 # We chose a different compiler from the bogus one.
1238 # However, it has the same basename, so the bogon will be chosen
1239 # first if we set CC to just the basename; use the full file name.
1241 set dummy "$ac_dir/$ac_word" "$@"
1249 if test -n "$CC"; then
1250 echo "$ac_t""$CC" 1>&6
1252 echo "$ac_t""no" 1>&6
1255 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1258 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1259 echo "configure:1260: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1262 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1263 ac_cpp='$CPP $CPPFLAGS'
1264 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1265 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1266 cross_compiling=$ac_cv_prog_cc_cross
1268 cat > conftest.$ac_ext <<EOF
1269 #line 1270 "configure"
1270 #include "confdefs.h"
1273 if { (eval echo configure:1274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1274 ac_cv_prog_cc_works=yes
1275 # If we can't run a trivial program, we are probably using a cross compiler.
1276 if (./conftest; exit) 2>/dev/null; then
1277 ac_cv_prog_cc_cross=no
1279 ac_cv_prog_cc_cross=yes
1282 echo "configure: failed program was:" >&5
1283 cat conftest.$ac_ext >&5
1284 ac_cv_prog_cc_works=no
1288 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1289 if test $ac_cv_prog_cc_works = no; then
1291 ac_cv_prog_cc_cross=yes
1295 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1296 echo "configure:1297: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1297 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1299 cross_compiling=$ac_cv_prog_cc_cross
1301 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1302 echo "configure:1303: checking whether we are using GNU C" >&5
1303 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1306 cat > conftest.c <<EOF
1311 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1318 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1320 if test $ac_cv_prog_gcc = yes; then
1323 cat > conftest.c <<EOF
1324 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
1328 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1329 if test -z "$CFLAGS"; then
1333 { echo "configure: error: We require GNU CC version 2.7 or newer" 1>&2; exit 1; }
1336 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1339 echo $ac_n "checking build system type""... $ac_c" 1>&6
1340 echo "configure:1341: checking build system type" >&5
1343 case "$build_alias" in
1346 NONE) build_alias=$host_alias ;;
1347 *) build_alias=$nonopt ;;
1351 build=`$ac_config_sub $build_alias`
1352 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1353 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1354 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1355 echo "$ac_t""$build" 1>&6
1357 if test $host != $build; then
1358 for ac_prog in gcc cc
1360 # Extract the first word of "$ac_prog", so it can be a program name with args.
1361 set dummy $ac_prog; ac_word=$2
1362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1363 echo "configure:1364: checking for $ac_word" >&5
1364 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1365 echo $ac_n "(cached) $ac_c" 1>&6
1367 if test -n "$BUILD_CC"; then
1368 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1371 for ac_dir in $PATH; do
1372 test -z "$ac_dir" && ac_dir=.
1373 if test -f $ac_dir/$ac_word; then
1374 ac_cv_prog_BUILD_CC="$ac_prog"
1381 BUILD_CC="$ac_cv_prog_BUILD_CC"
1382 if test -n "$BUILD_CC"; then
1383 echo "$ac_t""$BUILD_CC" 1>&6
1385 echo "$ac_t""no" 1>&6
1388 test -n "$BUILD_CC" && break
1393 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1394 echo "configure:1395: checking how to run the C preprocessor" >&5
1395 # On Suns, sometimes $CPP names a directory.
1396 if test -n "$CPP" && test -d "$CPP"; then
1399 if test -z "$CPP"; then
1400 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1403 # This must be in double quotes, not single quotes, because CPP may get
1404 # substituted into the Makefile and "${CC-cc}" will confuse make.
1406 # On the NeXT, cc -E runs the code through the compiler's parser,
1407 # not just through cpp.
1408 cat > conftest.$ac_ext <<EOF
1409 #line 1410 "configure"
1410 #include "confdefs.h"
1414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1415 { (eval echo configure:1416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1416 ac_err=`grep -v '^ *+' conftest.out`
1417 if test -z "$ac_err"; then
1421 echo "configure: failed program was:" >&5
1422 cat conftest.$ac_ext >&5
1424 CPP="${CC-cc} -E -traditional-cpp"
1425 cat > conftest.$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1432 { (eval echo configure:1433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1433 ac_err=`grep -v '^ *+' conftest.out`
1434 if test -z "$ac_err"; then
1438 echo "configure: failed program was:" >&5
1439 cat conftest.$ac_ext >&5
1446 ac_cv_prog_CPP="$CPP"
1448 CPP="$ac_cv_prog_CPP"
1450 ac_cv_prog_CPP="$CPP"
1452 echo "$ac_t""$CPP" 1>&6
1454 # Was a --with-binutils option given?
1455 if test -n "$path_binutils"; then
1456 # Make absolute; ensure a single trailing slash.
1457 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1458 CC="$CC -B$with_binutils"
1460 AS=`$CC -print-file-name=as`
1461 LD=`$CC -print-file-name=ld`
1463 # Determine whether we are using GNU binutils.
1464 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1465 echo "configure:1466: checking whether $AS is GNU as" >&5
1466 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1469 # Most GNU programs take a -v and spit out some text including
1470 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1471 if $AS -v </dev/null 2>&1 | grep -q GNU; then
1472 libc_cv_prog_as_gnu=yes
1474 libc_cv_prog_as_gnu=no
1478 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1479 gnu_as=$libc_cv_prog_as_gnu
1481 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1482 echo "configure:1483: checking whether $LD is GNU ld" >&5
1483 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1486 # Most GNU programs take a -v and spit out some text including
1487 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1488 if $LD -v </dev/null 2>&1 | grep -q GNU; then
1489 libc_cv_prog_ld_gnu=yes
1491 libc_cv_prog_ld_gnu=no
1495 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1496 gnu_ld=$libc_cv_prog_ld_gnu
1497 if test $host != $build; then
1498 ac_tool_prefix=${host_alias}-
1503 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1504 set dummy ${ac_tool_prefix}ar; ac_word=$2
1505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1506 echo "configure:1507: checking for $ac_word" >&5
1507 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1510 if test -n "$AR"; then
1511 ac_cv_prog_AR="$AR" # Let the user override the test.
1513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1514 for ac_dir in $PATH; do
1515 test -z "$ac_dir" && ac_dir=.
1516 if test -f $ac_dir/$ac_word; then
1517 ac_cv_prog_AR="${ac_tool_prefix}ar"
1522 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1526 if test -n "$AR"; then
1527 echo "$ac_t""$AR" 1>&6
1529 echo "$ac_t""no" 1>&6
1534 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1535 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1536 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1537 echo "configure:1538: checking for $ac_word" >&5
1538 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1541 if test -n "$RANLIB"; then
1542 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1544 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1545 for ac_dir in $PATH; do
1546 test -z "$ac_dir" && ac_dir=.
1547 if test -f $ac_dir/$ac_word; then
1548 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1555 RANLIB="$ac_cv_prog_RANLIB"
1556 if test -n "$RANLIB"; then
1557 echo "$ac_t""$RANLIB" 1>&6
1559 echo "$ac_t""no" 1>&6
1563 if test -z "$ac_cv_prog_RANLIB"; then
1564 if test -n "$ac_tool_prefix"; then
1565 # Extract the first word of "ranlib", so it can be a program name with args.
1566 set dummy ranlib; ac_word=$2
1567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1568 echo "configure:1569: checking for $ac_word" >&5
1569 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1572 if test -n "$RANLIB"; then
1573 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1575 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1576 for ac_dir in $PATH; do
1577 test -z "$ac_dir" && ac_dir=.
1578 if test -f $ac_dir/$ac_word; then
1579 ac_cv_prog_RANLIB="ranlib"
1584 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1587 RANLIB="$ac_cv_prog_RANLIB"
1588 if test -n "$RANLIB"; then
1589 echo "$ac_t""$RANLIB" 1>&6
1591 echo "$ac_t""no" 1>&6
1600 # Extract the first word of "bash", so it can be a program name with args.
1601 set dummy bash; ac_word=$2
1602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1603 echo "configure:1604: checking for $ac_word" >&5
1604 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1609 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1613 for ac_dir in $PATH; do
1614 test -z "$ac_dir" && ac_dir=.
1615 if test -f $ac_dir/$ac_word; then
1616 ac_cv_path_BASH="$ac_dir/$ac_word"
1621 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
1625 BASH="$ac_cv_path_BASH"
1626 if test -n "$BASH"; then
1627 echo "$ac_t""$BASH" 1>&6
1629 echo "$ac_t""no" 1>&6
1632 if test "$BASH" != no &&
1633 $BASH -c 'test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1634 libc_cv_have_bash2=yes
1636 libc_cv_have_bash2=no
1640 if test "$BASH" = no; then
1641 # Extract the first word of "ksh", so it can be a program name with args.
1642 set dummy ksh; ac_word=$2
1643 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1644 echo "configure:1645: checking for $ac_word" >&5
1645 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1646 echo $ac_n "(cached) $ac_c" 1>&6
1650 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1654 for ac_dir in $PATH; do
1655 test -z "$ac_dir" && ac_dir=.
1656 if test -f $ac_dir/$ac_word; then
1657 ac_cv_path_KSH="$ac_dir/$ac_word"
1662 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
1666 KSH="$ac_cv_path_KSH"
1667 if test -n "$KSH"; then
1668 echo "$ac_t""$KSH" 1>&6
1670 echo "$ac_t""no" 1>&6
1673 if test "$KSH" = no; then
1676 libc_cv_have_ksh=yes
1681 libc_cv_have_ksh=yes
1687 # Extract the first word of "$ac_prog", so it can be a program name with args.
1688 set dummy $ac_prog; ac_word=$2
1689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1690 echo "configure:1691: checking for $ac_word" >&5
1691 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1696 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1700 for ac_dir in $PATH; do
1701 test -z "$ac_dir" && ac_dir=.
1702 if test -f $ac_dir/$ac_word; then
1703 ac_cv_path_PERL="$ac_dir/$ac_word"
1711 PERL="$ac_cv_path_PERL"
1712 if test -n "$PERL"; then
1713 echo "$ac_t""$PERL" 1>&6
1715 echo "$ac_t""no" 1>&6
1718 test -n "$PERL" && break
1720 test -n "$PERL" || PERL="no"
1724 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1725 echo "configure:1726: checking for signed size_t type" >&5
1726 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1727 echo $ac_n "(cached) $ac_c" 1>&6
1729 echo '#include <stddef.h>
1730 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1731 if eval "$ac_cpp conftest.c 2>/dev/null" \
1732 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
1733 libc_cv_signed_size_t=no
1735 libc_cv_signed_size_t=yes
1740 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
1741 if test $libc_cv_signed_size_t = yes; then
1742 cat >> confdefs.h <<\EOF
1743 #undef __SIZE_TYPE__
1744 #define __SIZE_TYPE__ unsigned
1748 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
1749 echo "configure:1750: checking for libc-friendly stddef.h" >&5
1750 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1753 cat > conftest.$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1756 #define __need_size_t
1757 #define __need_wchar_t
1762 size_t size; wchar_t wchar;
1764 #error stddef.h ignored __need_*
1766 if (&size == NULL || &wchar == NULL) abort ();
1769 if { (eval echo configure:1770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1771 libc_cv_friendly_stddef=yes
1773 echo "configure: failed program was:" >&5
1774 cat conftest.$ac_ext >&5
1776 libc_cv_friendly_stddef=no
1781 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
1782 if test $libc_cv_friendly_stddef = yes; then
1783 config_vars="$config_vars
1784 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1787 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
1788 echo "configure:1789: checking whether we need to use -P to assemble .S files" >&5
1789 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1792 cat > conftest.S <<EOF
1793 #include "confdefs.h"
1794 /* Nothing whatsoever. */
1796 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
1797 libc_cv_need_minus_P=no
1799 libc_cv_need_minus_P=yes
1804 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
1805 if test $libc_cv_need_minus_P = yes; then
1806 config_vars="$config_vars
1807 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1810 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
1811 echo "configure:1812: checking for assembler global-symbol directive" >&5
1812 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1815 libc_cv_asm_global_directive=UNKNOWN
1816 for ac_globl in .globl .global; do
1817 cat > conftest.s <<EOF
1822 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1823 libc_cv_asm_global_directive=${ac_globl}
1826 test $libc_cv_asm_global_directive != UNKNOWN && break
1830 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
1831 if test $libc_cv_asm_global_directive = UNKNOWN; then
1832 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1834 cat >> confdefs.h <<EOF
1835 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1840 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
1841 echo "configure:1842: checking for .set assembler directive" >&5
1842 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6
1845 cat > conftest.s <<EOF
1848 .set glibc_conftest_frobozz,foo
1849 $libc_cv_asm_global_directive glibc_conftest_frobozz
1851 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1852 # (but it doesn't work), so we must do a linking check to be sure.
1853 cat > conftest1.c <<\EOF
1854 extern int glibc_conftest_frobozz;
1855 main () { printf ("%d\n", glibc_conftest_frobozz); }
1857 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1858 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
1859 libc_cv_asm_set_directive=yes
1861 libc_cv_asm_set_directive=no
1866 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
1867 if test $libc_cv_asm_set_directive = yes; then
1868 cat >> confdefs.h <<\EOF
1869 #define HAVE_ASM_SET_DIRECTIVE 1
1874 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
1875 echo "configure:1876: checking for .symver assembler directive" >&5
1876 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 cat > conftest.s <<EOF
1882 .symver _sym,sym@VERS
1884 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
1885 libc_cv_asm_symver_directive=yes
1887 libc_cv_asm_symver_directive=no
1892 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
1893 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
1894 echo "configure:1895: checking for ld --version-script" >&5
1895 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1898 if test $libc_cv_asm_symver_directive = yes; then
1899 cat > conftest.s <<EOF
1902 .symver _sym,sym@VERS
1904 cat > conftest.map <<EOF
1909 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
1910 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
1911 -nostartfiles -nostdlib
1912 -Wl,--version-script,conftest.map
1913 1>&5'; { (eval echo configure:1914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
1915 libc_cv_ld_version_script_option=yes
1917 libc_cv_ld_version_script_option=no
1920 libc_cv_ld_version_script_option=no
1923 libc_cv_ld_version_script_option=no
1928 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
1929 if test $libc_cv_asm_symver_directive = yes &&
1930 test $libc_cv_ld_version_script_option = yes &&
1931 test $enable_versioning = yes; then
1933 cat >> confdefs.h <<\EOF
1934 #define DO_VERSIONING 1
1942 if test $elf = yes; then
1943 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
1944 echo "configure:1945: checking for .previous assembler directive" >&5
1945 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
1946 echo $ac_n "(cached) $ac_c" 1>&6
1948 cat > conftest.s <<EOF
1949 .section foo_section
1952 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:1953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1953 libc_cv_asm_previous_directive=yes
1955 libc_cv_asm_previous_directive=no
1960 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
1961 if test $libc_cv_asm_previous_directive = yes; then
1962 cat >> confdefs.h <<\EOF
1963 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
1967 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
1968 echo "configure:1969: checking for .popsection assembler directive" >&5
1969 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
1970 echo $ac_n "(cached) $ac_c" 1>&6
1972 cat > conftest.s <<EOF
1973 .pushsection foo_section
1976 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:1977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1977 libc_cv_asm_popsection_directive=yes
1979 libc_cv_asm_popsection_directive=no
1984 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
1985 if test $libc_cv_asm_popsection_directive = yes; then
1986 cat >> confdefs.h <<\EOF
1987 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
1994 if test $elf != yes; then
1995 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
1996 echo "configure:1997: checking for .init and .fini sections" >&5
1997 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
1998 echo $ac_n "(cached) $ac_c" 1>&6
2000 cat > conftest.$ac_ext <<EOF
2001 #line 2002 "configure"
2002 #include "confdefs.h"
2005 asm (".section .init");
2006 asm (".section .fini");
2010 if { (eval echo configure:2011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2012 libc_cv_have_initfini=yes
2014 echo "configure: failed program was:" >&5
2015 cat conftest.$ac_ext >&5
2017 libc_cv_have_initfini=no
2022 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2023 if test $libc_cv_have_initfini = yes; then
2024 cat >> confdefs.h <<\EOF
2025 #define HAVE_INITFINI 1
2033 if test $elf = yes; then
2034 libc_cv_asm_underscores=no
2036 if test $ac_cv_prog_cc_works = yes; then
2037 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2038 echo "configure:2039: checking for _ prefix on C symbol names" >&5
2039 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2042 cat > conftest.$ac_ext <<EOF
2043 #line 2044 "configure"
2044 #include "confdefs.h"
2045 asm ("_glibc_foobar:");
2050 if { (eval echo configure:2051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2052 libc_cv_asm_underscores=yes
2054 echo "configure: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2057 libc_cv_asm_underscores=no
2062 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2064 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2065 echo "configure:2066: checking for _ prefix on C symbol names" >&5
2066 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2069 cat > conftest.$ac_ext <<EOF
2070 #line 2071 "configure"
2071 #include "confdefs.h"
2072 void underscore_test(void) {
2075 if { (eval echo configure:2076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2076 if grep _underscore_test conftest* >/dev/null; then
2078 libc_cv_asm_underscores=yes
2081 libc_cv_asm_underscores=no
2084 echo "configure: failed program was:" >&5
2085 cat conftest.$ac_ext >&5
2087 libc_cv_asm_underscores=no
2092 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2095 if test $libc_cv_asm_underscores = no; then
2096 cat >> confdefs.h <<\EOF
2097 #define NO_UNDERSCORES 1
2102 if test $elf = yes; then
2103 libc_cv_weak_symbols=yes
2104 libc_cv_asm_weak_directive=yes
2105 libc_cv_asm_weakext_directive=no
2107 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2108 echo "configure:2109: checking for assembler .weak directive" >&5
2109 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 cat > conftest.s <<EOF
2114 ${libc_cv_asm_global_directive} foo
2117 .weak bar; bar = foo
2119 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2120 libc_cv_asm_weak_directive=yes
2122 libc_cv_asm_weak_directive=no
2127 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2129 if test $libc_cv_asm_weak_directive = no; then
2130 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2131 echo "configure:2132: checking for assembler .weakext directive" >&5
2132 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
2133 echo $ac_n "(cached) $ac_c" 1>&6
2135 cat > conftest.s <<EOF
2137 ${libc_cv_asm_global_directive} foo
2142 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2143 libc_cv_asm_weakext_directive=yes
2145 libc_cv_asm_weakext_directive=no
2150 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2155 if test $libc_cv_asm_weak_directive = yes; then
2156 cat >> confdefs.h <<\EOF
2157 #define HAVE_ASM_WEAK_DIRECTIVE 1
2160 elif test $libc_cv_asm_weakext_directive = yes; then
2161 cat >> confdefs.h <<\EOF
2162 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2167 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2168 echo "configure:2169: checking for ld --no-whole-archive" >&5
2169 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2172 cat > conftest.c <<\EOF
2177 if { ac_try='${CC-cc} $CFLAGS
2178 -nostdlib -nostartfiles -Wl,--no-whole-archive
2179 -o conftest conftest.c 1>&5'; { (eval echo configure:2180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2180 libc_cv_ld_no_whole_archive=yes
2182 libc_cv_ld_no_whole_archive=no
2187 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2189 echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
2190 echo "configure:2191: checking for gcc -fno-exceptions" >&5
2191 if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
2192 echo $ac_n "(cached) $ac_c" 1>&6
2194 cat > conftest.c <<\EOF
2199 if { ac_try='${CC-cc} $CFLAGS
2200 -nostdlib -nostartfiles -fno-exceptions
2201 -o conftest conftest.c 1>&5'; { (eval echo configure:2202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2202 libc_cv_gcc_no_exceptions=yes
2204 libc_cv_gcc_no_exceptions=no
2209 echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
2211 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2212 echo "configure:2213: checking for DWARF2 unwind info support" >&5
2213 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2216 cat > conftest.c <<EOF
2217 #line 2218 "configure"
2218 static char __EH_FRAME_BEGIN__;
2221 __register_frame (__EH_FRAME_BEGIN__);
2222 __deregister_frame (__EH_FRAME_BEGIN__);
2226 /* FIXME: this is fragile. */
2235 if { ac_try='${CC-cc} $CFLAGS
2236 -nostdlib -nostartfiles
2237 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2238 libc_cv_gcc_dwarf2_unwind_info=yes
2240 libc_cv_gcc_dwarf2_unwind_info=no
2245 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
2246 if test $libc_cv_gcc_dwarf2_unwind_info = yes; then
2247 cat >> confdefs.h <<\EOF
2248 #define HAVE_DWARF2_UNWIND_INFO 1
2253 ### End of automated tests.
2254 ### Now run sysdeps configure fragments.
2256 # sysdeps configure fragments may set these with files to be linked below.
2260 # Iterate over all the sysdep directories we will use, running their
2261 # configure fragments, and looking for a uname implementation.
2263 for dir in $sysnames; do
2266 *) dest=$srcdir/$dir ;;
2268 if test -r $dest/configure; then
2269 echo "$ac_t""running configure fragment for $dest" 1>&6
2273 if test -z "$uname"; then
2274 if test -r $dest/uname.c ||
2275 test -r $dest/uname.S ||
2276 { test -r $dest/syscalls.list &&
2277 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
2285 # If we will use the generic uname implementation, we must figure out what
2286 # it will say by examining the system, and write the results in config-name.h.
2287 if test "$uname" = "sysdeps/generic"; then
2289 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
2290 if test $uname_sysname != $config_os; then
2291 config_release=`echo $config_os | sed s/$uname_sysname//`
2294 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2295 echo "configure:2296: checking OS release for uname" >&5
2296 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2299 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2300 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
2301 != x$config_release; then
2302 # The configuration release is a substring of the kernel release.
2303 libc_cv_uname_release=$kernel_release
2304 elif test x$config_release != x; then
2305 libc_cv_uname_release=$config_release
2306 elif test x$kernel_release != x; then
2307 libc_cv_uname_release=$kernel_release
2309 libc_cv_uname_release=unknown
2313 echo "$ac_t""$libc_cv_uname_release" 1>&6
2314 uname_release="$libc_cv_uname_release"
2316 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2317 echo "configure:2318: checking OS version for uname" >&5
2318 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
2319 echo $ac_n "(cached) $ac_c" 1>&6
2321 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2322 if test -n "$kernel_version"; then
2323 libc_cv_uname_version="$kernel_version"
2325 libc_cv_uname_version=unknown
2329 echo "$ac_t""$libc_cv_uname_version" 1>&6
2330 uname_version="$libc_cv_uname_version"
2332 config_uname=config-name.h:config-name.in
2334 # For non-generic uname, we don't need to create config-name.h at all.
2338 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
2339 echo "configure:2340: checking stdio selection" >&5
2342 libio) cat >> confdefs.h <<\EOF
2343 #define USE_IN_LIBIO 1
2346 default) stdio=stdio ;;
2348 echo "$ac_t""$stdio" 1>&6
2350 echo $ac_n "checking ldap selection""... $ac_c" 1>&6
2351 echo "configure:2352: checking ldap selection" >&5
2360 echo "$ac_t""$ldap" 1>&6
2369 if test $gnu_ld = yes; then
2370 cat >> confdefs.h <<\EOF
2371 #define HAVE_GNU_LD 1
2375 if test $gnu_as = yes; then
2376 cat >> confdefs.h <<\EOF
2377 #define HAVE_GNU_AS 1
2381 if test $elf = yes; then
2382 cat >> confdefs.h <<\EOF
2390 if test $shared = default; then
2391 if test $gnu_ld = yes; then
2394 # For now we do not assume shared libs are available. In future more
2395 # tests might become available.
2407 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
2410 config_makefile=Makefile
2413 VERSION=`sed -e 's/^#define VERSION "\([^"]*\)"/\1/p' -e d < $srcdir/version.h`
2417 cat > confcache <<\EOF
2418 # This file is a shell script that caches the results of configure
2419 # tests run on this system so they can be shared between configure
2420 # scripts and configure runs. It is not useful on other systems.
2421 # If it contains results you don't want to keep, you may remove or edit it.
2423 # By default, configure uses ./config.cache as the cache file,
2424 # creating it if it does not exist already. You can give configure
2425 # the --cache-file=FILE option to use a different cache file; that is
2426 # what configure does when it calls configure scripts in
2427 # subdirectories, so they share the cache.
2428 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2429 # config.status only pays attention to the cache file if you give it the
2430 # --recheck option to rerun configure.
2433 # The following way of writing the cache mishandles newlines in values,
2434 # but we know of no workaround that is simple, portable, and efficient.
2435 # So, don't put newlines in cache variables' values.
2436 # Ultrix sh set writes to stderr and can't be redirected directly,
2437 # and sets the high bit in the cache file unless we assign to the vars.
2439 case `(ac_space=' '; set) 2>&1` in
2441 # `set' does not quote correctly, so add quotes (double-quote substitution
2442 # turns \\\\ into \\, and sed turns \\ into \).
2444 -e "s/'/'\\\\''/g" \
2445 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2448 # `set' quotes correctly as required by POSIX, so do not add quotes.
2449 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2452 if cmp -s $cache_file confcache; then
2455 if test -w $cache_file; then
2456 echo "updating cache $cache_file"
2457 cat confcache > $cache_file
2459 echo "not updating unwritable cache $cache_file"
2464 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2466 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2467 # Let make expand exec_prefix.
2468 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2470 # Any assignment to VPATH causes Sun make to only execute
2471 # the first set of double-colon rules, so remove it if not needed.
2472 # If there is a colon in the path, we need to keep it.
2473 if test "x$srcdir" = x.; then
2474 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2477 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2479 DEFS=-DHAVE_CONFIG_H
2481 # Without the "./", some shells look in PATH for config.status.
2482 : ${CONFIG_STATUS=./config.status}
2484 echo creating $CONFIG_STATUS
2485 rm -f $CONFIG_STATUS
2486 cat > $CONFIG_STATUS <<EOF
2488 # Generated automatically by configure.
2489 # Run this file to recreate the current configuration.
2490 # This directory was configured as follows,
2491 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2493 # $0 $ac_configure_args
2495 # Compiler output produced by configure, useful for debugging
2496 # configure, is in ./config.log if it exists.
2498 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2501 case "\$ac_option" in
2502 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2503 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2504 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2505 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2506 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2508 -help | --help | --hel | --he | --h)
2509 echo "\$ac_cs_usage"; exit 0 ;;
2510 *) echo "\$ac_cs_usage"; exit 1 ;;
2514 ac_given_srcdir=$srcdir
2515 ac_given_INSTALL="$INSTALL"
2517 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2519 cat >> $CONFIG_STATUS <<EOF
2521 # Protect against being on the right side of a sed subst in config.status.
2522 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2523 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2526 s%@CFLAGS@%$CFLAGS%g
2527 s%@CPPFLAGS@%$CPPFLAGS%g
2528 s%@CXXFLAGS@%$CXXFLAGS%g
2530 s%@LDFLAGS@%$LDFLAGS%g
2532 s%@exec_prefix@%$exec_prefix%g
2533 s%@prefix@%$prefix%g
2534 s%@program_transform_name@%$program_transform_name%g
2535 s%@bindir@%$bindir%g
2536 s%@sbindir@%$sbindir%g
2537 s%@libexecdir@%$libexecdir%g
2538 s%@datadir@%$datadir%g
2539 s%@sysconfdir@%$sysconfdir%g
2540 s%@sharedstatedir@%$sharedstatedir%g
2541 s%@localstatedir@%$localstatedir%g
2542 s%@libdir@%$libdir%g
2543 s%@includedir@%$includedir%g
2544 s%@oldincludedir@%$oldincludedir%g
2545 s%@infodir@%$infodir%g
2546 s%@mandir@%$mandir%g
2547 s%@subdirs@%$subdirs%g
2549 s%@host_alias@%$host_alias%g
2550 s%@host_cpu@%$host_cpu%g
2551 s%@host_vendor@%$host_vendor%g
2552 s%@host_os@%$host_os%g
2553 s%@base_machine@%$base_machine%g
2554 s%@sysnames@%$sysnames%g
2555 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2556 s%@INSTALL_DATA@%$INSTALL_DATA%g
2558 s%@MSGFMT@%$MSGFMT%g
2560 s%@cross_linkable@%$cross_linkable%g
2562 s%@build_alias@%$build_alias%g
2563 s%@build_cpu@%$build_cpu%g
2564 s%@build_vendor@%$build_vendor%g
2565 s%@build_os@%$build_os%g
2566 s%@BUILD_CC@%$BUILD_CC%g
2567 s%@cross_compiling@%$cross_compiling%g
2570 s%@RANLIB@%$RANLIB%g
2572 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
2574 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
2576 s%@VERSIONING@%$VERSIONING%g
2577 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
2578 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
2579 s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
2580 s%@uname_sysname@%$uname_sysname%g
2581 s%@uname_release@%$uname_release%g
2582 s%@uname_version@%$uname_version%g
2585 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
2586 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
2587 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
2588 s%@has_ldconfig@%$has_ldconfig%g
2589 s%@gnu_ld@%$gnu_ld%g
2590 s%@gnu_as@%$gnu_as%g
2592 s%@static@%$static%g
2593 s%@shared@%$shared%g
2594 s%@profile@%$profile%g
2595 s%@omitfp@%$omitfp%g
2596 s%@bounded@%$bounded%g
2597 s%@static_nss@%$static_nss%g
2598 s%@nopic_initfini@%$nopic_initfini%g
2599 s%@DEFINES@%$DEFINES%g
2600 s%@VERSION@%$VERSION%g
2605 cat >> $CONFIG_STATUS <<\EOF
2607 # Split the substitutions into bite-sized pieces for seds with
2608 # small command number limits, like on Digital OSF/1 and HP-UX.
2609 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2610 ac_file=1 # Number of current file.
2611 ac_beg=1 # First line for current file.
2612 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2615 while $ac_more_lines; do
2616 if test $ac_beg -gt 1; then
2617 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2619 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2621 if test ! -s conftest.s$ac_file; then
2623 rm -f conftest.s$ac_file
2625 if test -z "$ac_sed_cmds"; then
2626 ac_sed_cmds="sed -f conftest.s$ac_file"
2628 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2630 ac_file=`expr $ac_file + 1`
2632 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2635 if test -z "$ac_sed_cmds"; then
2640 cat >> $CONFIG_STATUS <<EOF
2642 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
2644 cat >> $CONFIG_STATUS <<\EOF
2645 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2646 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2648 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2649 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2650 *) ac_file_in="${ac_file}.in" ;;
2653 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2655 # Remove last slash and all that follows it. Not all systems have dirname.
2656 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2657 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2658 # The file is in a subdirectory.
2659 test ! -d "$ac_dir" && mkdir "$ac_dir"
2660 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2661 # A "../" for each directory in $ac_dir_suffix.
2662 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2664 ac_dir_suffix= ac_dots=
2667 case "$ac_given_srcdir" in
2669 if test -z "$ac_dots"; then top_srcdir=.
2670 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2671 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2673 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2674 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2677 case "$ac_given_INSTALL" in
2678 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2679 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2682 echo creating "$ac_file"
2684 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2686 *Makefile*) ac_comsub="1i\\
2687 # $configure_input" ;;
2691 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2693 s%@configure_input@%$configure_input%g
2694 s%@srcdir@%$srcdir%g
2695 s%@top_srcdir@%$top_srcdir%g
2696 s%@INSTALL@%$INSTALL%g
2697 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2701 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2702 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2704 # ac_d sets the value in "#define NAME VALUE" lines.
2705 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2706 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2709 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2710 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2711 ac_uB='\([ ]\)%\1#\2define\3'
2714 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2715 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2716 ac_eB='$%\1#\2define\3'
2720 if test "${CONFIG_HEADERS+set}" != set; then
2722 cat >> $CONFIG_STATUS <<EOF
2723 CONFIG_HEADERS="config.h"
2725 cat >> $CONFIG_STATUS <<\EOF
2727 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2728 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2730 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2731 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2732 *) ac_file_in="${ac_file}.in" ;;
2735 echo creating $ac_file
2737 rm -f conftest.frag conftest.in conftest.out
2738 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2739 cat $ac_file_inputs > conftest.in
2743 # Transform confdefs.h into a sed script conftest.vals that substitutes
2744 # the proper values into config.h.in to produce config.h. And first:
2745 # Protect against being on the right side of a sed subst in config.status.
2746 # Protect against being in an unquoted here document in config.status.
2748 cat > conftest.hdr <<\EOF
2751 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2755 sed -n -f conftest.hdr confdefs.h > conftest.vals
2758 # This sed command replaces #undef with comments. This is necessary, for
2759 # example, in the case of _POSIX_SOURCE, which is predefined and required
2760 # on some systems where configure will not decide to define it.
2761 cat >> conftest.vals <<\EOF
2762 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2765 # Break up conftest.vals because some shells have a limit on
2766 # the size of here documents, and old seds have small limits too.
2771 ac_lines=`grep -c . conftest.vals`
2772 # grep -c gives empty output for an empty file on some AIX systems.
2773 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2774 # Write a limited-size here document to conftest.frag.
2775 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2776 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2778 sed -f conftest.frag conftest.in > conftest.out
2780 mv conftest.out conftest.in
2782 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2784 mv conftest.tail conftest.vals
2788 cat >> $CONFIG_STATUS <<\EOF
2789 rm -f conftest.frag conftest.h
2790 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2791 cat conftest.in >> conftest.h
2793 if cmp -s $ac_file conftest.h 2>/dev/null; then
2794 echo "$ac_file is unchanged"
2797 # Remove last slash and all that follows it. Not all systems have dirname.
2798 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2799 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2800 # The file is in a subdirectory.
2801 test ! -d "$ac_dir" && mkdir "$ac_dir"
2804 mv conftest.h $ac_file
2810 cat >> $CONFIG_STATUS <<EOF
2811 ac_sources="`echo $libc_link_sources`"
2812 ac_dests="`echo $libc_link_dests`"
2815 cat >> $CONFIG_STATUS <<\EOF
2816 srcdir=$ac_given_srcdir
2817 while test -n "$ac_sources"; do
2818 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2819 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2821 echo "linking $srcdir/$ac_source to $ac_dest"
2823 if test ! -r $srcdir/$ac_source; then
2824 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2828 # Make relative symlinks.
2829 # Remove last slash and all that follows it. Not all systems have dirname.
2830 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
2831 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2832 # The dest file is in a subdirectory.
2833 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2834 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
2835 # A "../" for each directory in $ac_dest_dir_suffix.
2836 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
2838 ac_dest_dir_suffix= ac_dots=
2842 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2843 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2846 # Make a symlink if possible; otherwise try a hard link.
2847 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2848 ln $srcdir/$ac_source $ac_dest; then :
2850 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2854 cat >> $CONFIG_STATUS <<EOF
2855 echo '$config_vars' >> config.make; test -d bits || mkdir bits
2857 cat >> $CONFIG_STATUS <<\EOF
2861 chmod +x $CONFIG_STATUS
2862 rm -fr confdefs* $ac_clean_files
2863 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2865 if test "$no_recursion" != yes; then
2867 # Remove --cache-file and --srcdir arguments so they do not pile up.
2868 ac_sub_configure_args=
2870 for ac_arg in $ac_configure_args; do
2871 if test -n "$ac_prev"; then
2876 -cache-file | --cache-file | --cache-fil | --cache-fi \
2877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2878 ac_prev=cache_file ;;
2879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2882 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2884 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2886 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2890 for ac_config_dir in $add_ons; do
2892 # Do not complain, so a configure script can configure whichever
2893 # parts of a large source tree are present.
2894 if test ! -d $srcdir/$ac_config_dir; then
2898 echo configuring in $ac_config_dir
2903 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2905 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2913 # A "../" for each directory in /$ac_config_dir.
2914 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2917 .) # No --srcdir option. We are building in place.
2918 ac_sub_srcdir=$srcdir ;;
2919 /*) # Absolute path.
2920 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2922 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2925 # Check for guested configure; otherwise get Cygnus style configure.
2926 if test -f $ac_sub_srcdir/configure; then
2927 ac_sub_configure=$ac_sub_srcdir/configure
2928 elif test -f $ac_sub_srcdir/configure.in; then
2929 ac_sub_configure=$ac_configure
2931 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2935 # The recursion is here.
2936 if test -n "$ac_sub_configure"; then
2938 # Make the cache file name correct relative to the subdirectory.
2939 case "$cache_file" in
2940 /*) ac_sub_cache_file=$cache_file ;;
2942 ac_sub_cache_file="$ac_dots$cache_file" ;;
2944 case "$ac_given_INSTALL" in
2945 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2946 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2949 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2950 # The eval makes quoting arguments work.
2951 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2954 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }