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[=DIR1,DIR2]... configure and build add-ons in DIR1,DIR2,...
46 search for add-ons if no parameter given"
48 # Initialize some variables set by options.
49 # The variables have the same names as the options, with
50 # dashes changed to underlines.
52 cache_file
=.
/config.cache
61 program_transform_name
=s
,x
,x
,
69 bindir
='${exec_prefix}/bin'
70 sbindir
='${exec_prefix}/sbin'
71 libexecdir
='${exec_prefix}/libexec'
72 datadir
='${prefix}/share'
73 sysconfdir
='${prefix}/etc'
74 sharedstatedir
='${prefix}/com'
75 localstatedir
='${prefix}/var'
76 libdir
='${exec_prefix}/lib'
77 includedir
='${prefix}/include'
78 oldincludedir
='/usr/include'
79 infodir
='${prefix}/info'
80 mandir
='${prefix}/man'
82 # Initialize some other variables.
85 # Maximum number of lines to put in a shell here document.
92 # If the previous option needs an argument, assign it.
93 if test -n "$ac_prev"; then
94 eval "$ac_prev=\$ac_option"
100 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
104 # Accept the important Cygnus configure options, so we can diagnose typos.
108 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
110 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
111 bindir
="$ac_optarg" ;;
113 -build |
--build |
--buil |
--bui |
--bu)
115 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
116 build
="$ac_optarg" ;;
118 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
119 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
120 ac_prev
=cache_file
;;
121 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
122 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
123 cache_file
="$ac_optarg" ;;
125 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
127 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
129 datadir
="$ac_optarg" ;;
131 -disable-* |
--disable-*)
132 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}=no" ;;
140 -enable-* |
--enable-*)
141 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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'`
151 eval "enable_${ac_feature}='$ac_optarg'" ;;
153 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
154 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
155 |
--exec |
--exe |
--ex)
156 ac_prev
=exec_prefix
;;
157 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
158 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
159 |
--exec=* |
--exe=* |
--ex=*)
160 exec_prefix
="$ac_optarg" ;;
162 -gas |
--gas |
--ga |
--g)
163 # Obsolete; use --with-gas.
166 -help |
--help |
--hel |
--he)
167 # Omit some internal or obsolete options to make the list less imposing.
168 # This message is too long to be a string in the A/UX 3.1 sh.
170 Usage: configure [options] [host]
171 Options: [defaults in brackets after descriptions]
173 --cache-file=FILE cache test results in FILE
174 --help print this message
175 --no-create do not create output files
176 --quiet, --silent do not print \`checking...' messages
177 --version print the version of autoconf that created configure
178 Directory and file names:
179 --prefix=PREFIX install architecture-independent files in PREFIX
181 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
183 --bindir=DIR user executables in DIR [EPREFIX/bin]
184 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
185 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
186 --datadir=DIR read-only architecture-independent data in DIR
188 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
189 --sharedstatedir=DIR modifiable architecture-independent data in DIR
191 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
192 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
193 --includedir=DIR C header files in DIR [PREFIX/include]
194 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
195 --infodir=DIR info documentation in DIR [PREFIX/info]
196 --mandir=DIR man documentation in DIR [PREFIX/man]
197 --srcdir=DIR find the sources in DIR [configure dir or ..]
198 --program-prefix=PREFIX prepend PREFIX to installed program names
199 --program-suffix=SUFFIX append SUFFIX to installed program names
200 --program-transform-name=PROGRAM
201 run sed PROGRAM on installed program names
205 --build=BUILD configure for building on BUILD [BUILD=HOST]
206 --host=HOST configure for HOST [guessed]
207 --target=TARGET configure for TARGET [TARGET=HOST]
208 Features and packages:
209 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
210 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
211 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
212 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
213 --x-includes=DIR X include files are in DIR
214 --x-libraries=DIR X library files are in DIR
216 if test -n "$ac_help"; then
217 echo "--enable and --with options recognized:$ac_help"
221 -host |
--host |
--hos |
--ho)
223 -host=* |
--host=* |
--hos=* |
--ho=*)
226 -includedir |
--includedir |
--includedi |
--included |
--include \
227 |
--includ |
--inclu |
--incl |
--inc)
228 ac_prev
=includedir
;;
229 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
230 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
231 includedir
="$ac_optarg" ;;
233 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
235 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
236 infodir
="$ac_optarg" ;;
238 -libdir |
--libdir |
--libdi |
--libd)
240 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
241 libdir
="$ac_optarg" ;;
243 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
244 |
--libexe |
--libex |
--libe)
245 ac_prev
=libexecdir
;;
246 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
247 |
--libexe=* |
--libex=* |
--libe=*)
248 libexecdir
="$ac_optarg" ;;
250 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
251 |
--localstate |
--localstat |
--localsta |
--localst \
252 |
--locals |
--local |
--loca |
--loc |
--lo)
253 ac_prev
=localstatedir
;;
254 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
255 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
256 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
257 localstatedir
="$ac_optarg" ;;
259 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
261 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
262 mandir
="$ac_optarg" ;;
265 # Obsolete; use --without-fp.
268 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
272 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
273 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
276 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
277 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
278 |
--oldin |
--oldi |
--old |
--ol |
--o)
279 ac_prev
=oldincludedir
;;
280 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
281 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
282 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
283 oldincludedir
="$ac_optarg" ;;
285 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
287 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
288 prefix
="$ac_optarg" ;;
290 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
291 |
--program-pre |
--program-pr |
--program-p)
292 ac_prev
=program_prefix
;;
293 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
294 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
295 program_prefix
="$ac_optarg" ;;
297 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
298 |
--program-suf |
--program-su |
--program-s)
299 ac_prev
=program_suffix
;;
300 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
301 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
302 program_suffix
="$ac_optarg" ;;
304 -program-transform-name |
--program-transform-name \
305 |
--program-transform-nam |
--program-transform-na \
306 |
--program-transform-n |
--program-transform- \
307 |
--program-transform |
--program-transfor \
308 |
--program-transfo |
--program-transf \
309 |
--program-trans |
--program-tran \
310 |
--progr-tra |
--program-tr |
--program-t)
311 ac_prev
=program_transform_name
;;
312 -program-transform-name=* |
--program-transform-name=* \
313 |
--program-transform-nam=* |
--program-transform-na=* \
314 |
--program-transform-n=* |
--program-transform-=* \
315 |
--program-transform=* |
--program-transfor=* \
316 |
--program-transfo=* |
--program-transf=* \
317 |
--program-trans=* |
--program-tran=* \
318 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
319 program_transform_name
="$ac_optarg" ;;
321 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
322 |
-silent |
--silent |
--silen |
--sile |
--sil)
325 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
327 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
329 sbindir
="$ac_optarg" ;;
331 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
332 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
333 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
335 ac_prev
=sharedstatedir
;;
336 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
337 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
338 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
340 sharedstatedir
="$ac_optarg" ;;
342 -site |
--site |
--sit)
344 -site=* |
--site=* |
--sit=*)
347 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
349 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
350 srcdir
="$ac_optarg" ;;
352 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
353 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
354 ac_prev
=sysconfdir
;;
355 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
356 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
357 sysconfdir
="$ac_optarg" ;;
359 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
361 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
362 target
="$ac_optarg" ;;
364 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
367 -version |
--version |
--versio |
--versi |
--vers)
368 echo "configure generated by autoconf version 2.12"
372 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package
=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}='$ac_optarg'" ;;
384 -without-* |
--without-*)
385 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package
=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}=no" ;;
394 # Obsolete; use --with-x.
397 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
398 |
--x-incl |
--x-inc |
--x-in |
--x-i)
399 ac_prev
=x_includes
;;
400 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
401 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
402 x_includes
="$ac_optarg" ;;
404 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
405 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
406 ac_prev
=x_libraries
;;
407 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
408 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
409 x_libraries
="$ac_optarg" ;;
411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
416 echo "configure: warning: $ac_option: invalid host type" 1>&2
418 if test "x$nonopt" != xNONE
; then
419 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
427 if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
433 # File descriptor usage:
436 # 2 errors and warnings
437 # 3 some systems may open it to /dev/tty
438 # 4 used on the Kubota Titan
439 # 6 checking for... messages and results
440 # 5 compiler messages saved in config.log
441 if test "$silent" = yes; then
449 This file contains any messages produced by compilers while
450 running configure, to aid debugging if configure makes a mistake.
453 # Strip out --no-create and --no-recursion so they do not pile up.
454 # Also quote any args containing shell metacharacters.
459 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
460 |
--no-cr |
--no-c) ;;
461 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
462 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
463 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
464 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
465 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
470 # Only set these to C if already set. These must not be set unconditionally
471 # because not all systems understand e.g. LANG=C (notably SCO).
472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
473 # Non-C LC_CTYPE values break the ctype check.
474 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
475 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
477 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
480 rm -rf conftest
* confdefs.h
481 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
484 # A filename unique to this package, relative to the directory that
485 # configure is in, which we can look for to find out if srcdir is correct.
486 ac_unique_file
=features.h
488 # Find the source files, if location was not specified.
489 if test -z "$srcdir"; then
490 ac_srcdir_defaulted
=yes
491 # Try the directory containing this script, then its parent.
493 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
496 if test ! -r $srcdir/$ac_unique_file; then
500 ac_srcdir_defaulted
=no
502 if test ! -r $srcdir/$ac_unique_file; then
503 if test "$ac_srcdir_defaulted" = yes; then
504 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
511 # Prefer explicitly selected file to automatically selected ones.
512 if test -z "$CONFIG_SITE"; then
513 if test "x$prefix" != xNONE
; then
514 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
516 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
519 for ac_site_file
in $CONFIG_SITE; do
520 if test -r "$ac_site_file"; then
521 echo "loading site script $ac_site_file"
526 if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
530 echo "creating cache $cache_file"
535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536 ac_cpp
='$CPP $CPPFLAGS'
537 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539 cross_compiling
=$ac_cv_prog_cc_cross
541 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
542 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
543 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
550 ac_n
= ac_c
='\c' ac_t
=
556 # This will get text that should go into config.make.
559 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
560 # Check whether --with-gmp or --without-gmp was given.
561 if test "${with_gmp+set}" = set; then
564 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
566 *) config_vars
="$config_vars
567 gmp-srcdir = $withval" ;;
572 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
573 # Check whether --with-gettext or --without-gettext was given.
574 if test "${with_gettext+set}" = set; then
575 withval
="$with_gettext"
576 case "$with_gettext" in
578 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
581 config_vars
="$config_vars
582 gettext-srcdir = $withval" ;;
588 # Check whether --with-fp or --without-fp was given.
589 if test "${with_fp+set}" = set; then
596 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
597 if test "${with_gnu_binutils+set}" = set; then
598 withval
="$with_gnu_binutils"
599 gnu_binutils
=$withval
604 # Check whether --with-gnu-ld or --without-gnu-ld was given.
605 if test "${with_gnu_ld+set}" = set; then
606 withval
="$with_gnu_ld"
612 # Check whether --with-gnu-as or --without-gnu-as was given.
613 if test "${with_gnu_as+set}" = set; then
614 withval
="$with_gnu_as"
620 test $gnu_binutils = yes && gnu_as
=yes gnu_ld
=yes
621 # Check whether --with-elf or --without-elf was given.
622 if test "${with_elf+set}" = set; then
630 # Check whether --enable-libio or --disable-libio was given.
631 if test "${enable_libio+set}" = set; then
632 enableval
="$enable_libio"
633 if test $enableval = yes; then
643 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
644 if test "${enable_sanity_checks+set}" = set; then
645 enableval
="$enable_sanity_checks"
646 enable_sanity
=$enableval
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"
677 if test $omitfp = yes; then
678 echo "*** Not all versions of GCC compile code correctly when the"
679 echo "*** -fomit-frame-pointer option is used. You are on your own"
680 echo "*** if you use it."
683 # Check whether --enable-add-ons or --disable-add-ons was given.
684 if test "${enable_add_ons+set}" = set; then
685 enableval
="$enable_add_ons"
687 yes) if test "$srcdir" = "."; then
688 add_ons
=`echo */configure | sed -e 's!/configure!!g'`
690 add_ons
=`echo $srcdir/*/configure | \
691 sed -e 's!/configure!!g' -e "s!$srcdir/!!g"`
693 *) add_ons
=`echo "$enableval" | sed 's/,/ /g'`;;
700 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
701 if test -f $ac_dir/install-sh
; then
703 ac_install_sh
="$ac_aux_dir/install-sh -c"
705 elif test -f $ac_dir/install.sh
; then
707 ac_install_sh
="$ac_aux_dir/install.sh -c"
711 if test -z "$ac_aux_dir"; then
712 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
714 ac_config_guess
=$ac_aux_dir/config.guess
715 ac_config_sub
=$ac_aux_dir/config.sub
716 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
721 if test x
"$add_ons" != x
; then
722 for f
in $add_ons; do
723 # Test whether such a subdir really exists.
724 if test -d $srcdir/$f; then
725 add_ons_pfx
="$add_ons_pfx $f/"
727 { echo "configure: error: add-on directory \"$f\" does not exist" 1>&2; exit 1; }
733 # Make sure we can run config.sub.
734 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
735 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
738 echo $ac_n "checking host system type""... $ac_c" 1>&6
739 echo "configure:740: checking host system type" >&5
742 case "$host_alias" in
746 if host_alias
=`$ac_config_guess`; then :
747 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
749 *) host_alias
=$nonopt ;;
753 host=`$ac_config_sub $host_alias`
754 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
755 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
756 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
757 echo "$ac_t""$host" 1>&6
760 # The way shlib-versions is used to generate soversions.mk uses a
761 # fairly simplistic model for name recognition that can't distinguish
762 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
763 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
764 # tell. This doesn't get used much beyond that, so it's fairly safe.
769 host_os
=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
773 ### I put this here to prevent those annoying emails from people who cannot
774 ### read and try to compile glibc on unsupported platforms. --drepper
776 ### By using the undocumented --enable-hacker-mode option for configure
777 ### one can skip this test to make the configuration not fail for unsupported
780 if test -z "$enable_hacker_mode"; then
785 echo "*** The GNU C library is currently not available for this platform."
786 echo "*** So far nobody cared to port it and if there is no volunteer it"
787 echo "*** might never happen. So, if you have interest to see glibc on"
788 echo "*** this platform visit"
789 echo "*** http://www.gnu.org/software/libc/porting.html"
790 echo "*** and join the group of porters"
797 # We keep the original values in `$config_*' and never modify them, so we
798 # can write them unchanged into config.make. Everything else uses
799 # $machine, $vendor, and $os, and changes them whenever convenient.
800 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
802 # Some configurations imply other options.
804 gnu
* | linux
* | bsd4.4
* | netbsd
* | freebsd
*)
805 # These systems always use GNU tools.
806 gnu_ld
=yes gnu_as
=yes ;;
809 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
810 linux
*ecoff
* | linux
*aout
* | gnu
*aout
* | gnu
*ecoff
*)
812 gnu
* | linux
* | sysv4
* | solaris2
*)
813 # These systems (almost) always use the ELF format.
818 machine
=$config_machine
819 vendor
=$config_vendor
822 # Expand the configuration machine name into a subdirectory by architecture
823 # type and particular chip.
825 a29k | am29000
) base_machine
=a29k machine
=a29k
;;
826 alpha
*) base_machine
=alpha machine
=alpha
/$machine ;;
827 hppa
*) base_machine
=hppa machine
=hppa
/$machine ;;
828 i
[3456]86) base_machine
=i386 machine
=i386
/$machine ;;
829 m680?
0) base_machine
=m68k machine
=m68k
/$machine ;;
830 m68k
) base_machine
=m68k machine
=m68k
/m68020
;;
831 m88???
) base_machine
=m88k machine
=m88k
/$machine ;;
832 m88k
) base_machine
=m88k machine
=m88k
/m88100
;;
833 mips
*) base_machine
=mips machine
=mips
/$machine ;;
834 mips64
*) base_machine
=mips64 machine
=mips
/mips64
/$machine ;;
836 base_machine
=sparc machine
=sparc
/sparc32
;;
837 sparcv8 | supersparc | hypersparc
)
838 base_machine
=sparc machine
=sparc
/sparc32
/sparcv8
;;
839 sparc64
) base_machine
=sparc machine
=sparc
/sparc64
;;
843 # Compute the list of sysdep directories for this configuration.
844 # This can take a while to compute.
845 sysdep_dir
=$srcdir/sysdeps
846 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
847 echo "configure:848: checking sysdep dirs" >&5
848 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
849 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
854 netbsd
* |
386bsd
* | freebsd
* | bsdi
*)
855 base_os
=unix
/bsd
/bsd4.4
;;
856 osf
* | sunos
* | ultrix
* | newsos
* | dynix
* |
*bsd
*)
858 sysv
* | isc
* | esix
* | sco
* | minix
* | irix4
* | linux
*)
861 base_os
=unix
/sysv
/sysv4
;;
863 base_os
=standalone
;;
868 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
871 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
875 o
=`echo $tail | sed 's/[0-9]*$//'`
876 if test $o != $tail; then
879 # For linux-gnu, try linux-gnu, then linux.
880 o
=`echo $tail | sed 's/-.*$//'`
881 if test $o != $tail; then
885 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
888 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
894 # For sparc/sparcv9, try sparc/sparcv9 and then sparc.
897 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
899 # Prepend the machine's FPU directory unless --without-fp.
900 if test "$with_fp" = yes; then
908 # Find what sysdep directories exist.
910 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
911 for d
in $add_ons_pfx ''; do
912 for b
in $base ''; do
913 for m0
in $mach ''; do
914 for v
in /$vendor ''; do
915 for o
in /$ostry ''; do
916 for m
in $mach ''; do
917 if test "$m0$b$v$o$m"; then
918 try
="${d}sysdeps$m0$b$v$o$m"
919 test -n "$enable_debug_configure" &&
920 echo "$0 DEBUG: try $try" >&2
923 *) dest
=$srcdir/$try ;;
925 if test -d $dest; then
926 sysnames
="$sysnames $try"
927 { test -n "$o" ||
test -n "$b"; } && os_used
=t
928 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
939 if test -z "$os_used" && test "$os" != none
; then
940 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
942 if test -z "$machine_used" && test "$machine" != none
; then
943 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
946 # We have now validated the configuration.
949 # If using ELF, look for an `elf' subdirectory of each machine directory.
950 # We prepend these rather than inserting them whereever the machine appears
951 # because things specified by the machine's ELF ABI should override
952 # OS-specific things, and should always be the same for any OS on the
953 # machine (otherwise what's the point of an ABI?).
954 if test "$elf" = yes; then
956 for d
in $add_ons_pfx ''; do
959 *) xsrcdir
=$srcdir/ ;;
962 if test -d $xsrcdir${d}sysdeps
$m/elf
; then
963 elf_dirs
="$elf_dirs ${d}sysdeps$m/elf"
967 sysnames
="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
971 # Expand the list of system names into a full list of directories
972 # from each element's parent name and Implies file (if present).
975 while test $# -gt 0; do
979 case " $names " in *" $name "*)
980 # Already in the list.
984 # Report each name as we discover it, so there is no long pause in output.
985 echo $ac_n "$name $ac_c" >&6
987 name_base
=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
991 *) xsrcdir
=$srcdir/ ;;
993 test -n "$enable_debug_configure" &&
994 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
996 if test -f $xsrcdir$name/Implies
; then
997 # Collect more names from the `Implies' file (removing comments).
998 implied_candidate
="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
1000 for x
in $implied_candidate; do
1001 if test -d $xsrcdir$name_base/$x; then
1002 implied
="$implied $name_base/$x";
1004 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
1011 # Add NAME to the list of names.
1012 names
="$names $name"
1014 # Find the parent of NAME, using the empty string if it has none.
1015 parent
="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
1017 # Add the names implied by NAME, and NAME's parent (if it has one), to
1018 # the list of names to be processed (the argument list). We prepend the
1019 # implied names to the list and append the parent. We want implied
1020 # directories to come before further directories inferred from the
1021 # configuration components; this ensures that for sysv4, unix/common
1022 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
1024 sysnames
="`echo $implied $* $parent`"
1025 test -n "$sysnames" && set $sysnames
1028 # Add the default directories.
1029 sysnames
="$names sysdeps/generic sysdeps/stub"
1031 # The other names were emitted during the scan.
1032 echo "$ac_t""sysdeps/generic sysdeps/stub" 1>&6
1037 # Find a good install program. We prefer a C program (faster),
1038 # so one script is as good as another. But avoid the broken or
1039 # incompatible versions:
1040 # SysV /etc/install, /usr/sbin/install
1041 # SunOS /usr/etc/install
1042 # IRIX /sbin/install
1044 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1045 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1046 # ./install, which can be erroneously created by make from ./install.sh.
1047 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1048 echo "configure:1049: checking for a BSD compatible install" >&5
1049 if test -z "$INSTALL"; then
1050 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1053 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1054 for ac_dir
in $PATH; do
1055 # Account for people who put trailing slashes in PATH elements.
1057 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1059 # OSF1 and SCO ODT 3.0 have their own names for install.
1060 for ac_prog
in ginstall installbsd scoinst
install; do
1061 if test -f $ac_dir/$ac_prog; then
1062 if test $ac_prog = install &&
1063 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1064 # AIX install. It has an incompatible calling convention.
1065 # OSF/1 installbsd also uses dspmsg, but is usable.
1068 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1079 if test "${ac_cv_path_install+set}" = set; then
1080 INSTALL
="$ac_cv_path_install"
1082 # As a last resort, use the slow shell script. We don't cache a
1083 # path for INSTALL within a source directory, because that will
1084 # break other packages using the cache if that directory is
1085 # removed, or if the path is relative.
1086 INSTALL
="$ac_install_sh"
1089 echo "$ac_t""$INSTALL" 1>&6
1091 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1092 # It thinks the first close brace ends the variable substitution.
1093 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1095 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1097 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1098 # The makefiles need to use a different form to find it in $srcdir.
1099 INSTALL
='\$(..)./install-sh -c'
1101 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1102 echo "configure:1103: checking whether ln -s works" >&5
1103 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1104 echo $ac_n "(cached) $ac_c" 1>&6
1107 if ln -s X conftestdata
2>/dev
/null
1110 ac_cv_prog_LN_S
="ln -s"
1115 LN_S
="$ac_cv_prog_LN_S"
1116 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1117 echo "$ac_t""yes" 1>&6
1119 echo "$ac_t""no" 1>&6
1122 for ac_prog
in msgfmt gmsgfmt
1124 # Extract the first word of "$ac_prog", so it can be a program name with args.
1125 set dummy
$ac_prog; ac_word
=$2
1126 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1127 echo "configure:1128: checking for $ac_word" >&5
1128 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1129 echo $ac_n "(cached) $ac_c" 1>&6
1131 if test -n "$MSGFMT"; then
1132 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
1134 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1135 for ac_dir
in $PATH; do
1136 test -z "$ac_dir" && ac_dir
=.
1137 if test -f $ac_dir/$ac_word; then
1138 ac_cv_prog_MSGFMT
="$ac_prog"
1145 MSGFMT
="$ac_cv_prog_MSGFMT"
1146 if test -n "$MSGFMT"; then
1147 echo "$ac_t""$MSGFMT" 1>&6
1149 echo "$ac_t""no" 1>&6
1152 test -n "$MSGFMT" && break
1154 test -n "$MSGFMT" || MSGFMT
=":"
1157 # Extract the first word of "gcc", so it can be a program name with args.
1158 set dummy gcc
; 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_CC'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1164 if test -n "$CC"; then
1165 ac_cv_prog_CC
="$CC" # 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
1179 if test -n "$CC"; then
1180 echo "$ac_t""$CC" 1>&6
1182 echo "$ac_t""no" 1>&6
1185 if test -z "$CC"; then
1186 # Extract the first word of "cc", so it can be a program name with args.
1187 set dummy cc
; ac_word
=$2
1188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1189 echo "configure:1190: checking for $ac_word" >&5
1190 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1193 if test -n "$CC"; then
1194 ac_cv_prog_CC
="$CC" # Let the user override the test.
1196 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1198 for ac_dir
in $PATH; do
1199 test -z "$ac_dir" && ac_dir
=.
1200 if test -f $ac_dir/$ac_word; then
1201 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1202 ac_prog_rejected
=yes
1210 if test $ac_prog_rejected = yes; then
1211 # We found a bogon in the path, so make sure we never use it.
1212 set dummy
$ac_cv_prog_CC
1214 if test $# -gt 0; then
1215 # We chose a different compiler from the bogus one.
1216 # However, it has the same basename, so the bogon will be chosen
1217 # first if we set CC to just the basename; use the full file name.
1219 set dummy
"$ac_dir/$ac_word" "$@"
1227 if test -n "$CC"; then
1228 echo "$ac_t""$CC" 1>&6
1230 echo "$ac_t""no" 1>&6
1233 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1236 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1237 echo "configure:1238: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1240 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1241 ac_cpp
='$CPP $CPPFLAGS'
1242 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1243 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1244 cross_compiling
=$ac_cv_prog_cc_cross
1246 cat > conftest.
$ac_ext <<EOF
1247 #line 1248 "configure"
1248 #include "confdefs.h"
1251 if { (eval echo configure
:1252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1252 ac_cv_prog_cc_works
=yes
1253 # If we can't run a trivial program, we are probably using a cross compiler.
1254 if (.
/conftest
; exit) 2>/dev
/null
; then
1255 ac_cv_prog_cc_cross
=no
1257 ac_cv_prog_cc_cross
=yes
1260 echo "configure: failed program was:" >&5
1261 cat conftest.
$ac_ext >&5
1262 ac_cv_prog_cc_works
=no
1266 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1267 if test $ac_cv_prog_cc_works = no
; then
1269 ac_cv_prog_cc_cross
=yes
1273 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1274 echo "configure:1275: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1275 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1277 cross_compiling
=$ac_cv_prog_cc_cross
1279 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1280 echo "configure:1281: checking whether we are using GNU C" >&5
1281 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1284 cat > conftest.c
<<EOF
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
1296 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1298 if test $ac_cv_prog_gcc = yes; then
1301 cat > conftest.c
<<EOF
1302 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
1306 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1307 if test -z "$CFLAGS"; then
1311 { echo "configure: error: We require GNU CC version 2.7 or newer" 1>&2; exit 1; }
1314 { echo "configure: error: GNU libc must be compiled using GNU CC" 1>&2; exit 1; }
1317 echo $ac_n "checking build system type""... $ac_c" 1>&6
1318 echo "configure:1319: checking build system type" >&5
1321 case "$build_alias" in
1324 NONE
) build_alias
=$host_alias ;;
1325 *) build_alias
=$nonopt ;;
1329 build
=`$ac_config_sub $build_alias`
1330 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1331 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1332 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1333 echo "$ac_t""$build" 1>&6
1335 if test $host != $build; then
1336 for ac_prog
in gcc cc
1338 # Extract the first word of "$ac_prog", so it can be a program name with args.
1339 set dummy
$ac_prog; ac_word
=$2
1340 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1341 echo "configure:1342: checking for $ac_word" >&5
1342 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1345 if test -n "$BUILD_CC"; then
1346 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
1348 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1349 for ac_dir
in $PATH; do
1350 test -z "$ac_dir" && ac_dir
=.
1351 if test -f $ac_dir/$ac_word; then
1352 ac_cv_prog_BUILD_CC
="$ac_prog"
1359 BUILD_CC
="$ac_cv_prog_BUILD_CC"
1360 if test -n "$BUILD_CC"; then
1361 echo "$ac_t""$BUILD_CC" 1>&6
1363 echo "$ac_t""no" 1>&6
1366 test -n "$BUILD_CC" && break
1371 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1372 echo "configure:1373: checking how to run the C preprocessor" >&5
1373 # On Suns, sometimes $CPP names a directory.
1374 if test -n "$CPP" && test -d "$CPP"; then
1377 if test -z "$CPP"; then
1378 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1379 echo $ac_n "(cached) $ac_c" 1>&6
1381 # This must be in double quotes, not single quotes, because CPP may get
1382 # substituted into the Makefile and "${CC-cc}" will confuse make.
1384 # On the NeXT, cc -E runs the code through the compiler's parser,
1385 # not just through 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
1402 CPP
="${CC-cc} -E -traditional-cpp"
1403 cat > conftest.
$ac_ext <<EOF
1404 #line 1405 "configure"
1405 #include "confdefs.h"
1409 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1410 { (eval echo configure
:1411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1411 ac_err
=`grep -v '^ *+' conftest.out`
1412 if test -z "$ac_err"; then
1416 echo "configure: failed program was:" >&5
1417 cat conftest.
$ac_ext >&5
1424 ac_cv_prog_CPP
="$CPP"
1426 CPP
="$ac_cv_prog_CPP"
1428 ac_cv_prog_CPP
="$CPP"
1430 echo "$ac_t""$CPP" 1>&6
1432 if test $host != $build; then
1433 ac_tool_prefix
=${host_alias}-
1438 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1439 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1441 echo "configure:1442: checking for $ac_word" >&5
1442 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1445 if test -n "$AR"; then
1446 ac_cv_prog_AR
="$AR" # Let the user override the test.
1448 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1449 for ac_dir
in $PATH; do
1450 test -z "$ac_dir" && ac_dir
=.
1451 if test -f $ac_dir/$ac_word; then
1452 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1457 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1461 if test -n "$AR"; then
1462 echo "$ac_t""$AR" 1>&6
1464 echo "$ac_t""no" 1>&6
1469 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1470 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1471 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1472 echo "configure:1473: checking for $ac_word" >&5
1473 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1476 if test -n "$RANLIB"; then
1477 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1479 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1480 for ac_dir
in $PATH; do
1481 test -z "$ac_dir" && ac_dir
=.
1482 if test -f $ac_dir/$ac_word; then
1483 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1490 RANLIB
="$ac_cv_prog_RANLIB"
1491 if test -n "$RANLIB"; then
1492 echo "$ac_t""$RANLIB" 1>&6
1494 echo "$ac_t""no" 1>&6
1498 if test -z "$ac_cv_prog_RANLIB"; then
1499 if test -n "$ac_tool_prefix"; then
1500 # Extract the first word of "ranlib", so it can be a program name with args.
1501 set dummy ranlib
; ac_word
=$2
1502 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1503 echo "configure:1504: checking for $ac_word" >&5
1504 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1505 echo $ac_n "(cached) $ac_c" 1>&6
1507 if test -n "$RANLIB"; then
1508 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1510 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1511 for ac_dir
in $PATH; do
1512 test -z "$ac_dir" && ac_dir
=.
1513 if test -f $ac_dir/$ac_word; then
1514 ac_cv_prog_RANLIB
="ranlib"
1519 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1522 RANLIB
="$ac_cv_prog_RANLIB"
1523 if test -n "$RANLIB"; then
1524 echo "$ac_t""$RANLIB" 1>&6
1526 echo "$ac_t""no" 1>&6
1535 # Extract the first word of "bash", so it can be a program name with args.
1536 set dummy bash
; ac_word
=$2
1537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1538 echo "configure:1539: checking for $ac_word" >&5
1539 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1544 ac_cv_path_BASH
="$BASH" # Let the user override the test with a path.
1547 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1548 for ac_dir
in $PATH; do
1549 test -z "$ac_dir" && ac_dir
=.
1550 if test -f $ac_dir/$ac_word; then
1551 ac_cv_path_BASH
="$ac_dir/$ac_word"
1556 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH
="no"
1560 BASH
="$ac_cv_path_BASH"
1561 if test -n "$BASH"; then
1562 echo "$ac_t""$BASH" 1>&6
1564 echo "$ac_t""no" 1>&6
1567 if test "$BASH" != no
&&
1568 $BASH -c 'test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1569 libc_cv_have_bash2
=yes
1571 libc_cv_have_bash2
=no
1575 if test "$BASH" = no
; then
1576 # Extract the first word of "ksh", so it can be a program name with args.
1577 set dummy ksh
; ac_word
=$2
1578 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1579 echo "configure:1580: checking for $ac_word" >&5
1580 if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1581 echo $ac_n "(cached) $ac_c" 1>&6
1585 ac_cv_path_KSH
="$KSH" # Let the user override the test with a path.
1588 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1589 for ac_dir
in $PATH; do
1590 test -z "$ac_dir" && ac_dir
=.
1591 if test -f $ac_dir/$ac_word; then
1592 ac_cv_path_KSH
="$ac_dir/$ac_word"
1597 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH
="no"
1601 KSH
="$ac_cv_path_KSH"
1602 if test -n "$KSH"; then
1603 echo "$ac_t""$KSH" 1>&6
1605 echo "$ac_t""no" 1>&6
1608 if test "$KSH" = no
; then
1611 libc_cv_have_ksh
=yes
1616 libc_cv_have_ksh
=yes
1620 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1621 echo "configure:1622: checking for signed size_t type" >&5
1622 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1623 echo $ac_n "(cached) $ac_c" 1>&6
1625 echo '#include <stddef.h>
1626 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1627 if eval "$ac_cpp conftest.c 2>/dev/null" \
1628 |
grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev
/null
; then
1629 libc_cv_signed_size_t
=no
1631 libc_cv_signed_size_t
=yes
1636 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
1637 if test $libc_cv_signed_size_t = yes; then
1638 cat >> confdefs.h
<<\EOF
1639 #undef __SIZE_TYPE__
1640 #define __SIZE_TYPE__ unsigned
1644 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
1645 echo "configure:1646: checking for libc-friendly stddef.h" >&5
1646 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1647 echo $ac_n "(cached) $ac_c" 1>&6
1649 cat > conftest.
$ac_ext <<EOF
1650 #line 1651 "configure"
1651 #include "confdefs.h"
1652 #define __need_size_t
1653 #define __need_wchar_t
1658 size_t size; wchar_t wchar;
1660 #error stddef.h ignored __need_*
1662 if (&size == NULL || &wchar == NULL) abort ();
1665 if { (eval echo configure
:1666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1667 libc_cv_friendly_stddef
=yes
1669 echo "configure: failed program was:" >&5
1670 cat conftest.
$ac_ext >&5
1672 libc_cv_friendly_stddef
=no
1677 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
1678 if test $libc_cv_friendly_stddef = yes; then
1679 config_vars
="$config_vars
1680 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1683 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
1684 echo "configure:1685: checking whether we need to use -P to assemble .S files" >&5
1685 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1686 echo $ac_n "(cached) $ac_c" 1>&6
1688 cat > conftest.S
<<EOF
1689 #include "confdefs.h"
1690 /* Nothing whatsoever. */
1692 if ${CC-cc} $CFLAGS -c conftest.S
2>/dev
/null
; then
1693 libc_cv_need_minus_P
=no
1695 libc_cv_need_minus_P
=yes
1700 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
1701 if test $libc_cv_need_minus_P = yes; then
1702 config_vars
="$config_vars
1703 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1706 # gcc 2.7.x has a bug where if -pipe is set, the assembler will always
1707 # be told to read stdin. This causes the compiler to hang when fed an
1709 if test $ac_cv_prog_gcc = yes; then
1710 case `${CC-cc} -v 2>&1` in
1712 # We must check this even if -pipe is not given here, because the user
1713 # might do `make CFLAGS=-pipe'.
1714 echo $ac_n "checking for gcc 2.7.x -pipe bug""... $ac_c" 1>&6
1715 echo "configure:1716: checking for gcc 2.7.x -pipe bug" >&5
1716 if eval "test \"`echo '$''{'libc_cv_gcc_pipe_bug'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1719 cp /dev
/null conftest.s
1720 cat >conftest1.s
<<EOF
1723 if ${CC-cc} -pipe -c conftest.s
<conftest1.s
2>/dev
/null
; then
1724 libc_cv_gcc_pipe_bug
=no
1726 libc_cv_gcc_pipe_bug
=yes
1731 echo "$ac_t""$libc_cv_gcc_pipe_bug" 1>&6
1732 if test $libc_cv_gcc_pipe_bug = yes; then
1733 makeCC
="${CC-cc} -B\$(common-objpfx)"
1735 CFLAGS
=`echo $CFLAGS |sed 's/-pipe//'`
1737 *) libc_cv_gcc_pipe_bug
=no
;;
1740 libc_cv_gcc_pipe_bug
=no
1744 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
1745 echo "configure:1746: checking for assembler global-symbol directive" >&5
1746 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1749 libc_cv_asm_global_directive
=UNKNOWN
1750 for ac_globl
in .globl .global
; do
1751 cat > conftest.s
<<EOF
1756 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
1757 libc_cv_asm_global_directive
=${ac_globl}
1760 test $libc_cv_asm_global_directive != UNKNOWN
&& break
1764 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
1765 if test $libc_cv_asm_global_directive = UNKNOWN
; then
1766 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1768 cat >> confdefs.h
<<EOF
1769 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1774 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
1775 echo "configure:1776: checking for .set assembler directive" >&5
1776 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1779 cat > conftest.s
<<EOF
1782 .set glibc_conftest_frobozz,foo
1783 $libc_cv_asm_global_directive glibc_conftest_frobozz
1785 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1786 # (but it doesn't work), so we must do a linking check to be sure.
1787 cat > conftest1.c
<<\EOF
1788 extern int glibc_conftest_frobozz
;
1789 main
() { printf ("%d\n", glibc_conftest_frobozz
); }
1791 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1792 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
1793 libc_cv_asm_set_directive
=yes
1795 libc_cv_asm_set_directive
=no
1800 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
1801 if test $libc_cv_asm_set_directive = yes; then
1802 cat >> confdefs.h
<<\EOF
1803 #define HAVE_ASM_SET_DIRECTIVE 1
1808 if test $elf = yes; then
1809 echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6
1810 echo "configure:1811: checking for .previous assembler directive" >&5
1811 if eval "test \"`echo '$''{'libc_cv_asm_previous_directive'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1814 cat > conftest.s
<<EOF
1815 .section foo_section
1818 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:1819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1819 libc_cv_asm_previous_directive
=yes
1821 libc_cv_asm_previous_directive
=no
1826 echo "$ac_t""$libc_cv_asm_previous_directive" 1>&6
1827 if test $libc_cv_asm_previous_directive = yes; then
1828 cat >> confdefs.h
<<\EOF
1829 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
1833 echo $ac_n "checking for .popsection assembler directive""... $ac_c" 1>&6
1834 echo "configure:1835: checking for .popsection assembler directive" >&5
1835 if eval "test \"`echo '$''{'libc_cv_asm_popsection_directive'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1838 cat > conftest.s
<<EOF
1839 .pushsection foo_section
1842 if { ac_try
='${CC-cc} -c $CFLAGS conftest.s 1>&5'; { (eval echo configure
:1843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1843 libc_cv_asm_popsection_directive
=yes
1845 libc_cv_asm_popsection_directive
=no
1850 echo "$ac_t""$libc_cv_asm_popsection_directive" 1>&6
1851 if test $libc_cv_asm_popsection_directive = yes; then
1852 cat >> confdefs.h
<<\EOF
1853 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
1860 if test $elf != yes; then
1861 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
1862 echo "configure:1863: checking for .init and .fini sections" >&5
1863 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
1864 echo $ac_n "(cached) $ac_c" 1>&6
1866 cat > conftest.
$ac_ext <<EOF
1867 #line 1868 "configure"
1868 #include "confdefs.h"
1871 asm (".section .init");
1872 asm (".section .fini");
1876 if { (eval echo configure
:1877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1878 libc_cv_have_initfini
=yes
1880 echo "configure: failed program was:" >&5
1881 cat conftest.
$ac_ext >&5
1883 libc_cv_have_initfini
=no
1888 echo "$ac_t""$libc_cv_have_initfini" 1>&6
1889 if test $libc_cv_have_initfini = yes; then
1890 cat >> confdefs.h
<<\EOF
1891 #define HAVE_INITFINI 1
1899 if test $elf = yes; then
1900 libc_cv_asm_underscores
=no
1902 if test $ac_cv_prog_cc_works = yes; then
1903 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
1904 echo "configure:1905: checking for _ prefix on C symbol names" >&5
1905 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 cat > conftest.
$ac_ext <<EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1911 asm ("_glibc_foobar:");
1916 if { (eval echo configure
:1917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1918 libc_cv_asm_underscores
=yes
1920 echo "configure: failed program was:" >&5
1921 cat conftest.
$ac_ext >&5
1923 libc_cv_asm_underscores
=no
1928 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
1930 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
1931 echo "configure:1932: checking for _ prefix on C symbol names" >&5
1932 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
1933 echo $ac_n "(cached) $ac_c" 1>&6
1935 cat > conftest.
$ac_ext <<EOF
1936 #line 1937 "configure"
1937 #include "confdefs.h"
1938 void underscore_test(void) {
1941 if { (eval echo configure
:1942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1942 if grep _underscore_test conftest
* >/dev
/null
; then
1944 libc_cv_asm_underscores
=yes
1947 libc_cv_asm_underscores
=no
1950 echo "configure: failed program was:" >&5
1951 cat conftest.
$ac_ext >&5
1953 libc_cv_asm_underscores
=no
1958 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
1961 if test $libc_cv_asm_underscores = no
; then
1962 cat >> confdefs.h
<<\EOF
1963 #define NO_UNDERSCORES 1
1968 if test $elf = yes; then
1969 libc_cv_weak_symbols
=yes
1970 libc_cv_asm_weak_directive
=yes
1971 libc_cv_asm_weakext_directive
=no
1973 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
1974 echo "configure:1975: checking for assembler .weak directive" >&5
1975 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1978 cat > conftest.s
<<EOF
1980 ${libc_cv_asm_global_directive} foo
1983 .weak bar; bar = foo
1985 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
1986 libc_cv_asm_weak_directive
=yes
1988 libc_cv_asm_weak_directive
=no
1993 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
1995 if test $libc_cv_asm_weak_directive = no
; then
1996 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
1997 echo "configure:1998: checking for assembler .weakext directive" >&5
1998 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2001 cat > conftest.s
<<EOF
2003 ${libc_cv_asm_global_directive} foo
2008 if ${CC-cc} $CFLAGS -c conftest.s
2>/dev
/null
; then
2009 libc_cv_asm_weakext_directive
=yes
2011 libc_cv_asm_weakext_directive
=no
2016 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
2021 if test $libc_cv_asm_weak_directive = yes; then
2022 cat >> confdefs.h
<<\EOF
2023 #define HAVE_ASM_WEAK_DIRECTIVE 1
2026 elif test $libc_cv_asm_weakext_directive = yes; then
2027 cat >> confdefs.h
<<\EOF
2028 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
2033 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
2034 echo "configure:2035: checking for ld --no-whole-archive" >&5
2035 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2038 cat > conftest.c
<<\EOF
2043 if { ac_try
='${CC-cc} $CFLAGS
2044 -nostdlib -nostartfiles -Wl,--no-whole-archive
2045 -o conftest conftest.c 1>&5'; { (eval echo configure
:2046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2046 libc_cv_ld_no_whole_archive
=yes
2048 libc_cv_ld_no_whole_archive
=no
2053 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
2055 echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
2056 echo "configure:2057: checking for gcc -fno-exceptions" >&5
2057 if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2060 cat > conftest.c
<<\EOF
2065 if { ac_try
='${CC-cc} $CFLAGS
2066 -nostdlib -nostartfiles -fno-exceptions
2067 -o conftest conftest.c 1>&5'; { (eval echo configure
:2068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2068 libc_cv_gcc_no_exceptions
=yes
2070 libc_cv_gcc_no_exceptions
=no
2075 echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
2077 if test "$base_machine" = alpha
; then
2078 echo $ac_n "checking for function ..ng prefix""... $ac_c" 1>&6
2079 echo "configure:2080: checking for function ..ng prefix" >&5
2080 if eval "test \"`echo '$''{'libc_cv_gcc_alpha_ng_prefix'+set}'`\" = set"; then
2081 echo $ac_n "(cached) $ac_c" 1>&6
2083 cat > conftest.c
<<\EOF
2086 if { ac_try
='${CC-cc} -S conftest.c -o - | fgrep "\$foo..ng" > /dev/null'; { (eval echo configure
:2087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
2088 libc_cv_gcc_alpha_ng_prefix
=yes
2090 libc_cv_gcc_alpha_ng_prefix
=no
2095 echo "$ac_t""$libc_cv_gcc_alpha_ng_prefix" 1>&6
2096 if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
2097 cat >> confdefs.h
<<\EOF
2098 #define ASM_ALPHA_NG_SYMBOL_PREFIX "$"
2102 cat >> confdefs.h
<<\EOF
2103 #define ASM_ALPHA_NG_SYMBOL_PREFIX ""
2109 ### End of automated tests.
2110 ### Now run sysdeps configure fragments.
2112 # sysdeps configure fragments may set these with files to be linked below.
2116 # Iterate over all the sysdep directories we will use, running their
2117 # configure fragments, and looking for a uname implementation.
2119 for dir
in $sysnames; do
2122 *) dest
=$srcdir/$dir ;;
2124 if test -r $dest/configure
; then
2125 echo "$ac_t""running configure fragment for $dest" 1>&6
2129 if test -z "$uname"; then
2130 if test -r $sysdep_dir/$dir/uname.c ||
2131 test -r $sysdep_dir/$dir/uname.S ||
2132 { test -r $sysdep_dir/$dir/syscalls.list
&&
2133 grep '^uname[ ]' $sysdep_dir/$dir/syscalls.list
>/dev
/null
; }; then
2141 # If we will use the generic uname implementation, we must figure out what
2142 # it will say by examining the system, and write the results in config-name.h.
2143 if test "$uname" = generic
; then
2145 uname_sysname
=`echo $config_os | sed 's/[0-9.]*$//'`
2146 if test $uname_sysname != $config_os; then
2147 config_release
=`echo $config_os | sed s/$uname_sysname//`
2150 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
2151 echo "configure:2152: checking OS release for uname" >&5
2152 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2155 kernel_release
=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
2156 if test x
`echo "$config_release" | sed "s/^$kernel_release//"` \
2157 != x
$config_release; then
2158 # The configuration release is a substring of the kernel release.
2159 libc_cv_uname_release
=$kernel_release
2160 elif test x
$config_release != x
; then
2161 libc_cv_uname_release
=$config_release
2162 elif test x
$kernel_release != x
; then
2163 libc_cv_uname_release
=$kernel_release
2165 libc_cv_uname_release
=unknown
2169 echo "$ac_t""$libc_cv_uname_release" 1>&6
2170 uname_release
="$libc_cv_uname_release"
2172 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
2173 echo "configure:2174: checking OS version for uname" >&5
2174 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
2175 echo $ac_n "(cached) $ac_c" 1>&6
2177 kernel_version
=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
2178 if test -n "$kernel_version"; then
2179 libc_cv_uname_version
="$kernel_version"
2181 libc_cv_uname_version
=unknown
2185 echo "$ac_t""$libc_cv_uname_version" 1>&6
2186 uname_version
="$libc_cv_uname_version"
2188 config_uname
=config-name.h
:config-name.
in
2190 # For non-generic uname, we don't need to create config-name.h at all.
2194 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
2195 echo "configure:2196: checking stdio selection" >&5
2198 libio
) cat >> confdefs.h
<<\EOF
2199 #define USE_IN_LIBIO 1
2202 default
) stdio
=stdio
;;
2204 echo "$ac_t""$stdio" 1>&6
2213 if test $gnu_ld = yes; then
2214 cat >> confdefs.h
<<\EOF
2215 #define HAVE_GNU_LD 1
2219 if test $gnu_as = yes; then
2220 cat >> confdefs.h
<<\EOF
2221 #define HAVE_GNU_AS 1
2225 if test $elf = yes; then
2226 cat >> confdefs.h
<<\EOF
2233 if test $shared = default
; then
2234 if test $gnu_ld = yes; then
2237 # For now we do not assume shared libs are available. In future more
2238 # tests might become available.
2247 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
2250 config_makefile
=Makefile
2253 VERSION
=`sed -e 's/^#define VERSION "\([^"]*\)"/\1/p' -e d < $srcdir/version.h`
2256 if test $libc_cv_gcc_pipe_bug = yes; then
2261 if test -r /vmunix
; then
2262 kernel_id
=`strings /vmunix | grep UNIX`
2263 elif test -r /dynix
; then
2264 kernel_id
=`strings /dynix | grep DYNIX`
2272 cat > confcache
<<\EOF
2273 # This file is a shell script that caches the results of configure
2274 # tests run on this system so they can be shared between configure
2275 # scripts and configure runs. It is not useful on other systems.
2276 # If it contains results you don't want to keep, you may remove or edit it.
2278 # By default, configure uses ./config.cache as the cache file,
2279 # creating it if it does not exist already. You can give configure
2280 # the --cache-file=FILE option to use a different cache file; that is
2281 # what configure does when it calls configure scripts in
2282 # subdirectories, so they share the cache.
2283 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2284 # config.status only pays attention to the cache file if you give it the
2285 # --recheck option to rerun configure.
2288 # The following way of writing the cache mishandles newlines in values,
2289 # but we know of no workaround that is simple, portable, and efficient.
2290 # So, don't put newlines in cache variables' values.
2291 # Ultrix sh set writes to stderr and can't be redirected directly,
2292 # and sets the high bit in the cache file unless we assign to the vars.
2294 case `(ac_space=' '; set) 2>&1` in
2296 # `set' does not quote correctly, so add quotes (double-quote substitution
2297 # turns \\\\ into \\, and sed turns \\ into \).
2299 -e "s/'/'\\\\''/g" \
2300 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2303 # `set' quotes correctly as required by POSIX, so do not add quotes.
2304 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2307 if cmp -s $cache_file confcache
; then
2310 if test -w $cache_file; then
2311 echo "updating cache $cache_file"
2312 cat confcache
> $cache_file
2314 echo "not updating unwritable cache $cache_file"
2319 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2321 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2322 # Let make expand exec_prefix.
2323 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2325 # Any assignment to VPATH causes Sun make to only execute
2326 # the first set of double-colon rules, so remove it if not needed.
2327 # If there is a colon in the path, we need to keep it.
2328 if test "x$srcdir" = x.
; then
2329 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2332 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2334 DEFS
=-DHAVE_CONFIG_H
2336 # Without the "./", some shells look in PATH for config.status.
2337 : ${CONFIG_STATUS=./config.status}
2339 echo creating
$CONFIG_STATUS
2340 rm -f $CONFIG_STATUS
2341 cat > $CONFIG_STATUS <<EOF
2343 # Generated automatically by configure.
2344 # Run this file to recreate the current configuration.
2345 # This directory was configured as follows,
2346 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2348 # $0 $ac_configure_args
2350 # Compiler output produced by configure, useful for debugging
2351 # configure, is in ./config.log if it exists.
2353 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2356 case "\$ac_option" in
2357 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2358 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2359 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2360 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2361 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2363 -help | --help | --hel | --he | --h)
2364 echo "\$ac_cs_usage"; exit 0 ;;
2365 *) echo "\$ac_cs_usage"; exit 1 ;;
2369 ac_given_srcdir=$srcdir
2370 ac_given_INSTALL="$INSTALL"
2372 trap 'rm -fr `echo "config.make glibcbug ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2374 cat >> $CONFIG_STATUS <<EOF
2376 # Protect against being on the right side of a sed subst in config.status.
2377 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2378 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2381 s%@CFLAGS@%$CFLAGS%g
2382 s%@CPPFLAGS@%$CPPFLAGS%g
2383 s%@CXXFLAGS@%$CXXFLAGS%g
2385 s%@LDFLAGS@%$LDFLAGS%g
2387 s%@exec_prefix@%$exec_prefix%g
2388 s%@prefix@%$prefix%g
2389 s%@program_transform_name@%$program_transform_name%g
2390 s%@bindir@%$bindir%g
2391 s%@sbindir@%$sbindir%g
2392 s%@libexecdir@%$libexecdir%g
2393 s%@datadir@%$datadir%g
2394 s%@sysconfdir@%$sysconfdir%g
2395 s%@sharedstatedir@%$sharedstatedir%g
2396 s%@localstatedir@%$localstatedir%g
2397 s%@libdir@%$libdir%g
2398 s%@includedir@%$includedir%g
2399 s%@oldincludedir@%$oldincludedir%g
2400 s%@infodir@%$infodir%g
2401 s%@mandir@%$mandir%g
2402 s%@subdirs@%$subdirs%g
2404 s%@host_alias@%$host_alias%g
2405 s%@host_cpu@%$host_cpu%g
2406 s%@host_vendor@%$host_vendor%g
2407 s%@host_os@%$host_os%g
2408 s%@base_machine@%$base_machine%g
2409 s%@sysnames@%$sysnames%g
2410 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2411 s%@INSTALL_DATA@%$INSTALL_DATA%g
2413 s%@MSGFMT@%$MSGFMT%g
2415 s%@cross_linkable@%$cross_linkable%g
2417 s%@build_alias@%$build_alias%g
2418 s%@build_cpu@%$build_cpu%g
2419 s%@build_vendor@%$build_vendor%g
2420 s%@build_os@%$build_os%g
2421 s%@BUILD_CC@%$BUILD_CC%g
2422 s%@cross_compiling@%$cross_compiling%g
2425 s%@RANLIB@%$RANLIB%g
2427 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
2429 s%@libc_cv_have_ksh@%$libc_cv_have_ksh%g
2430 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
2431 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
2432 s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
2433 s%@uname_sysname@%$uname_sysname%g
2434 s%@uname_release@%$uname_release%g
2435 s%@uname_version@%$uname_version%g
2437 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
2438 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
2439 s%@libc_cv_rootsbindir@%$libc_cv_rootsbindir%g
2440 s%@has_ldconfig@%$has_ldconfig%g
2441 s%@gnu_ld@%$gnu_ld%g
2442 s%@gnu_as@%$gnu_as%g
2444 s%@shared@%$shared%g
2445 s%@profile@%$profile%g
2446 s%@omitfp@%$omitfp%g
2447 s%@DEFINES@%$DEFINES%g
2448 s%@VERSION@%$VERSION%g
2453 cat >> $CONFIG_STATUS <<\EOF
2455 # Split the substitutions into bite-sized pieces for seds with
2456 # small command number limits, like on Digital OSF/1 and HP-UX.
2457 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2458 ac_file
=1 # Number of current file.
2459 ac_beg
=1 # First line for current file.
2460 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2463 while $ac_more_lines; do
2464 if test $ac_beg -gt 1; then
2465 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2467 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2469 if test ! -s conftest.s
$ac_file; then
2471 rm -f conftest.s
$ac_file
2473 if test -z "$ac_sed_cmds"; then
2474 ac_sed_cmds
="sed -f conftest.s$ac_file"
2476 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2478 ac_file
=`expr $ac_file + 1`
2480 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2483 if test -z "$ac_sed_cmds"; then
2488 cat >> $CONFIG_STATUS <<EOF
2490 CONFIG_FILES=\${CONFIG_FILES-"config.make glibcbug ${config_makefile} ${config_uname}"}
2492 cat >> $CONFIG_STATUS <<\EOF
2493 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2494 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2496 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2497 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2498 *) ac_file_in
="${ac_file}.in" ;;
2501 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2503 # Remove last slash and all that follows it. Not all systems have dirname.
2504 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2505 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2506 # The file is in a subdirectory.
2507 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2508 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2509 # A "../" for each directory in $ac_dir_suffix.
2510 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2512 ac_dir_suffix
= ac_dots
=
2515 case "$ac_given_srcdir" in
2517 if test -z "$ac_dots"; then top_srcdir
=.
2518 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2519 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2521 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2522 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2525 case "$ac_given_INSTALL" in
2526 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2527 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2530 echo creating
"$ac_file"
2532 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2534 *Makefile
*) ac_comsub
="1i\\
2535 # $configure_input" ;;
2539 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2541 s%@configure_input@%$configure_input%g
2542 s%@srcdir@%$srcdir%g
2543 s%@top_srcdir@%$top_srcdir%g
2544 s%@INSTALL@%$INSTALL%g
2545 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2549 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2550 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2552 # ac_d sets the value in "#define NAME VALUE" lines.
2553 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2554 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2557 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2558 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2559 ac_uB
='\([ ]\)%\1#\2define\3'
2562 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2563 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2564 ac_eB
='$%\1#\2define\3'
2568 if test "${CONFIG_HEADERS+set}" != set; then
2570 cat >> $CONFIG_STATUS <<EOF
2571 CONFIG_HEADERS="config.h"
2573 cat >> $CONFIG_STATUS <<\EOF
2575 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2576 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2578 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2579 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2580 *) ac_file_in
="${ac_file}.in" ;;
2583 echo creating
$ac_file
2585 rm -f conftest.frag conftest.
in conftest.out
2586 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2587 cat $ac_file_inputs > conftest.
in
2591 # Transform confdefs.h into a sed script conftest.vals that substitutes
2592 # the proper values into config.h.in to produce config.h. And first:
2593 # Protect against being on the right side of a sed subst in config.status.
2594 # Protect against being in an unquoted here document in config.status.
2596 cat > conftest.hdr
<<\EOF
2599 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2603 sed -n -f conftest.hdr confdefs.h > conftest.vals
2606 # This sed command replaces #undef with comments. This is necessary, for
2607 # example, in the case of _POSIX_SOURCE, which is predefined and required
2608 # on some systems where configure will not decide to define it.
2609 cat >> conftest.vals <<\EOF
2610 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2613 # Break up conftest.vals because some shells have a limit on
2614 # the size of here documents, and old seds have small limits too.
2619 ac_lines=`grep -c . conftest.vals
`
2620 # grep -c gives empty output for an empty file on some AIX systems.
2621 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2622 # Write a limited-size here document to conftest.frag.
2623 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2624 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2626 sed -f conftest.frag conftest.in > conftest.out
2628 mv conftest.out conftest.in
2630 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2632 mv conftest.tail conftest.vals
2636 cat >> $CONFIG_STATUS <<\EOF
2637 rm -f conftest.frag conftest.h
2638 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2639 cat conftest.in >> conftest.h
2641 if cmp -s $ac_file conftest.h 2>/dev/null; then
2642 echo "$ac_file is unchanged"
2645 # Remove last slash and all that follows it. Not all systems have dirname.
2646 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2647 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2648 # The file is in a subdirectory.
2649 test ! -d "$ac_dir" && mkdir "$ac_dir"
2652 mv conftest.h $ac_file
2658 cat >> $CONFIG_STATUS <<EOF
2659 ac_sources="`echo $libc_link_sources`"
2660 ac_dests="`echo $libc_link_dests`"
2663 cat >> $CONFIG_STATUS <<\EOF
2664 srcdir=$ac_given_srcdir
2665 while test -n "$ac_sources"; do
2666 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2667 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2669 echo "linking $srcdir/$ac_source to $ac_dest"
2671 if test ! -r $srcdir/$ac_source; then
2672 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2676 # Make relative symlinks.
2677 # Remove last slash and all that follows it. Not all systems have dirname.
2678 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
2679 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2680 # The dest file is in a subdirectory.
2681 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2682 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
2683 # A "../" for each directory in $ac_dest_dir_suffix.
2684 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
2686 ac_dest_dir_suffix= ac_dots=
2690 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2691 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2694 # Make a symlink if possible; otherwise try a hard link.
2695 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2696 ln $srcdir/$ac_source $ac_dest; then :
2698 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2702 cat >> $CONFIG_STATUS <<EOF
2704 echo '$config_vars' >> config.make
2706 cat >> $CONFIG_STATUS <<\EOF
2708 if test "$realCC"; then
2709 sed -e 's/%{pipe:-}/%|/g' `$realCC -print-file-name=specs
` >specsT
2715 chmod +x $CONFIG_STATUS
2716 rm -fr confdefs* $ac_clean_files
2717 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2719 if test "$no_recursion" != yes; then
2721 # Remove --cache-file and --srcdir arguments so they do not pile up.
2722 ac_sub_configure_args=
2724 for ac_arg in $ac_configure_args; do
2725 if test -n "$ac_prev"; then
2730 -cache-file | --cache-file | --cache-fil | --cache-fi \
2731 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2732 ac_prev=cache_file ;;
2733 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2734 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2736 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2738 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2740 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2744 for ac_config_dir in $add_ons; do
2746 # Do not complain, so a configure script can configure whichever
2747 # parts of a large source tree are present.
2748 if test ! -d $srcdir/$ac_config_dir; then
2752 echo configuring in $ac_config_dir
2757 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2759 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2767 # A "../" for each directory in /$ac_config_dir.
2768 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2771 .) # No --srcdir option. We are building in place.
2772 ac_sub_srcdir=$srcdir ;;
2773 /*) # Absolute path.
2774 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2776 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2779 # Check for guested configure; otherwise get Cygnus style configure.
2780 if test -f $ac_sub_srcdir/configure; then
2781 ac_sub_configure=$ac_sub_srcdir/configure
2782 elif test -f $ac_sub_srcdir/configure.in; then
2783 ac_sub_configure=$ac_configure
2785 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2789 # The recursion is here.
2790 if test -n "$ac_sub_configure"; then
2792 # Make the cache file name correct relative to the subdirectory.
2793 case "$cache_file" in
2794 /*) ac_sub_cache_file=$cache_file ;;
2796 ac_sub_cache_file="$ac_dots$cache_file" ;;
2798 case "$ac_given_INSTALL" in
2799 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2800 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2803 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2804 # The eval makes quoting arguments work.
2805 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2808 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }