update from main archive 961208
[glibc.git] / configure
blob14e3c2db2873fb900bb96bea7074e566586184d0
1 #! /bin/sh
3 # From configure.in CVSid
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.12
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Defaults:
12 ac_help=
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
15 ac_help="$ac_help
16 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)"
17 ac_help="$ac_help
18 --with-gettext=DIR find GNU gettext source code in DIR (not needed)"
19 ac_help="$ac_help
20 --with-fp if using floating-point hardware [default=yes]"
21 ac_help="$ac_help
22 --with-gnu-binutils if using GNU binutils (as and ld)"
23 ac_help="$ac_help
24 --with-gnu-ld if using GNU ld (in the binutils package)"
25 ac_help="$ac_help
26 --with-gnu-as if using GNU as (in the binutils package)"
27 ac_help="$ac_help
28 --with-elf if using the ELF object format"
29 ac_help="$ac_help
30 --enable-libio build in GNU libio instead of GNU stdio"
31 ac_help="$ac_help
32 --enable-new-malloc use the new malloc implementation. This is the
33 default for Linux, others use the old malloc."
34 ac_help="$ac_help
35 --disable-sanity-checks really do not use threads (should not be used
36 except in special situations) [default=yes]"
37 ac_help="$ac_help
38 --enable-shared build shared library [default=yes if GNU ld & ELF]"
39 ac_help="$ac_help
40 --enable-profile build profiled library [default=yes]"
41 ac_help="$ac_help
42 --enable-omitfp build undebuggable optimized library [default=no]"
43 ac_help="$ac_help
44 --enable-add-ons=DIR... configure and build named extra directories"
46 # Initialize some variables set by options.
47 # The variables have the same names as the options, with
48 # dashes changed to underlines.
49 build=NONE
50 cache_file=./config.cache
51 exec_prefix=NONE
52 host=NONE
53 no_create=
54 nonopt=NONE
55 no_recursion=
56 prefix=NONE
57 program_prefix=NONE
58 program_suffix=NONE
59 program_transform_name=s,x,x,
60 silent=
61 site=
62 srcdir=
63 target=NONE
64 verbose=
65 x_includes=NONE
66 x_libraries=NONE
67 bindir='${exec_prefix}/bin'
68 sbindir='${exec_prefix}/sbin'
69 libexecdir='${exec_prefix}/libexec'
70 datadir='${prefix}/share'
71 sysconfdir='${prefix}/etc'
72 sharedstatedir='${prefix}/com'
73 localstatedir='${prefix}/var'
74 libdir='${exec_prefix}/lib'
75 includedir='${prefix}/include'
76 oldincludedir='/usr/include'
77 infodir='${prefix}/info'
78 mandir='${prefix}/man'
80 # Initialize some other variables.
81 subdirs=
82 MFLAGS= MAKEFLAGS=
83 # Maximum number of lines to put in a shell here document.
84 ac_max_here_lines=12
86 ac_prev=
87 for ac_option
90 # If the previous option needs an argument, assign it.
91 if test -n "$ac_prev"; then
92 eval "$ac_prev=\$ac_option"
93 ac_prev=
94 continue
97 case "$ac_option" in
98 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
99 *) ac_optarg= ;;
100 esac
102 # Accept the important Cygnus configure options, so we can diagnose typos.
104 case "$ac_option" in
106 -bindir | --bindir | --bindi | --bind | --bin | --bi)
107 ac_prev=bindir ;;
108 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
109 bindir="$ac_optarg" ;;
111 -build | --build | --buil | --bui | --bu)
112 ac_prev=build ;;
113 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
114 build="$ac_optarg" ;;
116 -cache-file | --cache-file | --cache-fil | --cache-fi \
117 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
118 ac_prev=cache_file ;;
119 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
120 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
121 cache_file="$ac_optarg" ;;
123 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
124 ac_prev=datadir ;;
125 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
126 | --da=*)
127 datadir="$ac_optarg" ;;
129 -disable-* | --disable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}=no" ;;
138 -enable-* | --enable-*)
139 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
140 # Reject names that are not valid shell variable names.
141 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
145 case "$ac_option" in
146 *=*) ;;
147 *) ac_optarg=yes ;;
148 esac
149 eval "enable_${ac_feature}='$ac_optarg'" ;;
151 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
152 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
153 | --exec | --exe | --ex)
154 ac_prev=exec_prefix ;;
155 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
156 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
157 | --exec=* | --exe=* | --ex=*)
158 exec_prefix="$ac_optarg" ;;
160 -gas | --gas | --ga | --g)
161 # Obsolete; use --with-gas.
162 with_gas=yes ;;
164 -help | --help | --hel | --he)
165 # Omit some internal or obsolete options to make the list less imposing.
166 # This message is too long to be a string in the A/UX 3.1 sh.
167 cat << EOF
168 Usage: configure [options] [host]
169 Options: [defaults in brackets after descriptions]
170 Configuration:
171 --cache-file=FILE cache test results in FILE
172 --help print this message
173 --no-create do not create output files
174 --quiet, --silent do not print \`checking...' messages
175 --version print the version of autoconf that created configure
176 Directory and file names:
177 --prefix=PREFIX install architecture-independent files in PREFIX
178 [$ac_default_prefix]
179 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
180 [same as prefix]
181 --bindir=DIR user executables in DIR [EPREFIX/bin]
182 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
183 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
184 --datadir=DIR read-only architecture-independent data in DIR
185 [PREFIX/share]
186 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
187 --sharedstatedir=DIR modifiable architecture-independent data in DIR
188 [PREFIX/com]
189 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
190 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
191 --includedir=DIR C header files in DIR [PREFIX/include]
192 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
193 --infodir=DIR info documentation in DIR [PREFIX/info]
194 --mandir=DIR man documentation in DIR [PREFIX/man]
195 --srcdir=DIR find the sources in DIR [configure dir or ..]
196 --program-prefix=PREFIX prepend PREFIX to installed program names
197 --program-suffix=SUFFIX append SUFFIX to installed program names
198 --program-transform-name=PROGRAM
199 run sed PROGRAM on installed program names
201 cat << EOF
202 Host type:
203 --build=BUILD configure for building on BUILD [BUILD=HOST]
204 --host=HOST configure for HOST [guessed]
205 --target=TARGET configure for TARGET [TARGET=HOST]
206 Features and packages:
207 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
208 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
209 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
210 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
211 --x-includes=DIR X include files are in DIR
212 --x-libraries=DIR X library files are in DIR
214 if test -n "$ac_help"; then
215 echo "--enable and --with options recognized:$ac_help"
217 exit 0 ;;
219 -host | --host | --hos | --ho)
220 ac_prev=host ;;
221 -host=* | --host=* | --hos=* | --ho=*)
222 host="$ac_optarg" ;;
224 -includedir | --includedir | --includedi | --included | --include \
225 | --includ | --inclu | --incl | --inc)
226 ac_prev=includedir ;;
227 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
228 | --includ=* | --inclu=* | --incl=* | --inc=*)
229 includedir="$ac_optarg" ;;
231 -infodir | --infodir | --infodi | --infod | --info | --inf)
232 ac_prev=infodir ;;
233 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
234 infodir="$ac_optarg" ;;
236 -libdir | --libdir | --libdi | --libd)
237 ac_prev=libdir ;;
238 -libdir=* | --libdir=* | --libdi=* | --libd=*)
239 libdir="$ac_optarg" ;;
241 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
242 | --libexe | --libex | --libe)
243 ac_prev=libexecdir ;;
244 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
245 | --libexe=* | --libex=* | --libe=*)
246 libexecdir="$ac_optarg" ;;
248 -localstatedir | --localstatedir | --localstatedi | --localstated \
249 | --localstate | --localstat | --localsta | --localst \
250 | --locals | --local | --loca | --loc | --lo)
251 ac_prev=localstatedir ;;
252 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
253 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
254 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
255 localstatedir="$ac_optarg" ;;
257 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
258 ac_prev=mandir ;;
259 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
260 mandir="$ac_optarg" ;;
262 -nfp | --nfp | --nf)
263 # Obsolete; use --without-fp.
264 with_fp=no ;;
266 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
267 | --no-cr | --no-c)
268 no_create=yes ;;
270 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
271 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
272 no_recursion=yes ;;
274 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
275 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
276 | --oldin | --oldi | --old | --ol | --o)
277 ac_prev=oldincludedir ;;
278 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
279 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
280 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
281 oldincludedir="$ac_optarg" ;;
283 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
284 ac_prev=prefix ;;
285 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
286 prefix="$ac_optarg" ;;
288 -program-prefix | --program-prefix | --program-prefi | --program-pref \
289 | --program-pre | --program-pr | --program-p)
290 ac_prev=program_prefix ;;
291 -program-prefix=* | --program-prefix=* | --program-prefi=* \
292 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
293 program_prefix="$ac_optarg" ;;
295 -program-suffix | --program-suffix | --program-suffi | --program-suff \
296 | --program-suf | --program-su | --program-s)
297 ac_prev=program_suffix ;;
298 -program-suffix=* | --program-suffix=* | --program-suffi=* \
299 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
300 program_suffix="$ac_optarg" ;;
302 -program-transform-name | --program-transform-name \
303 | --program-transform-nam | --program-transform-na \
304 | --program-transform-n | --program-transform- \
305 | --program-transform | --program-transfor \
306 | --program-transfo | --program-transf \
307 | --program-trans | --program-tran \
308 | --progr-tra | --program-tr | --program-t)
309 ac_prev=program_transform_name ;;
310 -program-transform-name=* | --program-transform-name=* \
311 | --program-transform-nam=* | --program-transform-na=* \
312 | --program-transform-n=* | --program-transform-=* \
313 | --program-transform=* | --program-transfor=* \
314 | --program-transfo=* | --program-transf=* \
315 | --program-trans=* | --program-tran=* \
316 | --progr-tra=* | --program-tr=* | --program-t=*)
317 program_transform_name="$ac_optarg" ;;
319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
320 | -silent | --silent | --silen | --sile | --sil)
321 silent=yes ;;
323 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
324 ac_prev=sbindir ;;
325 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
326 | --sbi=* | --sb=*)
327 sbindir="$ac_optarg" ;;
329 -sharedstatedir | --sharedstatedir | --sharedstatedi \
330 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
331 | --sharedst | --shareds | --shared | --share | --shar \
332 | --sha | --sh)
333 ac_prev=sharedstatedir ;;
334 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
335 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
336 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
337 | --sha=* | --sh=*)
338 sharedstatedir="$ac_optarg" ;;
340 -site | --site | --sit)
341 ac_prev=site ;;
342 -site=* | --site=* | --sit=*)
343 site="$ac_optarg" ;;
345 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
346 ac_prev=srcdir ;;
347 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
348 srcdir="$ac_optarg" ;;
350 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
351 | --syscon | --sysco | --sysc | --sys | --sy)
352 ac_prev=sysconfdir ;;
353 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
354 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
355 sysconfdir="$ac_optarg" ;;
357 -target | --target | --targe | --targ | --tar | --ta | --t)
358 ac_prev=target ;;
359 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
360 target="$ac_optarg" ;;
362 -v | -verbose | --verbose | --verbos | --verbo | --verb)
363 verbose=yes ;;
365 -version | --version | --versio | --versi | --vers)
366 echo "configure generated by autoconf version 2.12"
367 exit 0 ;;
369 -with-* | --with-*)
370 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 case "$ac_option" in
377 *=*) ;;
378 *) ac_optarg=yes ;;
379 esac
380 eval "with_${ac_package}='$ac_optarg'" ;;
382 -without-* | --without-*)
383 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 ac_package=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}=no" ;;
391 --x)
392 # Obsolete; use --with-x.
393 with_x=yes ;;
395 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
396 | --x-incl | --x-inc | --x-in | --x-i)
397 ac_prev=x_includes ;;
398 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
399 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
400 x_includes="$ac_optarg" ;;
402 -x-libraries | --x-libraries | --x-librarie | --x-librari \
403 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
404 ac_prev=x_libraries ;;
405 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
406 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
407 x_libraries="$ac_optarg" ;;
409 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
413 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
414 echo "configure: warning: $ac_option: invalid host type" 1>&2
416 if test "x$nonopt" != xNONE; then
417 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419 nonopt="$ac_option"
422 esac
423 done
425 if test -n "$ac_prev"; then
426 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431 # File descriptor usage:
432 # 0 standard input
433 # 1 file creation
434 # 2 errors and warnings
435 # 3 some systems may open it to /dev/tty
436 # 4 used on the Kubota Titan
437 # 6 checking for... messages and results
438 # 5 compiler messages saved in config.log
439 if test "$silent" = yes; then
440 exec 6>/dev/null
441 else
442 exec 6>&1
444 exec 5>./config.log
446 echo "\
447 This file contains any messages produced by compilers while
448 running configure, to aid debugging if configure makes a mistake.
449 " 1>&5
451 # Strip out --no-create and --no-recursion so they do not pile up.
452 # Also quote any args containing shell metacharacters.
453 ac_configure_args=
454 for ac_arg
456 case "$ac_arg" in
457 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
458 | --no-cr | --no-c) ;;
459 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
460 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
461 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
462 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
463 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
464 esac
465 done
467 # NLS nuisances.
468 # Only set these to C if already set. These must not be set unconditionally
469 # because not all systems understand e.g. LANG=C (notably SCO).
470 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
471 # Non-C LC_CTYPE values break the ctype check.
472 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
473 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
474 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
475 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
478 rm -rf conftest* confdefs.h
479 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
480 echo > confdefs.h
482 # A filename unique to this package, relative to the directory that
483 # configure is in, which we can look for to find out if srcdir is correct.
484 ac_unique_file=features.h
486 # Find the source files, if location was not specified.
487 if test -z "$srcdir"; then
488 ac_srcdir_defaulted=yes
489 # Try the directory containing this script, then its parent.
490 ac_prog=$0
491 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
492 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
493 srcdir=$ac_confdir
494 if test ! -r $srcdir/$ac_unique_file; then
495 srcdir=..
497 else
498 ac_srcdir_defaulted=no
500 if test ! -r $srcdir/$ac_unique_file; then
501 if test "$ac_srcdir_defaulted" = yes; then
502 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
503 else
504 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
507 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509 # Prefer explicitly selected file to automatically selected ones.
510 if test -z "$CONFIG_SITE"; then
511 if test "x$prefix" != xNONE; then
512 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
513 else
514 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
517 for ac_site_file in $CONFIG_SITE; do
518 if test -r "$ac_site_file"; then
519 echo "loading site script $ac_site_file"
520 . "$ac_site_file"
522 done
524 if test -r "$cache_file"; then
525 echo "loading cache $cache_file"
526 . $cache_file
527 else
528 echo "creating cache $cache_file"
529 > $cache_file
532 ac_ext=c
533 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
534 ac_cpp='$CPP $CPPFLAGS'
535 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
536 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
537 cross_compiling=$ac_cv_prog_cc_cross
539 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
540 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
541 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
542 ac_n= ac_c='
543 ' ac_t=' '
544 else
545 ac_n=-n ac_c= ac_t=
547 else
548 ac_n= ac_c='\c' ac_t=
551 if test -r /vmunix; then
552 kernel_id=`strings /vmunix | grep UNIX`
553 elif test -r /dynix; then
554 kernel_id=`strings /dynix | grep DYNIX`
555 else
556 kernel_id=
562 # This will get text that should go into config.make.
563 config_vars=
565 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
566 # Check whether --with-gmp or --without-gmp was given.
567 if test "${with_gmp+set}" = set; then
568 withval="$with_gmp"
569 case "$with_gmp" in
570 yes) { echo "configure: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" 1>&2; exit 1; } ;;
571 ''|no) ;;
572 *) config_vars="$config_vars
573 gmp-srcdir = $withval" ;;
574 esac
578 # Check for a --with-gettext argument and set gettext-srcdir in config.make.
579 # Check whether --with-gettext or --without-gettext was given.
580 if test "${with_gettext+set}" = set; then
581 withval="$with_gettext"
582 case "$with_gettext" in
583 yes)
584 { echo "configure: error: --with-gettext requires an argument; use --with-gettext=DIR" 1>&2; exit 1; } ;;
585 ''|no) ;;
587 config_vars="$config_vars
588 gettext-srcdir = $withval" ;;
589 esac
594 # Check whether --with-fp or --without-fp was given.
595 if test "${with_fp+set}" = set; then
596 withval="$with_fp"
597 with_fp=$withval
598 else
599 with_fp=yes
602 # Check whether --with-gnu-binutils or --without-gnu-binutils was given.
603 if test "${with_gnu_binutils+set}" = set; then
604 withval="$with_gnu_binutils"
605 gnu_binutils=$withval
606 else
607 gnu_binutils=no
610 # Check whether --with-gnu-ld or --without-gnu-ld was given.
611 if test "${with_gnu_ld+set}" = set; then
612 withval="$with_gnu_ld"
613 gnu_ld=$withval
614 else
615 gnu_ld=no
618 # Check whether --with-gnu-as or --without-gnu-as was given.
619 if test "${with_gnu_as+set}" = set; then
620 withval="$with_gnu_as"
621 gnu_as=$withval
622 else
623 gnu_as=no
626 test $gnu_binutils = yes && gnu_as=yes gnu_ld=yes
627 # Check whether --with-elf or --without-elf was given.
628 if test "${with_elf+set}" = set; then
629 withval="$with_elf"
630 elf=$withval
631 else
632 elf=no
636 # Check whether --enable-libio or --disable-libio was given.
637 if test "${enable_libio+set}" = set; then
638 enableval="$enable_libio"
639 if test $enableval = yes; then
640 stdio=libio
641 else
642 stdio=stdio
644 else
645 stdio=default
649 # Check whether --enable-new-malloc or --disable-new-malloc was given.
650 if test "${enable_new_malloc+set}" = set; then
651 enableval="$enable_new_malloc"
652 if test $enableval = yes; then
653 malloc=new-malloc
654 else
655 malloc=malloc
657 else
658 malloc=default
662 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
663 if test "${enable_sanity_checks+set}" = set; then
664 enableval="$enable_sanity_checks"
665 enable_sanity=$enableval
666 else
667 enable_sanity=yes
671 # Check whether --enable-shared or --disable-shared was given.
672 if test "${enable_shared+set}" = set; then
673 enableval="$enable_shared"
674 shared=$enableval
675 else
676 shared=default
679 # Check whether --enable-profile or --disable-profile was given.
680 if test "${enable_profile+set}" = set; then
681 enableval="$enable_profile"
682 profile=$enableval
683 else
684 profile=yes
687 # Check whether --enable-omitfp or --disable-omitfp was given.
688 if test "${enable_omitfp+set}" = set; then
689 enableval="$enable_omitfp"
690 omitfp=$enableval
691 else
692 omitfp=no
696 # Check whether --enable-add-ons or --disable-add-ons was given.
697 if test "${enable_add_ons+set}" = set; then
698 enableval="$enable_add_ons"
699 add_ons=`echo "$enableval" | sed 's/,/ /g'`
700 else
701 add_ons=
704 ac_aux_dir=
705 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
706 if test -f $ac_dir/install-sh; then
707 ac_aux_dir=$ac_dir
708 ac_install_sh="$ac_aux_dir/install-sh -c"
709 break
710 elif test -f $ac_dir/install.sh; then
711 ac_aux_dir=$ac_dir
712 ac_install_sh="$ac_aux_dir/install.sh -c"
713 break
715 done
716 if test -z "$ac_aux_dir"; then
717 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
719 ac_config_guess=$ac_aux_dir/config.guess
720 ac_config_sub=$ac_aux_dir/config.sub
721 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
723 subdirs="$add_ons"
725 add_ons_pfx=
726 if test x"$add_ons" != x; then
727 for f in $add_ons; do
728 add_ons_pfx="$add_ons_pfx $f/"
729 done
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
741 host_alias=$host
742 case "$host_alias" in
743 NONE)
744 case $nonopt in
745 NONE)
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; }
748 fi ;;
749 *) host_alias=$nonopt ;;
750 esac ;;
751 esac
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.
765 case "$host_os" in
766 linux*)
768 gnu*)
769 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
771 esac
773 # We keep the original values in `$config_*' and never modify them, so we
774 # can write them unchanged into config.make. Everything else uses
775 # $machine, $vendor, and $os, and changes them whenever convenient.
776 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
778 # Some configurations imply other options.
779 case "$host_os" in
780 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
781 # These systems always use GNU tools.
782 gnu_ld=yes gnu_as=yes ;;
783 esac
784 case "$host_os" in
785 linux*ecoff*)
787 gnu* | linux* | sysv4* | solaris2*)
788 # These systems (almost) always use the ELF format.
789 elf=yes
791 esac
793 machine=$config_machine
794 vendor=$config_vendor
795 os=$config_os
797 # Expand the configuration machine name into a subdirectory by architecture
798 # type and particular chip.
799 case "$machine" in
800 a29k | am29000) base_machine=a29k machine=a29k ;;
801 alpha*) base_machine=alpha machine=alpha/$machine ;;
802 hppa*) base_machine=hppa machine=hppa/$machine ;;
803 i[3456]86) base_machine=i386 machine=i386/$machine ;;
804 m680?0) base_machine=m68k machine=m68k/$machine ;;
805 m68k) base_machine=m68k machine=m68k/m68020 ;;
806 m88???) base_machine=m88k machine=m88k/$machine ;;
807 m88k) base_machine=m88k machine=m88k/m88100 ;;
808 mips*) base_machine=mips machine=mips/$machine ;;
809 mips64*) base_machine=mips64 machine=mips/mips64/$machine ;;
810 sparc[6789]) base_machine=sparc machine=sparc/$machine ;;
811 supersparc) base_machine=sparc machine=sparc/sparc8 ;;
812 esac
815 # Compute the list of sysdep directories for this configuration.
816 # This can take a while to compute.
817 sysdep_dir=$srcdir/sysdeps
818 echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6
819 echo "configure:820: checking sysdep dirs" >&5
820 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
821 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
823 case "$os" in
824 gnu*)
825 base_os=mach/hurd ;;
826 netbsd* | 386bsd* | freebsd* | bsdi*)
827 base_os=unix/bsd/bsd4.4 ;;
828 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
829 base_os=unix/bsd ;;
830 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
831 base_os=unix/sysv ;;
832 solaris[2-9]*)
833 base_os=unix/sysv/sysv4 ;;
834 none)
835 base_os=standalone ;;
837 base_os='' ;;
838 esac
840 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
841 tail=$os
842 ostry=$os
843 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
844 ostry="$ostry /$o"
845 tail=$o
846 done
847 o=`echo $tail | sed 's/[0-9]*$//'`
848 if test $o != $tail; then
849 ostry="$ostry /$o"
851 # For linux-gnu, try linux-gnu, then linux.
852 o=`echo $tail | sed 's/-.*$//'`
853 if test $o != $tail; then
854 ostry="$ostry /$o"
857 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
858 base=
859 tail=$base_os
860 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
861 set $b
862 base="$base /$1"
863 tail="$2"
864 done
866 # For sparc/sparc9, try sparc/sparc9 and then sparc.
867 mach=
868 tail=$machine
869 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
870 set $m
871 # Prepend the machine's FPU directory unless --without-fp.
872 if test "$with_fp" = yes; then
873 mach="$mach /$1/fpu"
875 mach="$mach /$1"
876 tail="$2"
877 done
880 # Find what sysdep directories exist.
881 sysnames=
882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
883 for d in $add_ons_pfx ''; do
884 for b in $base ''; do
885 for m0 in $mach ''; do
886 for v in /$vendor ''; do
887 for o in /$ostry ''; do
888 for m in $mach ''; do
889 if test "$m0$b$v$o$m"; then
890 try="${d}sysdeps$m0$b$v$o$m"
891 test -n "$enable_debug_configure" &&
892 echo "$0 DEBUG: try $try" >&2
893 case $try in
894 /*) dest=$try ;;
895 *) dest=$srcdir/$try ;;
896 esac
897 if test -d $dest; then
898 sysnames="$sysnames $try"
899 { test -n "$o" || test -n "$b"; } && os_used=t
900 { test -n "$m" || test -n "$m0"; } && machine_used=t
903 done
904 done
905 done
906 done
907 done
908 done
909 IFS="$ac_save_ifs"
911 if test -z "$os_used" && test "$os" != none; then
912 { echo "configure: error: Operating system $os is not supported." 1>&2; exit 1; }
914 if test -z "$machine_used" && test "$machine" != none; then
915 { echo "configure: error: The $machine is not supported." 1>&2; exit 1; }
918 # We have now validated the configuration.
921 # If using ELF, look for an `elf' subdirectory of each machine directory.
922 # We prepend these rather than inserting them whereever the machine appears
923 # because things specified by the machine's ELF ABI should override
924 # OS-specific things, and should always be the same for any OS on the
925 # machine (otherwise what's the point of an ABI?).
926 if test "$elf" = yes; then
927 elf_dirs=
928 for d in $add_ons_pfx ''; do
929 case $d in
930 /*) xsrcdir= ;;
931 *) xsrcdir=$srcdir/ ;;
932 esac
933 for m in $mach; do
934 if test -d $xsrcdir${d}sysdeps$m/elf; then
935 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
937 done
938 done
939 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
943 # Expand the list of system names into a full list of directories
944 # from each element's parent name and Implies file (if present).
945 set $sysnames
946 names=
947 while test $# -gt 0; do
948 name=$1
949 shift
951 case " $names " in *" $name "*)
952 # Already in the list.
953 continue
954 esac
956 # Report each name as we discover it, so there is no long pause in output.
957 echo $ac_n "$name $ac_c" >&6
959 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
961 case $name in
962 /*) xsrcdir= ;;
963 *) xsrcdir=$srcdir/ ;;
964 esac
965 test -n "$enable_debug_configure" &&
966 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
968 if test -f $xsrcdir$name/Implies; then
969 # Collect more names from the `Implies' file (removing comments).
970 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
971 implied=
972 for x in $implied_candidate; do
973 if test -d $xsrcdir$name_base/$x; then
974 implied="$implied $name_base/$x";
975 else
976 echo "configure: warning: $name/Implies specifies nonexistent $x" 1>&2
978 done
979 else
980 implied=
983 # Add NAME to the list of names.
984 names="$names $name"
986 # Find the parent of NAME, using the empty string if it has none.
987 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
989 # Add the names implied by NAME, and NAME's parent (if it has one), to
990 # the list of names to be processed (the argument list). We prepend the
991 # implied names to the list and append the parent. We want implied
992 # directories to come before further directories inferred from the
993 # configuration components; this ensures that for sysv4, unix/common
994 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
995 # after sysv4).
996 sysnames="`echo $implied $* $parent`"
997 test -n "$sysnames" && set $sysnames
998 done
1000 # Add the default directories.
1001 sysnames="$names sysdeps/generic sysdeps/stub"
1003 # The other names were emitted during the scan.
1004 echo "$ac_t""sysdeps/generic sysdeps/stub" 1>&6
1007 ### Locate tools.
1009 # Find a good install program. We prefer a C program (faster),
1010 # so one script is as good as another. But avoid the broken or
1011 # incompatible versions:
1012 # SysV /etc/install, /usr/sbin/install
1013 # SunOS /usr/etc/install
1014 # IRIX /sbin/install
1015 # AIX /bin/install
1016 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1017 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1018 # ./install, which can be erroneously created by make from ./install.sh.
1019 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1020 echo "configure:1021: checking for a BSD compatible install" >&5
1021 if test -z "$INSTALL"; then
1022 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1023 echo $ac_n "(cached) $ac_c" 1>&6
1024 else
1025 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1026 for ac_dir in $PATH; do
1027 # Account for people who put trailing slashes in PATH elements.
1028 case "$ac_dir/" in
1029 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1031 # OSF1 and SCO ODT 3.0 have their own names for install.
1032 for ac_prog in ginstall installbsd scoinst install; do
1033 if test -f $ac_dir/$ac_prog; then
1034 if test $ac_prog = install &&
1035 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1036 # AIX install. It has an incompatible calling convention.
1037 # OSF/1 installbsd also uses dspmsg, but is usable.
1039 else
1040 ac_cv_path_install="$ac_dir/$ac_prog -c"
1041 break 2
1044 done
1046 esac
1047 done
1048 IFS="$ac_save_IFS"
1051 if test "${ac_cv_path_install+set}" = set; then
1052 INSTALL="$ac_cv_path_install"
1053 else
1054 # As a last resort, use the slow shell script. We don't cache a
1055 # path for INSTALL within a source directory, because that will
1056 # break other packages using the cache if that directory is
1057 # removed, or if the path is relative.
1058 INSTALL="$ac_install_sh"
1061 echo "$ac_t""$INSTALL" 1>&6
1063 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1064 # It thinks the first close brace ends the variable substitution.
1065 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1067 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1069 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
1070 # The makefiles need to use a different form to find it in $srcdir.
1071 INSTALL='$(..)./install-sh -c'
1073 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1074 echo "configure:1075: checking whether ln -s works" >&5
1075 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1077 else
1078 rm -f conftestdata
1079 if ln -s X conftestdata 2>/dev/null
1080 then
1081 rm -f conftestdata
1082 ac_cv_prog_LN_S="ln -s"
1083 else
1084 ac_cv_prog_LN_S=ln
1087 LN_S="$ac_cv_prog_LN_S"
1088 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1089 echo "$ac_t""yes" 1>&6
1090 else
1091 echo "$ac_t""no" 1>&6
1094 for ac_prog in msgfmt gmsgfmt
1096 # Extract the first word of "$ac_prog", so it can be a program name with args.
1097 set dummy $ac_prog; ac_word=$2
1098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1099 echo "configure:1100: checking for $ac_word" >&5
1100 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1102 else
1103 if test -n "$MSGFMT"; then
1104 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
1105 else
1106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1107 for ac_dir in $PATH; do
1108 test -z "$ac_dir" && ac_dir=.
1109 if test -f $ac_dir/$ac_word; then
1110 ac_cv_prog_MSGFMT="$ac_prog"
1111 break
1113 done
1114 IFS="$ac_save_ifs"
1117 MSGFMT="$ac_cv_prog_MSGFMT"
1118 if test -n "$MSGFMT"; then
1119 echo "$ac_t""$MSGFMT" 1>&6
1120 else
1121 echo "$ac_t""no" 1>&6
1124 test -n "$MSGFMT" && break
1125 done
1126 test -n "$MSGFMT" || MSGFMT=":"
1129 echo $ac_n "checking build system type""... $ac_c" 1>&6
1130 echo "configure:1131: checking build system type" >&5
1132 build_alias=$build
1133 case "$build_alias" in
1134 NONE)
1135 case $nonopt in
1136 NONE) build_alias=$host_alias ;;
1137 *) build_alias=$nonopt ;;
1138 esac ;;
1139 esac
1141 build=`$ac_config_sub $build_alias`
1142 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1143 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1144 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1145 echo "$ac_t""$build" 1>&6
1147 if test $host != $build; then
1148 ac_tool_prefix=${host_alias}-
1149 else
1150 ac_tool_prefix=
1153 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1154 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1156 echo "configure:1157: checking for $ac_word" >&5
1157 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1159 else
1160 if test -n "$CC"; then
1161 ac_cv_prog_CC="$CC" # Let the user override the test.
1162 else
1163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1164 for ac_dir in $PATH; do
1165 test -z "$ac_dir" && ac_dir=.
1166 if test -f $ac_dir/$ac_word; then
1167 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1168 break
1170 done
1171 IFS="$ac_save_ifs"
1172 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="gcc"
1175 CC="$ac_cv_prog_CC"
1176 if test -n "$CC"; then
1177 echo "$ac_t""$CC" 1>&6
1178 else
1179 echo "$ac_t""no" 1>&6
1184 if test $host != $build; then
1185 # Extract the first word of "gcc cc", so it can be a program name with args.
1186 set dummy gcc cc; ac_word=$2
1187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1188 echo "configure:1189: checking for $ac_word" >&5
1189 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1190 echo $ac_n "(cached) $ac_c" 1>&6
1191 else
1192 if test -n "$BUILD_CC"; then
1193 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1194 else
1195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1196 for ac_dir in $PATH; do
1197 test -z "$ac_dir" && ac_dir=.
1198 if test -f $ac_dir/$ac_word; then
1199 ac_cv_prog_BUILD_CC=""
1200 break
1202 done
1203 IFS="$ac_save_ifs"
1206 BUILD_CC="$ac_cv_prog_BUILD_CC"
1207 if test -n "$BUILD_CC"; then
1208 echo "$ac_t""$BUILD_CC" 1>&6
1209 else
1210 echo "$ac_t""no" 1>&6
1214 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1215 echo "configure:1216: checking how to run the C preprocessor" >&5
1216 # On Suns, sometimes $CPP names a directory.
1217 if test -n "$CPP" && test -d "$CPP"; then
1218 CPP=
1220 if test -z "$CPP"; then
1221 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1222 echo $ac_n "(cached) $ac_c" 1>&6
1223 else
1224 # This must be in double quotes, not single quotes, because CPP may get
1225 # substituted into the Makefile and "${CC-cc}" will confuse make.
1226 CPP="${CC-cc} -E"
1227 # On the NeXT, cc -E runs the code through the compiler's parser,
1228 # not just through cpp.
1229 cat > conftest.$ac_ext <<EOF
1230 #line 1231 "configure"
1231 #include "confdefs.h"
1232 #include <assert.h>
1233 Syntax Error
1235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1236 { (eval echo configure:1237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1237 ac_err=`grep -v '^ *+' conftest.out`
1238 if test -z "$ac_err"; then
1240 else
1241 echo "$ac_err" >&5
1242 echo "configure: failed program was:" >&5
1243 cat conftest.$ac_ext >&5
1244 rm -rf conftest*
1245 CPP="${CC-cc} -E -traditional-cpp"
1246 cat > conftest.$ac_ext <<EOF
1247 #line 1248 "configure"
1248 #include "confdefs.h"
1249 #include <assert.h>
1250 Syntax Error
1252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1253 { (eval echo configure:1254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1254 ac_err=`grep -v '^ *+' conftest.out`
1255 if test -z "$ac_err"; then
1257 else
1258 echo "$ac_err" >&5
1259 echo "configure: failed program was:" >&5
1260 cat conftest.$ac_ext >&5
1261 rm -rf conftest*
1262 CPP=/lib/cpp
1264 rm -f conftest*
1266 rm -f conftest*
1267 ac_cv_prog_CPP="$CPP"
1269 CPP="$ac_cv_prog_CPP"
1270 else
1271 ac_cv_prog_CPP="$CPP"
1273 echo "$ac_t""$CPP" 1>&6
1275 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1276 set dummy ${ac_tool_prefix}ar; ac_word=$2
1277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1278 echo "configure:1279: checking for $ac_word" >&5
1279 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1281 else
1282 if test -n "$AR"; then
1283 ac_cv_prog_AR="$AR" # Let the user override the test.
1284 else
1285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1286 for ac_dir in $PATH; do
1287 test -z "$ac_dir" && ac_dir=.
1288 if test -f $ac_dir/$ac_word; then
1289 ac_cv_prog_AR="${ac_tool_prefix}ar"
1290 break
1292 done
1293 IFS="$ac_save_ifs"
1294 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1297 AR="$ac_cv_prog_AR"
1298 if test -n "$AR"; then
1299 echo "$ac_t""$AR" 1>&6
1300 else
1301 echo "$ac_t""no" 1>&6
1306 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1307 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1308 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1309 echo "configure:1310: checking for $ac_word" >&5
1310 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1312 else
1313 if test -n "$RANLIB"; then
1314 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1315 else
1316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1317 for ac_dir in $PATH; do
1318 test -z "$ac_dir" && ac_dir=.
1319 if test -f $ac_dir/$ac_word; then
1320 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1321 break
1323 done
1324 IFS="$ac_save_ifs"
1327 RANLIB="$ac_cv_prog_RANLIB"
1328 if test -n "$RANLIB"; then
1329 echo "$ac_t""$RANLIB" 1>&6
1330 else
1331 echo "$ac_t""no" 1>&6
1335 if test -z "$ac_cv_prog_RANLIB"; then
1336 if test -n "$ac_tool_prefix"; then
1337 # Extract the first word of "ranlib", so it can be a program name with args.
1338 set dummy ranlib; ac_word=$2
1339 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1340 echo "configure:1341: checking for $ac_word" >&5
1341 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1342 echo $ac_n "(cached) $ac_c" 1>&6
1343 else
1344 if test -n "$RANLIB"; then
1345 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1346 else
1347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1348 for ac_dir in $PATH; do
1349 test -z "$ac_dir" && ac_dir=.
1350 if test -f $ac_dir/$ac_word; then
1351 ac_cv_prog_RANLIB="ranlib"
1352 break
1354 done
1355 IFS="$ac_save_ifs"
1356 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1359 RANLIB="$ac_cv_prog_RANLIB"
1360 if test -n "$RANLIB"; then
1361 echo "$ac_t""$RANLIB" 1>&6
1362 else
1363 echo "$ac_t""no" 1>&6
1366 else
1367 RANLIB=":"
1372 # Extract the first word of "bash", so it can be a program name with args.
1373 set dummy bash; ac_word=$2
1374 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1375 echo "configure:1376: checking for $ac_word" >&5
1376 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1378 else
1379 case "$BASH" in
1381 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
1384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1385 for ac_dir in $PATH; do
1386 test -z "$ac_dir" && ac_dir=.
1387 if test -f $ac_dir/$ac_word; then
1388 ac_cv_path_BASH="$ac_dir/$ac_word"
1389 break
1391 done
1392 IFS="$ac_save_ifs"
1393 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
1395 esac
1397 BASH="$ac_cv_path_BASH"
1398 if test -n "$BASH"; then
1399 echo "$ac_t""$BASH" 1>&6
1400 else
1401 echo "$ac_t""no" 1>&6
1404 if test "$BASH" != no &&
1405 $BASH -c 'test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
1406 libc_cv_have_bash2=yes
1407 else
1408 libc_cv_have_bash2=no
1412 echo $ac_n "checking for signed size_t type""... $ac_c" 1>&6
1413 echo "configure:1414: checking for signed size_t type" >&5
1414 if eval "test \"`echo '$''{'libc_cv_signed_size_t'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1416 else
1417 echo '#include <stddef.h>
1418 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
1419 if eval "$ac_cpp conftest.c 2>/dev/null" \
1420 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
1421 libc_cv_signed_size_t=no
1422 else
1423 libc_cv_signed_size_t=yes
1425 rm -f conftest*
1428 echo "$ac_t""$libc_cv_signed_size_t" 1>&6
1429 if test $libc_cv_signed_size_t = yes; then
1430 cat >> confdefs.h <<\EOF
1431 #undef __SIZE_TYPE__
1432 #define __SIZE_TYPE__ unsigned
1436 echo $ac_n "checking for libc-friendly stddef.h""... $ac_c" 1>&6
1437 echo "configure:1438: checking for libc-friendly stddef.h" >&5
1438 if eval "test \"`echo '$''{'libc_cv_friendly_stddef'+set}'`\" = set"; then
1439 echo $ac_n "(cached) $ac_c" 1>&6
1440 else
1441 cat > conftest.$ac_ext <<EOF
1442 #line 1443 "configure"
1443 #include "confdefs.h"
1444 #define __need_size_t
1445 #define __need_wchar_t
1446 #include <stddef.h>
1447 #define __need_NULL
1448 #include <stddef.h>
1449 int main() {
1450 size_t size; wchar_t wchar;
1451 #ifdef offsetof
1452 #error stddef.h ignored __need_*
1453 #endif
1454 if (&size == NULL || &wchar == NULL) abort ();
1455 ; return 0; }
1457 if { (eval echo configure:1458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1458 rm -rf conftest*
1459 libc_cv_friendly_stddef=yes
1460 else
1461 echo "configure: failed program was:" >&5
1462 cat conftest.$ac_ext >&5
1463 rm -rf conftest*
1464 libc_cv_friendly_stddef=no
1466 rm -f conftest*
1469 echo "$ac_t""$libc_cv_friendly_stddef" 1>&6
1470 if test $libc_cv_friendly_stddef = yes; then
1471 config_vars="$config_vars
1472 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
1475 echo $ac_n "checking whether we need to use -P to assemble .S files""... $ac_c" 1>&6
1476 echo "configure:1477: checking whether we need to use -P to assemble .S files" >&5
1477 if eval "test \"`echo '$''{'libc_cv_need_minus_P'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1479 else
1480 cat > conftest.S <<EOF
1481 #include "confdefs.h"
1482 /* Nothing whatsoever. */
1484 if ${CC-cc} $CFLAGS -c conftest.S 2>/dev/null; then
1485 libc_cv_need_minus_P=no
1486 else
1487 libc_cv_need_minus_P=yes
1489 rm -f conftest*
1492 echo "$ac_t""$libc_cv_need_minus_P" 1>&6
1493 if test $libc_cv_need_minus_P = yes; then
1494 config_vars="$config_vars
1495 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
1498 echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
1499 echo "configure:1500: checking for assembler global-symbol directive" >&5
1500 if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1502 else
1503 libc_cv_asm_global_directive=UNKNOWN
1504 for ac_globl in .globl .global; do
1505 cat > conftest.s <<EOF
1506 .text
1507 ${ac_globl} foo
1508 foo: .long 0
1510 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1511 libc_cv_asm_global_directive=${ac_globl}
1513 rm -f conftest*
1514 test $libc_cv_asm_global_directive != UNKNOWN && break
1515 done
1518 echo "$ac_t""$libc_cv_asm_global_directive" 1>&6
1519 if test $libc_cv_asm_global_directive = UNKNOWN; then
1520 { echo "configure: error: cannot determine asm global directive" 1>&2; exit 1; }
1521 else
1522 cat >> confdefs.h <<EOF
1523 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
1528 echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
1529 echo "configure:1530: checking for .set assembler directive" >&5
1530 if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
1531 echo $ac_n "(cached) $ac_c" 1>&6
1532 else
1533 cat > conftest.s <<EOF
1534 .text
1535 foo: .long 0
1536 .set glibc_conftest_frobozz,foo
1537 $libc_cv_asm_global_directive glibc_conftest_frobozz
1539 # The alpha-dec-osf1 assembler gives only a warning for `.set'
1540 # (but it doesn't work), so we must do a linking check to be sure.
1541 cat > conftest1.c <<\EOF
1542 extern int glibc_conftest_frobozz;
1543 main () { printf ("%d\n", glibc_conftest_frobozz); }
1545 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
1546 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
1547 libc_cv_asm_set_directive=yes
1548 else
1549 libc_cv_asm_set_directive=no
1551 rm -f conftest*
1554 echo "$ac_t""$libc_cv_asm_set_directive" 1>&6
1555 if test $libc_cv_asm_set_directive = yes; then
1556 cat >> confdefs.h <<\EOF
1557 #define HAVE_ASM_SET_DIRECTIVE 1
1562 if test $elf != yes; then
1563 echo $ac_n "checking for .init and .fini sections""... $ac_c" 1>&6
1564 echo "configure:1565: checking for .init and .fini sections" >&5
1565 if eval "test \"`echo '$''{'libc_cv_have_initfini'+set}'`\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1567 else
1568 cat > conftest.$ac_ext <<EOF
1569 #line 1570 "configure"
1570 #include "confdefs.h"
1572 int main() {
1573 asm (".section .init");
1574 asm (".section .fini");
1575 asm (".text");
1576 ; return 0; }
1578 if { (eval echo configure:1579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1579 rm -rf conftest*
1580 libc_cv_have_initfini=yes
1581 else
1582 echo "configure: failed program was:" >&5
1583 cat conftest.$ac_ext >&5
1584 rm -rf conftest*
1585 libc_cv_have_initfini=no
1587 rm -f conftest*
1590 echo "$ac_t""$libc_cv_have_initfini" 1>&6
1591 if test $libc_cv_have_initfini = yes; then
1592 cat >> confdefs.h <<\EOF
1593 #define HAVE_INITFINI 1
1599 if test $elf = yes; then
1600 libc_cv_asm_underscores=no
1601 else
1602 echo $ac_n "checking for _ prefix on C symbol names""... $ac_c" 1>&6
1603 echo "configure:1604: checking for _ prefix on C symbol names" >&5
1604 if eval "test \"`echo '$''{'libc_cv_asm_underscores'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1606 else
1607 cat > conftest.$ac_ext <<EOF
1608 #line 1609 "configure"
1609 #include "confdefs.h"
1610 asm ("_glibc_foobar:");
1611 int main() {
1612 glibc_foobar ();
1613 ; return 0; }
1615 if { (eval echo configure:1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1616 rm -rf conftest*
1617 libc_cv_asm_underscores=yes
1618 else
1619 echo "configure: failed program was:" >&5
1620 cat conftest.$ac_ext >&5
1621 rm -rf conftest*
1622 libc_cv_asm_underscores=no
1624 rm -f conftest*
1627 echo "$ac_t""$libc_cv_asm_underscores" 1>&6
1629 if test $libc_cv_asm_underscores = no; then
1630 cat >> confdefs.h <<\EOF
1631 #define NO_UNDERSCORES 1
1636 if test $elf = yes; then
1637 libc_cv_weak_symbols=yes
1638 libc_cv_asm_weak_directive=yes
1639 libc_cv_asm_weakext_directive=no
1640 else
1641 echo $ac_n "checking for assembler .weak directive""... $ac_c" 1>&6
1642 echo "configure:1643: checking for assembler .weak directive" >&5
1643 if eval "test \"`echo '$''{'libc_cv_asm_weak_directive'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1645 else
1646 cat > conftest.s <<EOF
1647 .text
1648 ${libc_cv_asm_global_directive} foo
1649 foo: .long 0
1650 .weak foo
1651 .weak bar; bar = foo
1653 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1654 libc_cv_asm_weak_directive=yes
1655 else
1656 libc_cv_asm_weak_directive=no
1658 rm -f conftest*
1661 echo "$ac_t""$libc_cv_asm_weak_directive" 1>&6
1663 if test $libc_cv_asm_weak_directive = no; then
1664 echo $ac_n "checking for assembler .weakext directive""... $ac_c" 1>&6
1665 echo "configure:1666: checking for assembler .weakext directive" >&5
1666 if eval "test \"`echo '$''{'libc_cv_asm_weakext_directive'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1668 else
1669 cat > conftest.s <<EOF
1670 .text
1671 ${libc_cv_asm_global_directive} foo
1672 foo: .long 0
1673 .weakext foo
1674 .weakext foo, bar
1676 if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then
1677 libc_cv_asm_weakext_directive=yes
1678 else
1679 libc_cv_asm_weakext_directive=no
1681 rm -f conftest*
1684 echo "$ac_t""$libc_cv_asm_weakext_directive" 1>&6
1686 fi # no .weak
1687 fi # not ELF
1689 if test $libc_cv_asm_weak_directive = yes; then
1690 cat >> confdefs.h <<\EOF
1691 #define HAVE_ASM_WEAK_DIRECTIVE 1
1694 elif test $libc_cv_asm_weakext_directive = yes; then
1695 cat >> confdefs.h <<\EOF
1696 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
1701 echo $ac_n "checking for ld --no-whole-archive""... $ac_c" 1>&6
1702 echo "configure:1703: checking for ld --no-whole-archive" >&5
1703 if eval "test \"`echo '$''{'libc_cv_ld_no_whole_archive'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1705 else
1706 cat > conftest.c <<\EOF
1707 _start () {}
1708 int __eh_pc;
1709 __throw () {}
1711 if { ac_try='${CC-cc} $CFLAGS
1712 -nostdlib -nostartfiles -Wl,--no-whole-archive
1713 -o conftest conftest.c'; { (eval echo configure:1714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1714 libc_cv_ld_no_whole_archive=yes
1715 else
1716 libc_cv_ld_no_whole_archive=no
1718 rm -f conftest*
1721 echo "$ac_t""$libc_cv_ld_no_whole_archive" 1>&6
1723 echo $ac_n "checking for gcc -fno-exceptions""... $ac_c" 1>&6
1724 echo "configure:1725: checking for gcc -fno-exceptions" >&5
1725 if eval "test \"`echo '$''{'libc_cv_gcc_no_exceptions'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1727 else
1728 cat > conftest.c <<\EOF
1729 _start () {}
1730 int __eh_pc;
1731 __throw () {}
1733 if { ac_try='${CC-cc} $CFLAGS
1734 -nostdlib -nostartfiles -fno-exceptions
1735 -o conftest conftest.c'; { (eval echo configure:1736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1736 libc_cv_gcc_no_exceptions=yes
1737 else
1738 libc_cv_gcc_no_exceptions=no
1740 rm -f conftest*
1743 echo "$ac_t""$libc_cv_gcc_no_exceptions" 1>&6
1745 ### End of automated tests.
1746 ### Now run sysdeps configure fragments.
1748 # sysdeps configure fragments may set these with files to be linked below.
1749 libc_link_dests=
1750 libc_link_sources=
1752 # Iterate over all the sysdep directories we will use, running their
1753 # configure fragments, and looking for a uname implementation.
1754 uname=
1755 for dir in $sysnames; do
1756 case $dir in
1757 /*) dest=$dir ;;
1758 *) dest=$srcdir/$dir ;;
1759 esac
1760 if test -r $dest/configure; then
1761 echo "$ac_t""running configure fragment for $dest" 1>&6
1762 . $dest/configure
1765 if test -z "$uname"; then
1766 if test -r $sysdep_dir/$dir/uname.c ||
1767 test -r $sysdep_dir/$dir/uname.S ||
1768 { test -r $sysdep_dir/$dir/syscalls.list &&
1769 grep '^uname[ ]' $sysdep_dir/$dir/syscalls.list >/dev/null; }; then
1770 uname=$dir
1773 done
1777 # If we will use the generic uname implementation, we must figure out what
1778 # it will say by examining the system, and write the results in config-name.h.
1779 if test "$uname" = generic; then
1781 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
1782 if test $uname_sysname != $config_os; then
1783 config_release=`echo $config_os | sed s/$uname_sysname//`
1786 echo $ac_n "checking OS release for uname""... $ac_c" 1>&6
1787 echo "configure:1788: checking OS release for uname" >&5
1788 if eval "test \"`echo '$''{'libc_cv_uname_release'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1790 else
1791 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
1792 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
1793 != x$config_release; then
1794 # The configuration release is a substring of the kernel release.
1795 libc_cv_uname_release=$kernel_release
1796 elif test x$config_release != x; then
1797 libc_cv_uname_release=$config_release
1798 elif test x$kernel_release != x; then
1799 libc_cv_uname_release=$kernel_release
1800 else
1801 libc_cv_uname_release=unknown
1805 echo "$ac_t""$libc_cv_uname_release" 1>&6
1806 uname_release="$libc_cv_uname_release"
1808 echo $ac_n "checking OS version for uname""... $ac_c" 1>&6
1809 echo "configure:1810: checking OS version for uname" >&5
1810 if eval "test \"`echo '$''{'libc_cv_uname_version'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1812 else
1813 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
1814 if test -n "$kernel_version"; then
1815 libc_cv_uname_version="$kernel_version"
1816 else
1817 libc_cv_uname_version=unknown
1821 echo "$ac_t""$libc_cv_uname_version" 1>&6
1822 uname_version="$libc_cv_uname_version"
1824 config_uname=config-name.h:config-name.in
1825 else
1826 # For non-generic uname, we don't need to create config-name.h at all.
1827 config_uname=
1830 echo $ac_n "checking stdio selection""... $ac_c" 1>&6
1831 echo "configure:1832: checking stdio selection" >&5
1833 case $stdio in
1834 libio) cat >> confdefs.h <<\EOF
1835 #define USE_IN_LIBIO 1
1838 default) stdio=stdio ;;
1839 esac
1840 echo "$ac_t""$stdio" 1>&6
1842 echo $ac_n "checking malloc selection""... $ac_c" 1>&6
1843 echo "configure:1844: checking malloc selection" >&5
1845 case $malloc in
1846 new-malloc) USE_NEW_MALLOC=-DUSE_NEW_MALLOC ;;
1847 default) malloc=malloc ;;
1848 esac
1850 echo "$ac_t""$malloc" 1>&6
1857 if test $gnu_ld = yes; then
1858 cat >> confdefs.h <<\EOF
1859 #define HAVE_GNU_LD 1
1863 if test $gnu_as = yes; then
1864 cat >> confdefs.h <<\EOF
1865 #define HAVE_GNU_AS 1
1869 if test $elf = yes; then
1870 cat >> confdefs.h <<\EOF
1871 #define HAVE_ELF 1
1877 if test $shared = default; then
1878 if test $gnu_ld = yes; then
1879 shared=$elf
1880 else
1881 # For now we do not assume shared libs are available. In future more
1882 # tests might become available.
1883 shared=no
1891 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
1892 config_makefile=
1893 else
1894 config_makefile=Makefile
1897 trap '' 1 2 15
1898 cat > confcache <<\EOF
1899 # This file is a shell script that caches the results of configure
1900 # tests run on this system so they can be shared between configure
1901 # scripts and configure runs. It is not useful on other systems.
1902 # If it contains results you don't want to keep, you may remove or edit it.
1904 # By default, configure uses ./config.cache as the cache file,
1905 # creating it if it does not exist already. You can give configure
1906 # the --cache-file=FILE option to use a different cache file; that is
1907 # what configure does when it calls configure scripts in
1908 # subdirectories, so they share the cache.
1909 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1910 # config.status only pays attention to the cache file if you give it the
1911 # --recheck option to rerun configure.
1914 # The following way of writing the cache mishandles newlines in values,
1915 # but we know of no workaround that is simple, portable, and efficient.
1916 # So, don't put newlines in cache variables' values.
1917 # Ultrix sh set writes to stderr and can't be redirected directly,
1918 # and sets the high bit in the cache file unless we assign to the vars.
1919 (set) 2>&1 |
1920 case `(ac_space=' '; set) 2>&1` in
1921 *ac_space=\ *)
1922 # `set' does not quote correctly, so add quotes (double-quote substitution
1923 # turns \\\\ into \\, and sed turns \\ into \).
1924 sed -n \
1925 -e "s/'/'\\\\''/g" \
1926 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1929 # `set' quotes correctly as required by POSIX, so do not add quotes.
1930 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1932 esac >> confcache
1933 if cmp -s $cache_file confcache; then
1935 else
1936 if test -w $cache_file; then
1937 echo "updating cache $cache_file"
1938 cat confcache > $cache_file
1939 else
1940 echo "not updating unwritable cache $cache_file"
1943 rm -f confcache
1945 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1947 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1948 # Let make expand exec_prefix.
1949 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1951 # Any assignment to VPATH causes Sun make to only execute
1952 # the first set of double-colon rules, so remove it if not needed.
1953 # If there is a colon in the path, we need to keep it.
1954 if test "x$srcdir" = x.; then
1955 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1958 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1960 DEFS=-DHAVE_CONFIG_H
1962 # Without the "./", some shells look in PATH for config.status.
1963 : ${CONFIG_STATUS=./config.status}
1965 echo creating $CONFIG_STATUS
1966 rm -f $CONFIG_STATUS
1967 cat > $CONFIG_STATUS <<EOF
1968 #! /bin/sh
1969 # Generated automatically by configure.
1970 # Run this file to recreate the current configuration.
1971 # This directory was configured as follows,
1972 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1974 # $0 $ac_configure_args
1976 # Compiler output produced by configure, useful for debugging
1977 # configure, is in ./config.log if it exists.
1979 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1980 for ac_option
1982 case "\$ac_option" in
1983 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1984 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1985 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1986 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1987 echo "$CONFIG_STATUS generated by autoconf version 2.12"
1988 exit 0 ;;
1989 -help | --help | --hel | --he | --h)
1990 echo "\$ac_cs_usage"; exit 0 ;;
1991 *) echo "\$ac_cs_usage"; exit 1 ;;
1992 esac
1993 done
1995 ac_given_srcdir=$srcdir
1996 ac_given_INSTALL="$INSTALL"
1998 trap 'rm -fr `echo "config.make ${config_makefile} ${config_uname} config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2000 cat >> $CONFIG_STATUS <<EOF
2002 # Protect against being on the right side of a sed subst in config.status.
2003 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2004 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2005 $ac_vpsub
2006 $extrasub
2007 s%@CFLAGS@%$CFLAGS%g
2008 s%@CPPFLAGS@%$CPPFLAGS%g
2009 s%@CXXFLAGS@%$CXXFLAGS%g
2010 s%@DEFS@%$DEFS%g
2011 s%@LDFLAGS@%$LDFLAGS%g
2012 s%@LIBS@%$LIBS%g
2013 s%@exec_prefix@%$exec_prefix%g
2014 s%@prefix@%$prefix%g
2015 s%@program_transform_name@%$program_transform_name%g
2016 s%@bindir@%$bindir%g
2017 s%@sbindir@%$sbindir%g
2018 s%@libexecdir@%$libexecdir%g
2019 s%@datadir@%$datadir%g
2020 s%@sysconfdir@%$sysconfdir%g
2021 s%@sharedstatedir@%$sharedstatedir%g
2022 s%@localstatedir@%$localstatedir%g
2023 s%@libdir@%$libdir%g
2024 s%@includedir@%$includedir%g
2025 s%@oldincludedir@%$oldincludedir%g
2026 s%@infodir@%$infodir%g
2027 s%@mandir@%$mandir%g
2028 s%@subdirs@%$subdirs%g
2029 s%@host@%$host%g
2030 s%@host_alias@%$host_alias%g
2031 s%@host_cpu@%$host_cpu%g
2032 s%@host_vendor@%$host_vendor%g
2033 s%@host_os@%$host_os%g
2034 s%@base_machine@%$base_machine%g
2035 s%@sysnames@%$sysnames%g
2036 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2037 s%@INSTALL_DATA@%$INSTALL_DATA%g
2038 s%@LN_S@%$LN_S%g
2039 s%@MSGFMT@%$MSGFMT%g
2040 s%@build@%$build%g
2041 s%@build_alias@%$build_alias%g
2042 s%@build_cpu@%$build_cpu%g
2043 s%@build_vendor@%$build_vendor%g
2044 s%@build_os@%$build_os%g
2045 s%@CC@%$CC%g
2046 s%@BUILD_CC@%$BUILD_CC%g
2047 s%@CPP@%$CPP%g
2048 s%@AR@%$AR%g
2049 s%@RANLIB@%$RANLIB%g
2050 s%@BASH@%$BASH%g
2051 s%@libc_cv_have_bash2@%$libc_cv_have_bash2%g
2052 s%@libc_cv_have_initfini@%$libc_cv_have_initfini%g
2053 s%@libc_cv_ld_no_whole_archive@%$libc_cv_ld_no_whole_archive%g
2054 s%@libc_cv_gcc_no_exceptions@%$libc_cv_gcc_no_exceptions%g
2055 s%@uname_sysname@%$uname_sysname%g
2056 s%@uname_release@%$uname_release%g
2057 s%@uname_version@%$uname_version%g
2058 s%@stdio@%$stdio%g
2059 s%@malloc@%$malloc%g
2060 s%@USE_NEW_MALLOC@%$USE_NEW_MALLOC%g
2061 s%@libc_cv_slibdir@%$libc_cv_slibdir%g
2062 s%@libc_cv_sysconfdir@%$libc_cv_sysconfdir%g
2063 s%@gnu_ld@%$gnu_ld%g
2064 s%@gnu_as@%$gnu_as%g
2065 s%@elf@%$elf%g
2066 s%@shared@%$shared%g
2067 s%@profile@%$profile%g
2068 s%@omitfp@%$omitfp%g
2069 s%@DEFINES@%$DEFINES%g
2071 CEOF
2074 cat >> $CONFIG_STATUS <<\EOF
2076 # Split the substitutions into bite-sized pieces for seds with
2077 # small command number limits, like on Digital OSF/1 and HP-UX.
2078 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2079 ac_file=1 # Number of current file.
2080 ac_beg=1 # First line for current file.
2081 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2082 ac_more_lines=:
2083 ac_sed_cmds=""
2084 while $ac_more_lines; do
2085 if test $ac_beg -gt 1; then
2086 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2087 else
2088 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2090 if test ! -s conftest.s$ac_file; then
2091 ac_more_lines=false
2092 rm -f conftest.s$ac_file
2093 else
2094 if test -z "$ac_sed_cmds"; then
2095 ac_sed_cmds="sed -f conftest.s$ac_file"
2096 else
2097 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2099 ac_file=`expr $ac_file + 1`
2100 ac_beg=$ac_end
2101 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2103 done
2104 if test -z "$ac_sed_cmds"; then
2105 ac_sed_cmds=cat
2109 cat >> $CONFIG_STATUS <<EOF
2111 CONFIG_FILES=\${CONFIG_FILES-"config.make ${config_makefile} ${config_uname}"}
2113 cat >> $CONFIG_STATUS <<\EOF
2114 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2115 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2116 case "$ac_file" in
2117 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2118 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2119 *) ac_file_in="${ac_file}.in" ;;
2120 esac
2122 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2124 # Remove last slash and all that follows it. Not all systems have dirname.
2125 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2126 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2127 # The file is in a subdirectory.
2128 test ! -d "$ac_dir" && mkdir "$ac_dir"
2129 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2130 # A "../" for each directory in $ac_dir_suffix.
2131 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2132 else
2133 ac_dir_suffix= ac_dots=
2136 case "$ac_given_srcdir" in
2137 .) srcdir=.
2138 if test -z "$ac_dots"; then top_srcdir=.
2139 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2140 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2141 *) # Relative path.
2142 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2143 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2144 esac
2146 case "$ac_given_INSTALL" in
2147 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2148 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2149 esac
2151 echo creating "$ac_file"
2152 rm -f "$ac_file"
2153 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2154 case "$ac_file" in
2155 *Makefile*) ac_comsub="1i\\
2156 # $configure_input" ;;
2157 *) ac_comsub= ;;
2158 esac
2160 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2161 sed -e "$ac_comsub
2162 s%@configure_input@%$configure_input%g
2163 s%@srcdir@%$srcdir%g
2164 s%@top_srcdir@%$top_srcdir%g
2165 s%@INSTALL@%$INSTALL%g
2166 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2167 fi; done
2168 rm -f conftest.s*
2170 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2171 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2173 # ac_d sets the value in "#define NAME VALUE" lines.
2174 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2175 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2176 ac_dC='\3'
2177 ac_dD='%g'
2178 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2179 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2180 ac_uB='\([ ]\)%\1#\2define\3'
2181 ac_uC=' '
2182 ac_uD='\4%g'
2183 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2184 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2185 ac_eB='$%\1#\2define\3'
2186 ac_eC=' '
2187 ac_eD='%g'
2189 if test "${CONFIG_HEADERS+set}" != set; then
2191 cat >> $CONFIG_STATUS <<EOF
2192 CONFIG_HEADERS="config.h"
2194 cat >> $CONFIG_STATUS <<\EOF
2196 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2197 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2198 case "$ac_file" in
2199 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2200 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2201 *) ac_file_in="${ac_file}.in" ;;
2202 esac
2204 echo creating $ac_file
2206 rm -f conftest.frag conftest.in conftest.out
2207 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2208 cat $ac_file_inputs > conftest.in
2212 # Transform confdefs.h into a sed script conftest.vals that substitutes
2213 # the proper values into config.h.in to produce config.h. And first:
2214 # Protect against being on the right side of a sed subst in config.status.
2215 # Protect against being in an unquoted here document in config.status.
2216 rm -f conftest.vals
2217 cat > conftest.hdr <<\EOF
2218 s/[\\&%]/\\&/g
2219 s%[\\$`]%\\&%g
2220 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2221 s%ac_d%ac_u%gp
2222 s%ac_u%ac_e%gp
2224 sed -n -f conftest.hdr confdefs.h > conftest.vals
2225 rm -f conftest.hdr
2227 # This sed command replaces #undef with comments. This is necessary, for
2228 # example, in the case of _POSIX_SOURCE, which is predefined and required
2229 # on some systems where configure will not decide to define it.
2230 cat >> conftest.vals <<\EOF
2231 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2234 # Break up conftest.vals because some shells have a limit on
2235 # the size of here documents, and old seds have small limits too.
2237 rm -f conftest.tail
2238 while :
2240 ac_lines=`grep -c . conftest.vals`
2241 # grep -c gives empty output for an empty file on some AIX systems.
2242 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2243 # Write a limited-size here document to conftest.frag.
2244 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2245 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2246 echo 'CEOF
2247 sed -f conftest.frag conftest.in > conftest.out
2248 rm -f conftest.in
2249 mv conftest.out conftest.in
2250 ' >> $CONFIG_STATUS
2251 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2252 rm -f conftest.vals
2253 mv conftest.tail conftest.vals
2254 done
2255 rm -f conftest.vals
2257 cat >> $CONFIG_STATUS <<\EOF
2258 rm -f conftest.frag conftest.h
2259 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2260 cat conftest.in >> conftest.h
2261 rm -f conftest.in
2262 if cmp -s $ac_file conftest.h 2>/dev/null; then
2263 echo "$ac_file is unchanged"
2264 rm -f conftest.h
2265 else
2266 # Remove last slash and all that follows it. Not all systems have dirname.
2267 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2268 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2269 # The file is in a subdirectory.
2270 test ! -d "$ac_dir" && mkdir "$ac_dir"
2272 rm -f $ac_file
2273 mv conftest.h $ac_file
2275 fi; done
2279 cat >> $CONFIG_STATUS <<EOF
2280 ac_sources="`echo $libc_link_sources`"
2281 ac_dests="`echo $libc_link_dests`"
2284 cat >> $CONFIG_STATUS <<\EOF
2285 srcdir=$ac_given_srcdir
2286 while test -n "$ac_sources"; do
2287 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2288 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2290 echo "linking $srcdir/$ac_source to $ac_dest"
2292 if test ! -r $srcdir/$ac_source; then
2293 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2295 rm -f $ac_dest
2297 # Make relative symlinks.
2298 # Remove last slash and all that follows it. Not all systems have dirname.
2299 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
2300 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2301 # The dest file is in a subdirectory.
2302 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2303 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
2304 # A "../" for each directory in $ac_dest_dir_suffix.
2305 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
2306 else
2307 ac_dest_dir_suffix= ac_dots=
2310 case "$srcdir" in
2311 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2312 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2313 esac
2315 # Make a symlink if possible; otherwise try a hard link.
2316 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2317 ln $srcdir/$ac_source $ac_dest; then :
2318 else
2319 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2321 done
2323 cat >> $CONFIG_STATUS <<EOF
2324 echo '$config_vars' >> config.make
2326 cat >> $CONFIG_STATUS <<\EOF
2328 exit 0
2330 chmod +x $CONFIG_STATUS
2331 rm -fr confdefs* $ac_clean_files
2332 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2334 if test "$no_recursion" != yes; then
2336 # Remove --cache-file and --srcdir arguments so they do not pile up.
2337 ac_sub_configure_args=
2338 ac_prev=
2339 for ac_arg in $ac_configure_args; do
2340 if test -n "$ac_prev"; then
2341 ac_prev=
2342 continue
2344 case "$ac_arg" in
2345 -cache-file | --cache-file | --cache-fil | --cache-fi \
2346 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2347 ac_prev=cache_file ;;
2348 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2349 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2351 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2352 ac_prev=srcdir ;;
2353 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2355 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2356 esac
2357 done
2359 for ac_config_dir in $add_ons; do
2361 # Do not complain, so a configure script can configure whichever
2362 # parts of a large source tree are present.
2363 if test ! -d $srcdir/$ac_config_dir; then
2364 continue
2367 echo configuring in $ac_config_dir
2369 case "$srcdir" in
2370 .) ;;
2372 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2373 else
2374 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2377 esac
2379 ac_popdir=`pwd`
2380 cd $ac_config_dir
2382 # A "../" for each directory in /$ac_config_dir.
2383 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2385 case "$srcdir" in
2386 .) # No --srcdir option. We are building in place.
2387 ac_sub_srcdir=$srcdir ;;
2388 /*) # Absolute path.
2389 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2390 *) # Relative path.
2391 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2392 esac
2394 # Check for guested configure; otherwise get Cygnus style configure.
2395 if test -f $ac_sub_srcdir/configure; then
2396 ac_sub_configure=$ac_sub_srcdir/configure
2397 elif test -f $ac_sub_srcdir/configure.in; then
2398 ac_sub_configure=$ac_configure
2399 else
2400 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2401 ac_sub_configure=
2404 # The recursion is here.
2405 if test -n "$ac_sub_configure"; then
2407 # Make the cache file name correct relative to the subdirectory.
2408 case "$cache_file" in
2409 /*) ac_sub_cache_file=$cache_file ;;
2410 *) # Relative path.
2411 ac_sub_cache_file="$ac_dots$cache_file" ;;
2412 esac
2413 case "$ac_given_INSTALL" in
2414 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2415 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2416 esac
2418 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2419 # The eval makes quoting arguments work.
2420 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2421 then :
2422 else
2423 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2427 cd $ac_popdir
2428 done