3 # From configure.in CVSid
12 # Guess values for system-dependent variables and create Makefiles.
13 # Generated automatically using autoconf version 2.12
14 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
16 # This configure script is free software; the Free Software Foundation
17 # gives unlimited permission to copy, distribute and modify it.
21 ac_default_prefix=/usr/local
22 # Any additions from configure.in:
24 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
26 --with-gettext=DIR find GNU gettext source code in DIR (not needed)"
28 --with-fp if using floating-point hardware [default=yes]"
30 --with-binutils=PATH specify location of binutils (as and ld)"
32 --with-elf if using the ELF object format"
34 --enable-libio build in GNU libio instead of GNU stdio"
36 --disable-sanity-checks really do not use threads (should not be used
37 except in special situations) [default=yes]"
39 --enable-static build static library [default=yes]"
41 --enable-shared build shared library [default=yes if GNU ld & ELF]"
43 --enable-profile build profiled library [default=yes]"
45 --enable-omitfp build undebuggable optimized library [default=no]"
47 --enable-bounded build with runtime bounds checking [default=no]"
49 --disable-versioning do not include versioning information in the
50 library objects [default=yes if supported]"
52 --enable-add-ons[=DIR1,DIR2]... configure and build add-ons in DIR1,DIR2,...
53 search for add-ons if no parameter given"
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=
565 # This will get text that should go into config.make.
568 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
569 # Check whether --with-gmp or --without-gmp was given.
570 if test "${with_gmp+set}" = set; then
573 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
575 *) config_vars="$config_vars
576 gmp-srcdir = $withval" ;;
581 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
582 # Check whether --with-gettext or --without-gettext was given.
583 if test "${with_gettext+set}" = set; then
584 withval="$with_gettext"
585 case "$with_gettext" in
587 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
590 config_vars="$config_vars
591 gettext-srcdir = $withval" ;;
597 # Check whether --with-fp or --without-fp was given.
598 if test "${with_fp+set}" = set; then
605 # Check whether --with-binutils or --without-binutils was given.
606 if test "${with_binutils+set}" = set; then
607 withval="$with_binutils"
608 path_binutils=$withval
613 # Check whether --with-elf or --without-elf was given.
614 if test "${with_elf+set}" = set; then
622 # Check whether --enable-libio or --disable-libio was given.
623 if test "${enable_libio+set}" = set; then
624 enableval="$enable_libio"
625 if test $enableval = yes; then
635 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
636 if test "${enable_sanity_checks+set}" = set; then
637 enableval="$enable_sanity_checks"
638 enable_sanity=$enableval
644 # Check whether --enable-static or --disable-static was given.
645 if test "${enable_static+set}" = set; then
646 enableval="$enable_static"
652 # Check whether --enable-shared or --disable-shared was given.
653 if test "${enable_shared+set}" = set; then
654 enableval="$enable_shared"
660 # Check whether --enable-profile or --disable-profile was given.
661 if test "${enable_profile+set}" = set; then
662 enableval="$enable_profile"
668 # Check whether --enable-omitfp or --disable-omitfp was given.
669 if test "${enable_omitfp+set}" = set; then
670 enableval="$enable_omitfp"
676 # Check whether --enable-bounded or --disable-bounded was given.
677 if test "${enable_bounded+set}" = set; then
678 enableval="$enable_bounded"
684 # Check whether --enable-versioning or --disable-versioning was given.
685 if test "${enable_versioning+set}" = set; then
686 enableval="$enable_versioning"
687 enable_versioning=$enableval
689 enable_versioning=yes
693 # Check whether --enable-add-ons or --disable-add-ons was given.
694 if test "${enable_add_ons+set}" = set; then
695 enableval="$enable_add_ons"
697 yes) add_ons=`echo $srcdir/*/configure | \
698 sed -e "s!$srcdir/!!g" -e 's!/configure!!g'`;;
699 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
707 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
708 if test -f $ac_dir/install-sh; then
710 ac_install_sh="$ac_aux_dir/install-sh -c"
712 elif test -f $ac_dir/install.sh; then
714 ac_install_sh="$ac_aux_dir/install.sh -c"
718 if test -z "$ac_aux_dir"; then
719 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
721 ac_config_guess=$ac_aux_dir/config.guess
722 ac_config_sub=$ac_aux_dir/config.sub
723 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
728 if test x"$add_ons" != x; then
729 for f in $add_ons; do
730 # Test whether such a subdir really exists.
731 if test -d $srcdir/$f; then
732 add_ons_pfx="$add_ons_pfx $f/"
734 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
739 # Check whether --enable-static-nss or --disable-static-nss was given.
740 if test "${enable_static_nss+set}" = set; then
741 enableval="$enable_static_nss"
742 static_nss=$enableval
747 if test x"$static_nss" = xyes; then
748 cat >> confdefs.h <<\EOF
749 #define DO_STATIC_NSS 1
755 # Make sure we can run config.sub.
756 if $ac_config_sub sun4 >/dev/null 2>&1; then :
757 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
760 echo $ac_n "checking host system type""... $ac_c" 1>&6
761 echo "configure:762: checking host system type" >&5
764 case "$host_alias" in
768 if host_alias=`$ac_config_guess`; then :
769 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
771 *) host_alias=$nonopt ;;
775 host=`$ac_config_sub $host_alias`
776 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
777 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
778 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
779 echo "$ac_t""$host" 1>&6
782 # The way shlib-versions is used to generate soversions.mk uses a
783 # fairly simplistic model for name recognition that can't distinguish
784 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
785 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
786 # tell. This doesn't get used much beyond that, so it's fairly safe.
791 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
796 ### I put this here to prevent those annoying emails from people who cannot
797 ### read and try to compile glibc on unsupported platforms. --drepper
799 ### By using the undocumented --enable-hacker-mode option for configure
800 ### one can skip this test to make the configuration not fail for unsupported
803 if test -z "$enable_hacker_mode"; then
808 echo "*** The GNU C library is currently not available for this platform."
809 echo "*** So far nobody cared to port it and if there is no volunteer it"
810 echo "*** might never happen. So, if you have interest to see glibc on"
811 echo "*** this platform visit"
812 echo "*** http://www.gnu.ai.mit.edu/software/libc/porting.html"
813 echo "*** and join the group of porters"
819 # We keep the original values in `$config_*' and never modify them, so we
820 # can write them unchanged into config.make. Everything else uses
821 # $machine, $vendor, and $os, and changes them whenever convenient.
822 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
824 # Some configurations imply other options.
826 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
827 # These systems always use GNU tools.
828 gnu_ld=yes gnu_as=yes ;;
831 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
832 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
834 gnu* | linux* | sysv4* | solaris2*)
835 # These systems (almost) always use the ELF format.
840 machine=$config_machine
841 vendor=$config_vendor
844 # Expand the configuration machine name into a subdirectory by architecture
845 # type and particular chip.
847 a29k | am29000) base_machine=a29k machine=a29k ;;
848 alpha*) base_machine=alpha machine=alpha/$machine ;;
849 arm*) base_machine=arm machine=arm/$machine ;;
850 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
851 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
852 hppa*) base_machine=hppa machine=hppa/$machine ;;
853 i[3456]86) base_machine=i386 machine=i386/$machine ;;
854 m680?0) base_machine=m68k machine=m68k/$machine ;;
855 m68k) base_machine=m68k machine=m68k/m68020 ;;
856 m88???) base_machine=m88k machine=m88k/$machine ;;
857 m88k) base_machine=m88k machine=m88k/m88100 ;;
858 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
859 mips*) base_machine=mips machine=mips/$machine ;;
861 base_machine=sparc machine=sparc/sparc32 ;;
862 sparcv8 | supersparc | hypersparc)
863 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
864 sparc64 | ultrasparc)
865 base_machine=sparc machine=sparc/sparc64 ;;
869 if test "$base_machine" = "i386"; then
870 cat >> confdefs.h <<\EOF
871 #define USE_REGPARMS 1
876 # Compute the list of sysdep directories for this configuration.
877 # This can take a while to compute.
878 sysdep_dir=$srcdir/sysdeps
879 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
880 echo "configure:881: checking sysdep dirs" >&5
881 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
882 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
887 netbsd* | 386bsd* | freebsd* | bsdi*)
888 base_os=unix/bsd/bsd4.4 ;;
889 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
891 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
894 base_os=unix/sysv/sysv4 ;;
896 base_os=standalone ;;
901 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
904 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
908 o=`echo $tail | sed 's/[0-9]*$//'`
909 if test $o != $tail; then
912 # For linux-gnu, try linux-gnu, then linux.
913 o=`echo $tail | sed 's/-.*$//'`
914 if test $o != $tail; then
918 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
921 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
927 # For sparc/sparc9, try sparc/sparc9 and then sparc.
930 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
932 # Prepend the machine's FPU directory unless --without-fp.
933 if test "$with_fp" = yes; then
941 # Find what sysdep directories exist.
943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
944 for d in $add_ons_pfx ''; do
945 for b in $base ''; do
946 for m0 in $mach ''; do
947 for v in /$vendor ''; do
948 for o in /$ostry ''; do
949 for m in $mach ''; do
950 if test "$m0$b$v$o$m"; then
951 try="${d}sysdeps$m0$b$v$o$m"
952 test -n "$enable_debug_configure" &&
953 echo "$0 DEBUG: try $try" >&2
956 *) dest=$srcdir/$try ;;
958 if test -d $dest; then
959 sysnames="$sysnames $try"
960 { test -n "$o" || test -n "$b"; } && os_used=t
961 { test -n "$m" || test -n "$m0"; } && machine_used=t
972 if test -z "$os_used" && test "$os" != none; then
973 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
975 if test -z "$machine_used" && test "$machine" != none; then
976 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
979 # We have now validated the configuration.
982 # If using ELF, look for an `elf' subdirectory of each machine directory.
983 # We prepend these rather than inserting them whereever the machine appears
984 # because things specified by the machine's ELF ABI should override
985 # OS-specific things, and should always be the same for any OS on the
986 # machine (otherwise what's the point of an ABI?).
987 if test "$elf" = yes; then
989 for d in $add_ons_pfx ''; do
992 *) xsrcdir=$srcdir/ ;;
995 if test -d $xsrcdir${d}sysdeps$m/elf; then
996 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1000 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1004 # Expand the list of system names into a full list of directories
1005 # from each element's parent name and Implies file (if present).
1008 while test $# -gt 0; do
1012 case " $names " in *" $name "*)
1013 # Already in the list.
1017 # Report each name as we discover it, so there is no long pause in output.
1018 echo $ac_n "$name $ac_c" >&6
1020 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
1024 *) xsrcdir=$srcdir/ ;;
1026 test -n "$enable_debug_configure" &&
1027 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
1029 if test -f $xsrcdir$name/Implies; then
1030 # Collect more names from the `Implies' file (removing comments).
1031 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1033 for x in $implied_candidate; do
1034 if test -d $xsrcdir$name_base/$x; then
1035 implied="$implied $name_base/$x";
1037 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1044 # Add NAME to the list of names.
1045 names="$names $name"
1047 # Find the parent of NAME, using the empty string if it has none.
1048 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1050 # Add the names implied by NAME, and NAME's parent (if it has one), to
1051 # the list of names to be processed (the argument list). We prepend the
1052 # implied names to the list and append the parent. We want implied
1053 # directories to come before further directories inferred from the
1054 # configuration components; this ensures that for sysv4, unix/common
1055 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1057 sysnames="`echo $implied $* $parent`"
1058 test -n "$sysnames" && set $sysnames
1061 # Add the default directories.
1062 sysnames="$names sysdeps/generic"
1064 # The other names were emitted during the scan.
1065 echo "$ac_t""sysdeps/generic" 1>&6
1070 # Find a good install program. We prefer a C program (faster),
1071 # so one script is as good as another. But avoid the broken or
1072 # incompatible versions:
1073 # SysV /etc/install, /usr/sbin/install
1074 # SunOS /usr/etc/install
1075 # IRIX /sbin/install
1077 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1078 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1079 # ./install, which can be erroneously created by make from ./install.sh.
1080 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1081 echo "configure:1082: checking for a BSD compatible install" >&5
1082 if test -z "$INSTALL"; then
1083 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1086 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1087 for ac_dir in $PATH; do
1088 # Account for people who put trailing slashes in PATH elements.
1090 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1092 # OSF1 and SCO ODT 3.0 have their own names for install.
1093 for ac_prog in ginstall installbsd scoinst install; do
1094 if test -f $ac_dir/$ac_prog; then
1095 if test $ac_prog = install &&
1096 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1097 # AIX install. It has an incompatible calling convention.
1098 # OSF/1 installbsd also uses dspmsg, but is usable.
1101 ac_cv_path_install="$ac_dir/$ac_prog -c"
1112 if test "${ac_cv_path_install+set}" = set; then
1113 INSTALL="$ac_cv_path_install"
1115 # As a last resort, use the slow shell script. We don't cache a
1116 # path for INSTALL within a source directory, because that will
1117 # break other packages using the cache if that directory is
1118 # removed, or if the path is relative.
1119 INSTALL="$ac_install_sh"
1122 echo "$ac_t""$INSTALL" 1>&6
1124 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1125 # It thinks the first close brace ends the variable substitution.
1126 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1128 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1130 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1131 # The makefiles need to use a different form to find it in $srcdir.
1132 INSTALL='\$(..)./install-sh -c'
1134 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1135 echo "configure:1136: checking whether ln -s works" >&5
1136 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1137 echo $ac_n "(cached) $ac_c" 1>&6
1140 if ln -s X conftestdata 2>/dev/null
1143 ac_cv_prog_LN_S="ln -s"
1148 LN_S="$ac_cv_prog_LN_S"
1149 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1150 echo "$ac_t""yes" 1>&6
1152 echo "$ac_t""no" 1>&6
1155 for ac_prog in msgfmt gmsgfmt
1157 # Extract the first word of "$ac_prog", so it can be a program name with args.
1158 set dummy $ac_prog; ac_word=$2
1159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1160 echo "configure:1161: checking for $ac_word" >&5
1161 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1164 if test -n "$MSGFMT"; then
1165 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1168 for ac_dir in $PATH; do
1169 test -z "$ac_dir" && ac_dir=.
1170 if test -f $ac_dir/$ac_word; then
1171 ac_cv_prog_MSGFMT="$ac_prog"
1178 MSGFMT="$ac_cv_prog_MSGFMT"
1179 if test -n "$MSGFMT"; then
1180 echo "$ac_t""$MSGFMT" 1>&6
1182 echo "$ac_t""no" 1>&6
1185 test -n "$MSGFMT" && break
1187 test -n "$MSGFMT" || MSGFMT=":"
1189 # Extract the first word of "makeinfo", so it can be a program name with args.
1190 set dummy makeinfo; ac_word=$2
1191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1192 echo "configure:1193: checking for $ac_word" >&5
1193 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 if test -n "$MAKEINFO"; then
1197 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1200 for ac_dir in $PATH; do
1201 test -z "$ac_dir" && ac_dir=.
1202 if test -f $ac_dir/$ac_word; then
1203 ac_cv_prog_MAKEINFO="makeinfo"
1210 MAKEINFO="$ac_cv_prog_MAKEINFO"
1211 if test -n "$MAKEINFO"; then
1212 echo "$ac_t""$MAKEINFO" 1>&6
1214 echo "$ac_t""no" 1>&6
1217 if test "$MAKEINFO"; then
1218 if $MAKEINFO --version | grep 'texinfo 3\.[1-9][1-9]' >/dev/null 2>&1
1219 then : # Makeinfo 3.11 or greater, works.
1221 echo "configure: warning:
1222 *** makeinfo is too old (need version 3.11 or better).
1223 *** You should install the needed version and re-configure since otherwise
1224 *** you won't get the info pages installed." 1>&2
1229 # Extract the first word of "gcc", so it can be a program name with args.
1230 set dummy gcc; ac_word=$2
1231 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1232 echo "configure:1233: checking for $ac_word" >&5
1233 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1234 echo $ac_n "(cached) $ac_c" 1>&6
1236 if test -n "$CC"; then
1237 ac_cv_prog_CC="$CC" # Let the user override the test.
1239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1240 for ac_dir in $PATH; do
1241 test -z "$ac_dir" && ac_dir=.
1242 if test -f $ac_dir/$ac_word; then
1251 if test -n "$CC"; then
1252 echo "$ac_t""$CC" 1>&6
1254 echo "$ac_t""no" 1>&6
1257 if test -z "$CC"; then
1258 # Extract the first word of "cc", so it can be a program name with args.
1259 set dummy cc; ac_word=$2
1260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1261 echo "configure:1262: checking for $ac_word" >&5
1262 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1265 if test -n "$CC"; then
1266 ac_cv_prog_CC="$CC" # Let the user override the test.
1268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1270 for ac_dir in $PATH; do
1271 test -z "$ac_dir" && ac_dir=.
1272 if test -f $ac_dir/$ac_word; then
1273 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1274 ac_prog_rejected=yes
1282 if test $ac_prog_rejected = yes; then
1283 # We found a bogon in the path, so make sure we never use it.
1284 set dummy $ac_cv_prog_CC
1286 if test $# -gt 0; then
1287 # We chose a different compiler from the bogus one.
1288 # However, it has the same basename, so the bogon will be chosen
1289 # first if we set CC to just the basename; use the full file name.
1291 set dummy "$ac_dir/$ac_word" "$@"
1299 if test -n "$CC"; then
1300 echo "$ac_t""$CC" 1>&6
1302 echo "$ac_t""no" 1>&6
1305 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1308 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1309 echo "configure:1310: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1312 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1315 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1316 cross_compiling=$ac_cv_prog_cc_cross
1318 cat > conftest.$ac_ext <<EOF
1319 #line 1320 "configure"
1320 #include "confdefs.h"
1323 if { (eval echo configure:1324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1324 ac_cv_prog_cc_works=yes
1325 # If we can't run a trivial program, we are probably using a cross compiler.
1326 if (./conftest; exit) 2>/dev/null; then
1327 ac_cv_prog_cc_cross=no
1329 ac_cv_prog_cc_cross=yes
1332 echo "configure: failed program was:" >&5
1333 cat conftest.$ac_ext >&5
1334 ac_cv_prog_cc_works=no
1338 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1339 if test $ac_cv_prog_cc_works = no; then
1341 ac_cv_prog_cc_cross=yes
1345 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1346 echo "configure:1347: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1347 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1349 cross_compiling=$ac_cv_prog_cc_cross
1351 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1352 echo "configure:1353: checking whether we are using GNU C" >&5
1353 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 cat > conftest.c <<EOF
1361 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1368 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1370 if test $ac_cv_prog_gcc = yes; then
1373 cat > conftest.c <<EOF
1374 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
1378 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1379 if test -z "$CFLAGS"; then
1383 { echo "configure: error: We require GNU CC version 2.7 or newer" 1>&2; exit 1; }
1386 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1389 echo $ac_n "checking build system type""... $ac_c" 1>&6
1390 echo "configure:1391: checking build system type" >&5
1393 case "$build_alias" in
1396 NONE) build_alias=$host_alias ;;
1397 *) build_alias=$nonopt ;;
1401 build=`$ac_config_sub $build_alias`
1402 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1403 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1404 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1405 echo "$ac_t""$build" 1>&6
1407 if test $host != $build; then
1408 for ac_prog in gcc cc
1410 # Extract the first word of "$ac_prog", so it can be a program name with args.
1411 set dummy $ac_prog; ac_word=$2
1412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1413 echo "configure:1414: checking for $ac_word" >&5
1414 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1417 if test -n "$BUILD_CC"; then
1418 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1421 for ac_dir in $PATH; do
1422 test -z "$ac_dir" && ac_dir=.
1423 if test -f $ac_dir/$ac_word; then
1424 ac_cv_prog_BUILD_CC="$ac_prog"
1431 BUILD_CC="$ac_cv_prog_BUILD_CC"
1432 if test -n "$BUILD_CC"; then
1433 echo "$ac_t""$BUILD_CC" 1>&6
1435 echo "$ac_t""no" 1>&6
1438 test -n "$BUILD_CC" && break
1443 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1444 echo "configure:1445: checking how to run the C preprocessor" >&5
1445 # On Suns, sometimes $CPP names a directory.
1446 if test -n "$CPP" && test -d "$CPP"; then
1449 if test -z "$CPP"; then
1450 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1451 echo $ac_n "(cached) $ac_c" 1>&6
1453 # This must be in double quotes, not single quotes, because CPP may get
1454 # substituted into the Makefile and "${CC-cc}" will confuse make.
1456 # On the NeXT, cc -E runs the code through the compiler's parser,
1457 # not just through cpp.
1458 cat > conftest.$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1465 { (eval echo configure:1466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1466 ac_err=`grep -v '^ *+' conftest.out`
1467 if test -z "$ac_err"; then
1471 echo "configure: failed program was:" >&5
1472 cat conftest.$ac_ext >&5
1474 CPP="${CC-cc} -E -traditional-cpp"
1475 cat > conftest.$ac_ext <<EOF
1476 #line 1477 "configure"
1477 #include "confdefs.h"
1481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1482 { (eval echo configure:1483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1483 ac_err=`grep -v '^ *+' conftest.out`
1484 if test -z "$ac_err"; then
1488 echo "configure: failed program was:" >&5
1489 cat conftest.$ac_ext >&5
1496 ac_cv_prog_CPP="$CPP"
1498 CPP="$ac_cv_prog_CPP"
1500 ac_cv_prog_CPP="$CPP"
1502 echo "$ac_t""$CPP" 1>&6
1504 # Was a --with-binutils option given?
1505 if test -n "$path_binutils"; then
1506 # Make absolute; ensure a single trailing slash.
1507 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
1508 CC="$CC -B$with_binutils"
1510 AS=`$CC -print-file-name=as`
1511 LD=`$CC -print-file-name=ld`
1513 # Determine whether we are using GNU binutils.
1514 echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
1515 echo "configure:1516: checking whether $AS is GNU as" >&5
1516 if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1519 # Most GNU programs take a -v and spit out some text including
1520 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1521 if $AS -v </dev/null 2>&1 | grep -q GNU; then
1522 libc_cv_prog_as_gnu=yes
1524 libc_cv_prog_as_gnu=no
1528 echo "$ac_t""$libc_cv_prog_as_gnu" 1>&6
1530 gnu_as=$libc_cv_prog_as_gnu
1532 echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
1533 echo "configure:1534: checking whether $LD is GNU ld" >&5
1534 if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
1535 echo $ac_n "(cached) $ac_c" 1>&6
1537 # Most GNU programs take a -v and spit out some text including
1538 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
1539 if $LD -v </dev/null 2>&1 | grep -q GNU; then
1540 libc_cv_prog_ld_gnu=yes
1542 libc_cv_prog_ld_gnu=no
1546 echo "$ac_t""$libc_cv_prog_ld_gnu" 1>&6
1547 gnu_ld=$libc_cv_prog_ld_gnu
1548 if test $host != $build; then
1549 ac_tool_prefix=${host_alias}-
1554 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1555 set dummy ${ac_tool_prefix}ar; ac_word=$2
1556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1557 echo "configure:1558: checking for $ac_word" >&5
1558 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1561 if test -n "$AR"; then
1562 ac_cv_prog_AR="$AR" # Let the user override the test.
1564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1565 for ac_dir in $PATH; do
1566 test -z "$ac_dir" && ac_dir=.
1567 if test -f $ac_dir/$ac_word; then
1568 ac_cv_prog_AR="${ac_tool_prefix}ar"
1573 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1577 if test -n "$AR"; then
1578 echo "$ac_t""$AR" 1>&6
1580 echo "$ac_t""no" 1>&6
1585 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1586 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1588 echo "configure:1589: checking for $ac_word" >&5
1589 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1592 if test -n "$RANLIB"; then
1593 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1596 for ac_dir in $PATH; do
1597 test -z "$ac_dir" && ac_dir=.
1598 if test -f $ac_dir/$ac_word; then
1599 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1606 RANLIB="$ac_cv_prog_RANLIB"
1607 if test -n "$RANLIB"; then
1608 echo "$ac_t""$RANLIB" 1>&6
1610 echo "$ac_t""no" 1>&6
1614 if test -z "$ac_cv_prog_RANLIB"; then
1615 if test -n "$ac_tool_prefix"; then
1616 # Extract the first word of "ranlib", so it can be a program name with args.
1617 set dummy ranlib; ac_word=$2
1618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1619 echo "configure:1620: checking for $ac_word" >&5
1620 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1621 echo $ac_n "(cached) $ac_c" 1>&6
1623 if test -n "$RANLIB"; then
1624 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1627 for ac_dir in $PATH; do
1628 test -z "$ac_dir" && ac_dir=.
1629 if test -f $ac_dir/$ac_word; then
1630 ac_cv_prog_RANLIB="ranlib"
1635 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1638 RANLIB="$ac_cv_prog_RANLIB"
1639 if test -n "$RANLIB"; then
1640 echo "$ac_t""$RANLIB" 1>&6
1642 echo "$ac_t""no" 1>&6
1651 # Extract the first word of "bash", so it can be a program name with args.
1652 set dummy bash; ac_word=$2
1653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1654 echo "configure:1655: checking for $ac_word" >&5
1655 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1660 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1664 for ac_dir in $PATH; do
1665 test -z "$ac_dir" && ac_dir=.
1666 if test -f $ac_dir/$ac_word; then
1667 ac_cv_path_BASH="$ac_dir/$ac_word"
1672 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
1676 BASH="$ac_cv_path_BASH"
1677 if test -n "$BASH"; then
1678 echo "$ac_t""$BASH" 1>&6
1680 echo "$ac_t""no" 1>&6
1683 if test "$BASH" != no &&
1684 $BASH -c 'test "$BASH_VERSINFO" \
1685 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1686 libc_cv_have_bash2=yes
1688 libc_cv_have_bash2=no
1692 if test "$BASH" = no; then
1693 # Extract the first word of "ksh", so it can be a program name with args.
1694 set dummy ksh; ac_word=$2
1695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1696 echo "configure:1697: checking for $ac_word" >&5
1697 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1702 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1706 for ac_dir in $PATH; do
1707 test -z "$ac_dir" && ac_dir=.
1708 if test -f $ac_dir/$ac_word; then
1709 ac_cv_path_KSH="$ac_dir/$ac_word"
1714 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
1718 KSH="$ac_cv_path_KSH"
1719 if test -n "$KSH"; then
1720 echo "$ac_t""$KSH" 1>&6
1722 echo "$ac_t""no" 1>&6
1725 if test "$KSH" = no; then
1728 libc_cv_have_ksh=yes
1733 libc_cv_have_ksh=yes
1739 # Extract the first word of "$ac_prog", so it can be a program name with args.
1740 set dummy $ac_prog; ac_word=$2
1741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1742 echo "configure:1743: checking for $ac_word" >&5
1743 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1748 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1752 for ac_dir in $PATH; do
1753 test -z "$ac_dir" && ac_dir=.
1754 if test -f $ac_dir/$ac_word; then
1755 ac_cv_path_PERL="$ac_dir/$ac_word"
1763 PERL="$ac_cv_path_PERL"
1764 if test -n "$PERL"; then
1765 echo "$ac_t""$PERL" 1>&6
1767 echo "$ac_t""no" 1>&6
1770 test -n "$PERL" && break
1772 test -n "$PERL" || PERL="no"
1776 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1777 echo "configure:1778: checking for signed size_t type" >&5
1778 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1779 echo $ac_n "(cached) $ac_c" 1>&6
1781 echo '#include <stddef.h>
1782 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1783 if eval "$ac_cpp conftest.c 2>/dev/null" \
1784 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
1785 libc_cv_signed_size_t=no
1787 libc_cv_signed_size_t=yes
1792 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
1793 if test $libc_cv_signed_size_t = yes; then
1794 cat >> confdefs.h <<\EOF
1795 #undef __SIZE_TYPE__
1796 #define __SIZE_TYPE__ unsigned
1800 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
1801 echo "configure:1802: checking for libc-friendly stddef.h" >&5
1802 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 cat > conftest.$ac_ext <<EOF
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1808 #define __need_size_t
1809 #define __need_wchar_t
1814 size_t size; wchar_t wchar;
1816 #error stddef.h ignored __need_*
1818 if (&size == NULL || &wchar == NULL) abort ();
1821 if { (eval echo configure:1822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1823 libc_cv_friendly_stddef=yes
1825 echo "configure: failed program was:" >&5
1826 cat conftest.$ac_ext >&5
1828 libc_cv_friendly_stddef=no
1833 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
1834 if test $libc_cv_friendly_stddef = yes; then
1835 config_vars="$config_vars
1836 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1839 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
1840 echo "configure:1841: checking whether we need to use -P to assemble .S files" >&5
1841 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6
1844 cat > conftest.S <<EOF
1845 #include "confdefs.h"
1846 /* Nothing whatsoever. */
1848 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
1849 libc_cv_need_minus_P=no
1851 libc_cv_need_minus_P=yes
1856 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
1857 if test $libc_cv_need_minus_P = yes; then
1858 config_vars="$config_vars
1859 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1862 # gcc 2.7.x has a bug where if -pipe is set, the assembler will always
1863 # be told to read stdin. This causes the compiler to hang when fed an
1865 if test $ac_cv_prog_gcc = yes; then
1866 case `${CC-cc} -v 2>&1` in
1868 # We must check this even if -pipe is not given here, because the user
1869 # might do `make CFLAGS=-pipe'.
1870 echo $ac_n "checking for gcc 2.7.x -pipe bug""... $ac_c" 1>&6
1871 echo "configure:1872: checking for gcc 2.7.x -pipe bug" >&5
1872 if eval "test \"`echo '$''{'libc_cv_gcc_pipe_bug'+set}'`\" = set"; then
1873 echo $ac_n "(cached) $ac_c" 1>&6
1875 cp /dev/null conftest.s
1876 cat >conftest1.s <<EOF
1879 if ${CC-cc} -pipe -c conftest.s <conftest1.s 2>/dev/null; then
1880 libc_cv_gcc_pipe_bug=no
1882 libc_cv_gcc_pipe_bug=yes
1887 echo "$ac_t""$libc_cv_gcc_pipe_bug" 1>&6
1888 if test $libc_cv_gcc_pipe_bug = yes; then
1889 makeCC="${CC-cc} -B\$(common-objpfx)"
1891 CFLAGS=`echo $CFLAGS |sed 's/-pipe//'`
1893 *) libc_cv_gcc_pipe_bug=no;;
1896 libc_cv_gcc_pipe_bug=no
1899 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
1900 echo "configure:1901: checking for assembler global-symbol directive" >&5
1901 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1904 libc_cv_asm_global_directive=UNKNOWN
1905 for ac_globl in .globl .global; do
1906 cat > conftest.s <<EOF
1911 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1912 libc_cv_asm_global_directive=${ac_globl}
1915 test $libc_cv_asm_global_directive != UNKNOWN && break
1919 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
1920 if test $libc_cv_asm_global_directive = UNKNOWN; then
1921 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1923 cat >> confdefs.h <<EOF
1924 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1929 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
1930 echo "configure:1931: checking for .set assembler directive" >&5
1931 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1934 cat > conftest.s <<EOF
1937 .set glibc_conftest_frobozz,foo
1938 $libc_cv_asm_global_directive glibc_conftest_frobozz
1940 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1941 # (but it doesn't work), so we must do a linking check to be sure.
1942 cat > conftest1.c <<\EOF
1943 extern int glibc_conftest_frobozz;
1944 main () { printf ("%d\n", glibc_conftest_frobozz); }
1946 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1947 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
1948 libc_cv_asm_set_directive=yes
1950 libc_cv_asm_set_directive=no
1955 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
1956 if test $libc_cv_asm_set_directive = yes; then
1957 cat >> confdefs.h <<\EOF
1958 #define HAVE_ASM_SET_DIRECTIVE 1
1963 echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
1964 echo "configure:1965: checking for .symver assembler directive" >&5
1965 if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
1966 echo $ac_n "(cached) $ac_c" 1>&6
1968 cat > conftest.s <<EOF
1971 .symver _sym,sym@VERS
1973 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
1974 libc_cv_asm_symver_directive=yes
1976 libc_cv_asm_symver_directive=no
1981 echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
1982 echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
1983 echo "configure:1984: checking for ld --version-script" >&5
1984 if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1987 if test $libc_cv_asm_symver_directive = yes; then
1988 cat > conftest.s <<EOF
1991 .symver _sym,sym@VERS
1993 cat > conftest.map <<EOF
2002 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
2003 if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
2004 -nostartfiles -nostdlib
2005 -Wl,--version-script,conftest.map
2006 1>&5'; { (eval echo configure:2007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2008 libc_cv_ld_version_script_option=yes
2010 libc_cv_ld_version_script_option=no
2013 libc_cv_ld_version_script_option=no
2016 libc_cv_ld_version_script_option=no
2021 echo "$ac_t""$libc_cv_ld_version_script_option" 1>&6
2022 if test $libc_cv_asm_symver_directive = yes &&
2023 test $libc_cv_ld_version_script_option = yes &&
2024 test $enable_versioning = yes; then
2026 cat >> confdefs.h <<\EOF
2027 #define DO_VERSIONING 1
2035 if test $VERSIONING = no; then
2037 *** WARNING: You should not compile GNU libc without versioning. Not using
2038 *** versioning will introduce incompatibilities so that old binaries
2039 *** will not run anymore.
2040 *** For versioning you need recent binutils (binutils-2.8.1.0.17 or newer)."
2042 if test $elf = yes; then
2043 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
2044 echo "configure:2045: checking for .previous assembler directive" >&5
2045 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
2046 echo $ac_n "(cached) $ac_c" 1>&6
2048 cat > conftest.s <<EOF
2049 .section foo_section
2052 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2053 libc_cv_asm_previous_directive=yes
2055 libc_cv_asm_previous_directive=no
2060 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
2061 if test $libc_cv_asm_previous_directive = yes; then
2062 cat >> confdefs.h <<\EOF
2063 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
2067 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
2068 echo "configure:2069: checking for .popsection assembler directive" >&5
2069 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
2070 echo $ac_n "(cached) $ac_c" 1>&6
2072 cat > conftest.s <<EOF
2073 .pushsection foo_section
2076 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure:2077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2077 libc_cv_asm_popsection_directive=yes
2079 libc_cv_asm_popsection_directive=no
2084 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
2085 if test $libc_cv_asm_popsection_directive = yes; then
2086 cat >> confdefs.h <<\EOF
2087 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
2094 if test $elf != yes; then
2095 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
2096 echo "configure:2097: checking for .init and .fini sections" >&5
2097 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
2098 echo $ac_n "(cached) $ac_c" 1>&6
2100 cat > conftest.$ac_ext <<EOF
2101 #line 2102 "configure"
2102 #include "confdefs.h"
2105 asm (".section .init");
2106 asm (".section .fini");
2110 if { (eval echo configure:2111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2112 libc_cv_have_initfini=yes
2114 echo "configure: failed program was:" >&5
2115 cat conftest.$ac_ext >&5
2117 libc_cv_have_initfini=no
2122 echo "$ac_t""$libc_cv_have_initfini" 1>&6
2123 if test $libc_cv_have_initfini = yes; then
2124 cat >> confdefs.h <<\EOF
2125 #define HAVE_INITFINI 1
2133 if test $elf = yes; then
2134 libc_cv_asm_underscores=no
2136 if test $ac_cv_prog_cc_works = yes; then
2137 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2138 echo "configure:2139: checking for _ prefix on C symbol names" >&5
2139 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2142 cat > conftest.$ac_ext <<EOF
2143 #line 2144 "configure"
2144 #include "confdefs.h"
2145 asm ("_glibc_foobar:");
2150 if { (eval echo configure:2151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2152 libc_cv_asm_underscores=yes
2154 echo "configure: failed program was:" >&5
2155 cat conftest.$ac_ext >&5
2157 libc_cv_asm_underscores=no
2162 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2164 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
2165 echo "configure:2166: checking for _ prefix on C symbol names" >&5
2166 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2169 cat > conftest.$ac_ext <<EOF
2170 #line 2171 "configure"
2171 #include "confdefs.h"
2172 void underscore_test(void) {
2175 if { (eval echo configure:2176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2176 if grep _underscore_test conftest* >/dev/null; then
2178 libc_cv_asm_underscores=yes
2181 libc_cv_asm_underscores=no
2184 echo "configure: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2187 libc_cv_asm_underscores=no
2192 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
2195 if test $libc_cv_asm_underscores = no; then
2196 cat >> confdefs.h <<\EOF
2197 #define NO_UNDERSCORES 1
2202 if test $elf = yes; then
2203 libc_cv_weak_symbols=yes
2204 libc_cv_asm_weak_directive=yes
2205 libc_cv_asm_weakext_directive=no
2207 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
2208 echo "configure:2209: checking for assembler .weak directive" >&5
2209 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
2210 echo $ac_n "(cached) $ac_c" 1>&6
2212 cat > conftest.s <<EOF
2214 ${libc_cv_asm_global_directive} foo
2217 .weak bar; bar = foo
2219 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2220 libc_cv_asm_weak_directive=yes
2222 libc_cv_asm_weak_directive=no
2227 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
2229 if test $libc_cv_asm_weak_directive = no; then
2230 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
2231 echo "configure:2232: checking for assembler .weakext directive" >&5
2232 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2235 cat > conftest.s <<EOF
2237 ${libc_cv_asm_global_directive} foo
2242 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
2243 libc_cv_asm_weakext_directive=yes
2245 libc_cv_asm_weakext_directive=no
2250 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2255 if test $libc_cv_asm_weak_directive = yes; then
2256 cat >> confdefs.h <<\EOF
2257 #define HAVE_ASM_WEAK_DIRECTIVE 1
2260 elif test $libc_cv_asm_weakext_directive = yes; then
2261 cat >> confdefs.h <<\EOF
2262 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2267 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2268 echo "configure:2269: checking for ld --no-whole-archive" >&5
2269 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2270 echo $ac_n "(cached) $ac_c" 1>&6
2272 cat > conftest.c <<\EOF
2277 if { ac_try='${CC-cc} $CFLAGS
2278 -nostdlib -nostartfiles -Wl,--no-whole-archive
2279 -o conftest conftest.c 1>&5'; { (eval echo configure:2280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2280 libc_cv_ld_no_whole_archive=yes
2282 libc_cv_ld_no_whole_archive=no
2287 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2289 echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
2290 echo "configure:2291: checking for gcc -fno-exceptions" >&5
2291 if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2294 cat > conftest.c <<\EOF
2299 if { ac_try='${CC-cc} $CFLAGS
2300 -nostdlib -nostartfiles -fno-exceptions
2301 -o conftest conftest.c 1>&5'; { (eval echo configure:2302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2302 libc_cv_gcc_no_exceptions=yes
2304 libc_cv_gcc_no_exceptions=no
2309 echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
2311 if test "$base_machine" = alpha ; then
2312 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2313 echo "configure:2314: checking for function ..ng prefix" >&5
2314 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
2315 echo $ac_n "(cached) $ac_c" 1>&6
2317 cat > conftest.c <<\EOF
2320 if { ac_try='${CC-cc} -S conftest.c -o - | fgrep '$foo..ng' > /dev/null'; { (eval echo configure:2321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2322 libc_cv_gcc_alpha_ng_prefix=yes
2324 libc_cv_gcc_alpha_ng_prefix=no
2329 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2330 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2331 cat >> confdefs.h <<\EOF
2332 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2336 cat >> confdefs.h <<\EOF
2337 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2343 echo $ac_n "checking for DWARF2 unwind info support""... $ac_c" 1>&6
2344 echo "configure:2345: checking for DWARF2 unwind info support" >&5
2345 if eval "test \"`echo '$''{'libc_cv_gcc_dwarf2_unwind_info'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2348 cat > conftest.c <<EOF
2349 #line 2350 "configure"
2350 static char __EH_FRAME_BEGIN__;
2353 #ifdef CHECK__register_frame
2354 __register_frame (__EH_FRAME_BEGIN__);
2355 __deregister_frame (__EH_FRAME_BEGIN__);
2357 #ifdef CHECK__register_frame_info
2358 __register_frame_info (__EH_FRAME_BEGIN__);
2359 __deregister_frame_info (__EH_FRAME_BEGIN__);
2364 /* FIXME: this is fragile. */
2374 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
2375 -nostdlib -nostartfiles
2376 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2377 libc_cv_gcc_dwarf2_unwind_info=static
2379 libc_cv_gcc_dwarf2_unwind_info=no
2381 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
2382 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
2383 -nostdlib -nostartfiles
2384 -o conftest conftest.c -lgcc >&5'; { (eval echo configure:2385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2385 libc_cv_gcc_dwarf2_unwind_info=yes
2387 libc_cv_gcc_dwarf2_unwind_info=no
2393 echo "$ac_t""$libc_cv_gcc_dwarf2_unwind_info" 1>&6
2394 case $libc_cv_gcc_dwarf2_unwind_info in
2396 cat >> confdefs.h <<\EOF
2397 #define HAVE_DWARF2_UNWIND_INFO 1
2402 cat >> confdefs.h <<\EOF
2403 #define HAVE_DWARF2_UNWIND_INFO 1
2406 cat >> confdefs.h <<\EOF
2407 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
2413 ### End of automated tests.
2414 ### Now run sysdeps configure fragments.
2416 # sysdeps configure fragments may set these with files to be linked below.
2420 # Iterate over all the sysdep directories we will use, running their
2421 # configure fragments, and looking for a uname implementation.
2423 for dir in $sysnames; do
2426 *) dest=$srcdir/$dir ;;
2428 if test -r $dest/configure; then
2429 echo "$ac_t""running configure fragment for $dest" 1>&6
2433 if test -z "$uname"; then
2434 if test -r $dest/uname.c ||
2435 test -r $dest/uname.S ||
2436 { test -r $dest/syscalls.list &&
2437 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
2445 # If we will use the generic uname implementation, we must figure out what
2446 # it will say by examining the system, and write the results in config-name.h.
2447 if test "$uname" = "sysdeps/generic"; then
2449 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
2450 if test $uname_sysname != $config_os; then
2451 config_release=`echo $config_os | sed s/$uname_sysname//`
2454 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2455 echo "configure:2456: checking OS release for uname" >&5
2456 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2459 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2460 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
2461 != x$config_release; then
2462 # The configuration release is a substring of the kernel release.
2463 libc_cv_uname_release=$kernel_release
2464 elif test x$config_release != x; then
2465 libc_cv_uname_release=$config_release
2466 elif test x$kernel_release != x; then
2467 libc_cv_uname_release=$kernel_release
2469 libc_cv_uname_release=unknown
2473 echo "$ac_t""$libc_cv_uname_release" 1>&6
2474 uname_release="$libc_cv_uname_release"
2476 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2477 echo "configure:2478: checking OS version for uname" >&5
2478 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
2479 echo $ac_n "(cached) $ac_c" 1>&6
2481 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2482 if test -n "$kernel_version"; then
2483 libc_cv_uname_version="$kernel_version"
2485 libc_cv_uname_version=unknown
2489 echo "$ac_t""$libc_cv_uname_version" 1>&6
2490 uname_version="$libc_cv_uname_version"
2492 config_uname=config-name.h:config-name.in
2494 # For non-generic uname, we don't need to create config-name.h at all.
2498 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
2499 echo "configure:2500: checking stdio selection" >&5
2502 libio) cat >> confdefs.h <<\EOF
2503 #define USE_IN_LIBIO 1
2506 default) stdio=stdio ;;
2508 echo "$ac_t""$stdio" 1>&6
2510 echo $ac_n "checking ldap selection""... $ac_c" 1>&6
2511 echo "configure:2512: checking ldap selection" >&5
2520 echo "$ac_t""$ldap" 1>&6
2529 if test $gnu_ld = yes; then
2530 cat >> confdefs.h <<\EOF
2531 #define HAVE_GNU_LD 1
2535 if test $gnu_as = yes; then
2536 cat >> confdefs.h <<\EOF
2537 #define HAVE_GNU_AS 1
2541 if test $elf = yes; then
2542 cat >> confdefs.h <<\EOF
2550 if test $shared = default; then
2551 if test $gnu_ld = yes; then
2554 # For now we do not assume shared libs are available. In future more
2555 # tests might become available.
2560 if test $static = no && test $shared = yes; then
2563 { echo "configure: error:
2564 *** You must compile with support for the static library since the shared
2565 *** library uses it. Restart configure without \`--disable-static'." 1>&2; exit 1; }
2572 echo $ac_n "checking whether -fPIC is default""... $ac_c" 1>&6
2573 echo "configure:2574: checking whether -fPIC is default" >&5
2574 if eval "test \"`echo '$''{'pic_default'+set}'`\" = set"; then
2575 echo $ac_n "(cached) $ac_c" 1>&6
2578 cat > conftest.c <<EOF
2579 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
2580 # error PIC is default.
2583 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
2589 echo "$ac_t""$pic_default" 1>&6
2600 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
2603 config_makefile=Makefile
2606 VERSION=`sed -e 's/^#define VERSION "\([^"]*\)"/\1/p' -e d < $srcdir/version.h`
2609 if test $libc_cv_gcc_pipe_bug = yes; then
2614 if test -r /vmunix; then
2615 kernel_id=`strings /vmunix | grep UNIX`
2616 elif test -r /dynix; then
2617 kernel_id=`strings /dynix | grep DYNIX`
2625 cat > confcache <<\EOF
2626 # This file is a shell script that caches the results of configure
2627 # tests run on this system so they can be shared between configure
2628 # scripts and configure runs. It is not useful on other systems.
2629 # If it contains results you don't want to keep, you may remove or edit it.
2631 # By default, configure uses ./config.cache as the cache file,
2632 # creating it if it does not exist already. You can give configure
2633 # the --cache-file=FILE option to use a different cache file; that is
2634 # what configure does when it calls configure scripts in
2635 # subdirectories, so they share the cache.
2636 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2637 # config.status only pays attention to the cache file if you give it the
2638 # --recheck option to rerun configure.
2641 # The following way of writing the cache mishandles newlines in values,
2642 # but we know of no workaround that is simple, portable, and efficient.
2643 # So, don't put newlines in cache variables' values.
2644 # Ultrix sh set writes to stderr and can't be redirected directly,
2645 # and sets the high bit in the cache file unless we assign to the vars.
2647 case `(ac_space=' '; set) 2>&1` in
2649 # `set' does not quote correctly, so add quotes (double-quote substitution
2650 # turns \\\\ into \\, and sed turns \\ into \).
2652 -e "s/'/'\\\\''/g" \
2653 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2656 # `set' quotes correctly as required by POSIX, so do not add quotes.
2657 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2660 if cmp -s $cache_file confcache; then
2663 if test -w $cache_file; then
2664 echo "updating cache $cache_file"
2665 cat confcache > $cache_file
2667 echo "not updating unwritable cache $cache_file"
2672 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2674 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2675 # Let make expand exec_prefix.
2676 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2678 # Any assignment to VPATH causes Sun make to only execute
2679 # the first set of double-colon rules, so remove it if not needed.
2680 # If there is a colon in the path, we need to keep it.
2681 if test "x$srcdir" = x.; then
2682 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2685 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2687 DEFS=-DHAVE_CONFIG_H
2689 # Without the "./", some shells look in PATH for config.status.
2690 : ${CONFIG_STATUS=./config.status}
2692 echo creating $CONFIG_STATUS
2693 rm -f $CONFIG_STATUS
2694 cat > $CONFIG_STATUS <<EOF
2696 # Generated automatically by configure.
2697 # Run this file to recreate the current configuration.
2698 # This directory was configured as follows,
2699 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2701 # $0 $ac_configure_args
2703 # Compiler output produced by configure, useful for debugging
2704 # configure, is in ./config.log if it exists.
2706 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2709 case "\$ac_option" in
2710 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2711 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2712 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2713 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2714 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2716 -help | --help | --hel | --he | --h)
2717 echo "\$ac_cs_usage"; exit 0 ;;
2718 *) echo "\$ac_cs_usage"; exit 1 ;;
2722 ac_given_srcdir=$srcdir
2723 ac_given_INSTALL="$INSTALL"
2725 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2727 cat >> $CONFIG_STATUS <<EOF
2729 # Protect against being on the right side of a sed subst in config.status.
2730 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2731 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2734 s%@CFLAGS@%$CFLAGS%g
2735 s%@CPPFLAGS@%$CPPFLAGS%g
2736 s%@CXXFLAGS@%$CXXFLAGS%g
2738 s%@LDFLAGS@%$LDFLAGS%g
2740 s%@exec_prefix@%$exec_prefix%g
2741 s%@prefix@%$prefix%g
2742 s%@program_transform_name@%$program_transform_name%g
2743 s%@bindir@%$bindir%g
2744 s%@sbindir@%$sbindir%g
2745 s%@libexecdir@%$libexecdir%g
2746 s%@datadir@%$datadir%g
2747 s%@sysconfdir@%$sysconfdir%g
2748 s%@sharedstatedir@%$sharedstatedir%g
2749 s%@localstatedir@%$localstatedir%g
2750 s%@libdir@%$libdir%g
2751 s%@includedir@%$includedir%g
2752 s%@oldincludedir@%$oldincludedir%g
2753 s%@infodir@%$infodir%g
2754 s%@mandir@%$mandir%g
2755 s%@subdirs@%$subdirs%g
2757 s%@host_alias@%$host_alias%g
2758 s%@host_cpu@%$host_cpu%g
2759 s%@host_vendor@%$host_vendor%g
2760 s%@host_os@%$host_os%g
2761 s%@base_machine@%$base_machine%g
2762 s%@sysnames@%$sysnames%g
2763 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2764 s%@INSTALL_DATA@%$INSTALL_DATA%g
2766 s%@MSGFMT@%$MSGFMT%g
2767 s%@MAKEINFO@%$MAKEINFO%g
2769 s%@cross_linkable@%$cross_linkable%g
2771 s%@build_alias@%$build_alias%g
2772 s%@build_cpu@%$build_cpu%g
2773 s%@build_vendor@%$build_vendor%g
2774 s%@build_os@%$build_os%g
2775 s%@BUILD_CC@%$BUILD_CC%g
2776 s%@cross_compiling@%$cross_compiling%g
2779 s%@RANLIB@%$RANLIB%g
2781 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
2783 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
2785 s%@VERSIONING@%$VERSIONING%g
2786 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
2787 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
2788 s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
2789 s%@uname_sysname@%$uname_sysname%g
2790 s%@uname_release@%$uname_release%g
2791 s%@uname_version@%$uname_version%g
2794 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
2795 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
2796 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
2797 s%@has_ldconfig@%$has_ldconfig%g
2798 s%@gnu_ld@%$gnu_ld%g
2799 s%@gnu_as@%$gnu_as%g
2801 s%@static@%$static%g
2802 s%@shared@%$shared%g
2803 s%@pic_default@%$pic_default%g
2804 s%@profile@%$profile%g
2805 s%@omitfp@%$omitfp%g
2806 s%@bounded@%$bounded%g
2807 s%@static_nss@%$static_nss%g
2808 s%@nopic_initfini@%$nopic_initfini%g
2809 s%@DEFINES@%$DEFINES%g
2810 s%@VERSION@%$VERSION%g
2815 cat >> $CONFIG_STATUS <<\EOF
2817 # Split the substitutions into bite-sized pieces for seds with
2818 # small command number limits, like on Digital OSF/1 and HP-UX.
2819 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2820 ac_file=1 # Number of current file.
2821 ac_beg=1 # First line for current file.
2822 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2825 while $ac_more_lines; do
2826 if test $ac_beg -gt 1; then
2827 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2829 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2831 if test ! -s conftest.s$ac_file; then
2833 rm -f conftest.s$ac_file
2835 if test -z "$ac_sed_cmds"; then
2836 ac_sed_cmds="sed -f conftest.s$ac_file"
2838 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2840 ac_file=`expr $ac_file + 1`
2842 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2845 if test -z "$ac_sed_cmds"; then
2850 cat >> $CONFIG_STATUS <<EOF
2852 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
2854 cat >> $CONFIG_STATUS <<\EOF
2855 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2856 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2858 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2859 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2860 *) ac_file_in="${ac_file}.in" ;;
2863 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2865 # Remove last slash and all that follows it. Not all systems have dirname.
2866 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2867 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2868 # The file is in a subdirectory.
2869 test ! -d "$ac_dir" && mkdir "$ac_dir"
2870 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2871 # A "../" for each directory in $ac_dir_suffix.
2872 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2874 ac_dir_suffix= ac_dots=
2877 case "$ac_given_srcdir" in
2879 if test -z "$ac_dots"; then top_srcdir=.
2880 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2881 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2883 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2884 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2887 case "$ac_given_INSTALL" in
2888 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2889 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2892 echo creating "$ac_file"
2894 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2896 *Makefile*) ac_comsub="1i\\
2897 # $configure_input" ;;
2901 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2903 s%@configure_input@%$configure_input%g
2904 s%@srcdir@%$srcdir%g
2905 s%@top_srcdir@%$top_srcdir%g
2906 s%@INSTALL@%$INSTALL%g
2907 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2911 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2912 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2914 # ac_d sets the value in "#define NAME VALUE" lines.
2915 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2916 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2919 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2920 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2921 ac_uB='\([ ]\)%\1#\2define\3'
2924 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2925 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2926 ac_eB='$%\1#\2define\3'
2930 if test "${CONFIG_HEADERS+set}" != set; then
2932 cat >> $CONFIG_STATUS <<EOF
2933 CONFIG_HEADERS="config.h"
2935 cat >> $CONFIG_STATUS <<\EOF
2937 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2938 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2940 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2941 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2942 *) ac_file_in="${ac_file}.in" ;;
2945 echo creating $ac_file
2947 rm -f conftest.frag conftest.in conftest.out
2948 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2949 cat $ac_file_inputs > conftest.in
2953 # Transform confdefs.h into a sed script conftest.vals that substitutes
2954 # the proper values into config.h.in to produce config.h. And first:
2955 # Protect against being on the right side of a sed subst in config.status.
2956 # Protect against being in an unquoted here document in config.status.
2958 cat > conftest.hdr <<\EOF
2961 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2965 sed -n -f conftest.hdr confdefs.h > conftest.vals
2968 # This sed command replaces #undef with comments. This is necessary, for
2969 # example, in the case of _POSIX_SOURCE, which is predefined and required
2970 # on some systems where configure will not decide to define it.
2971 cat >> conftest.vals <<\EOF
2972 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2975 # Break up conftest.vals because some shells have a limit on
2976 # the size of here documents, and old seds have small limits too.
2981 ac_lines=`grep -c . conftest.vals`
2982 # grep -c gives empty output for an empty file on some AIX systems.
2983 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2984 # Write a limited-size here document to conftest.frag.
2985 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2986 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2988 sed -f conftest.frag conftest.in > conftest.out
2990 mv conftest.out conftest.in
2992 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2994 mv conftest.tail conftest.vals
2998 cat >> $CONFIG_STATUS <<\EOF
2999 rm -f conftest.frag conftest.h
3000 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3001 cat conftest.in >> conftest.h
3003 if cmp -s $ac_file conftest.h 2>/dev/null; then
3004 echo "$ac_file is unchanged"
3007 # Remove last slash and all that follows it. Not all systems have dirname.
3008 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3009 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3010 # The file is in a subdirectory.
3011 test ! -d "$ac_dir" && mkdir "$ac_dir"
3014 mv conftest.h $ac_file
3020 cat >> $CONFIG_STATUS <<EOF
3021 ac_sources="`echo $libc_link_sources`"
3022 ac_dests="`echo $libc_link_dests`"
3025 cat >> $CONFIG_STATUS <<\EOF
3026 srcdir=$ac_given_srcdir
3027 while test -n "$ac_sources"; do
3028 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3029 set $ac_sources; ac_source=$1; shift; ac_sources=$*
3031 echo "linking $srcdir/$ac_source to $ac_dest"
3033 if test ! -r $srcdir/$ac_source; then
3034 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3038 # Make relative symlinks.
3039 # Remove last slash and all that follows it. Not all systems have dirname.
3040 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3041 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3042 # The dest file is in a subdirectory.
3043 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3044 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3045 # A "../" for each directory in $ac_dest_dir_suffix.
3046 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3048 ac_dest_dir_suffix= ac_dots=
3052 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3053 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3056 # Make a symlink if possible; otherwise try a hard link.
3057 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3058 ln $srcdir/$ac_source $ac_dest; then :
3060 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3064 cat >> $CONFIG_STATUS <<EOF
3066 echo '$config_vars' >> config.make; test -d bits || mkdir bits
3068 cat >> $CONFIG_STATUS <<\EOF
3070 if test "$realCC"; then
3071 sed -e 's/%{pipe:-}/%|/g' `$realCC -print-file-name=specs` >specsT
3077 chmod +x $CONFIG_STATUS
3078 rm -fr confdefs* $ac_clean_files
3079 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3081 if test "$no_recursion" != yes; then
3083 # Remove --cache-file and --srcdir arguments so they do not pile up.
3084 ac_sub_configure_args=
3086 for ac_arg in $ac_configure_args; do
3087 if test -n "$ac_prev"; then
3092 -cache-file | --cache-file | --cache-fil | --cache-fi \
3093 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3094 ac_prev=cache_file ;;
3095 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3096 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3102 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3106 for ac_config_dir in $add_ons; do
3108 # Do not complain, so a configure script can configure whichever
3109 # parts of a large source tree are present.
3110 if test ! -d $srcdir/$ac_config_dir; then
3114 echo configuring in $ac_config_dir
3119 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3121 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3129 # A "../" for each directory in /$ac_config_dir.
3130 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3133 .) # No --srcdir option. We are building in place.
3134 ac_sub_srcdir=$srcdir ;;
3135 /*) # Absolute path.
3136 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3138 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3141 # Check for guested configure; otherwise get Cygnus style configure.
3142 if test -f $ac_sub_srcdir/configure; then
3143 ac_sub_configure=$ac_sub_srcdir/configure
3144 elif test -f $ac_sub_srcdir/configure.in; then
3145 ac_sub_configure=$ac_configure
3147 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3151 # The recursion is here.
3152 if test -n "$ac_sub_configure"; then
3154 # Make the cache file name correct relative to the subdirectory.
3155 case "$cache_file" in
3156 /*) ac_sub_cache_file=$cache_file ;;
3158 ac_sub_cache_file="$ac_dots$cache_file" ;;
3160 case "$ac_given_INSTALL" in
3161 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3162 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3165 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3166 # The eval makes quoting arguments work.
3167 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3170 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }