3 # From configure.in CVSid
8 # Guess values for system-dependent variables and create Makefiles.
9 # Generated automatically using autoconf version 2.12
10 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
17 ac_default_prefix
=/usr
/local
18 # Any additions from configure.in:
20 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
22 --with-gettext=DIR find GNU gettext source code in DIR (not needed)"
24 --with-fp if using floating-point hardware [default=yes]"
26 --with-gnu-binutils if using GNU binutils (as and ld)"
28 --with-gnu-ld if using GNU ld (in the binutils package)"
30 --with-gnu-as if using GNU as (in the binutils package)"
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-shared build shared library [default=yes if GNU ld & ELF]"
41 --enable-profile build profiled library [default=yes]"
43 --enable-omitfp build undebuggable optimized library [default=no]"
45 --enable-add-ons=DIR... configure and build named extra directories"
47 # Initialize some variables set by options.
48 # The variables have the same names as the options, with
49 # dashes changed to underlines.
51 cache_file
=.
/config.cache
60 program_transform_name
=s
,x
,x
,
68 bindir
='${exec_prefix}/bin'
69 sbindir
='${exec_prefix}/sbin'
70 libexecdir
='${exec_prefix}/libexec'
71 datadir
='${prefix}/share'
72 sysconfdir
='${prefix}/etc'
73 sharedstatedir
='${prefix}/com'
74 localstatedir
='${prefix}/var'
75 libdir
='${exec_prefix}/lib'
76 includedir
='${prefix}/include'
77 oldincludedir
='/usr/include'
78 infodir
='${prefix}/info'
79 mandir
='${prefix}/man'
81 # Initialize some other variables.
84 # Maximum number of lines to put in a shell here document.
91 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
99 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
103 # Accept the important Cygnus configure options, so we can diagnose typos.
107 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
109 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
110 bindir
="$ac_optarg" ;;
112 -build |
--build |
--buil |
--bui |
--bu)
114 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
115 build
="$ac_optarg" ;;
117 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
118 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
119 ac_prev
=cache_file
;;
120 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
121 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
122 cache_file
="$ac_optarg" ;;
124 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
126 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
128 datadir
="$ac_optarg" ;;
130 -disable-* |
--disable-*)
131 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;;
139 -enable-* |
--enable-*)
140 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
150 eval "enable_${ac_feature}='$ac_optarg'" ;;
152 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
153 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
154 |
--exec |
--exe |
--ex)
155 ac_prev
=exec_prefix
;;
156 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
157 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
158 |
--exec=* |
--exe=* |
--ex=*)
159 exec_prefix
="$ac_optarg" ;;
161 -gas |
--gas |
--ga |
--g)
162 # Obsolete; use --with-gas.
165 -help |
--help |
--hel |
--he)
166 # Omit some internal or obsolete options to make the list less imposing.
167 # This message is too long to be a string in the A/UX 3.1 sh.
169 Usage: configure [options] [host]
170 Options: [defaults in brackets after descriptions]
172 --cache-file=FILE cache test results in FILE
173 --help print this message
174 --no-create do not create output files
175 --quiet, --silent do not print \`checking...' messages
176 --version print the version of autoconf that created configure
177 Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207 Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
220 -host |
--host |
--hos |
--ho)
222 -host=* |
--host=* |
--hos=* |
--ho=*)
225 -includedir |
--includedir |
--includedi |
--included |
--include \
226 |
--includ |
--inclu |
--incl |
--inc)
227 ac_prev
=includedir
;;
228 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
229 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
230 includedir
="$ac_optarg" ;;
232 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
234 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
235 infodir
="$ac_optarg" ;;
237 -libdir |
--libdir |
--libdi |
--libd)
239 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
240 libdir
="$ac_optarg" ;;
242 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
243 |
--libexe |
--libex |
--libe)
244 ac_prev
=libexecdir
;;
245 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
246 |
--libexe=* |
--libex=* |
--libe=*)
247 libexecdir
="$ac_optarg" ;;
249 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
250 |
--localstate |
--localstat |
--localsta |
--localst \
251 |
--locals |
--local |
--loca |
--loc |
--lo)
252 ac_prev
=localstatedir
;;
253 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
254 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
255 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
256 localstatedir
="$ac_optarg" ;;
258 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
260 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
261 mandir
="$ac_optarg" ;;
264 # Obsolete; use --without-fp.
267 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
271 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
272 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
275 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
276 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
277 |
--oldin |
--oldi |
--old |
--ol |
--o)
278 ac_prev
=oldincludedir
;;
279 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
280 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
281 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
282 oldincludedir
="$ac_optarg" ;;
284 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
286 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
287 prefix
="$ac_optarg" ;;
289 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
290 |
--program-pre |
--program-pr |
--program-p)
291 ac_prev
=program_prefix
;;
292 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
293 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
294 program_prefix
="$ac_optarg" ;;
296 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
297 |
--program-suf |
--program-su |
--program-s)
298 ac_prev
=program_suffix
;;
299 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
300 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
301 program_suffix
="$ac_optarg" ;;
303 -program-transform-name |
--program-transform-name \
304 |
--program-transform-nam |
--program-transform-na \
305 |
--program-transform-n |
--program-transform- \
306 |
--program-transform |
--program-transfor \
307 |
--program-transfo |
--program-transf \
308 |
--program-trans |
--program-tran \
309 |
--progr-tra |
--program-tr |
--program-t)
310 ac_prev
=program_transform_name
;;
311 -program-transform-name=* |
--program-transform-name=* \
312 |
--program-transform-nam=* |
--program-transform-na=* \
313 |
--program-transform-n=* |
--program-transform-=* \
314 |
--program-transform=* |
--program-transfor=* \
315 |
--program-transfo=* |
--program-transf=* \
316 |
--program-trans=* |
--program-tran=* \
317 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
318 program_transform_name
="$ac_optarg" ;;
320 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
321 |
-silent |
--silent |
--silen |
--sile |
--sil)
324 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
326 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
328 sbindir
="$ac_optarg" ;;
330 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
331 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
332 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
334 ac_prev
=sharedstatedir
;;
335 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
336 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
337 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
339 sharedstatedir
="$ac_optarg" ;;
341 -site |
--site |
--sit)
343 -site=* |
--site=* |
--sit=*)
346 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
348 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
349 srcdir
="$ac_optarg" ;;
351 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
352 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
353 ac_prev
=sysconfdir
;;
354 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
355 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
356 sysconfdir
="$ac_optarg" ;;
358 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
360 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
361 target
="$ac_optarg" ;;
363 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
366 -version |
--version |
--versio |
--versi |
--vers)
367 echo "configure generated by autoconf version 2.12"
371 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package
=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}='$ac_optarg'" ;;
383 -without-* |
--without-*)
384 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package
=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
393 # Obsolete; use --with-x.
396 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
397 |
--x-incl |
--x-inc |
--x-in |
--x-i)
398 ac_prev
=x_includes
;;
399 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
400 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
401 x_includes
="$ac_optarg" ;;
403 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
404 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
405 ac_prev
=x_libraries
;;
406 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
407 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
408 x_libraries
="$ac_optarg" ;;
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
417 if test "x$nonopt" != xNONE
; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
426 if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
432 # File descriptor usage:
435 # 2 errors and warnings
436 # 3 some systems may open it to /dev/tty
437 # 4 used on the Kubota Titan
438 # 6 checking for... messages and results
439 # 5 compiler messages saved in config.log
440 if test "$silent" = yes; then
448 This file contains any messages produced by compilers while
449 running configure, to aid debugging if configure makes a mistake.
452 # Strip out --no-create and --no-recursion so they do not pile up.
453 # Also quote any args containing shell metacharacters.
458 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
459 |
--no-cr |
--no-c) ;;
460 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
461 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
462 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
469 # Only set these to C if already set. These must not be set unconditionally
470 # because not all systems understand e.g. LANG=C (notably SCO).
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472 # Non-C LC_CTYPE values break the ctype check.
473 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
474 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
476 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
479 rm -rf conftest
* confdefs.h
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
483 # A filename unique to this package, relative to the directory that
484 # configure is in, which we can look for to find out if srcdir is correct.
485 ac_unique_file
=features.h
487 # Find the source files, if location was not specified.
488 if test -z "$srcdir"; then
489 ac_srcdir_defaulted
=yes
490 # Try the directory containing this script, then its parent.
492 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
495 if test ! -r $srcdir/$ac_unique_file; then
499 ac_srcdir_defaulted
=no
501 if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
508 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
510 # Prefer explicitly selected file to automatically selected ones.
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE
; then
513 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
515 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
518 for ac_site_file
in $CONFIG_SITE; do
519 if test -r "$ac_site_file"; then
520 echo "loading site script $ac_site_file"
525 if test -r "$cache_file"; then
526 echo "loading cache $cache_file"
529 echo "creating cache $cache_file"
534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535 ac_cpp
='$CPP $CPPFLAGS'
536 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538 cross_compiling
=$ac_cv_prog_cc_cross
540 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
541 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
542 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
549 ac_n
= ac_c
='\c' ac_t
=
555 # This will get text that should go into config.make.
558 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
559 # Check whether --with-gmp or --without-gmp was given.
560 if test "${with_gmp+set}" = set; then
563 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
565 *) config_vars
="$config_vars
566 gmp-srcdir = $withval" ;;
571 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
572 # Check whether --with-gettext or --without-gettext was given.
573 if test "${with_gettext+set}" = set; then
574 withval
="$with_gettext"
575 case "$with_gettext" in
577 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
580 config_vars
="$config_vars
581 gettext-srcdir = $withval" ;;
587 # Check whether --with-fp or --without-fp was given.
588 if test "${with_fp+set}" = set; then
595 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
596 if test "${with_gnu_binutils+set}" = set; then
597 withval
="$with_gnu_binutils"
598 gnu_binutils
=$withval
603 # Check whether --with-gnu-ld or --without-gnu-ld was given.
604 if test "${with_gnu_ld+set}" = set; then
605 withval
="$with_gnu_ld"
611 # Check whether --with-gnu-as or --without-gnu-as was given.
612 if test "${with_gnu_as+set}" = set; then
613 withval
="$with_gnu_as"
619 test $gnu_binutils = yes && gnu_as
=yes gnu_ld
=yes
620 # Check whether --with-elf or --without-elf was given.
621 if test "${with_elf+set}" = set; then
629 # Check whether --enable-libio or --disable-libio was given.
630 if test "${enable_libio+set}" = set; then
631 enableval
="$enable_libio"
632 if test $enableval = yes; then
642 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
643 if test "${enable_sanity_checks+set}" = set; then
644 enableval
="$enable_sanity_checks"
645 enable_sanity
=$enableval
651 # Check whether --enable-shared or --disable-shared was given.
652 if test "${enable_shared+set}" = set; then
653 enableval
="$enable_shared"
659 # Check whether --enable-profile or --disable-profile was given.
660 if test "${enable_profile+set}" = set; then
661 enableval
="$enable_profile"
667 # Check whether --enable-omitfp or --disable-omitfp was given.
668 if test "${enable_omitfp+set}" = set; then
669 enableval
="$enable_omitfp"
676 if test $omitfp = yes; then
677 echo "*** Not all versions of GCC compile code correctly when the"
678 echo "*** -fomit-frame-pointer version is used. You are on your own"
679 echo "*** if you use it."
682 # Check whether --enable-add-ons or --disable-add-ons was given.
683 if test "${enable_add_ons+set}" = set; then
684 enableval
="$enable_add_ons"
685 add_ons
=`echo "$enableval" | sed 's/,/ /g'`
691 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
692 if test -f $ac_dir/install-sh
; then
694 ac_install_sh
="$ac_aux_dir/install-sh -c"
696 elif test -f $ac_dir/install.sh
; then
698 ac_install_sh
="$ac_aux_dir/install.sh -c"
702 if test -z "$ac_aux_dir"; then
703 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
705 ac_config_guess
=$ac_aux_dir/config.guess
706 ac_config_sub
=$ac_aux_dir/config.sub
707 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
712 if test x
"$add_ons" != x
; then
713 for f
in $add_ons; do
714 add_ons_pfx
="$add_ons_pfx $f/"
719 # Make sure we can run config.sub.
720 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
721 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
724 echo $ac_n "checking host system type""... $ac_c" 1>&6
725 echo "configure:726: checking host system type" >&5
728 case "$host_alias" in
732 if host_alias
=`$ac_config_guess`; then :
733 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
735 *) host_alias
=$nonopt ;;
739 host=`$ac_config_sub $host_alias`
740 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
741 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
742 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
743 echo "$ac_t""$host" 1>&6
746 # The way shlib-versions is used to generate soversions.mk uses a
747 # fairly simplistic model for name recognition that can't distinguish
748 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
749 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
750 # tell. This doesn't get used much beyond that, so it's fairly safe.
755 host_os
=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
759 ### I put this here to prevent those annoying emails from people who cannot
760 ### read and try to compile glibc on unsupported platforms. --drepper
762 ### By using the undocumented --enable-hacker-mode option for configure
763 ### one can skip this test to make the configuration not fail for unsupported
766 if test -z "$enable_hacker_mode"; then
771 echo "*** The GNU C library is currently not available for this platform."
772 echo "*** So far nobody cared to port it and if there is no volunteer it"
773 echo "*** might never happen. So, if you have interest to see glibc on"
774 echo "*** this platform visit"
775 echo "*** http://www.gnu.org/software/libc/porting.html"
776 echo "*** and join the group of porters"
783 # We keep the original values in `$config_*' and never modify them, so we
784 # can write them unchanged into config.make. Everything else uses
785 # $machine, $vendor, and $os, and changes them whenever convenient.
786 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
788 # Some configurations imply other options.
790 gnu
* | linux
* | bsd4.4
* | netbsd
* | freebsd
*)
791 # These systems always use GNU tools.
792 gnu_ld
=yes gnu_as
=yes ;;
795 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
796 linux
*ecoff
* | linux
*aout
* | gnu
*aout
* | gnu
*ecoff
*)
798 gnu
* | linux
* | sysv4
* | solaris2
*)
799 # These systems (almost) always use the ELF format.
804 machine
=$config_machine
805 vendor
=$config_vendor
808 # Expand the configuration machine name into a subdirectory by architecture
809 # type and particular chip.
811 a29k | am29000
) base_machine
=a29k machine
=a29k
;;
812 alpha
*) base_machine
=alpha machine
=alpha
/$machine ;;
813 hppa
*) base_machine
=hppa machine
=hppa
/$machine ;;
814 i
[3456]86) base_machine
=i386 machine
=i386
/$machine ;;
815 m680?
0) base_machine
=m68k machine
=m68k
/$machine ;;
816 m68k
) base_machine
=m68k machine
=m68k
/m68020
;;
817 m88???
) base_machine
=m88k machine
=m88k
/$machine ;;
818 m88k
) base_machine
=m88k machine
=m88k
/m88100
;;
819 mips
*) base_machine
=mips machine
=mips
/$machine ;;
820 mips64
*) base_machine
=mips64 machine
=mips
/mips64
/$machine ;;
821 sparc
[6789]) base_machine
=sparc machine
=sparc
/$machine ;;
822 supersparc
) base_machine
=sparc machine
=sparc
/sparc8
;;
826 # Compute the list of sysdep directories for this configuration.
827 # This can take a while to compute.
828 sysdep_dir
=$srcdir/sysdeps
829 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
830 echo "configure:831: checking sysdep dirs" >&5
831 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
832 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
837 netbsd
* |
386bsd
* | freebsd
* | bsdi
*)
838 base_os
=unix
/bsd
/bsd4.4
;;
839 osf
* | sunos
* | ultrix
* | newsos
* | dynix
* |
*bsd
*)
841 sysv
* | isc
* | esix
* | sco
* | minix
* | irix4
* | linux
*)
844 base_os
=unix
/sysv
/sysv4
;;
846 base_os
=standalone
;;
851 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
854 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
858 o
=`echo $tail | sed 's/[0-9]*$//'`
859 if test $o != $tail; then
862 # For linux-gnu, try linux-gnu, then linux.
863 o
=`echo $tail | sed 's/-.*$//'`
864 if test $o != $tail; then
868 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
871 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
877 # For sparc/sparc9, try sparc/sparc9 and then sparc.
880 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
882 # Prepend the machine's FPU directory unless --without-fp.
883 if test "$with_fp" = yes; then
891 # Find what sysdep directories exist.
893 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
894 for d
in $add_ons_pfx ''; do
895 for b
in $base ''; do
896 for m0
in $mach ''; do
897 for v
in /$vendor ''; do
898 for o
in /$ostry ''; do
899 for m
in $mach ''; do
900 if test "$m0$b$v$o$m"; then
901 try
="${d}sysdeps$m0$b$v$o$m"
902 test -n "$enable_debug_configure" &&
903 echo "$0 DEBUG: try $try" >&2
906 *) dest
=$srcdir/$try ;;
908 if test -d $dest; then
909 sysnames
="$sysnames $try"
910 { test -n "$o" ||
test -n "$b"; } && os_used
=t
911 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
922 if test -z "$os_used" && test "$os" != none
; then
923 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
925 if test -z "$machine_used" && test "$machine" != none
; then
926 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
929 # We have now validated the configuration.
932 # If using ELF, look for an `elf' subdirectory of each machine directory.
933 # We prepend these rather than inserting them whereever the machine appears
934 # because things specified by the machine's ELF ABI should override
935 # OS-specific things, and should always be the same for any OS on the
936 # machine (otherwise what's the point of an ABI?).
937 if test "$elf" = yes; then
939 for d
in $add_ons_pfx ''; do
942 *) xsrcdir
=$srcdir/ ;;
945 if test -d $xsrcdir${d}sysdeps
$m/elf
; then
946 elf_dirs
="$elf_dirs ${d}sysdeps$m/elf"
950 sysnames
="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
954 # Expand the list of system names into a full list of directories
955 # from each element's parent name and Implies file (if present).
958 while test $# -gt 0; do
962 case " $names " in *" $name "*)
963 # Already in the list.
967 # Report each name as we discover it, so there is no long pause in output.
968 echo $ac_n "$name $ac_c" >&6
970 name_base
=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
974 *) xsrcdir
=$srcdir/ ;;
976 test -n "$enable_debug_configure" &&
977 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
979 if test -f $xsrcdir$name/Implies
; then
980 # Collect more names from the `Implies' file (removing comments).
981 implied_candidate
="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
983 for x
in $implied_candidate; do
984 if test -d $xsrcdir$name_base/$x; then
985 implied
="$implied $name_base/$x";
987 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
994 # Add NAME to the list of names.
997 # Find the parent of NAME, using the empty string if it has none.
998 parent
="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1000 # Add the names implied by NAME, and NAME's parent (if it has one), to
1001 # the list of names to be processed (the argument list). We prepend the
1002 # implied names to the list and append the parent. We want implied
1003 # directories to come before further directories inferred from the
1004 # configuration components; this ensures that for sysv4, unix/common
1005 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1007 sysnames
="`echo $implied $* $parent`"
1008 test -n "$sysnames" && set $sysnames
1011 # Add the default directories.
1012 sysnames
="$names sysdeps/generic sysdeps/stub"
1014 # The other names were emitted during the scan.
1015 echo "$ac_t""sysdeps/generic sysdeps/stub" 1>&6
1020 # Find a good install program. We prefer a C program (faster),
1021 # so one script is as good as another. But avoid the broken or
1022 # incompatible versions:
1023 # SysV /etc/install, /usr/sbin/install
1024 # SunOS /usr/etc/install
1025 # IRIX /sbin/install
1027 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1028 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1029 # ./install, which can be erroneously created by make from ./install.sh.
1030 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1031 echo "configure:1032: checking for a BSD compatible install" >&5
1032 if test -z "$INSTALL"; then
1033 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1034 echo $ac_n "(cached) $ac_c" 1>&6
1036 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1037 for ac_dir
in $PATH; do
1038 # Account for people who put trailing slashes in PATH elements.
1040 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1042 # OSF1 and SCO ODT 3.0 have their own names for install.
1043 for ac_prog
in ginstall installbsd scoinst
install; do
1044 if test -f $ac_dir/$ac_prog; then
1045 if test $ac_prog = install &&
1046 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1047 # AIX install. It has an incompatible calling convention.
1048 # OSF/1 installbsd also uses dspmsg, but is usable.
1051 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1062 if test "${ac_cv_path_install+set}" = set; then
1063 INSTALL
="$ac_cv_path_install"
1065 # As a last resort, use the slow shell script. We don't cache a
1066 # path for INSTALL within a source directory, because that will
1067 # break other packages using the cache if that directory is
1068 # removed, or if the path is relative.
1069 INSTALL
="$ac_install_sh"
1072 echo "$ac_t""$INSTALL" 1>&6
1074 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1075 # It thinks the first close brace ends the variable substitution.
1076 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1078 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1080 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1081 # The makefiles need to use a different form to find it in $srcdir.
1082 INSTALL
='\$(..)./install-sh -c'
1084 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1085 echo "configure:1086: checking whether ln -s works" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1090 if ln -s X conftestdata
2>/dev
/null
1093 ac_cv_prog_LN_S
="ln -s"
1098 LN_S
="$ac_cv_prog_LN_S"
1099 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1100 echo "$ac_t""yes" 1>&6
1102 echo "$ac_t""no" 1>&6
1105 for ac_prog
in msgfmt gmsgfmt
1107 # Extract the first word of "$ac_prog", so it can be a program name with args.
1108 set dummy
$ac_prog; ac_word
=$2
1109 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1110 echo "configure:1111: checking for $ac_word" >&5
1111 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1112 echo $ac_n "(cached) $ac_c" 1>&6
1114 if test -n "$MSGFMT"; then
1115 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
1117 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1118 for ac_dir
in $PATH; do
1119 test -z "$ac_dir" && ac_dir
=.
1120 if test -f $ac_dir/$ac_word; then
1121 ac_cv_prog_MSGFMT
="$ac_prog"
1128 MSGFMT
="$ac_cv_prog_MSGFMT"
1129 if test -n "$MSGFMT"; then
1130 echo "$ac_t""$MSGFMT" 1>&6
1132 echo "$ac_t""no" 1>&6
1135 test -n "$MSGFMT" && break
1137 test -n "$MSGFMT" || MSGFMT
=":"
1140 # Extract the first word of "gcc", so it can be a program name with args.
1141 set dummy gcc
; ac_word
=$2
1142 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1143 echo "configure:1144: checking for $ac_word" >&5
1144 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1145 echo $ac_n "(cached) $ac_c" 1>&6
1147 if test -n "$CC"; then
1148 ac_cv_prog_CC
="$CC" # Let the user override the test.
1150 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1151 for ac_dir
in $PATH; do
1152 test -z "$ac_dir" && ac_dir
=.
1153 if test -f $ac_dir/$ac_word; then
1162 if test -n "$CC"; then
1163 echo "$ac_t""$CC" 1>&6
1165 echo "$ac_t""no" 1>&6
1168 if test -z "$CC"; then
1169 # Extract the first word of "cc", so it can be a program name with args.
1170 set dummy cc
; ac_word
=$2
1171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1172 echo "configure:1173: checking for $ac_word" >&5
1173 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1176 if test -n "$CC"; then
1177 ac_cv_prog_CC
="$CC" # Let the user override the test.
1179 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1181 for ac_dir
in $PATH; do
1182 test -z "$ac_dir" && ac_dir
=.
1183 if test -f $ac_dir/$ac_word; then
1184 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1185 ac_prog_rejected
=yes
1193 if test $ac_prog_rejected = yes; then
1194 # We found a bogon in the path, so make sure we never use it.
1195 set dummy
$ac_cv_prog_CC
1197 if test $# -gt 0; then
1198 # We chose a different compiler from the bogus one.
1199 # However, it has the same basename, so the bogon will be chosen
1200 # first if we set CC to just the basename; use the full file name.
1202 set dummy
"$ac_dir/$ac_word" "$@"
1210 if test -n "$CC"; then
1211 echo "$ac_t""$CC" 1>&6
1213 echo "$ac_t""no" 1>&6
1216 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1219 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1220 echo "configure:1221: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1223 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1224 ac_cpp
='$CPP $CPPFLAGS'
1225 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1226 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1227 cross_compiling
=$ac_cv_prog_cc_cross
1229 cat > conftest.
$ac_ext <<EOF
1230 #line 1231 "configure"
1231 #include "confdefs.h"
1234 if { (eval echo configure
:1235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1235 ac_cv_prog_cc_works
=yes
1236 # If we can't run a trivial program, we are probably using a cross compiler.
1237 if (.
/conftest
; exit) 2>/dev
/null
; then
1238 ac_cv_prog_cc_cross
=no
1240 ac_cv_prog_cc_cross
=yes
1243 echo "configure: failed program was:" >&5
1244 cat conftest.
$ac_ext >&5
1245 ac_cv_prog_cc_works
=no
1249 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1250 if test $ac_cv_prog_cc_works = no
; then
1252 ac_cv_prog_cc_cross
=yes
1256 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1257 echo "configure:1258: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1258 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1260 cross_compiling
=$ac_cv_prog_cc_cross
1262 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1263 echo "configure:1264: checking whether we are using GNU C" >&5
1264 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1267 cat > conftest.c
<<EOF
1272 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1279 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1281 if test $ac_cv_prog_gcc = yes; then
1284 cat > conftest.c
<<EOF
1285 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
1289 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1290 if test -z "$CFLAGS"; then
1294 { echo "configure: error: We require GNU CC version 2.7 or newer" 1>&2; exit 1; }
1297 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1300 echo $ac_n "checking build system type""... $ac_c" 1>&6
1301 echo "configure:1302: checking build system type" >&5
1304 case "$build_alias" in
1307 NONE
) build_alias
=$host_alias ;;
1308 *) build_alias
=$nonopt ;;
1312 build
=`$ac_config_sub $build_alias`
1313 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1314 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1315 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1316 echo "$ac_t""$build" 1>&6
1318 if test $host != $build; then
1319 for ac_prog
in gcc cc
1321 # Extract the first word of "$ac_prog", so it can be a program name with args.
1322 set dummy
$ac_prog; ac_word
=$2
1323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1324 echo "configure:1325: checking for $ac_word" >&5
1325 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1328 if test -n "$BUILD_CC"; then
1329 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
1331 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1332 for ac_dir
in $PATH; do
1333 test -z "$ac_dir" && ac_dir
=.
1334 if test -f $ac_dir/$ac_word; then
1335 ac_cv_prog_BUILD_CC
="$ac_prog"
1342 BUILD_CC
="$ac_cv_prog_BUILD_CC"
1343 if test -n "$BUILD_CC"; then
1344 echo "$ac_t""$BUILD_CC" 1>&6
1346 echo "$ac_t""no" 1>&6
1349 test -n "$BUILD_CC" && break
1354 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1355 echo "configure:1356: checking how to run the C preprocessor" >&5
1356 # On Suns, sometimes $CPP names a directory.
1357 if test -n "$CPP" && test -d "$CPP"; then
1360 if test -z "$CPP"; then
1361 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 # This must be in double quotes, not single quotes, because CPP may get
1365 # substituted into the Makefile and "${CC-cc}" will confuse make.
1367 # On the NeXT, cc -E runs the code through the compiler's parser,
1368 # not just through cpp.
1369 cat > conftest.
$ac_ext <<EOF
1370 #line 1371 "configure"
1371 #include "confdefs.h"
1375 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1376 { (eval echo configure
:1377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1377 ac_err
=`grep -v '^ *+' conftest.out`
1378 if test -z "$ac_err"; then
1382 echo "configure: failed program was:" >&5
1383 cat conftest.
$ac_ext >&5
1385 CPP
="${CC-cc} -E -traditional-cpp"
1386 cat > conftest.
$ac_ext <<EOF
1387 #line 1388 "configure"
1388 #include "confdefs.h"
1392 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1393 { (eval echo configure
:1394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1394 ac_err
=`grep -v '^ *+' conftest.out`
1395 if test -z "$ac_err"; then
1399 echo "configure: failed program was:" >&5
1400 cat conftest.
$ac_ext >&5
1407 ac_cv_prog_CPP
="$CPP"
1409 CPP
="$ac_cv_prog_CPP"
1411 ac_cv_prog_CPP
="$CPP"
1413 echo "$ac_t""$CPP" 1>&6
1415 if test $host != $build; then
1416 ac_tool_prefix
=${host_alias}-
1421 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1422 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1423 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1424 echo "configure:1425: checking for $ac_word" >&5
1425 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1426 echo $ac_n "(cached) $ac_c" 1>&6
1428 if test -n "$AR"; then
1429 ac_cv_prog_AR
="$AR" # Let the user override the test.
1431 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1432 for ac_dir
in $PATH; do
1433 test -z "$ac_dir" && ac_dir
=.
1434 if test -f $ac_dir/$ac_word; then
1435 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1440 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1444 if test -n "$AR"; then
1445 echo "$ac_t""$AR" 1>&6
1447 echo "$ac_t""no" 1>&6
1452 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1453 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1455 echo "configure:1456: checking for $ac_word" >&5
1456 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 if test -n "$RANLIB"; then
1460 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1462 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1463 for ac_dir
in $PATH; do
1464 test -z "$ac_dir" && ac_dir
=.
1465 if test -f $ac_dir/$ac_word; then
1466 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1473 RANLIB
="$ac_cv_prog_RANLIB"
1474 if test -n "$RANLIB"; then
1475 echo "$ac_t""$RANLIB" 1>&6
1477 echo "$ac_t""no" 1>&6
1481 if test -z "$ac_cv_prog_RANLIB"; then
1482 if test -n "$ac_tool_prefix"; then
1483 # Extract the first word of "ranlib", so it can be a program name with args.
1484 set dummy ranlib
; ac_word
=$2
1485 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1486 echo "configure:1487: checking for $ac_word" >&5
1487 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1488 echo $ac_n "(cached) $ac_c" 1>&6
1490 if test -n "$RANLIB"; then
1491 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1493 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1494 for ac_dir
in $PATH; do
1495 test -z "$ac_dir" && ac_dir
=.
1496 if test -f $ac_dir/$ac_word; then
1497 ac_cv_prog_RANLIB
="ranlib"
1502 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1505 RANLIB
="$ac_cv_prog_RANLIB"
1506 if test -n "$RANLIB"; then
1507 echo "$ac_t""$RANLIB" 1>&6
1509 echo "$ac_t""no" 1>&6
1518 # Extract the first word of "bash", so it can be a program name with args.
1519 set dummy bash
; ac_word
=$2
1520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1521 echo "configure:1522: checking for $ac_word" >&5
1522 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1527 ac_cv_path_BASH
="$BASH" # Let the user override the test with a path.
1530 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1531 for ac_dir
in $PATH; do
1532 test -z "$ac_dir" && ac_dir
=.
1533 if test -f $ac_dir/$ac_word; then
1534 ac_cv_path_BASH
="$ac_dir/$ac_word"
1539 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH
="no"
1543 BASH
="$ac_cv_path_BASH"
1544 if test -n "$BASH"; then
1545 echo "$ac_t""$BASH" 1>&6
1547 echo "$ac_t""no" 1>&6
1550 if test "$BASH" != no
&&
1551 $BASH -c 'test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1552 libc_cv_have_bash2
=yes
1554 libc_cv_have_bash2
=no
1558 if test "$BASH" = no
; then
1559 # Extract the first word of "ksh", so it can be a program name with args.
1560 set dummy ksh
; ac_word
=$2
1561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1562 echo "configure:1563: checking for $ac_word" >&5
1563 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1568 ac_cv_path_KSH
="$KSH" # Let the user override the test with a path.
1571 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1572 for ac_dir
in $PATH; do
1573 test -z "$ac_dir" && ac_dir
=.
1574 if test -f $ac_dir/$ac_word; then
1575 ac_cv_path_KSH
="$ac_dir/$ac_word"
1580 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH
="no"
1584 KSH
="$ac_cv_path_KSH"
1585 if test -n "$KSH"; then
1586 echo "$ac_t""$KSH" 1>&6
1588 echo "$ac_t""no" 1>&6
1591 if test "$KSH" = no
; then
1594 libc_cv_have_ksh
=yes
1599 libc_cv_have_ksh
=yes
1603 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1604 echo "configure:1605: checking for signed size_t type" >&5
1605 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1608 echo '#include <stddef.h>
1609 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1610 if eval "$ac_cpp conftest.c 2>/dev/null" \
1611 |
grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev
/null
; then
1612 libc_cv_signed_size_t
=no
1614 libc_cv_signed_size_t
=yes
1619 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
1620 if test $libc_cv_signed_size_t = yes; then
1621 cat >> confdefs.h
<<\EOF
1622 #undef __SIZE_TYPE__
1623 #define __SIZE_TYPE__ unsigned
1627 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
1628 echo "configure:1629: checking for libc-friendly stddef.h" >&5
1629 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1630 echo $ac_n "(cached) $ac_c" 1>&6
1632 cat > conftest.
$ac_ext <<EOF
1633 #line 1634 "configure"
1634 #include "confdefs.h"
1635 #define __need_size_t
1636 #define __need_wchar_t
1641 size_t size; wchar_t wchar;
1643 #error stddef.h ignored __need_*
1645 if (&size == NULL || &wchar == NULL) abort ();
1648 if { (eval echo configure
:1649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1650 libc_cv_friendly_stddef
=yes
1652 echo "configure: failed program was:" >&5
1653 cat conftest.
$ac_ext >&5
1655 libc_cv_friendly_stddef
=no
1660 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
1661 if test $libc_cv_friendly_stddef = yes; then
1662 config_vars
="$config_vars
1663 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1666 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
1667 echo "configure:1668: checking whether we need to use -P to assemble .S files" >&5
1668 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1669 echo $ac_n "(cached) $ac_c" 1>&6
1671 cat > conftest.S
<<EOF
1672 #include "confdefs.h"
1673 /* Nothing whatsoever. */
1675 if ${CC-cc} $CFLAGS -c conftest.S
2>/dev
/null
; then
1676 libc_cv_need_minus_P
=no
1678 libc_cv_need_minus_P
=yes
1683 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
1684 if test $libc_cv_need_minus_P = yes; then
1685 config_vars
="$config_vars
1686 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1689 # gcc 2.7.x has a bug where if -pipe is set, the assembler will always
1690 # be told to read stdin. This causes the compiler to hang when fed an
1692 if test $ac_cv_prog_gcc = yes; then
1693 case `${CC-cc} -v 2>&1` in
1695 # We must check this even if -pipe is not given here, because the user
1696 # might do `make CFLAGS=-pipe'.
1697 echo $ac_n "checking for gcc 2.7.x -pipe bug""... $ac_c" 1>&6
1698 echo "configure:1699: checking for gcc 2.7.x -pipe bug" >&5
1699 if eval "test \"`echo '$''{'libc_cv_gcc_pipe_bug'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 cp /dev
/null conftest.s
1703 cat >conftest1.s
<<EOF
1706 if ${CC-cc} -pipe -c conftest.s
<conftest1.s
2>/dev
/null
; then
1707 libc_cv_gcc_pipe_bug
=no
1709 libc_cv_gcc_pipe_bug
=yes
1714 echo "$ac_t""$libc_cv_gcc_pipe_bug" 1>&6
1715 if test $libc_cv_gcc_pipe_bug = yes; then
1716 makeCC
="${CC-cc} -B\$(common-objpfx)"
1718 CFLAGS
=`echo $CFLAGS |sed 's/-pipe//'`
1720 *) libc_cv_gcc_pipe_bug
=no
;;
1723 libc_cv_gcc_pipe_bug
=no
1727 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
1728 echo "configure:1729: checking for assembler global-symbol directive" >&5
1729 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1730 echo $ac_n "(cached) $ac_c" 1>&6
1732 libc_cv_asm_global_directive
=UNKNOWN
1733 for ac_globl
in .globl .global
; do
1734 cat > conftest.s
<<EOF
1739 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
1740 libc_cv_asm_global_directive
=${ac_globl}
1743 test $libc_cv_asm_global_directive != UNKNOWN
&& break
1747 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
1748 if test $libc_cv_asm_global_directive = UNKNOWN
; then
1749 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1751 cat >> confdefs.h
<<EOF
1752 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1757 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
1758 echo "configure:1759: checking for .set assembler directive" >&5
1759 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1762 cat > conftest.s
<<EOF
1765 .set glibc_conftest_frobozz,foo
1766 $libc_cv_asm_global_directive glibc_conftest_frobozz
1768 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1769 # (but it doesn't work), so we must do a linking check to be sure.
1770 cat > conftest1.c
<<\EOF
1771 extern int glibc_conftest_frobozz
;
1772 main
() { printf ("%d\n", glibc_conftest_frobozz
); }
1774 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1775 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
1776 libc_cv_asm_set_directive
=yes
1778 libc_cv_asm_set_directive
=no
1783 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
1784 if test $libc_cv_asm_set_directive = yes; then
1785 cat >> confdefs.h
<<\EOF
1786 #define HAVE_ASM_SET_DIRECTIVE 1
1791 if test $elf = yes; then
1792 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
1793 echo "configure:1794: checking for .previous assembler directive" >&5
1794 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1797 cat > conftest.s
<<EOF
1798 .section foo_section
1801 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:1802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1802 libc_cv_asm_previous_directive
=yes
1804 libc_cv_asm_previous_directive
=no
1809 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
1810 if test $libc_cv_asm_previous_directive = yes; then
1811 cat >> confdefs.h
<<\EOF
1812 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
1816 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
1817 echo "configure:1818: checking for .popsection assembler directive" >&5
1818 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1821 cat > conftest.s
<<EOF
1822 .pushsection foo_section
1825 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:1826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1826 libc_cv_asm_popsection_directive
=yes
1828 libc_cv_asm_popsection_directive
=no
1833 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
1834 if test $libc_cv_asm_popsection_directive = yes; then
1835 cat >> confdefs.h
<<\EOF
1836 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
1843 if test $elf != yes; then
1844 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
1845 echo "configure:1846: checking for .init and .fini sections" >&5
1846 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1849 cat > conftest.
$ac_ext <<EOF
1850 #line 1851 "configure"
1851 #include "confdefs.h"
1854 asm (".section .init");
1855 asm (".section .fini");
1859 if { (eval echo configure
:1860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1861 libc_cv_have_initfini
=yes
1863 echo "configure: failed program was:" >&5
1864 cat conftest.
$ac_ext >&5
1866 libc_cv_have_initfini
=no
1871 echo "$ac_t""$libc_cv_have_initfini" 1>&6
1872 if test $libc_cv_have_initfini = yes; then
1873 cat >> confdefs.h
<<\EOF
1874 #define HAVE_INITFINI 1
1882 if test $elf = yes; then
1883 libc_cv_asm_underscores
=no
1885 if test $ac_cv_prog_cc_works = yes; then
1886 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
1887 echo "configure:1888: checking for _ prefix on C symbol names" >&5
1888 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1891 cat > conftest.
$ac_ext <<EOF
1892 #line 1893 "configure"
1893 #include "confdefs.h"
1894 asm ("_glibc_foobar:");
1899 if { (eval echo configure
:1900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1901 libc_cv_asm_underscores
=yes
1903 echo "configure: failed program was:" >&5
1904 cat conftest.
$ac_ext >&5
1906 libc_cv_asm_underscores
=no
1911 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
1913 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
1914 echo "configure:1915: checking for _ prefix on C symbol names" >&5
1915 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
1916 echo $ac_n "(cached) $ac_c" 1>&6
1918 cat > conftest.
$ac_ext <<EOF
1919 #line 1920 "configure"
1920 #include "confdefs.h"
1921 void underscore_test(void) {
1924 if { (eval echo configure
:1925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1925 if grep _underscore_test conftest
* >/dev
/null
; then
1927 libc_cv_asm_underscores
=yes
1930 libc_cv_asm_underscores
=no
1933 echo "configure: failed program was:" >&5
1934 cat conftest.
$ac_ext >&5
1936 libc_cv_asm_underscores
=no
1941 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
1944 if test $libc_cv_asm_underscores = no
; then
1945 cat >> confdefs.h
<<\EOF
1946 #define NO_UNDERSCORES 1
1951 if test $elf = yes; then
1952 libc_cv_weak_symbols
=yes
1953 libc_cv_asm_weak_directive
=yes
1954 libc_cv_asm_weakext_directive
=no
1956 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
1957 echo "configure:1958: checking for assembler .weak directive" >&5
1958 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
1959 echo $ac_n "(cached) $ac_c" 1>&6
1961 cat > conftest.s
<<EOF
1963 ${libc_cv_asm_global_directive} foo
1966 .weak bar; bar = foo
1968 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
1969 libc_cv_asm_weak_directive
=yes
1971 libc_cv_asm_weak_directive
=no
1976 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
1978 if test $libc_cv_asm_weak_directive = no
; then
1979 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
1980 echo "configure:1981: checking for assembler .weakext directive" >&5
1981 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
1982 echo $ac_n "(cached) $ac_c" 1>&6
1984 cat > conftest.s
<<EOF
1986 ${libc_cv_asm_global_directive} foo
1991 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
1992 libc_cv_asm_weakext_directive
=yes
1994 libc_cv_asm_weakext_directive
=no
1999 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2004 if test $libc_cv_asm_weak_directive = yes; then
2005 cat >> confdefs.h
<<\EOF
2006 #define HAVE_ASM_WEAK_DIRECTIVE 1
2009 elif test $libc_cv_asm_weakext_directive = yes; then
2010 cat >> confdefs.h
<<\EOF
2011 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2016 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2017 echo "configure:2018: checking for ld --no-whole-archive" >&5
2018 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2021 cat > conftest.c
<<\EOF
2026 if { ac_try
='${CC-cc} $CFLAGS
2027 -nostdlib -nostartfiles -Wl,--no-whole-archive
2028 -o conftest conftest.c 1>&5'; { (eval echo configure
:2029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2029 libc_cv_ld_no_whole_archive
=yes
2031 libc_cv_ld_no_whole_archive
=no
2036 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2038 echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
2039 echo "configure:2040: checking for gcc -fno-exceptions" >&5
2040 if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
2041 echo $ac_n "(cached) $ac_c" 1>&6
2043 cat > conftest.c
<<\EOF
2048 if { ac_try
='${CC-cc} $CFLAGS
2049 -nostdlib -nostartfiles -fno-exceptions
2050 -o conftest conftest.c 1>&5'; { (eval echo configure
:2051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2051 libc_cv_gcc_no_exceptions
=yes
2053 libc_cv_gcc_no_exceptions
=no
2058 echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
2060 ### End of automated tests.
2061 ### Now run sysdeps configure fragments.
2063 # sysdeps configure fragments may set these with files to be linked below.
2067 # Iterate over all the sysdep directories we will use, running their
2068 # configure fragments, and looking for a uname implementation.
2070 for dir
in $sysnames; do
2073 *) dest
=$srcdir/$dir ;;
2075 if test -r $dest/configure
; then
2076 echo "$ac_t""running configure fragment for $dest" 1>&6
2080 if test -z "$uname"; then
2081 if test -r $sysdep_dir/$dir/uname.c ||
2082 test -r $sysdep_dir/$dir/uname.S ||
2083 { test -r $sysdep_dir/$dir/syscalls.list
&&
2084 grep '^uname[ ]' $sysdep_dir/$dir/syscalls.list
>/dev
/null
; }; then
2092 # If we will use the generic uname implementation, we must figure out what
2093 # it will say by examining the system, and write the results in config-name.h.
2094 if test "$uname" = generic
; then
2096 uname_sysname
=`echo $config_os | sed 's/[0-9.]*$//'`
2097 if test $uname_sysname != $config_os; then
2098 config_release
=`echo $config_os | sed s/$uname_sysname//`
2101 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2102 echo "configure:2103: checking OS release for uname" >&5
2103 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2106 kernel_release
=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2107 if test x
`echo "$config_release" | sed "s/^$kernel_release//"` \
2108 != x
$config_release; then
2109 # The configuration release is a substring of the kernel release.
2110 libc_cv_uname_release
=$kernel_release
2111 elif test x
$config_release != x
; then
2112 libc_cv_uname_release
=$config_release
2113 elif test x
$kernel_release != x
; then
2114 libc_cv_uname_release
=$kernel_release
2116 libc_cv_uname_release
=unknown
2120 echo "$ac_t""$libc_cv_uname_release" 1>&6
2121 uname_release
="$libc_cv_uname_release"
2123 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2124 echo "configure:2125: checking OS version for uname" >&5
2125 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
2126 echo $ac_n "(cached) $ac_c" 1>&6
2128 kernel_version
=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2129 if test -n "$kernel_version"; then
2130 libc_cv_uname_version
="$kernel_version"
2132 libc_cv_uname_version
=unknown
2136 echo "$ac_t""$libc_cv_uname_version" 1>&6
2137 uname_version
="$libc_cv_uname_version"
2139 config_uname
=config-name.h
:config-name.
in
2141 # For non-generic uname, we don't need to create config-name.h at all.
2145 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
2146 echo "configure:2147: checking stdio selection" >&5
2149 libio
) cat >> confdefs.h
<<\EOF
2150 #define USE_IN_LIBIO 1
2153 default
) stdio
=stdio
;;
2155 echo "$ac_t""$stdio" 1>&6
2164 if test $gnu_ld = yes; then
2165 cat >> confdefs.h
<<\EOF
2166 #define HAVE_GNU_LD 1
2170 if test $gnu_as = yes; then
2171 cat >> confdefs.h
<<\EOF
2172 #define HAVE_GNU_AS 1
2176 if test $elf = yes; then
2177 cat >> confdefs.h
<<\EOF
2184 if test $shared = default
; then
2185 if test $gnu_ld = yes; then
2188 # For now we do not assume shared libs are available. In future more
2189 # tests might become available.
2198 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
2201 config_makefile
=Makefile
2204 VERSION
=`sed -e 's/^#define VERSION "\([^"]*\)"/\1/p' -e d < $srcdir/version.h`
2207 if test $libc_cv_gcc_pipe_bug = yes; then
2212 if test -r /vmunix
; then
2213 kernel_id
=`strings /vmunix | grep UNIX`
2214 elif test -r /dynix
; then
2215 kernel_id
=`strings /dynix | grep DYNIX`
2223 cat > confcache
<<\EOF
2224 # This file is a shell script that caches the results of configure
2225 # tests run on this system so they can be shared between configure
2226 # scripts and configure runs. It is not useful on other systems.
2227 # If it contains results you don't want to keep, you may remove or edit it.
2229 # By default, configure uses ./config.cache as the cache file,
2230 # creating it if it does not exist already. You can give configure
2231 # the --cache-file=FILE option to use a different cache file; that is
2232 # what configure does when it calls configure scripts in
2233 # subdirectories, so they share the cache.
2234 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2235 # config.status only pays attention to the cache file if you give it the
2236 # --recheck option to rerun configure.
2239 # The following way of writing the cache mishandles newlines in values,
2240 # but we know of no workaround that is simple, portable, and efficient.
2241 # So, don't put newlines in cache variables' values.
2242 # Ultrix sh set writes to stderr and can't be redirected directly,
2243 # and sets the high bit in the cache file unless we assign to the vars.
2245 case `(ac_space=' '; set) 2>&1` in
2247 # `set' does not quote correctly, so add quotes (double-quote substitution
2248 # turns \\\\ into \\, and sed turns \\ into \).
2250 -e "s/'/'\\\\''/g" \
2251 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2254 # `set' quotes correctly as required by POSIX, so do not add quotes.
2255 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2258 if cmp -s $cache_file confcache
; then
2261 if test -w $cache_file; then
2262 echo "updating cache $cache_file"
2263 cat confcache
> $cache_file
2265 echo "not updating unwritable cache $cache_file"
2270 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2272 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2273 # Let make expand exec_prefix.
2274 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2276 # Any assignment to VPATH causes Sun make to only execute
2277 # the first set of double-colon rules, so remove it if not needed.
2278 # If there is a colon in the path, we need to keep it.
2279 if test "x$srcdir" = x.
; then
2280 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2283 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2285 DEFS
=-DHAVE_CONFIG_H
2287 # Without the "./", some shells look in PATH for config.status.
2288 : ${CONFIG_STATUS=./config.status}
2290 echo creating
$CONFIG_STATUS
2291 rm -f $CONFIG_STATUS
2292 cat > $CONFIG_STATUS <<EOF
2294 # Generated automatically by configure.
2295 # Run this file to recreate the current configuration.
2296 # This directory was configured as follows,
2297 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2299 # $0 $ac_configure_args
2301 # Compiler output produced by configure, useful for debugging
2302 # configure, is in ./config.log if it exists.
2304 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2307 case "\$ac_option" in
2308 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2309 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2310 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2311 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2312 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2314 -help | --help | --hel | --he | --h)
2315 echo "\$ac_cs_usage"; exit 0 ;;
2316 *) echo "\$ac_cs_usage"; exit 1 ;;
2320 ac_given_srcdir=$srcdir
2321 ac_given_INSTALL="$INSTALL"
2323 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2325 cat >> $CONFIG_STATUS <<EOF
2327 # Protect against being on the right side of a sed subst in config.status.
2328 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2329 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2332 s%@CFLAGS@%$CFLAGS%g
2333 s%@CPPFLAGS@%$CPPFLAGS%g
2334 s%@CXXFLAGS@%$CXXFLAGS%g
2336 s%@LDFLAGS@%$LDFLAGS%g
2338 s%@exec_prefix@%$exec_prefix%g
2339 s%@prefix@%$prefix%g
2340 s%@program_transform_name@%$program_transform_name%g
2341 s%@bindir@%$bindir%g
2342 s%@sbindir@%$sbindir%g
2343 s%@libexecdir@%$libexecdir%g
2344 s%@datadir@%$datadir%g
2345 s%@sysconfdir@%$sysconfdir%g
2346 s%@sharedstatedir@%$sharedstatedir%g
2347 s%@localstatedir@%$localstatedir%g
2348 s%@libdir@%$libdir%g
2349 s%@includedir@%$includedir%g
2350 s%@oldincludedir@%$oldincludedir%g
2351 s%@infodir@%$infodir%g
2352 s%@mandir@%$mandir%g
2353 s%@subdirs@%$subdirs%g
2355 s%@host_alias@%$host_alias%g
2356 s%@host_cpu@%$host_cpu%g
2357 s%@host_vendor@%$host_vendor%g
2358 s%@host_os@%$host_os%g
2359 s%@base_machine@%$base_machine%g
2360 s%@sysnames@%$sysnames%g
2361 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2362 s%@INSTALL_DATA@%$INSTALL_DATA%g
2364 s%@MSGFMT@%$MSGFMT%g
2366 s%@cross_linkable@%$cross_linkable%g
2368 s%@build_alias@%$build_alias%g
2369 s%@build_cpu@%$build_cpu%g
2370 s%@build_vendor@%$build_vendor%g
2371 s%@build_os@%$build_os%g
2372 s%@BUILD_CC@%$BUILD_CC%g
2373 s%@cross_compiling@%$cross_compiling%g
2376 s%@RANLIB@%$RANLIB%g
2378 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
2380 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
2381 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
2382 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
2383 s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
2384 s%@uname_sysname@%$uname_sysname%g
2385 s%@uname_release@%$uname_release%g
2386 s%@uname_version@%$uname_version%g
2388 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
2389 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
2390 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
2391 s%@has_ldconfig@%$has_ldconfig%g
2392 s%@gnu_ld@%$gnu_ld%g
2393 s%@gnu_as@%$gnu_as%g
2395 s%@shared@%$shared%g
2396 s%@profile@%$profile%g
2397 s%@omitfp@%$omitfp%g
2398 s%@DEFINES@%$DEFINES%g
2399 s%@VERSION@%$VERSION%g
2404 cat >> $CONFIG_STATUS <<\EOF
2406 # Split the substitutions into bite-sized pieces for seds with
2407 # small command number limits, like on Digital OSF/1 and HP-UX.
2408 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2409 ac_file
=1 # Number of current file.
2410 ac_beg
=1 # First line for current file.
2411 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2414 while $ac_more_lines; do
2415 if test $ac_beg -gt 1; then
2416 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2418 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2420 if test ! -s conftest.s
$ac_file; then
2422 rm -f conftest.s
$ac_file
2424 if test -z "$ac_sed_cmds"; then
2425 ac_sed_cmds
="sed -f conftest.s$ac_file"
2427 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2429 ac_file
=`expr $ac_file + 1`
2431 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2434 if test -z "$ac_sed_cmds"; then
2439 cat >> $CONFIG_STATUS <<EOF
2441 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
2443 cat >> $CONFIG_STATUS <<\EOF
2444 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2445 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2447 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2448 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2449 *) ac_file_in
="${ac_file}.in" ;;
2452 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2454 # Remove last slash and all that follows it. Not all systems have dirname.
2455 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2456 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2457 # The file is in a subdirectory.
2458 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2459 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2460 # A "../" for each directory in $ac_dir_suffix.
2461 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2463 ac_dir_suffix
= ac_dots
=
2466 case "$ac_given_srcdir" in
2468 if test -z "$ac_dots"; then top_srcdir
=.
2469 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2470 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2472 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2473 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2476 case "$ac_given_INSTALL" in
2477 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2478 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2481 echo creating
"$ac_file"
2483 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2485 *Makefile
*) ac_comsub
="1i\\
2486 # $configure_input" ;;
2490 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2492 s%@configure_input@%$configure_input%g
2493 s%@srcdir@%$srcdir%g
2494 s%@top_srcdir@%$top_srcdir%g
2495 s%@INSTALL@%$INSTALL%g
2496 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2500 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2501 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2503 # ac_d sets the value in "#define NAME VALUE" lines.
2504 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2505 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2508 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2509 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2510 ac_uB
='\([ ]\)%\1#\2define\3'
2513 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2514 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2515 ac_eB
='$%\1#\2define\3'
2519 if test "${CONFIG_HEADERS+set}" != set; then
2521 cat >> $CONFIG_STATUS <<EOF
2522 CONFIG_HEADERS="config.h"
2524 cat >> $CONFIG_STATUS <<\EOF
2526 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2527 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2529 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2530 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2531 *) ac_file_in
="${ac_file}.in" ;;
2534 echo creating
$ac_file
2536 rm -f conftest.frag conftest.
in conftest.out
2537 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2538 cat $ac_file_inputs > conftest.
in
2542 # Transform confdefs.h into a sed script conftest.vals that substitutes
2543 # the proper values into config.h.in to produce config.h. And first:
2544 # Protect against being on the right side of a sed subst in config.status.
2545 # Protect against being in an unquoted here document in config.status.
2547 cat > conftest.hdr
<<\EOF
2550 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2554 sed -n -f conftest.hdr confdefs.h > conftest.vals
2557 # This sed command replaces #undef with comments. This is necessary, for
2558 # example, in the case of _POSIX_SOURCE, which is predefined and required
2559 # on some systems where configure will not decide to define it.
2560 cat >> conftest.vals <<\EOF
2561 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2564 # Break up conftest.vals because some shells have a limit on
2565 # the size of here documents, and old seds have small limits too.
2570 ac_lines=`grep -c . conftest.vals
`
2571 # grep -c gives empty output for an empty file on some AIX systems.
2572 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2573 # Write a limited-size here document to conftest.frag.
2574 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2575 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2577 sed -f conftest.frag conftest.in > conftest.out
2579 mv conftest.out conftest.in
2581 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2583 mv conftest.tail conftest.vals
2587 cat >> $CONFIG_STATUS <<\EOF
2588 rm -f conftest.frag conftest.h
2589 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2590 cat conftest.in >> conftest.h
2592 if cmp -s $ac_file conftest.h 2>/dev/null; then
2593 echo "$ac_file is unchanged"
2596 # Remove last slash and all that follows it. Not all systems have dirname.
2597 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2598 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2599 # The file is in a subdirectory.
2600 test ! -d "$ac_dir" && mkdir "$ac_dir"
2603 mv conftest.h $ac_file
2609 cat >> $CONFIG_STATUS <<EOF
2610 ac_sources="`echo $libc_link_sources`"
2611 ac_dests="`echo $libc_link_dests`"
2614 cat >> $CONFIG_STATUS <<\EOF
2615 srcdir=$ac_given_srcdir
2616 while test -n "$ac_sources"; do
2617 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2618 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2620 echo "linking $srcdir/$ac_source to $ac_dest"
2622 if test ! -r $srcdir/$ac_source; then
2623 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2627 # Make relative symlinks.
2628 # Remove last slash and all that follows it. Not all systems have dirname.
2629 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
2630 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2631 # The dest file is in a subdirectory.
2632 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2633 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
2634 # A "../" for each directory in $ac_dest_dir_suffix.
2635 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
2637 ac_dest_dir_suffix= ac_dots=
2641 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2642 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2645 # Make a symlink if possible; otherwise try a hard link.
2646 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2647 ln $srcdir/$ac_source $ac_dest; then :
2649 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2653 cat >> $CONFIG_STATUS <<EOF
2655 echo '$config_vars' >> config.make
2657 cat >> $CONFIG_STATUS <<\EOF
2659 if test "$realCC"; then
2660 sed -e 's/%{pipe:-}/%|/g' `$realCC -print-file-name=specs
` >specsT
2666 chmod +x $CONFIG_STATUS
2667 rm -fr confdefs* $ac_clean_files
2668 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2670 if test "$no_recursion" != yes; then
2672 # Remove --cache-file and --srcdir arguments so they do not pile up.
2673 ac_sub_configure_args=
2675 for ac_arg in $ac_configure_args; do
2676 if test -n "$ac_prev"; then
2681 -cache-file | --cache-file | --cache-fil | --cache-fi \
2682 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2683 ac_prev=cache_file ;;
2684 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2685 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2687 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2689 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2691 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2695 for ac_config_dir in $add_ons; do
2697 # Do not complain, so a configure script can configure whichever
2698 # parts of a large source tree are present.
2699 if test ! -d $srcdir/$ac_config_dir; then
2703 echo configuring in $ac_config_dir
2708 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2710 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2718 # A "../" for each directory in /$ac_config_dir.
2719 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2722 .) # No --srcdir option. We are building in place.
2723 ac_sub_srcdir=$srcdir ;;
2724 /*) # Absolute path.
2725 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2727 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2730 # Check for guested configure; otherwise get Cygnus style configure.
2731 if test -f $ac_sub_srcdir/configure; then
2732 ac_sub_configure=$ac_sub_srcdir/configure
2733 elif test -f $ac_sub_srcdir/configure.in; then
2734 ac_sub_configure=$ac_configure
2736 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2740 # The recursion is here.
2741 if test -n "$ac_sub_configure"; then
2743 # Make the cache file name correct relative to the subdirectory.
2744 case "$cache_file" in
2745 /*) ac_sub_cache_file=$cache_file ;;
2747 ac_sub_cache_file="$ac_dots$cache_file" ;;
2749 case "$ac_given_INSTALL" in
2750 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2751 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2754 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2755 # The eval makes quoting arguments work.
2756 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2759 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }